Modding Help Is it possible to make an armor item that projects light?

Discussion in 'Starbound Modding' started by CJacobs, Dec 17, 2013.

  1. CJacobs

    CJacobs Void-Bound Voyager

    I've looked through the game files at the various flashlights and glowing items and I've figured out how to make my modded-in items cast an ambient glow, but if anyone knows or could help me figure out how to give them a directional beam like the flashlight (one that rotates based on the direction the helmet is pointing, I'd really appreciate it. I don't have much else to this request but if you DO know how to do it, feel free to assume I know a fair bit about modding and assault me with jargon if necessary.

    [​IMG]

    Here's what I have at the moment. In a perfect world, the visor would also project a light beam outward... but I can't figure it out ;__;
     
  2. vernadead

    vernadead Big Damn Hero

    I think i know how, but as I have a mod im working on this min I can test it out real quick and get back to you

    This is what I used and it worked
    under statuseffects in armor

    {
    "kind" : "glow",
    "amount" : "29"
    },
    Amount was arbitrary
     
    Last edited: Dec 17, 2013
  3. CJacobs

    CJacobs Void-Bound Voyager

    That's already what I've got on it, it's what's casting the blue glow in the image above. I guess I should have clarified what I meant by projecting light a little, sorry.
     
  4. vernadead

    vernadead Big Damn Hero

    Oh ok.. hmm Im not sure to be honest.
    Would need to write a whole new filetype with that.
     
  5. Nightmares

    Nightmares Scruffy Nerf-Herder

    Try giving it "category" : light like the torch. Mirror some of it's attributes.
     
  6. Zuriki

    Zuriki Void-Bound Voyager

    Try using adding the headlight augment with:


    Code:
      "augments" : [
        {
          "name" : "headlight"
        }
      ],
    Note it does drain energy but you could disable that if you wanted by creating another augment based on "assets\augments\headlight.augment". Hope that helps.

    Edit: Actually, upon further inspection you might be able to create a status effect wit the following in it:

    Code:
    {
      "kind" : "headlight"
    }
    And it should use the headlight augment passively, then add that to your armor as you would with "glow". I haven't tested any of this, but worth a shot, no? Report back with your findings please, as I am interested in how it works out.
     
    vernadead likes this.
  7. CJacobs

    CJacobs Void-Bound Voyager

    Everything recommended causes the game to crash instantly upon clicking single player with the following error:

    [​IMG]

    With the exception of straight up adding the headlight augment to the helmet, which doesn't cast the light, but DOES still drain the stamina. Creating my own augment caused the game to crash, as did creating my own statuseffect.

    [​IMG]

    As you can see by the item description, the headlight attribute DID get added to it... it just doesn't do anything.
     
    Last edited: Dec 17, 2013
  8. Nightmares

    Nightmares Scruffy Nerf-Herder

    If you revert the changes, does it still crash? That seems like a different issue
     
  9. CJacobs

    CJacobs Void-Bound Voyager

    It doesn't crash anymore when the changes are reverted.
     
  10. Nightmares

    Nightmares Scruffy Nerf-Herder

    post your armor code
     
  11. CJacobs

    CJacobs Void-Bound Voyager

    Here is the code for the helmet with the Headlight augment included, as it was the only suggested option that did anything:

    Code:
    {
      "itemName" : "rigtier1ihead",
      "inventoryIcon" : "icons.png:head",
      "dropCollision" : [-4.0, -3.0, 4.0, 3.0],
      "maxStack" : 1,
      "rarity" : "Common",
      "description" : "The Standard RIG's folding helmet provides just as much form as it does function.",
      "shortdescription" : "Standard RIG Helmet",
      "inspectionKind" : "armor",
      "augments" : [
         {
           "name" : "headlight"
         }
       ],
    
      "maleFrames" : "head.png",
      "femaleFrames" : "head.png",
      "mask" : "mask.png",
    
      "statusEffects" : [
       {
        "kind" : "glow",
        "amount" : 0.25,
      "color" : [70, 205, 230]
      },
     
      {
      "kind" : "coldprotection",
      "amount" : "1"
      },
    
      {
      "kind" : "protection",
      "amount" : 4.5
      },
    
      {
      "kind" : "energyincrease",
      "amount" : 15
      }
      ],
    
      "colorOptions" : [
      /* GREY */
      { "ffca8a" : "b5b5b5", "e0975c" : "808080", "a85636" : "555555", "6f2919" : "303030" },
      /* BLACK */
      { "ffca8a" : "838383", "e0975c" : "555555", "a85636" : "383838", "6f2919" : "151515" },
      /* GREY */
      { "ffca8a" : "b5b5b5", "e0975c" : "808080", "a85636" : "555555", "6f2919" : "303030" },
      /* WHITE */
      { "ffca8a" : "e6e6e6", "e0975c" : "b6b6b6", "a85636" : "7b7b7b", "6f2919" : "373737" },
      /* RED */
      { "ffca8a" : "f4988c", "e0975c" : "d93a3a", "a85636" : "932625", "6f2919" : "601119" },
      /* ORANGE */
      { "ffca8a" : "ffd495", "e0975c" : "ea9931", "a85636" : "af4e00", "6f2919" : "6e2900" },
      /* YELLOW */
      { "ffca8a" : "ffffa7", "e0975c" : "e2c344", "a85636" : "a46e06", "6f2919" : "642f00" },
      /* GREEN */
      { "ffca8a" : "b2e89d", "e0975c" : "51bd3b", "a85636" : "247824", "6f2919" : "144216" },
      /* BLUE */
      { "ffca8a" : "96cbe7", "e0975c" : "5588d4", "a85636" : "344495", "6f2919" : "1a1c51" },
      /* PURPLE */
      { "ffca8a" : "d29ce7", "e0975c" : "a451c4", "a85636" : "6a2284", "6f2919" : "320c40" },
      /* PINK */
      { "ffca8a" : "eab3db", "e0975c" : "d35eae", "a85636" : "97276d", "6f2919" : "59163f" },
      /* BROWN */
      { "ffca8a" : "ccae7c", "e0975c" : "a47844", "a85636" : "754c23", "6f2919" : "472b13" }
    
      ]
    }
    
     
  12. Nightmares

    Nightmares Scruffy Nerf-Herder

    try something like this:
    Code:
      "actionOnReap" : [
        {
          "action" : "light",
          "color" : "yellow"
        }
      ],
    I'm at work and not actually trying any of these, so bare with me
     
  13. CJacobs

    CJacobs Void-Bound Voyager

    Nope, still nothing. The only other way I could think of doing it is to make my own light projection stuff to put on each helmet but that's a lot of coding knowledge that I don't have, unfortunately.
     
  14. barrible

    barrible Starship Captain

    I have a question on a opposite matter. I'm guessing most of the people here who know how to mod know about the spite mod. We all know the red spite Armour right? The one with insanely high stats. The chest piece has the glow effect to it and for me i fid it annoying even at night it feels like day. Anyone know how i could turn off the effects? And by the way i got a Mac and i ain't to proud. But i got a windows i could use, could someone run me through how to say- rewrite the file and where in the file to rewrite?
     

Share This Page