Modding Discussion Easy way to spawn items.

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

  1. 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] ],
    [ [ "beamaxe", 1] ]
    ],
    "planetMode" : "none",
    "questDungeons" : [ ],
    "followUp" : "tutorial2.gearup"
    }

    I changed the code to this, it worked but only gave me one item. Am I doing something wrong?
     
  2. Aigis

    Aigis Tentacle Wrangler

    I'm pretty sure it's those extra double brackets you have on each line.

    Code:
    "rewards" : [
        [
        [ "beamaxe", 1],
        [ "simplecapeback", 1]
        ]
        ],
    
    I assume you didn't read my post, but like I said; unless they changed the format, the formatting should be like the example here. I can't test it for myself right now, but yeah.
     
  3. Zer0137

    Zer0137 Intergalactic Tourist

    I've been checking this constantly, and i have no idea what's wrong. Help! the game instantly crashes and it sucks
    Code:
    {
      "id" : "aviantutorial.gearup",
      "title" : "^#9be3d6;Spread Your Wings",
      "text" : "You have narrowly escaped the wrath of the Stargazers. 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" : [10, 10],
      "rewards" : [
        [  
            [ "rainbowcapeback", 1],
            [ "beamaxe", 1],
            [ "diamondrill", 2],
            [ "grapplinghook", 1],
            [ "spawnerapex", 100],
            [ "spawneravian", 100],
            [ "spawnerchef", 100]
            [ "spawnerclothes", 100],
            [ "spawnerdoctor", 100],
            [ "spawnerfloran", 100],
            [ "spawnerglitch", 100],
            [ "spawnerguard", 100],
            [ "spawnerhuman", 100],
            [ "spawnerhylotl", 100],
            [ "diamondpickaxe", 3],
            [ "spawnerpirate", 100],
            [ "spawnerwizard", 100],
            [ "spawnertools", 100],
            [ "spawnerstim", 100]
            [ "rooftiles", 1000],
            [ "horsehead", 1],
            [ "castlewalls1", 1000],
            [ "castlewalls2", 1000],
            [ "roboticcraftingtable", 3],
            [ "skyrailTech-chip", 2],
            [ "wirestation", 2],
            [ "refinery", 2],
            [ "capturestation", 2],
            [ "metalworkstation", 3],
            [ "Rubiumbar", 1000],
            [ "aegisaltbar", 1000],
            [ "Violiumbar", 1000],
            [ "Feroziumbar", 1000],
            [ "Ceruliumbar", 1000],
            [ "imperviumbar", 1000],
            [ "coalore", 1000],
            [ "ironbar", 1000],
            [ "goldbar", 1000],
            [ "diamond", 1000],
            [ "steelbar", 1000],
            [ "platinumbar", 1000],
            [ "solariumrod", 10000],
            [ "uraniumore", 1000],
            [ "plutoniumore", 1000],
            [ "durasteelbar", 1000],
            [ "titaniumbar", 1000],
            [ "copperbar", 1000]
          
        ]
      ],
      "planetMode" : "none",
      "questDungeons" : [ ],
      "followUp" : "tutorial2.gearup"
    }
     
  4. Komonoto

    Komonoto Orbital Explorer

    Alrright, I'll remove the double brackets and see.
     
  5. Komonoto

    Komonoto Orbital Explorer

    Okay, I removed the double brackets and now instead of just giving me one reward, it crashes.
     
  6. MoLeZeN

    MoLeZeN Subatomic Cosmonaut

    You are missing 2 commas 1 behind the closing square bracket of spawnerchef the other behind the closing square bracket of spawnerstim. also when i tested it i wound up with some green squares of fail.. :p might just be because i haven't updated the game on my coding laptop but just beware of stray capitals etc in the file names. Good Luck and happy Starbounding!
     
  7. Zer0137

    Zer0137 Intergalactic Tourist

    THANK YOUU!!!!!!
     
  8. Aigis

    Aigis Tentacle Wrangler

    Post your new code? I'm sure it's something trivial.
     
  9. MoLeZeN

    MoLeZeN Subatomic Cosmonaut

    I did not test this just changed what i immediately saw as wrong
    Code:
    {
      "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],
          [ "beamaxe", 1]
      ]
      ],
      "planetMode" : "none",
      "questDungeons" : [ ],
      "followUp" : "tutorial2.gearup"
    }
    
     
  10. Rev5

    Rev5 Void-Bound Voyager

    I keep trying to edit this but it keeps crashing for some reason anyone know what I did wrong?
    {
    "id" : "aviantutorial.gearup",
    "title" : "^#9be3d6;Spread Your Wings",
    "text" : "You have narrowly escaped the wrath of the Stargazers.

    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" :

    [10, 10],
    "rewards" : [
    [ [ "buster", 1],
    [ "bubblegun", 1],
    [ "rocketjump-chip", 1],
    [ "morphballTech-chip", 1],
    [ "miningdrill", 1],
    [ "humanMechTech-chip", 1],
    [ "hoverTech-chip", 1],
    [ "jetpackTech-chip", 1],
    [ "doublejumpTech-chip", 1],
    [ "dashTech-chip", 1],
    [ "butterflyboost-chip", 1],
    [ "bubbleboost-chip", 1],
    [ "cameramanboost-chip", 1],
    [ "targetblinktech-chip", 1],
    [ "ocarinainstrument", 1],
    [ "pianoinstrument", 1],
    [ "gravgun", 1],
    [ "chainsaw", 1],
    [ "aviantier10hammer", 1],
    [ "aviantier10broadsword", 1],
    [ "harp", 1],
    [ "saxophone", 1],
    [ "rocket1", 1],
    [ "cameramanhead", 1],
    [ "fishsomething", 1],
    [ "grapplinghook", 1],
    [ "superfishaxe", 1],
    [ "aviantier10pants", 1],
    [ "aviantier10head", 1],
    [ "aviantier10chest", 1],
    [ "beamaxe", 1] ]
    ]
    ], ]
    ],
    "planetMode" : "none",
    "questDungeons" : [ ],
    "followUp" : "tutorial2.gearup"
    }
     
  11. MoLeZeN

    MoLeZeN Subatomic Cosmonaut

    Kinda tired at the moment so only took a quick glance. I think what was making you crash was that you had too many closing brackets at the end of your rewards.
    Also in regards to spawning things you appear to have some names wrong.
    [ "ocarinainstrument", 1], should just be [ "ocarina", 1],
    [ "pianoinstrument", 1], should just be [ "piano", 1],

    Hope this helps. If not i guess someone, or me at a later point in time..., can take a proper look through and test it.
     
    Rev5 and steveduck2345 like this.
  12. Rev5

    Rev5 Void-Bound Voyager

    I tried adding a bit more stuff and it's doing it again
    {
    "id" : "aviantutorial.gearup",
    "title" : "^#9be3d6;Spread Your Wings",
    "text" : "You have narrowly escaped the wrath of the Stargazers.

    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" :

    [10, 10],
    "rewards" : [
    [ [ "buster", 1],
    [ "bubblegun", 1],
    [ "rocketjump-chip", 1],
    [ "morphballTech-chip", 1],
    [ "miningdrill", 1],
    [ "humanMechTech-chip", 1],
    [ "hoverTech-chip", 1],
    [ "jetpackTech-chip", 1],
    [ "doublejumpTech-chip", 1],
    [ "dashTech-chip", 1],
    [ "butterflyboost-chip", 1],
    [ "bubbleboost-chip", 1],
    [ "accordion", 1],
    [ "acousticguitar", 1],
    [ "banjo", 1],
    [ "bassguitar", 1],
    [ "clarinet", 1],
    [ "drumkit", 1],
    [ "dulcimer", 1],
    [ "electricbass", 1],
    [ "flute", 1],
    [ "harmonica", 1],
    [ "harp", 1],
    [ "koto", 1],
    [ "leadguitar", 1],
    [ "microphone", 1],
    [ "musicbox", 1],
    [ "nylonguitar", 1],
    [ "oboe", 1],
    [ "ocarina", 1],
    [ "overdriveguitar", 1],
    [ "piano", 1],
    [ "reedorgan", 1],
    [ "rockorgan", 1],
    [ "saxophone", 1],
    [ "steeldrum", 1],
    [ "trumpet", 1],
    [ "violin", 1]
    [ "cameramanboost-chip", 1],
    [ "targetblinktech-chip", 1],
    [ "aviantier10hammer", 1],
    [ "aviantier10broadsword", 1],
    [ "rocket1", 1],
    [ "cameramanhead", 1],
    [ "fishsomething", 1],
    [ "rainbowcapeback", 1],
    [ "crystalpackback", 1],
    [ "grapplinghook", 1],
    [ "superfishaxe", 1],
    [ "aviantier10pants", 1],
    [ "aviantier10head", 1],
    [ "aviantier10chest", 1],
    [ "beamaxe", 1]
    ]
    ],
    "planetMode" : "none",
    "questDungeons" : [ ],
    "followUp" : "tutorial2.gearup"
    }
     
  13. MoLeZeN

    MoLeZeN Subatomic Cosmonaut

    Ok,
    What was making you crash here was that you are missing a comma after the closing bracket of violin.
    [ "violin", 1],

    Also after testing it i found a few "perfectly generic items" (the green cubes of fail)
    First one is from "miningdrill" need to specify which drill you want.
    examples to use: "diamonddrill" "copperdrill" "platinumdrill"

    Second is from "rocket1" not sure what you were after here so not sure how to fix it sorry mate.

    Third is from "crystalpackback" pays to open the file for the item you want to spawn and check its proper name sometimes..
    In this case its supposed to be "crystalbackpackback" the name for this one makes my brain hurt a bit... :facepalm:

    As always I hope this helps :up:
     
  14. Rev5

    Rev5 Void-Bound Voyager

    Kinda funny how 1 little error can ruin an entire code also thanks a bunch
     
  15. 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],
    [ "beamaxe", 1]
    ]
    ],
    "planetMode" : "none",
    "questDungeons" : [ ],
    "followUp" : "tutorial2.gearup"
    }

    I tried the code but I kept on black screening and then crashing. :wut:
     
  16. MoLeZeN

    MoLeZeN Subatomic Cosmonaut

    Code:
    {
      "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],
    [ "beamaxe", 1]
    ]
    ],
      "planetMode" : "none",
      "questDungeons" : [ ],
      "followUp" : "tutorial2.gearup"
    }
    I have got to be honest i have no idea what isn't working for you I copied your rewards section over mine and it worked fine.
    My only thoughts are that either you have messed with one of your other races quest files.
    That there was a mistake somewhere outside of your "rewards" section of code which i am not able to see..
    (above code is the entire contents of my hylotltutorial which worked for me)
    Or that you have attempted other file editing and made a mess of that instead... I don't mean this in a rude way it happens..

    Really hope this helps because I am seriously lost as for why it isn't working for you at this point..
     
  17. Komonoto

    Komonoto Orbital Explorer

    I am assuming it works, but every time I try to start the game, it says "Client-server connection no longer valid!"
     
  18. MoLeZeN

    MoLeZeN Subatomic Cosmonaut

    Strange.. only advice i can give from here is to "verify integrity of game cache"
    If ya don't know how to do this then right click on Starbound in your steam library, Then click properties.
    After you have done so a window should pop up, go to the "local files" tab last option should be "verify integrity of game cache"

    This will correct any modded files back to default.
    After you have done this launch the game to make sure it works.
    Once you have confirmed the game works attempt to mod again.
    However if the game fails to launch you may need to uninstall then reinstall.
     
  19. Leo1250

    Leo1250 Scruffy Nerf-Herder

    Can someone tell me whats wrong?

    {
    "id" : "tutorial5.gearup",
    "title" : "^#9be3d6;First Contact",
    "text" : "Д в и г а т е л ь в а ш е г о к о р а б л я и м е е т н е д о с т а т о ч н о м о щ ь н о с т и д л я п у т е ш е с т в и й з а п р е д е л ы А л ь ф а с е к т о р а . ^green;С о з д а й т е ^orange;; А в а р и й н ы й м а я к ^green;и в о з м о ж н о в ы с м о ж е т е у с т а н о в и т ь к о н т а к т с б о л ь ш и м к о р а б л е м . ^white;Н о б у д ь т е г о т о в ы к о в с е м у , п р е ж д е ч е м у с т а н а в л и в а т ь е г о ! ",
    "completionText" : "О т л и ч н а я р а б о т а . П р е д л а г а ю в а м п о д г о т о в и т ь с я п р е ж д е ч е м у с т а н а в л и в а т ь е г о . М а л о л и к т о м о ж е т п о л у ч и т ь в а ш с и г н а л . ",
    "conditions" : [
    { "kind" : "gather", "item" : [ "ironbeacon", 1] }
    ],
    "moneyRange" : [500, 500],
    "rewards" : [
    [ [ "ironbeacon", 1], [ "hunterlegs", 1], [ "hunterchest", 1], [ "hunterback", 1], [ "pilothead, 1], [ "ocarina", 1] ]
    ],
    "planetMode" : "none",
    "questDungeons" : [ ],
    "followUp" : ""
    }

    dont pay attention at Text im from Ukraine


    tryed this one it failed too

    {
    "id" : "aviantutorial.gearup",
    "title" : "^#9be3d6;Spread Your Wings",
    "text" : "В ы ч у д о м с п а с л и с ь о т г н е в а З в е з д о ч е т о в . В с к о р е у к о р а б л я з а к о н ч и л о с ь т о п л и в о н а о р б и т е н е и з в е с т н о й п л а н е т ы . П р е ж д е ч е м о т п р а в и т ь с я н а п о и с к и т о п л и в а , ^green;н а й д и т е н а к о р а б е л ь н о м с к л а д е ^pink;м а н и п у л я т о р м а т е р и и ^white;. Н а ж м и т е ^green;E ^white;д л я в з а и м о д е й с т в и я с о б ъ е к т а м и . ",
    "completionText" : "О т л и ч н о ! М а н и п у л я т о р о м м а т е р и и м о ж н о и з м е н я т ь п о ч т и в с е в м и р е и г р ы . ",
    "conditions" : [
    { "kind" : "gather", "item" : [ "beamaxe", 1] }
    ],
    "moneyRange" : [10, 10],
    "rewards" : [
    [ [ "beamaxe", 1], [ "hunterlegs", 1], [ "hunterchest", 1], [ "hunterback", 1], [ "pilothead, 1], [ "ocarina", 1] ]
    ],
    "planetMode" : "none",
    "questDungeons" : [ ],
    "followUp" : "tutorial2.gearup"
    }
     
    Last edited: Jan 10, 2014
  20. MoLeZeN

    MoLeZeN Subatomic Cosmonaut

    At a quick glance you are missing a speech mark at the end of pilothead in both codes. I'm not really seeing anything else wrong at the moment.
    Hope this helps.
     

Share This Page