Modding Help Invalid variable

Discussion in 'Starbound Modding' started by Shadowblitz16, Dec 22, 2013.

  1. Shadowblitz16

    Shadowblitz16 Pangalactic Porcupine

    I am having trouble with my modded gun showing up
    It show's up in game as the green generic cube.
    I used http://jsonviewer.stack.hu/ for comparing it and a working code I based it off of and I get Invalid json variable on mine but not the other.
    Could someone take a quick look at it for me http://pastebin.com/1RM0JCrh I managed I fixed one thing but it seems to not be effecting the problem.
     
  2. mrflippy

    mrflippy Lucky Number 13

    The fire sound at the bottom needs
    Code:
    "file" :
    in front of the sound path

    edit: it should look like this:
    Code:
    "fireSound": [
      {
      "file" : "/sfx/gun/fireblast.wav"
      }
      ]
    
     
  3. Shadowblitz16

    Shadowblitz16 Pangalactic Porcupine

    k I got it working but now the
    "handPosition"
    "firePosition"
    commands seem to not be working within the .gun file.
    I've set them to multiple values and it doesn't seem to move anywhere.
    I've also checked my new .gun file with http://jsonviewer.stack.hu/ and there seems to be no errors.
    do I need a .frames file for the gun itself?
     
  4. Shadowblitz16

    Shadowblitz16 Pangalactic Porcupine

    nevermind it seems you got to recraft the gun everytime you change the handPosition and firePosition
     

Share This Page