Modding Discussion Easy way to spawn items.

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

  1. Kaiichi

    Kaiichi Void-Bound Voyager

    did you put the items in after the beamaxe? i did that and got your crash error. Put them in before it. it fixed it for me.
     
  2. XerX

    XerX Void-Bound Voyager

    I put mine after the beamaxe and everything worked fine.
     
  3. Xirukai

    Xirukai Pangalactic Porcupine

    You need to make sure not to have quotes double (Like this "targetblinktech-chip"").

    Or a comma behind the last item of the array.
    Like this

    Code:
    Rewards : [
      [
          [ "targetblinkTech", 1 ],
          [ "fartjumpTech, 1],
      [
    ],
    


    fartjumpTech being the last of the array, so it does not need a extra comma.
     
  4. DreadDawson

    DreadDawson Void-Bound Voyager

    I had an issue when I tried to add guns this way. I just got the random item thingy. Granted I tried this with legendary guns and nothing simpler.
    And yes I did went through the process of finding the gun's name such as "legendarysniperrifle"
     
  5. Xirukai

    Xirukai Pangalactic Porcupine

    This only works with 'static' items, I.E, items that have a solid variable through crafting. (Like the tier weaponry)

    My best guess is to wait for the named weapons to show up.
     
  6. Etgfrog

    Etgfrog Master Chief

    To be honest...it would be easier to place the item you want to spawn onto the hunting treasure list so it can apply to those who already have been playing for a bit.

    Code:
    {
      "hunting" : [
        [1, {
            "pool" : [
              [0.14, [ "generatedgun", 1, { "definition" : "legendarygrenadelauncher" } ] ],
              [0.15, [ "generatedgun", 1, { "definition" : "legendaryassaultrifle" } ] ],
              [0.15, [ "generatedgun", 1, { "definition" : "legendaryshotgun" } ] ],
              [0.14, [ "generatedgun", 1, { "definition" : "legendarysniperrifle" } ] ],
              [0.14, [ "generatedgun", 1, { "definition" : "legendarypistol" } ] ],
              [0.14, [ "generatedgun", 1, { "definition" : "legendarymachinepistol" } ] ],
              [0.14, [ "generatedgun", 1, { "definition" : "legendaryrocketlauncher" } ] ]
            ],
            "poolRounds" : [
              [0.20, 0],
              [0.80, 1]
            ],
            "levelVariance" : [-1, 1],
            "allowDuplication" : false
          } ]
      ]
    }
    This would allow for it to be useable at any level of planet to get a legendary level gun, just make sure whatever you place into the pool adding the first set of numbers up to a total of 1, if you multiply that number by 100 you get the chance of that specific item spawning.

    Make sure you back up the file before you go to mod it so if it breaks then you can paste it back.
     
  7. ARTdrakon

    ARTdrakon Void-Bound Voyager

    Nothing of this seems to be working after the last update.
     
  8. Clockwork

    Clockwork Master Astronaut

    They might have changed the format slightly.
     
  9. AjunNg

    AjunNg Aquatic Astronaut

    Does someone know how to put a legendarygrenadelauncher in the quest rewards?
     
    HintOfMint likes this.
  10. jonnysim214

    jonnysim214 Yeah, You!

    how do i get the mech tech i typed
    humanMechTech-chip and it doesnt work but all my other items do
    please help!
    edit: also when i spawn in target blink it doesnt allow me to activate it as a tech for some reason any info on how to fix?
     
    Last edited: Dec 6, 2013
  11. ARTdrakon

    ARTdrakon Void-Bound Voyager

    It works almost the same on the new update.
    You need to create a new character for this to work!
     
  12. Gnomechompski

    Gnomechompski Scruffy Nerf-Herder

    how do you guys get the file to display like that? I open with notepad and I only get a mess!
     
  13. Clockwork

    Clockwork Master Astronaut

    What do you mean by a mess?
     
  14. Kawa

    Kawa Tiy's Beard

    He means Notepad doesn't like Linux line ends, which makes a bit of a mess of the display.
     
  15. lavaknight

    lavaknight Void-Bound Voyager

    Code:
      "rewards" : [
        [ [ "beamaxe", 1],
        [ [ "grapplinghook", 2]
        [ [ "diamondpickaxe", 5]
        [ [ "humantier10broadsword", 1]
        [ [ "humantier10chest", 1]
        [ [ "humantier10head", 1]
        [ [ "humantier10pants", 1]
        [ [ "commonplasmaassaultrifle", 1]
        [ [ "violin", 1]
        [ [ "morphballTech", 1]
        [ [ "doublejumpTech", 1]
        [ [ "rocketjump", 1]
        [ [ "humanMechTech", 1] ]
      ],
    ok wtf did i do wrong? it crashes everytime
     
  16. jonnysim214

    jonnysim214 Yeah, You!

    you need to add commas example: [ [ "grapplinghook", 2] you need to add commas after each except the final one
    [ [ "grapplinghook", 2], etc etc
     
  17. Clockwork

    Clockwork Master Astronaut

    Fixed it.
     
  18. lavaknight

    lavaknight Void-Bound Voyager

    now i get a error loading a char that says client-serverside connection is no longer valid :(
     
  19. jonnysim214

    jonnysim214 Yeah, You!

    is there still any way I can get mech anyone? I really want one =(
     
  20. Gemdragon

    Gemdragon Space Spelunker

    I don't know what I am doing wrong. I am trying to spawn in the ocarina. I was using notepad to edit it so here is what my notepad document looks like. (But all on one line in notepad)
    {
    "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], [ "ocarina", 1]
    }
    ],
    "moneyRange" : [10, 10],
    "rewards" : [
    [ [ "ocarina", 1 ], [ "beamaxe", 1]
    ],
    "planetMode" : "none",
    "questDungeons" : [ ],
    "followUp" : "tutorial2.gearup"
    }

    And this is the error that I am getting (Will be attached to this). Can anyone tell me what I am doing wrong?
     

    Attached Files:

Share This Page