Modding Help Object Lighting paramiters help

Discussion in 'Starbound Modding' started by Goldobsidan, Mar 9, 2014.

  1. Goldobsidan

    Goldobsidan Phantasmal Quasar

    Im trying to make an object for a mod that emits light but when I put code like this into the object, it shines out to a set distance much like a torch.
    Code:
      "lightColor" : [33, 184, 31],
      "flickerDistance" : 0.5,
      "flickerStrength" : 0.1,
    I found these in light config

    Code:
    "spreadMaxAir" : 32
    "spreadMaxObstacle" : 8
    but is there paramiters like this that control objects on a object by object level? I attempted to put the lines into the mod, with modified values, but nothing happened, the game didnt crash and the light wasnt changed.
     
  2. The | Suit

    The | Suit Agent S. Forum Moderator

    Root
    Code:
      "lightColor" : [255, 255, 230],
      "pointLight" : true,
      "pointBeam" : 0.25,
    Orientations
    Code:
          "direction" : "left",
          "lightPosition" : [1, 2],
          "pointAngle" : 200
    Needs to be set for both left and right orientations


    Example
    Code:
      "orientations" : [
        {
          "imageLayers" : [ { "image" : "example.png:<color>.<frame>", "unlit" : true }, { "image" : example.png:<color>.<frame>" } ],
          "imagePosition" : [-12, 0],
          "spaceScan" : 0.1,
          "anchors" : [ "bottom" ],
          "direction" : "left",
          "lightPosition" : [1, 2],
          "pointAngle" : 200
        },
     
  3. Goldobsidan

    Goldobsidan Phantasmal Quasar

    That looks more like code for say a flashlight. Im looking for something that generates light but at a shorter distance and intensity then normal. such as this picture, I want the left to glow like the right

    [​IMG]
     
    Last edited: Mar 9, 2014
  4. The | Suit

    The | Suit Agent S. Forum Moderator

    Your only other option I am aware of is
    Code:
    "statusEffects" : [
        { "kind" : "glow",
          "amount" : 1,
          "color" : [89, 83, 71]
        }
      ],
     
  5. Goldobsidan

    Goldobsidan Phantasmal Quasar

    I copy pasted your code in where the light code normally was and now its completely dark, no glow/light at all.
     
  6. Goldobsidan

    Goldobsidan Phantasmal Quasar

    A friend of mine helped me, hes not a starbound modder but hes modded games with simular systems. If you make the color darker so instead of
    "color" : [255, 255, 255]
    youd write
    "color" : [25, 25, 25]
    It gives the same color (roughly) but alot dimmer
    [​IMG]
     

Share This Page