Page 1 of 1

MOD question, how to change the faction color

Posted: Wed Sep 17, 2014 2:15 pm
by GlobalExplorer
Let's say for example I want Germany to have a different specific color, unit backgrounds and such. Can someobody tell me how to do this?

Posted: Thu Sep 18, 2014 8:04 am
by PhilThib
In the Aliases directory, file for nations color is Colors2_Faction.ini
Back it up before changing. If you want to go fast, you can enter directly the RGB values of the new colour (see examples in the Colours1_Various.ini file)

Posted: Thu Sep 18, 2014 11:08 am
by GlobalExplorer
Thanks! Did not work as I intended, but from here I know how to go on.
I can change the color of the map overlay and cities, but not the backgrounds of units. Is that a graphic file?

Posted: Thu Sep 18, 2014 12:08 pm
by GlobalExplorer
I could modify Russia with the Portuguese colors (nice effect is that the conquered region have a different color)

But the units and their backgrounds are still dark green

Image

Posted: Thu Sep 18, 2014 12:22 pm
by Leibst
In the models folder you can see the color of each model defined.
example: Color = $colNACRegular
And in the aliases folder in the colors files you can change all the colors you need. Like these from EspaƱa.

$colNACMain = 201|188|143|255
$colNACRegular = 204|187|134|255
$colNACElite = 214|214|194|255

the first numbers are the RGB code and the last is used to define the transparency.

Posted: Thu Sep 18, 2014 12:32 pm
by GlobalExplorer
You guys are great!!

Posted: Thu Sep 18, 2014 12:38 pm
by GlobalExplorer
Setting the colors for the map overlay etc was straightforward, but I could not accomplish changing the unit background.

A problem is that $colRUSMain is defined more than once in the file, perhaps that could be causing you problems too.
If someone just changes the definition at the start of the file he might never find out that it is overwritten at the end of the file.

Posted: Sun Sep 28, 2014 1:04 pm
by GlobalExplorer
With the entrance of Romania this has become a hot issue for me again. I can barely look at the horrible purple without eye pain :)
Colors2_Factions.ini controls the colors for towns and regions, but not the background of unit panels, so I still lack one important piece of information.