Another Simple Question: Player colors

MaxAstro

Spiral Knight
Joined
Dec 18, 2007
Messages
645
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...
 
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.
 
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.
 
...Wow. How did I miss an entire folder? I literally never noticed that folder until now... ^^;
 
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.
 
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
 
Back
Top Bottom