Modding Discussion Easy way to spawn items.

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

  1. Zidonuke

    Zidonuke Pangalactic Porcupine

    Goto \SteamApps\common\Starbound\assets\quests\tutorial\
    Open the tutorial you desire like "aviantutorial.questtemplate"

    Change "rewards"

    Code:
      "rewards" : [
        [         
            [ "rainbowcapeback", 1],
            [ "beamaxe", 1],
            [ "tiychest", 1],
            [  "tiyhead", 1],
            [  "tiylegs", 1],
            [  "aviantier10chest", 1],
            [  "aviantier10head", 1],
            [  "aviantier10pants", 1],
            [  "superfishaxe", 1],
            [  "grapplinghook", 1],
            [  "fishsomething", 1],
            [  "aviantier9shortsword", 1],
            [  "cameramanhead", 1],
        ]
      ],
    Add in whatever items you desire.

    Each time you create a new character it will spawn those items, it doesn't modify the quest on servers as well so you don't get duplicate items each time you join a new server.
     
    HintOfMint, Gredd18, Ruin and 4 others like this.
  2. RockyTV

    RockyTV Big Damn Hero

    NOTE: it will only add those items after you complete the Avian tutorial quest!
     
    Dead Squirrel and Svarr Chanston like this.
  3. warcore

    warcore Existential Complex

    one problem how do you turn it back into a ".questtemplate" file after your done?
    edit: found out how to change it back =)
     
    Last edited: Dec 5, 2013
  4. ryanhaych1

    ryanhaych1 Void-Bound Voyager

    didn't work for me just crashed when i try play
     
    Siviction and xLyraHeartstringsx like this.
  5. SH4D0WS1N

    SH4D0WS1N Tentacle Wrangler

    Off topic, but holy crap you're still around?

    I have a text file stashed away somewhere where I stored a bunch of evidence that you were multi-accounting as Doridian on a forum from a long time ago haha.

    On topic: In case it isn't obvious (since Rocky pointed it out EDIT: Oops, he pointed out it only happens AFTER you complete the quest, misunderstand that there.) aviantutorial.questtemplate will only change it for the Avian race.

    apextutorial.questtemplate for Apex (the monkeys)
    aviantutorial.questtemplate for Avian (the bird guys)
    florantutorial.questtemplate for Floran (the plant guys)
    glitchtutorial.questtemplate for Glitch (the robots)
    humantutorial.questtemplate for Human
    hylotltutorial.questtemplate for Hylotls (the jelly fish/metroid head looking things)

    (and yes I just posted something random to have an on-topic part haha)
     
    Last edited: Dec 5, 2013
    HintOfMint likes this.
  6. ryanhaych1

    ryanhaych1 Void-Bound Voyager

    isn't the grappling hook useless in this version? does not shoot anything
     
  7. Xirukai

    Xirukai Pangalactic Porcupine

    Doesnt work for me.
     
  8. AjunNg

    AjunNg Aquatic Astronaut

    How do you know the names of the specific items?
     
    HintOfMint likes this.
  9. Xirukai

    Xirukai Pangalactic Porcupine

    You can find them here > \Steam\steamapps\common\Starbound\assets\items

    In that directory, usually you lookup the tool. Like for example, the stone pickaxe ; you'd go to tools and find stonepickaxe.miningtool. There you find the item name and copy paste it back under the rewards section.
     
    HintOfMint likes this.
  10. AjunNg

    AjunNg Aquatic Astronaut

    Is there a way to spawn an item without modifying rewards for the quest, and having to remake a character?
     
    HintOfMint likes this.
  11. Turk

    Turk Scruffy Nerf-Herder

    It was that last comma after the cameramanhead. the last item doesn't need a comma in the little block of rewards.

    And for those who don't want to start over. Fire up the server, join localhost and give the items to your old guy from a new guy.
     
    HintOfMint and Svarr Chanston like this.
  12. crrider13

    crrider13 Big Damn Hero

    Hey Clockwork, not sure if you saw it or not but the post right before yours tells you how to solve that problem.

    Ive gotten it to work but has anyone figured out how to add tech items to this? i tried "jetpack" , "jetpacktech" and "jetpacktechitem" all names found from the tech folder in assets. every time it turns it into "perfectly generic item" which i think is its default item for things it can't load.

    any advice?
     
  13. Phaze

    Phaze Pangalactic Porcupine

    To add a tech item, open /assets/tech/<techitem>/<techitem>.techitem where <techitem> is the one you want.

    Find the line at the top that says "itemName", and copy it's value. For example, the Dash tech item looks like this:

    Code:
    "itemName" : "dashTech",
    So I'd copy where it says dashTech (leave out the quotations). You need to do this to get the proper item name of the tech, as some of them capitalize T in tech and some don't. Then, all you need to do is add -chip to the end and put it in like the first post states. So to add the Dash tech item, it would look like this:

    Code:
    "rewards" : [
      [
       [ "dashTech-chip", 1],
       [ "beamaxe", 1]
      ]
    ],
    The same principle for adding -chip at the end of the item name also works for item blueprints in the form of -recipe. You can open up /assets/recipes/, find the file name you want the recipe of, copy it and add -recipe to the end. For example if I wanted the Toxic Lamp 2 recipe I would do:

    Code:
    "rewards" : [
      [
       [ "toxiclamp2-recipe", 1],
       [ "beamaxe", 1]
      ]
    ],
     
    HintOfMint and Clockwork like this.
  14. Siviction

    Siviction Aquatic Astronaut

    I tried this and now the game crashes regardless of which character I try to play.
     
  15. Siviction

    Siviction Aquatic Astronaut

    Any idea what could be causing the crash?
     
  16. crrider13

    crrider13 Big Damn Hero

    If you're trying the original post and getting problems then you need to read the post by Turk (go up like 5 posts from this one)




    To Phaze: just want to say thanks for the quick reply, everything you said worked like a charm.
     
  17. Siviction

    Siviction Aquatic Astronaut

    I actually did that before posting about the crash :x
     
  18. crrider13

    crrider13 Big Damn Hero

    do you get any kind of error message? can you post it?
     
  19. Siviction

    Siviction Aquatic Astronaut

    Uqweqwe.png
    This is the error I get whenever I click to play one of my characters.
     
  20. XerX

    XerX Void-Bound Voyager

    I'm also getting an error.

    And yes, I've removed that last comma.

    Aha! I managed to make mine work. I copied the original code from the game and added another line, instead of using the one above. Here is what mine looks like.
    Code:
    {
      "id" : "florantutorial.gearup",
      "title" : "^#9be3d6;Fresh Meat",
      "text" : "Tired of Floran savagery, you have taken to the stars to pursue a more honourable hunt. 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" : [
        [ [ "beamaxe", 1],
        [ "florantier10chest", 1] ]
      ],
      "planetMode" : "none",
      "questDungeons" : [ ],
      "followUp" : "tutorial2.gearup"
    }
    
     
    Last edited: Dec 6, 2013
    HintOfMint likes this.

Share This Page