Modding Help Sprite Colours.

Discussion in 'Starbound Modding' started by Muzza the Brave, Feb 26, 2017.

  1. Muzza the Brave

    Muzza the Brave Space Hobo

    So, I have been using skittles basic race template in an attempt to bring to life a personal project. I want to put a crest on the head of a character that will change colour alongside the underwear. I basically want to know how the game knows what pixels to change, what to colour to make them and how I can use that to my advantage.

    Regards Muzza the Brave
     
  2. The | Suit

    The | Suit Agent S. Forum Moderator

    In the species file you will see something like this
    Code:
    "bodyColor" : [
        //RUSTY RED
        { "e0975c" : "BE471B", "a85636" : "8f2a0b", "6f2919" : "63230f" },
    
    Those numbers and letters are actually hex color codes for example
    e0975c
    http://www.color-hex.com/color/e0975c

    will be changed to BE471B
    http://www.color-hex.com/color/be471b

    So to understand it think of it like this
    Code:
    "color in image" : "change to this color"
    
    So the image in question is the image in the humanoids folder for various body parts.
    Each line is square brackets is 1 full set of color changes.

    Code:
    //RUSTY RED
        { "e0975c" : "BE471B", "a85636" : "8f2a0b", "6f2919" : "63230f" },
    
    The Rusty red part is only a comment and doesn't need to be added.
    It just helps people know quickly what color set that is without having to look it up.

    Any line with2 forward slashes is a comment and ignored by the game.
     
    xaliber likes this.
  3. Muzza the Brave

    Muzza the Brave Space Hobo

    Thank you very much. This information has been invaluable!
     

Share This Page