Modding Help Character Creation Colors

Discussion in 'Starbound Modding' started by G4M5T3R, Dec 13, 2013.

  1. G4M5T3R

    G4M5T3R Cosmic Narwhal

    Hey guys, I could use a little help with understanding how the different body part colors in the species.config files work.
    So far I've basically copied the human species structure as a template and swapped out the required info to change the sprites and such to my species. However I didn't mess with any of the color code at the bottom of the species.config. At first I thought leave it and mess around with the options in game first to get a better grasp on how it all works. See which pixels change, which don't, and to what color. The thing is the options hair, skin, and undy (cant see anyway) don't change at all. Shirt and Pants work fine but that's due to still having the default human gear and clothes assets. I've gone through all the .png files that are associated with a species and couldn't find any hue sheets like the case with some items/objects. Just the standard hair, head, body, arms, and emote files. I've only added in one hair type for now and removed the available human hairs but that shouldn't effect the available color options to said hair type.

    After fiddling with each original species I've quickly come to understand the booleans such as "altOptionAsUndyColor" : true, or "headOptionAsHairColor" : true, and that the following code

    "bodyColor" : [
    { "ffe2c5" : "ffe9d3", "ffc181" : "ffc181", "d39c6c" : "d39c6c", "c7815b" : "b97551" },
    { "ffe2c5" : "fff6f6", "ffc181" : "f7d5d3", "d39c6c" : "d1aaa1", "c7815b" : "a27f70" },
    { "ffe2c5" : "fff7ec", "ffc181" : "f9d3a9", "d39c6c" : "d3a57c", "c7815b" : "b37c5d" },
    { "ffe2c5" : "fbe1d4", "ffc181" : "f6baa2", "d39c6c" : "cc9582", "c7815b" : "ac7261" },
    { "ffe2c5" : "f4e0ba", "ffc181" : "e9b768", "d39c6c" : "c18f54", "c7815b" : "a2683d" },
    { "ffe2c5" : "e8cebc", "ffc181" : "cfa97d", "d39c6c" : "ae774b", "c7815b" : "804e34" },
    { "ffe2c5" : "e1b98d", "ffc181" : "c88959", "d39c6c" : "9e6a4d", "c7815b" : "784930" },
    { "ffe2c5" : "c9b181", "ffc181" : "ac8348", "d39c6c" : "87633f", "c7815b" : "694c31" },
    { "ffe2c5" : "c5ad98", "ffc181" : "a47a59", "d39c6c" : "865d40", "c7815b" : "66412e" },
    { "ffe2c5" : "ab8c77", "ffc181" : "86644a", "d39c6c" : "684431", "c7815b" : "40271d" }
    ],
    "undyColor" : [
    { "dc1f00" : "4d76ad", "be1b00" : "395187", "951500" : "20325b" },
    { "dc1f00" : "7c41b8", "be1b00" : "6c2f90", "951500" : "471962" },
    { "dc1f00" : "c63442", "be1b00" : "9b2724", "951500" : "6a1210" },
    { "dc1f00" : "eaa245", "be1b00" : "b47020", "951500" : "834a0c" },
    { "dc1f00" : "e3e13a", "be1b00" : "a8a614", "951500" : "848008" },
    { "dc1f00" : "6ab841", "be1b00" : "45902f", "951500" : "296219" },
    { "dc1f00" : "535353", "be1b00" : "363636", "951500" : "111111" },
    { "dc1f00" : "e6e6e6", "be1b00" : "979797", "951500" : "6f6f6f" },
    { "dc1f00" : "9e9e9e", "be1b00" : "6e6e6e", "951500" : "434343" },
    { "dc1f00" : "f794f8", "be1b00" : "d355c1", "951500" : "b72c95" }
    ],
    "hairColor" : [
    { "d9c189" : "525252", "a38d59" : "363636", "735e3a" : "161616" },
    { "d9c189" : "50422f", "a38d59" : "36261e", "735e3a" : "170f0d" },
    { "d9c189" : "7f5a39", "a38d59" : "5b3523", "735e3a" : "3b1f15" },
    { "d9c189" : "a6671d", "a38d59" : "915622", "735e3a" : "743e1d" },
    { "d9c189" : "e6e756", "a38d59" : "c7ac3f", "735e3a" : "a9882f" },
    { "d9c189" : "f2eba3", "a38d59" : "dcd28c", "735e3a" : "c2b677" },
    { "d9c189" : "7d3c1c", "a38d59" : "4d240b", "735e3a" : "2d1606" },
    { "d9c189" : "ad2716", "a38d59" : "8f1f1b", "735e3a" : "731a1a" },
    { "d9c189" : "b8b8b8", "a38d59" : "828282", "735e3a" : "555555" },
    { "d9c189" : "eaeaea", "a38d59" : "b8b8b8", "735e3a" : "828282" },
    { "d9c189" : "6f6d85", "a38d59" : "525269", "735e3a" : "3e4352" },
    { "d9c189" : "cd72d9", "a38d59" : "ac4da6", "735e3a" : "913b86" },
    { "d9c189" : "425879", "a38d59" : "343965", "735e3a" : "242247" },
    { "d9c189" : "5d8bc7", "a38d59" : "4d55b0", "735e3a" : "2e2a73" },
    { "d9c189" : "653b7f", "a38d59" : "562e6a", "735e3a" : "3f1d4b" },
    { "d9c189" : "7f3b6d", "a38d59" : "6a2e53", "735e3a" : "4b1d30" },
    { "d9c189" : "efa838", "a38d59" : "be6d1d", "735e3a" : "834012" },
    { "d9c189" : "4ece61", "a38d59" : "34ae47", "735e3a" : "228a38" },
    { "d9c189" : "3b7f44", "a38d59" : "2e6a38", "735e3a" : "1d4b28" },
    { "d9c189" : "74726f", "a38d59" : "53504d", "735e3a" : "2a251e" }
    ]
    is the colors available to each option, but I don't get why nothing is changing on my species. Is it because the default human skin color is a peach tan and mine is light sky blue, and these color codes don't work with default being blue? It might help if I could even tell what colors these codes are. Any help getting a grasp on this how it works would be much appreciated.

    tl:dr - I could use a little help with understanding how the different body part colors in the species.config files work. The options hair, skin, and undy (cant see anyway) don't change at all on my species. Any help getting a grasp on how all this works would be much appreciated.


    *A bit of googling has started to help me understand how to go about deciphering these codes into colors. A bit of experimenting and I should be able to tell if they are RGB, CMYK, or HSV and go from there.
    ** I think I got it, using the eyedropper tool I'm able to get the exact hexidecimal color code. Yay for Google!
    Off to test this.
    *** I think I now understand the format and parameters. for a human body color it's along the lines of

    "bodyColor" : [
    { "6B8AC8" : "ffe9d3", "ffc181" : "ffc181", "d39c6c" : "d39c6c", "c7815b" : "b97551" }, //bodycolorlight: changeto, bodiecolordark: changeto, outlinelight: changeto, outlinedark: changeto
     
    Last edited: Dec 13, 2013
  2. Shadewarp

    Shadewarp Pangalactic Porcupine

    I'm really struggling with this - I need to make at least a couple of nuances of grey, but every time I replace the colors with other colors than the ones in the human file, the game won't run.

    I can replace the first color, without anything happening, but it seems to affect nothing. If I change any of the others, the game won't start up.

    I'm using HEX color codes.. If I wanted the skin to be a shade of grey, how would I go about that ?
     
  3. G4M5T3R

    G4M5T3R Cosmic Narwhal

    Take the line of code in the spoiler for example. It's the first line of bodyColor... (now I use paint.net I'm not sure what you're using but what I did was expand my colors window to be able to see the RGB & HSV & Hex code.) the very first part of the first code "6B8AC8" : "ffe9d3", is the lightest body color of the original human sprites. The second part "6B8AC8" : "ffe9d3", is the color it changes to. (these are only about four pixels on the body, that's why you can't really see it change.) The Second code "ffc181" : "ffc181", is the skin color that you do see and what it's changed to. The Third "d39c6c" : "d39c6c", is the lighter outline color and the Fourth "c7815b" : "b97551" is the darker outline color. This is all for only ONE color option. To make another color option you need to make another line with all the codes and what they change to. Notice how vertically every other row of codes is the same code? Those are all the base colors in the original sprites.

    Hope that helped some
     
  4. tifel100

    tifel100 Void-Bound Voyager

    Maybe Colors Will Help.
    Code:
    { "ffffff" : "3a3a3a", "ff0000" : "ff7f00", "ffff00" : "00ff00", "0070ff" : "ff1eff" }
    Let's say you have that. Let's Split them into groups of 2.
    "ffffff" : "3a3a3a"
    "ff0000" : "ff7f00"
    "ffff00" : "00ff00"
    "0070ff" : "ff1eff"
    Now each hex value is connected with another via a semicolon ( : )
    What that does is takes the first color, in this case, being white,red, yellow or blue and replaces it with the second one, being grey, orange, green or magenta.

    If you don't know how to convert to hexadecimal, use this
     
  5. Shadewarp

    Shadewarp Pangalactic Porcupine

    In my original sprite, I need to get the colour code that it starts out with, and then I can change it to whatever? Gonna have to try that out tomorrow :) Ty all!
     
  6. tifel100

    tifel100 Void-Bound Voyager

    Basically, Your sprites is made out of pixels. There is a number of different colored pixels. You pick around 4 that are important and you are able to change them,
     
    Createse likes this.
  7. G4M5T3R

    G4M5T3R Cosmic Narwhal

    Yes. pick what colors you want to change and get the codes, then the codes for what you want them to change two. If your sprite has more than 4 colors you want to change add another comma and a new command to the line "color" : "color"
     
  8. Shadewarp

    Shadewarp Pangalactic Porcupine

    Yeah, makes sense now ... Could have spared myself a lot of missery if only I had asked... Oh well :)
     
  9. CatBerry

    CatBerry Subatomic Cosmonaut

    Hey uhm can i add just another line of colors or do i have to change existing colors?
    because i tried to add colors today and after that che client refused to completly load (was stuck in loading screen o_O

    i did not forget to add the , after the last line before i copy pasted a new one and edited the colors i wanted to edit o_O
    so i kind of fear i can not add extra lines? :(
     
  10. tifel100

    tifel100 Void-Bound Voyager

    do you want to change more colors in 1 choice? or add more different choices?
     
  11. 0siris

    0siris Subatomic Cosmonaut

    I know this doesn't really pertain directly, but I saw this thread and thought it was one I remember seeing a while back about changing colors in the character creation. I couldn't find it while searching the forums, and wondered if anyone could point me to it?
     
  12. tifel100

    tifel100 Void-Bound Voyager

    I think you mean this post:
     
  13. CatBerry

    CatBerry Subatomic Cosmonaut

    the plan was to add more choices ^^;
    i like the colors that are there and i did not want to create a mod that replaces original stuff o.o
    so i added a , after the last color set of body colors and made my own line (copy pasted the last one and exchanged every second color (like its explained, eventhough i figured that part out on my own))


    so it kind of looks like this now:

    Code:
      "bodyColor" : [
        { "ffca8a" : "c4d0a5", "e0975c" : "a3af83", "a85636" : "7f8760", "6f2919" : "5e6142" },
        { "ffca8a" : "d08c9f", "e0975c" : "b27082", "a85636" : "874e62", "6f2919" : "603347" },
        { "ffca8a" : "d8d695", "e0975c" : "b9b778", "a85636" : "908a56", "6f2919" : "685f3a" },
        { "ffca8a" : "a6cbd2", "e0975c" : "7ca7af", "a85636" : "558287", "6f2919" : "386362" },
        { "ffca8a" : "cb86d6", "e0975c" : "ac6ab7", "a85636" : "7e498c", "6f2919" : "542f64" },
        { "ffca8a" : "b7d179", "e0975c" : "8eab59", "a85636" : "808a44", "6f2919" : "5e6534" },
        { "ffca8a" : "b9997a", "e0975c" : "9f7761", "a85636" : "85594a", "6f2919" : "6a3e36" },
        { "ffca8a" : "a8c2c4", "e0975c" : "8ba4a6", "a85636" : "677f7f", "6f2919" : "485b59" },
        { "ffca8a" : "e47068", "e0975c" : "c54848", "a85636" : "952f45", "6f2919" : "65223a" },
        { "ffca8a" : "e3da89", "e0975c" : "c5bd6d", "a85636" : "9a8d4c", "6f2919" : "705f32" },
        { "ffca8a" : "e9e8ec", "e0975c" : "d9d8de", "a85636" : "c6c4cd", "6f2919" : "aca9b2" }
      ],
    and the hair looks like this:
    Code:
      "hairColor" : [
        { "f32200" : "be5645", "dc1f00" : "972b2b", "be1b00" : "6f191f" },
        { "f32200" : "ebac59", "dc1f00" : "d26434", "be1b00" : "a43829" },
        { "f32200" : "a0d8ea", "dc1f00" : "62a2d2", "be1b00" : "3d6fa3" },
        { "f32200" : "c655c1", "dc1f00" : "92379d", "be1b00" : "60226e" },
        { "f32200" : "818181", "dc1f00" : "616161", "be1b00" : "444444" },
        { "f32200" : "e4e9e9", "dc1f00" : "aeb8b8", "be1b00" : "757d7e" },
        { "f32200" : "e4df6a", "dc1f00" : "b7ab42", "be1b00" : "847629" },
        { "f32200" : "68689a", "dc1f00" : "4b5177", "be1b00" : "323955" },
        { "f32200" : "81996c", "dc1f00" : "667552", "be1b00" : "515a3f" },
        { "f32200" : "f6bcd2", "dc1f00" : "d96d94", "be1b00" : "b0425e" },
        { "f32200" : "e9e8ec", "dc1f00" : "d9d8de", "be1b00" : "c6c4cd" }
      ]
    the new lines are, it is white color but i plan to add more...:
    Code:
    { "ffca8a" : "e9e8ec", "e0975c" : "d9d8de", "a85636" : "c6c4cd", "6f2919" : "aca9b2" }
    
    and
    
    { "f32200" : "e9e8ec", "dc1f00" : "d9d8de", "be1b00" : "c6c4cd" }

    sadly if i add those lines, the client gets stuck in the loading screen. So i asume i either can not add more lines like that and only replace the colors, wich would be sad.
    Or i do have to change something somewhere else that defines the amount of color choices so the client will not get troubled loading the infos?

    I am not really good with codes and such... im just a hobby artist who can pixle a bit and a (very very) small amount of CSS :wut:
     
  14. 0siris

    0siris Subatomic Cosmonaut

    Naw, I'm afraid that wasn't what I was looking for, but thanks for the post, Tifel. I think the one I saw was more so a program type thing. Maybe something to do with html?.. I only skimmed over the thread, but just recently I thought it would be pretty useful to recolor my character.
     
  15. tifel100

    tifel100 Void-Bound Voyager

    Oh that! Lemme see If i can find it..

    This should be it

    Careful, might corrupt your save.
     
  16. CatBerry

    CatBerry Subatomic Cosmonaut

    no one with an idea? :/
     
  17. 0siris

    0siris Subatomic Cosmonaut

    Is this just an item editor? I didn't see anything about changing the colors of your character. It said the items don't save right now, but this could be handy. Not what I was looking for though :s
     

Share This Page