Modding Help Can Anyone Figure Out how to Update this for Non-generated Shields?

Discussion in 'Starbound Modding' started by Wulf_Oman, Mar 23, 2015.

  1. Wulf_Oman

    Wulf_Oman Existential Complex

    I tried remaking a non-generated shield but it comes up as a PGI, anyone have any idea how to fix the code?

    http://pastebin.com/c63g74BR
     
  2. GROVER CURES HOUSES

    GROVER CURES HOUSES Void-Bound Voyager

    That's a vanilla item, it should work fine.
     
  3. Wulf_Oman

    Wulf_Oman Existential Complex

    Randomly generated shields are vanilla, not preset ones. And no, it didn't work (or I wouldn't be asking)
     
  4. GROVER CURES HOUSES

    GROVER CURES HOUSES Void-Bound Voyager

    Did you just change .generatedshield to .shield or something? What did you do and what is error being thrown?
     
  5. Wulf_Oman

    Wulf_Oman Existential Complex

    I can double check I made it a .shield when I can, fairly positive I did but I could be wrong.
    Edit: It IS a .shield after all

    There is no error I saw, it's simply not appearing at all
     
    Last edited: Mar 24, 2015
  6. GROVER CURES HOUSES

    GROVER CURES HOUSES Void-Bound Voyager

    :lod:

    1) Name collision
    2) Level
    3) Image
    4) "baseline" : { params and stuff } does nothing in a static item. Everything inside those brackets? Not really there. Remove everything surrounding the parameters so they're on the same level as the item name.

    tl;dr: take .gun, compare to .generatedgun, draw conclusions.
     
  7. Wulf_Oman

    Wulf_Oman Existential Complex

    Unfortunately I did do that
    I turned one into a pastebin, maybe you'll have more luck then I will at spotting the issue - I'm not entirely observant

    http://pastebin.com/yQ7ydXJs
     
  8. GROVER CURES HOUSES

    GROVER CURES HOUSES Void-Bound Voyager

    Delete everything on lines 25 and 37. Put a comma on the end of line 36.
     
  9. Wulf_Oman

    Wulf_Oman Existential Complex

    This part?
    Code:
    25  "baseline" : {
    26    "recoilTime" : 0.2,
    27    "knockbackPower" : 10,
    28    "knockbackDamageKind" : "",
    29    "statusEffects" : [
    30      {
    31        "stat" : "encumberance",
    32        "amount" : 1.0
    33      }
    34    ],
    35    "shieldPoly" : [ [-8, 0], [-8, 12], [8, 20], [8, -24], [-8, -12] ],
    36    "damagePoly" : [ [-8, 0], [8, 18], [8, -18] ]
    37  },
    
     

Share This Page