View Full Version : Another Simple Question: Player colors


MaxAstro
Feb 20, 2008, 05:49 AM
Where are the player colors defined, and where would I go about defining a new one? Also, what format do they use?

I'm trying to add a new civ, and can't for the life of me figure out how to give it a unique player color...

xienwolf
Feb 20, 2008, 07:46 AM
*\Fall from Heaven 2 030\Assets\XML\Interface\CIV4PlayerColorInfos.xml is where they are set.

*\Beyond the Sword\Assets\XML\Interface\CIV4ColorVals.xml is where they are defined.

Kol.7
Feb 20, 2008, 08:09 AM
Hmmm, how would a non-modder such as me go about changing a civs colour? The Bannors ugly cyan really puts me off them lol.

DharmaMcLaren
Feb 20, 2008, 11:01 AM
It's really fairly easy to do - I just guessed.
Just look at *\Beyond the Sword\Assets\XML\Interface\CIV4ColorVals.xml, work out how it works, make up your own colour, then change the Bannor entry in *\Fall from Heaven 2 030\Assets\XML\Interface\CIV4PlayerColorInfos.xml from UGLY_CYAN to NEW_COLOUR.

The Red/Green/Blue values are percentages, I think - not sure if I'm remembering that incorrectly.

MaxAstro
Feb 20, 2008, 11:02 AM
...Wow. How did I miss an entire folder? I literally never noticed that folder until now... ^^;

xienwolf
Feb 20, 2008, 12:52 PM
Dharma is correct, 1.0 is max of that color (so 255 in most other programs) and it scales down from there to 0.0 being none of that color. You can also set your Alpha level to determine how hard it will be to see terrain through the shaded portion of your borders.

Kol.7, just go into the ColorVals.xml and change Cyan to have different values for RGB if you want to make it really simple and change all Cyan everywhere in the game.

Kol.7
Feb 23, 2008, 06:53 AM
Ok, well when FFh actually works on my PC I'll bear that in mind lol.

Vehem
Feb 25, 2008, 05:26 AM
Dharma is correct, 1.0 is max of that color (so 255 in most other programs)

So if you have an RGB value for a color from your Paint program (ie R:255 G: 128 B: 96), you can divide each by 255 to find out what you should put in the ColorVals.

255 / 255 = 1.000 for Red
128 / 255 = 0.502 for Green
96 / 255 = 0.376 for Blue