Modding Help New Species; Can't Change Body Colour?

Discussion in 'Starbound Modding' started by Wazupmaster, Dec 9, 2013.

  1. Wazupmaster

    Wazupmaster Phantasmal Quasar

    Hey all. I've been fiddling around with adding a new species, though just an edit of the human at the moment, to get the hang of it. I've also tried making the species transparent, and apparently this works. However.. on the character creation screen, when I click to change the body colour (currently called "Slime Color"), it won't change. It stays the colour I have it in the male/femalebody.png files. I've looked at Kawa's species for help, and the default species files, however I still couldn't figure out why it wasn't changing the body colour. Any help, please?

    Here are some files that I think are necessary if I want help:
    malebody.png
    femalebody.png

    And then here is my slime.species file:
    Code:
    {
      "kind" : "slime",
      "index" : 6,
      "nameGen" : [ "/species/slimenamegen.config:names", "/species/slimenamegen.config:names" ],
      "ouchNoises" : [ "/sfx/humanoid/humanhurt_male1.wav", "/sfx/humanoid/humanhurt_female1.wav" ],
      "defaultBlueprints" : {
        "tier1" : [
          { "item" : "humantier1hammer" },
          { "item" : "humantier1shortsword" },
          { "item" : "humantier1broadsword" },
          { "item" : "humantier1spear" },
          { "item" : "humantier1axe" },
          { "item" : "humantier1dagger" },
          { "item" : "humantier1head" },
          { "item" : "humantier1chest" },
          { "item" : "humantier1pants" },
          { "item" : "conceptchest" },
          { "item" : "conceptlegs" },
          { "item" : "coolchest" },
          { "item" : "coollegs" },
          { "item" : "sweatervestchest" },
          { "item" : "sweatervestlegs" },
          { "item" : "workoutchest" },
          { "item" : "workoutlegs" },
          { "item" : "burger" },
          { "item" : "vegetablesoup" },
          { "item" : "bread" },
          { "item" : "sweetcorn" },
          { "item" : "candyapple" },
          { "item" : "icecream" }
        ],
        "tier2" : [
          { "item" : "humantier2hammer" },
          { "item" : "humantier2shortsword" },
          { "item" : "humantier2broadsword" },
          { "item" : "humantier2spear" },
          { "item" : "humantier2axe" },
          { "item" : "humantier2dagger" },
          { "item" : "humantier2head" },
          { "item" : "humantier2chest" },
          { "item" : "humantier2pants" },
          { "item" : "spawnerhuman" }
        ],
        "tier3" : [
          { "item" : "humantier3head" },
          { "item" : "humantier3chest" },
          { "item" : "humantier3pants" },
          { "item" : "humantier3hammer" },
          { "item" : "humantier3shortsword" },
          { "item" : "humantier3broadsword" },
          { "item" : "humantier3spear" },
          { "item" : "humantier3axe" },
          { "item" : "humantier3dagger" }
        ],
        "level31" : [
          { "item" : "humantier4head" },
          { "item" : "humantier4chest" },
          { "item" : "humantier4pants" },
          { "item" : "humantier4hammer" },
          { "item" : "humantier4shortsword" },
          { "item" : "humantier4broadsword" },
          { "item" : "humantier4spear" },
          { "item" : "humantier4axe" },
          { "item" : "humantier4dagger" }
        ],
        "level32" : [
          { "item" : "humantier5head" },
          { "item" : "humantier5chest" },
          { "item" : "humantier5pants" },
          { "item" : "humantier5hammer" },
          { "item" : "humantier5shortsword" },
          { "item" : "humantier5broadsword" },
          { "item" : "humantier5spear" },
          { "item" : "humantier5axe" },
          { "item" : "humantier5dagger" }
        ],
        "level33" : [
          { "item" : "humantier6head" },
          { "item" : "humantier6chest" },
          { "item" : "humantier6pants" },
          { "item" : "humantier6hammer" },
          { "item" : "humantier6shortsword" },
          { "item" : "humantier6broadsword" },
          { "item" : "humantier6spear" },
          { "item" : "humantier6axe" },
          { "item" : "humantier6dagger" }
        ],
        "level34" : [
          { "item" : "humantier7head" },
          { "item" : "humantier7chest" },
          { "item" : "humantier7pants" },
          { "item" : "humantier7hammer" },
          { "item" : "humantier7shortsword" },
          { "item" : "humantier7broadsword" },
          { "item" : "humantier7spear" },
          { "item" : "humantier7axe" },
          { "item" : "humantier7dagger" }
        ],
        "level35" : [
          { "item" : "humantier8head" },
          { "item" : "humantier8chest" },
          { "item" : "humantier8pants" },
          { "item" : "humantier8hammer" },
          { "item" : "humantier8shortsword" },
          { "item" : "humantier8broadsword" },
          { "item" : "humantier8spear" },
          { "item" : "humantier8axe" },
          { "item" : "humantier8dagger" }
        ],
        "level36" : [
          { "item" : "humantier9head" },
          { "item" : "humantier9chest" },
          { "item" : "humantier9pants" },
          { "item" : "humantier9hammer" },
          { "item" : "humantier9shortsword" },
          { "item" : "humantier9broadsword" },
          { "item" : "humantier9spear" },
          { "item" : "humantier9axe" },
          { "item" : "humantier9dagger" }
        ],
        "level37" : [
          { "item" : "humantier10head" },
          { "item" : "humantier10chest" },
          { "item" : "humantier10pants" },
          { "item" : "humantier10hammer" },
          { "item" : "humantier10shortsword" },
          { "item" : "humantier10broadsword" },
          { "item" : "humantier10spear" },
          { "item" : "humantier10axe" },
          { "item" : "humantier10dagger" }
        ]
      },
      "altOptionAsUndyColor" : true,
      "headOptionAsHairColor" : true,
      "genders" : [
        {
          "name" : "male",
          "image" : "/interface/title/male.png",
          "characterImage" : "/interface/title/slimemale.png",
          "hair" : [ "male1" ],
          "shirt" : [ "coolchest", "conceptchest", "noblechest", "shirtlong1chest", "shirtshort1chest", "monkchest", "kimonochest" ],
          "pants" : [ "coollegs", "conceptlegs", "noblelegs", "jeans2legs", "monklegs", "kimonolegs" ],
          "facialHairGroup" : "",
          "facialHair" : [ ],
          "facialMaskGroup" : "",
          "facialMask" : [ ]
        },
        {
          "name" : "female",
          "image" : "/interface/title/female.png",
          "characterImage" : "/interface/title/slimefemale.png",
          "hair" : [ "fem1" ],
          "shirt" : [ "coolchest", "conceptchest", "noblechest", "shirtlong1chest", "shirtshort1chest", "monkchest", "kimonochest" ],
          "pants" : [ "coollegs", "conceptlegs", "noblelegs", "jeans2legs", "monklegs", "kimonolegs" ],
          "facialHairGroup" : "",
          "facialHair" : [ ],
          "facialMaskGroup" : "",
          "facialMask" : [ ]
        }
      ],
      "bodyColor" : [
        { "ffca8a" : "f0608b", "e0975c" : "cd5061", "a85636" : "95484c", "6f2919" : "6a3836", "f32200" : "f6fbfb", "dc1f00" : "d7e8e8", "be1b00" : "8fa7a3", "951500" : "5d6d69", "d9c189" : "eacf60", "a38d59" : "c1a24e", "735e3a" : "977841" },
        { "ffca8a" : "7fdadd", "e0975c" : "61aebf", "a85636" : "4e7a90", "6f2919" : "3f566e", "f32200" : "f6fbfb", "dc1f00" : "d7e8e8", "be1b00" : "8fa7a3", "951500" : "5d6d69", "d9c189" : "eacf60", "a38d59" : "c1a24e", "735e3a" : "977841" },
        { "ffca8a" : "add068", "e0975c" : "85ac1b", "a85636" : "6e8210", "6f2919" : "596809", "f32200" : "f6fbfb", "dc1f00" : "d7e8e8", "be1b00" : "8fa7a3", "951500" : "5d6d69", "d9c189" : "eacf60", "a38d59" : "c1a24e", "735e3a" : "977841" },
        { "ffca8a" : "f3efa3", "e0975c" : "e3d965", "a85636" : "baa94a", "6f2919" : "98832d", "f32200" : "f6fbfb", "dc1f00" : "d7e8e8", "be1b00" : "8fa7a3", "951500" : "5d6d69", "d9c189" : "efad56", "a38d59" : "c5813e", "735e3a" : "9b6638" },
        { "ffca8a" : "998779", "e0975c" : "836752", "a85636" : "625244", "6f2919" : "4e3b2e", "f32200" : "f6fbfb", "dc1f00" : "d7e8e8", "be1b00" : "8fa7a3", "951500" : "5d6d69", "d9c189" : "efad56", "a38d59" : "c5813e", "735e3a" : "9b6638" },
        { "ffca8a" : "737275", "e0975c" : "595760", "a85636" : "3f3e43", "6f2919" : "212123", "f32200" : "f6fbfb", "dc1f00" : "d7e8e8", "be1b00" : "8fa7a3", "951500" : "5d6d69", "d9c189" : "eacf60", "a38d59" : "c1a24e", "735e3a" : "977841" },
        { "ffca8a" : "eebfea", "e0975c" : "de8ddd", "a85636" : "c060bb", "6f2919" : "9a4b9c", "f32200" : "f6fbfb", "dc1f00" : "d7e8e8", "be1b00" : "8fa7a3", "951500" : "5d6d69", "d9c189" : "eae660", "a38d59" : "c1b54e", "735e3a" : "978841" },
        { "ffca8a" : "d18bd5", "e0975c" : "a766bc", "a85636" : "814797", "6f2919" : "693367", "f32200" : "f6fbfb", "dc1f00" : "d7e8e8", "be1b00" : "8fa7a3", "951500" : "5d6d69", "d9c189" : "efad56", "a38d59" : "c5813e", "735e3a" : "9b6638" },
        { "ffca8a" : "f3c873", "e0975c" : "db9c38", "a85636" : "b17628", "6f2919" : "89561f", "f32200" : "f6fbfb", "dc1f00" : "d7e8e8", "be1b00" : "8fa7a3", "951500" : "5d6d69", "d9c189" : "eae660", "a38d59" : "c1b54e", "735e3a" : "978841" },
        { "ffca8a" : "deeded", "e0975c" : "c5d8d8", "a85636" : "96aba9", "6f2919" : "6f807e", "f32200" : "f6fbfb", "dc1f00" : "d7e8e8", "be1b00" : "8fa7a3", "951500" : "5d6d69", "d9c189" : "eacf60", "a38d59" : "c1a24e", "735e3a" : "977841" }
      ],
      "undyColor" : [ "" ],
      "hairColor" : [ "" ]
    }
    If there's another file you need, I'll post it in the morning, when I wake up. Any help in the mean time is greatly appreciated!
     
  2. Matterialize

    Matterialize Scruffy Nerf-Herder

    The base body colors need to be specific hues for the game to recognize that they are colorable. Open up any of the other races' body files and you'll see what I mean. They all need to be done in those exact tan/orange colors - the game will only dynamically color the pixels that match the specific colors it's looking for. It's actually kinda neat, since you can specify certain body parts to always be a fixed color while letting others have a variable color.

    I don't know if there's a way to change the target colors, but it'll definitely work if you recolor those sprites to match the tan palette that everything else uses.
     
  3. Wazupmaster

    Wazupmaster Phantasmal Quasar

    Thank you so much! It totally worked :) I don't know why I didn't think about it before! Thank you again!
     

Share This Page