Modding Help Flashlight __merge help.

Discussion in 'Starbound Modding' started by Outcast, Jan 4, 2014.

  1. Outcast

    Outcast Void-Bound Voyager

    Im trying to overhaul the flashlights in starbound, starting with the standard blue one.. I have custom textures waiting for it but for now i just want it to understand my merge code.

    Heres the code:
    Simple code in flashlight.flashlight, if im not mistaken this will make the light a light yellow tint. (it is R, G, B i assume.)

    Heres the error it spits out:

    The object appears ingame in the shiplocker as "Perfectly generic item" cube.

    So whats up with this error?



    I figure as soon as i get this problem out the window i can just add this to the code to get my textures ingame:

    to make it work. (seems logical) :)

    Thanks in advance for the help regarding the error i get.
     
  2. Xenonforge

    Xenonforge Aquatic Astronaut

    hello try using the overwrite command
    Code:
    {
      "__merge" : [[ "overwrite", "lightColor" ]],
      "lightColor" : [255,255,14]
    }
    also you must spawn in or generate a new flashlight.
     
  3. Outcast

    Outcast Void-Bound Voyager

    Yeah, i was thinking of spawning it in place of the original blue flashlight via the defaulttreasure file.

    Gonna try your code example and report back here with my findings. :)
     
  4. Pilchenstein

    Pilchenstein Ketchup Robot

    If all he's doing is altering the existing flashlight, then no, he doesn't need to spawn in a new one. I just tested it and my existing flashlight's beam changed colour.
     
  5. Kyrosiris

    Kyrosiris Scruffy Nerf-Herder

    You actually need to include the entire stanza that you're trying to change. I ran into this issue trying to make the Lantern on a Stick twice as bright.

    This did not work:

    Code:
    {
      "__merge" : [],
      "statusEffects" : [
      {   "amount" : 2
      }
      ]
    }
    But this did:

    Code:
    {
      "__merge" : [],
      "statusEffects" : [
      { "kind" : "glow",
      "amount" : 2,
      "color" : [89, 83, 71]
      }
      ]
    }
     
  6. Outcast

    Outcast Void-Bound Voyager

    Kyrosiris, Thats the second time you help me with my problems. :D

    Thanks!
     

Share This Page