Modding Discussion Easy way to spawn items.

Discussion in 'Starbound Modding' started by Zidonuke, Dec 5, 2013.

  1. tifel100

    tifel100 Void-Bound Voyager

    Actually the game just stores the current quest, so if you edit the 1 after, then finish your current quest, the 1 after will have the new rewards.
     
  2. bloody1001

    bloody1001 Space Hobo

    does this also work with random generated items, ?

    if not the hunting one, is the only one i know about that doesnt include finding chests or starting a new char.

    edit that, actually the chest / hunting bow, is the only one i know of atm that can spawn generated items.
     
  3. Thanks Man, I'll try it and let you know if it works. :)

    Also, to make sure I do this right, could you try this and post it so it works correctly? (Thanks Again)
     
  4. blumps

    blumps Space Hobo

    I'm only getting the first item to spawn. I can get pixels and thats it. Anyone care to fix my bad coding or give me input as to what I'm doing wrong? Thanks!


    {
    "id" : "humantutorial.gearup",
    "title" : "^#9be3d6;There's No Place Like Home",
    "text" : "Earth has been ripped apart. You have been in search of a new home for some time. Finally your ship has run out of fuel in orbit of an unknown planet. Before setting out in search of fuel, ^green;search your ship's storage for a ^pink;matter manipulator^white;. Press ^green;E ^white;to interact with objects.",
    "completionText" : "Well done! The matter manipulator allows you to manipulate almost anything in the gameworld.",
    "conditions" : [
    { "kind" : "gather", "item" : [ "beamaxe", 1] }
    ],
    "moneyRange" : [1000, 1000],
    "rewards" : [
    [ [ "diamondpickaxe", 1] ],
    [ [ "diamonddrill", 1] ],
    [ [ "humantier1head", 1] ],
    [ [ "humantier1chest", 1] ],
    [ [ "beamaxe", 1] ]
    ],
    "planetMode" : "none",
    "questDungeons" : [ ],
    "followUp" : "tutorial2.gearup"
    }
     
  5. Wystner

    Wystner Astral Cartographer

    Try this:

    {
    "id" : "humantutorial.gearup",
    "title" : "^#9be3d6;There's No Place Like Home",
    "text" : "Earth has been ripped apart. You have been in search of a new home for some time. Finally your ship has run out of fuel in orbit of an unknown planet. Before setting out in search of fuel, ^green;search your ship's storage for a ^pink;matter manipulator^white;. Press ^green;E ^white;to interact with objects.",
    "completionText" : "Well done! The matter manipulator allows you to manipulate almost anything in the gameworld.",
    "conditions" : [
    { "kind" : "gather", "item" : [ "beamaxe", 1] }
    ],
    "moneyRange" : [1000, 1000],
    "rewards" : [
    [
    [ "diamondpickaxe", 1],
    [ "diamonddrill", 1],
    [ "humantier1head", 1],
    [ "humantier1chest", 1],
    [ "beamaxe", 1]
    ]
    ],
    "planetMode" : "none",
    "questDungeons" : [ ],
    "followUp" : "tutorial2.gearup"
    }
     
    blumps likes this.
  6. blumps

    blumps Space Hobo

    Thanks wystner, I think I figured out what it was. Man the last time I did any coding was back in 99 on a calculator during french class....now I just have no idea anymore :(
     
  7. ollj

    ollj Big Damn Hero

  8. vRandom

    vRandom Void-Bound Voyager

    So what is the levelvarience for a level 10 planet?
     
  9. MrDilers

    MrDilers Space Hobo

    My game crash , help me please :/

    {
    "id" : "apextutorial.gearup",
    "title" : "^#9be3d6;On The Run.",
    "text" : "The Miniknog has crushed the Apex rebellion. You have escaped with your life intact by hijacking a Miniknog ship. The ship has run out of fuel in orbit of an unknown planet. Before setting out in search of fuel, ^green;search your ship's storage for a ^pink;matter manipulator^white;. Press ^green;E ^white;to interact with objects.",
    "completionText" : "Well done! The matter manipulator allows you to manipulate almost anything in the gameworld.",
    "conditions" : [
    { "kind" : "gather", "item" : [ "beamaxe", 1] }
    ],
    "moneyRange" : [10, 10],
    "rewards" : [
    [ [ "beamaxe", 1],
    [ "rainbowcapeback", 1],
    [ "violin", 1],
    [ "grapplinghook", 1],
    [ "morphballTech", 1],
    [ "doublejumpTech", 1],
    [ "rocketjump", 1],
    [ "gravgun", 1],
    [ "ocarina", 1],
    [ "jetpackTech-chip", 1],
    [ "leadguitar", 1],
    [ "microphone", 1],
    [ "electricbass", 1],
    [ "flute", 1],
    [ "piano", 1],
    [ "generatedsword", 1, { "definition" : "apextier10broadsword" } ],
    [ "neoback", 1],
    [ "neochest", 1],
    [ "neohead", 1],
    ]
    ],
    "planetMode" : "none",
    "questDungeons" : [ ],
    "followUp" : "tutorial2.gearup"
     
  10. Wystner

    Wystner Astral Cartographer

    Apextier10broadsword isn't randomly generated, also leave the common off the end of the last reward and close your curly bracket:


    {
    "id" : "apextutorial.gearup",
    "title" : "^#9be3d6;On The Run.",
    "text" : "The Miniknog has crushed the Apex rebellion. You have escaped with your life intact by hijacking a Miniknog ship. The ship has run out of fuel in orbit of an unknown planet. Before setting out in search of fuel, ^green;search your ship's storage for a ^pink;matter manipulator^white;. Press ^green;E ^white;to interact with objects.",
    "completionText" : "Well done! The matter manipulator allows you to manipulate almost anything in the gameworld.",
    "conditions" : [
    { "kind" : "gather", "item" : [ "beamaxe", 1] }
    ],
    "moneyRange" : [10, 10],
    "rewards" : [
    [ [ "beamaxe", 1],
    [ "rainbowcapeback", 1],
    [ "violin", 1],
    [ "grapplinghook", 1],
    [ "morphballTech", 1],
    [ "doublejumpTech", 1],
    [ "rocketjump", 1],
    [ "gravgun", 1],
    [ "ocarina", 1],
    [ "jetpackTech-chip", 1],
    [ "leadguitar", 1],
    [ "microphone", 1],
    [ "electricbass", 1],
    [ "flute", 1],
    [ "piano", 1],
    [ "apextier10broadsword", 1],
    [ "neoback", 1],
    [ "neochest", 1],
    [ "neohead", 1]
    ]
    ],
    "planetMode" : "none",
    "questDungeons" : [ ],
    "followUp" : "tutorial2.gearup"
    }
     
  11. AdelaisAer

    AdelaisAer Industrial Terraformer

    I ran into a new issue that happened after the latest patch.

    Certain items being added into the reward thing will not actually be given - instead, they'll turn into A Perfectly Generic Item. Notably, those items are spawners, Rainbow Cape, and Lantern Stick. not sure why.
     
  12. tifel100

    tifel100 Void-Bound Voyager

    you probably put a wrong name, or they have been renamed.
     
  13. AdelaisAer

    AdelaisAer Industrial Terraformer

    I triple-checked. Names are still the same, didn't make any mistakes. :s
     
  14. SaintPanda

    SaintPanda Cosmic Narwhal

    Can I have a little help...I keep crashing, I did it right once, but I deleted it because of a mod. Now I can't get it to work
    Code:
    {
      "id" : "humantutorial.gearup",
      "title" : "^#9be3d6;There's No Place Like Home",
      "text" : "Earth has been ripped apart. You have been in search of a new home for some time. Finally your ship has run out of fuel in orbit of an unknown planet. Before setting out in search of fuel, ^green;search your ship's storage for a ^pink;matter manipulator^white;. Press ^green;E ^white;to interact with objects.",
      "completionText" : "Well done! The matter manipulator allows you to manipulate almost anything in the gameworld.",
      "conditions" : [
        { "kind" : "gather", "item" : [ "beamaxe", 1] }
      ],
      "moneyRange" : [99999999999, 99999999999],
      "rewards" : [
        [
        [ "beamaxe", 1],
        [ "copperbar", 1000],
        [ "ironbar", 1000],
        [ "silverbar", 1000],
        [ "goldbar", 1000],
        [ "platinumbar", 1000],
        [ "diamond", 1000],
        [ "steelbar", 1000],
        [ "titaniumbar", 1000],
        [ "durasteelbar", 1000],
        [ "aegisaltbar", 1000],
        [ "feroziumbar", 1000],
        [ "ceruliumbar", 1000],
        [ "violiumbar", 1000],
        [ "rubiumbar", 1000],
        [ "tier2engine", 2],
        [ "tier3engine", 2],
        [ "tier4engine", 2],
        [ "portable3dprinter", 1],
        [ "techupgrade32", 1],
        [ techupgrade33", 1],
        [ "techupgrade34", 1],
        [ "techupgrade35", 1],
        [ "techupgrade36", 1],
        [ "techupgrade37", 1],
        [ "voxel10k", 1000],
        [ "coalore", 1000],
        [ "uraniumore", 1000],
        [ "plutoniumore", 1000],
        [ "solariumore", 1000],
        [ "torch", 1000],
        [ "cobblestonematerial", 1000],
        [ "fullwood1", 1000],
        [ "darkwoodmaterial", 1000],
        [ "moltencore", 2],
        [ "artificialbrain", 4],
        [ "processor", 2],
        [ "capturestation", 2],
        [ "capturepod", 1000]
        ]
      ],
      "planetMode" : "none",
      "questDungeons" : [ ],
      "followUp" : "tutorial2.gearup"
    }
    
     
  15. Eathed

    Eathed Pangalactic Porcupine

    AdelaisAer likes this.
  16. Komonoto

    Komonoto Orbital Explorer

    I'm still getting an error, even after removing the last comma. However I am almost 100% sure that this is because of my incapability of deciphering what you mean by "added another line". Please help, I do want to get this to work.
     
  17. Komonoto

    Komonoto Orbital Explorer

    I got "Invalid array length" what does that mean?
     
  18. Komonoto

    Komonoto Orbital Explorer

    {
    "id" : "hylotltutorial.gearup",
    "title" : "^#9be3d6;Fish Out Of Water",
    "text" : "You have been drifting in space for some time, unable to choose a planet to explore. Finally your ship has run out of fuel in orbit of an unknown planet, making your choice for you. Before setting out in search of fuel, ^green;search your ship's storage for a ^pink;matter manipulator^white;. Press ^green;E ^white;to interact with objects.",
    "completionText" : "Well done! The matter manipulator allows you to manipulate almost anything in the gameworld.",
    "conditions" : [
    { "kind" : "gather", "item" : [ "beamaxe", 1] }
    ],
    "moneyRange" : [10, 10],
    "rewards" : [
    [ [ "hylotltier10chest", 1] ]
    [ [ "hylotltier10head", 1] ]
    [ [ "hylotltier10pants", 1] ]
    [ [ "hylotltier10broadsword", 1] ]
    [ [ "hylotltier10spear", 1] ]
    [ [ "diamonddrill", 1] ]
    [ [ "butterflyboost-chip", 1] ]
    [ [ "overdriveguitar", 1] ]
    [ [ "jeans1legs", 1] ]
    [ [ "buccaneerchest", 1] ]
    [ [ "pilothead", 1] ]
    [ [ "simplecapeback" 1] ]
    ],
    "planetMode" : "none",
    "questDungeons" : [ ],
    "followUp" : "tutorial2.gearup"
    }

    There is the code, can someone tell me what I am doing wrong?
     
  19. Aigis

    Aigis Tentacle Wrangler

    I haven't messed with the files since a few updates ago so I don't know if anything changed, but isn't there only supposed to be one pair of [] on each item line?
     
  20. Eathed

    Eathed Pangalactic Porcupine

    You are missing a bunch of commas. You need commas at the end of every reward line. Also, for the reward "simplecapeback" you are missing a comma before the 1.
     

Share This Page