1. Welcome to the Starbound support forums. Please check the support FAQs before posting: http://playstarbound.com/support

Bug/Issue Strap set dye colors are wrong

Discussion in 'Starbound Support' started by bohric, Jan 3, 2017.

  1. bohric

    bohric Scruffy Nerf-Herder

    A minor thing, really. The strap set is obviously white, but is treated as gray when dyes are involved. Applying white dye turns both items dark gray; applying gray dye turns them back to white. My guess is that these two colors have been switched somewhere in the code. All other dyes seem to work fine.
     
  2. lazarus78

    lazarus78 The Waste of Time

    It is actually the other way around. The dyes simply set the item's color to a directive value. The actual colors are defined in the item config itself. So the white and gray of the item are swapped, not the dyes.
     
  3. bohric

    bohric Scruffy Nerf-Herder

    In that case, the default color of both items would also have to be changed.
     
  4. lazarus78

    lazarus78 The Waste of Time

    Which items? Dying an item doesn't change the item, just the colors used on the sprite. It is literally a case of just swapping the parts of the code pertaining to what colors to use for gray and what colors to use for white.
     
  5. bohric

    bohric Scruffy Nerf-Herder

    The item looks white by default, which means it's actually gray since the values for gray and white have been swapped. Therefore the default color is actually gray, as far as the game is concerned. If the proper values were assigned to the colors, the items would appear gray by default instead. So the default color needs to be changed from gray to white as well.
     
  6. lazarus78

    lazarus78 The Waste of Time

    Nope. Items have a default color so when you "remove" dye.

    Example:
    Code:
    "colorOptions" : [
        // SCARLET
        { "ffca8a" : "e6e6e6", "e0975c" : "a32c1c", "a85636" : "812519", "6f2919" : "571a13" },
        // 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" }
      ]
    
    The first line is the default color, then all the possible dye colors. The dye items simply say, for example "Use color pallet #3, which would be white (First one is #0). Dye remover simply says "use color pallet #0" to reset it. So the order is important, and for the strap set, the white is above gray, so that is why they seem to be swapped.
     
  7. bohric

    bohric Scruffy Nerf-Herder

    Ah, I understand. So all that needs to be done is to swap the hex values for gray and white.
     
  8. lazarus78

    lazarus78 The Waste of Time

    Exactly. The order on the list is important.
     

Share This Page