Modding Help Changing Default Skin Color

Discussion in 'Starbound Modding' started by Anonymous, Dec 10, 2013.

  1. Anonymous

    Anonymous Forum Bot

    I'm trying to change the colors allowed for humans in the character creator, and so I replaced every single hex code under "bodyColor" with ffffff, just to test and see if it would work.

    There was only one skin color! But it most definitely was not solid white- it was still a humany tanish color. So, I swapped out the human skin colors with the floran skin colors:

    "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" }
    ],

    And yet, still, there was only a single skin color- and it was still just a humany tanish color.
    Is there a way to change skin color? Are these values just for show?
     
  2. Uyuxo

    Uyuxo Scruffy Nerf-Herder

    I've been finding the same thing with my mod, there doesn't seem to be a way to change the default skin colors, the game just seems to reset them on startup.
     
  3. Credey

    Credey Scruffy Nerf-Herder

    I really hope that they allow us to mod skin color. Having them be so rigid is awfully boring of them. So what if I want a human with gray skin? It doesn't hurt anyone!
    I shouldn't jump to conclusions, though. It's good to know I'm not the only one with this problem.

    Has anyone been able to change skin colors, yet? Even of entirely new races? If so, theoretically, could an entirely new race that still uses existing graphics (I.E. all of the human graphics) while only using a different skin color show up on vanilla multiplayer?
     
  4. Anonymous

    Anonymous Forum Bot

    I did some testing! I made a new race that used mostly human stuff with different skin colors- still that dumb one tone. So, new races using humanoid sprites don't allow for different skin tones.

    So, as another test, I decided to swap floran and human sprites. And guess what? Still that one tone:
    [​IMG]
    So, it's definitely something with the sprite. But, if that's so, how did they manage skin tones with normal humans? This stuff is mind-boggling. Someone please tell me I'm missing something obvious here.
     
  5. Kashou

    Kashou Subatomic Cosmonaut

    Error: Could not load /species/human.species asset, attempting to use default.
    AssetException: Could not read variant asset /species/human.species
    caused by: JsonParsingException: Cannot parse json file: /species/human.species
    caused by: JsonParsingException: Json object contains a duplicate entry for key '4a4645'
    ... (2)
    009303F7 (C:/starbound/source/core/StarJson.hpp:102)
    009304BC (C:/starbound/source/core/StarJson.hpp:157)
    00930E4A (C:/starbound/source/core/StarJson.hpp:130)
    0096B785 (C:/starbound/source/core/StarJson.hpp:54)
    007C1AC2 (C:/starbound/source/core/StarVariant.cpp:160)
    004E874C (C:/starbound/source/core/StarVariant.hpp:27)
    004E075F (C:/starbound/source/game/StarAssets.cpp:974)
    ... (4)
    004EBC41 (C:/starbound/source/game/StarAssets.cpp:695)
    0093FF9C (C:/starbound/source/core/StarThread_windows.cpp:68)
    765D336A
    77489F72
    77489F45

    That's what happens. It loads the default from somewhere when you tamper with it because it's mismatching with something, I guess.
     
  6. Anonymous

    Anonymous Forum Bot

    Is this an error you got, or was this in the logs?
     
  7. Kashou

    Kashou Subatomic Cosmonaut

    It was in the log after I changed the color codes in the human.species file.
     
  8. Kashou

    Kashou Subatomic Cosmonaut

  9. Veratesh

    Veratesh Void-Bound Voyager

    You're doing it wrong.

    { "ffca8a" : "c4d0a5", "e0975c" : "a3af83", "a85636" : "7f8760", "6f2919" : "5e6142" },
    { "ffca8a" : "d08c9f", "e0975c" : "b27082", "a85636" : "874e62", "6f2919" : "603347" },

    In this table, you can see that 4 of the hex codes are the same in each line, they basically are the colors used in the default sprite, as the skin part is made out of 4 colors.
    So this "ffca8a" : "d08c9f" simply means that the color ffca8a in the original png file will be displayed as this color d08c9f, they work as a pair.
    The first part is the target color in the png that will be replaced in game by the second one.
    Your basic color that is used every time as a replacement is probably because you changed the first part and the program didn't find the matching color to replace.

    Every line is a body color as there are 10 lines and body color.
    Take a line replace all the second hex codes of each pair with ffffff and you'll have you pure white skin as a test.
    Then just save the file using the method in Kashou's link, it worked for me.

    I haven't seen explained yet, but if it's been said before then sorry for the redundancy.
     

Share This Page