Modding Discussion Need help with grappling hooks line colors.

Discussion in 'Starbound Modding' started by Dkm2, Dec 19, 2013.

  1. Dkm2

    Dkm2 Subatomic Cosmonaut

    I am having trouble makeing the rope/line from the grappling hook a different color. There are 4 color values in the config:

    "primaryLineColors" : [ [153, 76, 0, 0],
    [204, 102, 0, 0] ],
    "altLineColors" : [ [255, 255, 255, 255],
    [255, 0, 0, 255] ]

    Now I know about RGB/HSB colors and I know they all use 3 values to get a certain color. So first of all I have no clue what the fourth value is that the code is asking for (ex. [255, 255, 255 ,255] <--).

    And finally, Whenever I try to put in a new color using a RGB/HSB color, and just leaving the last value at a 0, the libe just comes up invisible in the game... Any clue how to change these to a color I choose without it being invisible?
     
  2. grayswx

    grayswx Void-Bound Voyager

    It's probably using RGBA, where A stands for alpha, or its level of transparency. So 0 alpha is invisible, 127 is halfway transparent, and 255 is fully visible.
     
  3. Eathed

    Eathed Pangalactic Porcupine

    Yep, the last number is alpha. You don't even need to include it, you can just do RGB and it will work perfectly fine.
     
  4. tifel100

    tifel100 Void-Bound Voyager

    Basically leave the last number to 255 and it should appear.
     

Share This Page