1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Saved SWFs Don't Retain Color

Discussion in 'Help' started by jojothompson, Oct 18, 2016.

  1. jojothompson

    jojothompson Potential Patron

    Joined:
    Oct 6, 2016
    Messages:
    2
    Likes Received:
    0
    Hey guys,

    I have characters set in individual folders to load. Backgrounds, hair, clothes and everything all load (via code.txt and mods.txt) but none of the clothes retain their color - they're always reset to black. Is there something I missing to saved SWF clothing color options?
     
  2. stuntcock

    stuntcock Club Regular Staff Member Moderator

    Joined:
    Jun 5, 2012
    Messages:
    1,524
    Likes Received:
    356
    Code.txt can define RGB values for each element (top, bottoms, footwear, etc). If you subsequently load a SWF file with RGB support, then it will usually inherit the RGB values set by Code.txt.

    This isn't always true, because it's possible for each SWF file to include an internal charCode - and thereby establish a default color for itself. Example: these cuffs will appear gold when loaded, but can be modified afterwards.

    It's possible to block SWF files from applying their internal charcodes. But first, you should attempt to tweak your Code.txt file so that it specifies the desired colors for each item (because the blocking stuff might prove unnecessary).

    Example: just put a T-Shirt on the girl, using the most recent RGB settings. If the Alpha value was set to 0, then the shirt might be invisible. Invisible mods are very confusing for users, so we rarely use this approach when sharing charCodes.
    Code:
    tops:tshirt;
    Example: put a T-Shirt on the girl and make it red. This is the standard approach for sharing charCodes.
    Code:
    tops:tshirt,255,0,0,1;
    Example: don't actually put a shirt on the girl. Set the Top RGB slider to blue, so that the next shirt will (probably) appear blue. This approach is useless for sharing charCodes, but it may be useful when creating Character Folders (or when sharing embedding charCodes into SWF files).
    Code:
    tops:none,0,0,255,1;
     
  3. jojothompson

    jojothompson Potential Patron

    Joined:
    Oct 6, 2016
    Messages:
    2
    Likes Received:
    0
    Beautiful! You've solved my problem. Thanks for taking the time to write such a detailed response!