Modding Help Adding new colors to modded species texture

Discussion in 'Starbound Modding' started by Mecha_kitty, Feb 15, 2020.

  1. Mecha_kitty

    Mecha_kitty Void-Bound Voyager

    Hi, I've edited the texture of a modded species but i had to add a new color, so after reading many threads i tried making a player.config.patch but every time i load it it gives me an asset exception error. In the logs it gives me this
    :Caused by: (JsonParsingException) Error parsing json: bad string, should be " at 4:1
    This is my patch file, the 00D788 color did not previously exist. is there something i'm doing wrong?
    Code:
    [{
        "op":"replace","path":"/hairColor/-","value":
    { "00FFA1" : "E8022C", "00D788" : "9F021F" }, //red
    { "00FFA1" : "FF7221", "00D788" : "C35A1E" }, //orange
    { "00FFA1" : "FFB414", "00D788" : "BF8A18" }, //gold
    { "00FFA1" : "FFE500", "00D788" : "C1AD00" }, //yellow
    { "00FFA1" : "33FF00", "00D788" : "22D300" }, //green
    { "00FFA1" : "00FFA1", "00D788" : "00D788" }, //teal
    { "00FFA1" : "0084FF", "00D788" : "055CAD" }, //skyblue
    { "00FFA1" : "3045FF", "00D788" : "2431A3" }, //blue
    { "00FFA1" : "8205FF", "00D788" : "5D0DAD" }, //purple
    { "00FFA1" : "EA00FF", "00D788" : "A401B3" }, //atomicpink
    { "00FFA1" : "B30707", "00D788" : "6F0000" }, //blood
    { "00FFA1" : "E65DAE", "00D788" : "AF3F81" }, //rose
    { "00FFA1" : "AB6BFF", "00D788" : "8C58CC" }, //lavender
    { "00FFA1" : "6A8DE4", "00D788" : "5670B1" }, //slush
    { "00FFA1" : "5FDDB8", "00D788" : "49A68A" }, //seafoam
    { "00FFA1" : "42C652", "00D788" : "2C8F38" }, //grass
    { "00FFA1" : "FEFFA4", "00D788" : "CECF8D" }, //beige
    { "00FFA1" : "F3A464", "00D788" : "BF8859" }, //dreamsicle
    { "00FFA1" : "D2E2FF", "00D788" : "ADBAD1" }, //liteblu
    { "00FFA1" : "FFD2D2", "00D788" : "DAB0B0" }, //litered
    { "00FFA1" : "D2FFDA", "00D788" : "A4CAAB" }, //litegrn
    { "00FFA1" : "FFFFFF", "00D788" : "D3D3D3" }, //white
    { "00FFA1" : "B0B0B0", "00D788" : "919191" }, //lgrey
    { "00FFA1" : "787878", "00D788" : "616161" }, //dgrey
    { "00FFA1" : "000000", "00D788" : "000000" }, //black
    { "00FFA1" : "FF2E57", "00D788" : "D31B3F" }, //superred
    { "00FFA1" : "FFA140", "00D788" : "CF7F2C" }, //orangesoda
    { "00FFA1" : "A3FF40", "00D788" : "82D12D" }, //yellowgrass
    { "00FFA1" : "C3EEFF", "00D788" : "A3C4D1" }, //overcast
    { "00FFA1" : "FF00AA", "00D788" : "B10075" }, //fuschia
    { "00FFA1" : "4A79FF", "00D788" : "3358C1" }, //darkskyblue
    { "00FFA1" : "D693F3", "00D788" : "9457AF" } //lightlavender
    }]
    
     
  2. The | Suit

    The | Suit Agent S. Forum Moderator

    What program did you use to edit it?
    Programs like MS Word are terrible at editing files because it does not use standard UTF-8 Format.

    Use Windows Notepad or a proper code editor like ( all free )
    ATOM.io
    Notepad++
    etc.

    Also can you provide the original file you are patching as well?
     
  3. Mecha_kitty

    Mecha_kitty Void-Bound Voyager

    I used both windows notepad and notepad++, I started with notepad then remembered i had notepad++.

    "Also can you provide the original file you are patching as well?" if you mean the species file then here
     

    Attached Files:

Share This Page