Adding New Clothing Colors

When you go into a store and select any piece of clothing
your game accesses the character_color_pool.xtbl. So if you
want to add, subtract, rearrange or replace your colors
this is the file that you must edit.

You can find it in the common.vpp_pc file in your Saints Row 2
game directory and can use Thomas.Jepp Tools to extract it

Code:
    <Color_Entry>
        <Name>White</Name>
        <Color>
            <R>255</R>
            <G>255</G>
            <B>255</B>
            </Color>
        <_Editor>
            <Category>Entries</Category>
            </_Editor>
        </Color_Entry>

This is a color entry. To change it first you have to give
your color a name. It has be a unique name.

Then you change the color levels yo suit you.
The color levels range from 0 which is the absence
of all color (IE: <R>0</R> means there is no red
in this color) and 255 which means that it contains
the maximum amount of this color that the spectrum
allows.

R = Red
G = Green
B = Blue

So our example above means that White has all three
of the colors turned to full saturation.
Wine.png


General Lee Orange.png

I am going to add two new colors to the file:
Wine and General Lee Orange

So the first thing I have to do is get the proper
Red, Green And Blue saturation values and there are
two ways that I can do this.

1. Create the color myself using Paintbrush, (also
called Ms paint depending on your windows version)
or KolourPaint (which I use when in Linux). Any paint
program that allows you to create your own colors
should do.

2. Find a picture and use either MsPaint or
KolourPaint (or your choice) and use the color picker
feature.

Note: These instructions are for KolurPaint,
however the same directions apply to Ms Paint,
though, the names may be a little different.

To use the Color Picker feature: select the Color tool
from your paint program and click on the picture
selecting a color that suits you.

The selected paint color will change on your paint
color indicator (selected color).

CP1.png


Click on the newly selected paint color and
left click.

Another window will open up that will have some
numbers off to the side of it.

The numbers you need are in the Red, Green and Blue
value boxes. Just copy those numbers into the appropriate
brackets

Color Picker.png


For instance my Wine color is:
<R>130</R>, <G>25</G>, <B>61</B>

Once you have your numbers set then you are ready to
insert the new color into the list.
Once you have your color information ready

Code:
<Color_Entry>
        <Name>Wine</Name>
        <Color>
            <R>130</R>
            <G>25</G>
            <B>61</B>
            </Color>
        <_Editor>
            <Category>Entries</Category>
            </_Editor>
        </Color_Entry>
Code:
<Color_Entry>
        <Name>General Lee Orange</Name>
        <Color>
            <R>225</R>
            <G>83</G>
            <B>21</B>
            </Color>
        <_Editor>
            <Category>Entries</Category>
            </_Editor>
        </Color_Entry>

A Brief Aside: For anyone too young to remember The
General Lee was the iconic car in the Dukes Of Hazard
TV show. (probably in the movie too, thourgh I have
never seen it.)

To place your color at the end of the list scroll down
til you see:

</Color_Entry>
</Table>

and place your entry between these two lines

Code:
</Color_Entry>

    <Color_Entry>
        <Name>Wine</Name>
        <Color>
            <R>130</R>
            <G>25</G>
            <B>61</B>
            </Color>
        <_Editor>
            <Category>Entries</Category>
            </_Editor>
        </Color_Entry>
Code:
<Color_Entry>
        <Name>General Lee Orange</Name>
        <Color>
            <R>225</R>
            <G>83</G>
            <B>21</B>
            </Color>
        <_Editor>
            <Category>Entries</Category>
            </_Editor>
        </Color_Entry>

 </Table>

Just save your work and recompile into your game patch.

The Spaces between lines are not necessary, I have added
them to make differentiating the code easier.
If instead of adding them to the bottom of the color section screen
you want them grouped with similar colors then just find the correct
place in the list and insert them there.

Code:
    <Color_Entry>
        <Name>Rose</Name>
        <Color>
            <R>255</R>
            <G>0</G>
            <B>127</B>
            </Color>
        <_Editor>
            <Category>Entries</Category>
            </_Editor>
        </Color_Entry>
<Color_Entry>
        <Name>Wine</Name>
        <Color>
            <R>130</R>
            <G>25</G>
            <B>61</B>
            </Color>
        <_Editor>
            <Category>Entries</Category>
            </_Editor>
        </Color_Entry>
    <Color_Entry>
        <Name>Scarlet</Name>
        <Color>
            <R>255</R>
            <G>36</G>
            <B>0</B>
            </Color>
        <_Editor>
            <Category>Entries</Category>
            </_Editor>
        </Color_Entry>

Here I have placed the Wine entry between the Rose
and Scarlet entries.
To replace a color that you do not like just find
color entry for it and change the R,G,B values.
Be aware that this will change every one of your
outfits as well as those in the stores
that use the old color.

Do not change the color name
Warning: Doing this can mess your game up. If any of your
clothes, or the clothes in the stores, use the color
that you want to remove then your game will crash.

So back up your files before you edit them.

If you wish to remove a color entry just delete it.
However it would be much easier and less risky to just replace
the color.

Note: If you do replace the color do not change the name.
Thomas Jepp Tools:

I am including my file for study purposes. I have not changed anything other than
adding two colors so it should work with GOTR and Vanilla.

If you have previously modded that file then back your copy up before using this
and be aware that if the two copies of the file don't share a color that you have used
in a clothing item, then there will be a crash
 

Attachments

Last edited:
Back
Top