Modding Discussion Changing skin colour palette

Discussion in 'Starbound Modding' started by DarkMage16, Jul 21, 2017.

  1. DarkMage16

    DarkMage16 Aquatic Astronaut

    Hello.... I don't know how to mod, but if someone could mod, so the playable races had pale skin, a very light gray, or something, the gray color is to dark, and a black hair color like Hylotls and Humans, if anyone can, please tell me
     
    Last edited: Jul 21, 2017
  2. lazarus78

    lazarus78 The End of Time

  3. DarkMage16

    DarkMage16 Aquatic Astronaut

    Last edited: Jul 21, 2017
  4. lazarus78

    lazarus78 The End of Time

    There are no classes in this game. Those are races.
     
  5. DarkMage16

    DarkMage16 Aquatic Astronaut

    yeah, I know, I fixed my mistake
     
  6. bk3k

    bk3k Spaceman Spiff

    You're asking for... more skin colors on the vanilla races? If I understand you correctly.
     
  7. DarkMage16

    DarkMage16 Aquatic Astronaut

    yeah.... but I think I will make my own mod and upload it here
     
  8. Peelz

    Peelz Existential Complex

    Awesome idea man! This is a great first project to help you learn the basics of modding. If you need any help or resources, post here and I can try to help!
     
  9. Jonesy

    Jonesy Sarif's Attack Kangaroo Forum Moderator

    On a side note, I've replaced the thread's title with something a little less vague.
     
    IHart likes this.
  10. Marinebeast

    Marinebeast Scruffy Nerf-Herder

    That shouldn't be too hard-- you'll just have to write a player.config.patch and add some skin tones to the vanilla arrays.

    Do some research into patch making, figure out the color hex values you want, and how to get at the vanilla files. Then you can add whatever you want, like new hair colors!
     
  11. DarkMage16

    DarkMage16 Aquatic Astronaut

    Okay, I am trying to mod, I pick a floran, but I can't find where this color is colors.png
     
    Last edited: Jul 22, 2017
  12. DraikNova

    DraikNova Phantasmal Quasar

    The colors are actually defined in the species file. The colors you see in that sprite are the colors that are replaced with the actual colors you see in game with the following piece of code from the floran.species file:
    "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" }
    ],

    Or at least, that's the main body color. The more green-ish brown is defined as the undyColor. Basically, the way it works is like this:
    {colorInSprite:colorInGame;colorInSprite2:colorInGame2;colorInSprite3:colorInGame3}
    That's how you define one color option. So what you want to do is make a patch (here's a handy automatic patch maker), put it in the species subfolder of your mod's folder inside of Starbound's mods folder as, for example, floran.species.patch, and voila, you'll have added a color to the species select.
     
  13. IHart

    IHart Scruffy Nerf-Herder

    Its on the face.
     
  14. DarkMage16

    DarkMage16 Aquatic Astronaut

    thank you

    Please someone help me, that unofficial modding ebook, doesn't make sense to me, Please tell me how to add more colors to the base game, not replace the colors but add them..... I would really appreciate it, I unpacked the assets, I made so that I could see the extensions... please tell me what to do next, I want to add more skin colors, lead colors and flower colors
     
    Last edited by a moderator: Jul 23, 2017
  15. Peelz

    Peelz Existential Complex

    It sounds like you need to start by learning to create a .patch file. This allows you to add/remove/change things in existing files without ever having to modify the original. A good way to learn would be to download another mod and see how they do it. Here's a good tutorial on patch files:
    http://community.playstarbound.com/threads/basic-patching-now-with-path-guide-v1-9.84496/

    Using that tutorial as an example, here's what a patch file might look like for adding additional body colors for a floran:
    Code:
    [ 
    {"op":"add","path":"/bodyColor/-","value":{ "ffca8a" : "<yourReplacementColorHere>", "e0975c" : "<yourReplacementColorHere>", "a85636" : "<yourReplacementColorHere>", "6f2919" : "<yourReplacementColorHere>" } }
     ]
    
    and you would add more lines between the square brackets for every new color option that you want to add. Obviously make sure to replace the <yourReplacementColorHere> with your own values. Then you would save this file as floran.species.patch, put it in your own mod folder (using the same file structure as you find it in the assets folder - ie. starbound/species/floran/ or whatever it is) and give it a whirl. I'm not at a computer where I can see the assets though, so make sure you verify that the file path is the correct one.
     

Share This Page