Changing a Civ's Color?

Joined
Dec 11, 2005
Messages
700
How do you change a civ's color? I'm playing as Assyria and I find their color a little too light and too similar to civs I happen to border.

Thanks in advance.
 
The basics:

Civs colors are determined by five columns: <Type>, <Red>, <Green>, <Blue> and <Alpha>. Messing with Type isn't necessary as long as you aren't adding a new color. For Red, Green and Blue, you take the RGB values of your desired color and divide by 255 to get a decimal that you input.
Don't mess with Alpha unless you're looking to break something. :p

So! When you've figured out the new colors you want to use:
Code:
<GameData>
	<Colors>
		<Update>
			<!-- This is the darker of Assyria's two colors, the orangish one -->
			<Where Type="COLOR_PLAYER_ASSYRIA_ICON"/>
			<Set Red="0.000" Green="0.000" Blue="0.000"/>
		</Update>
		<Update>
			<!-- Assyria's creme-ish color -->
			<Where Type="COLOR_PLAYER_ASSYRIA_BACKGROUND"/>
			<Set Red="1.000" Green="1.000" Blue="1.000"/>
		</Update>
	</Colors>
</GameData>
This is a template; the way I've defined it here corresponds to a black symbol on a white background.

This also assumes you're making a mod to do this (set it to Affects Saved Games = 0, BTW), this won't work if you just want to edit a file.
 
Something like this.

Code:
<GameData>
	<Colors>
		<Update>
			<Where>
				<Type>COLOR_PLAYER_ASSYRIA_ICON</Type>
			</Where>
			<Set>
				<Red>0.000</Red>
				<Green>0.000</Green>
				<Blue>0.000</Blue>
				<Alpha>1.00</Alpha>
			</Set>
		</Update>
		<Update>
			<Where>
				<Type>COLOR_PLAYER_ASSYRIA_BACKGROUND</Type>
			</Where>
			<Set>
				<Red>0.000</Red>
				<Green>0.000</Green>
				<Blue>0.000</Blue>
				<Alpha>1.00</Alpha>
			</Set>
		</Update>
	</Colors>
</GameData>

Set your own colors by modifying the values after Red, Green, Blue, and Alpha (to another number between 0 and 1). Currently both the background and border are set to solid black with the code above, which is probably not what you want, so change the colors yourself.
 
Somewhere on the steam workshop there's a mod called Ethiopia Color Fix (or something very similar) that only adjusted the colors of the civ and its units to make them a little more distinctive from barbarians. You could take a look at that mod for a sample of an operating mod that does what you're after, so far as the format of the commands you need.
 
Is there a simple way to just make Assyria's color the same as Morocco's? I'm not talking about actually making a mod; just editing files.

Is the <Colors> file found under expansion_2, XML?

Thanks in advance.
 
Is there a simple way to just make Assyria's color the same as Morocco's? I'm not talking about actually making a mod; just editing files.

Is the <Colors> file found under expansion_2, XML?

Thanks in advance.

Don't change your ingame files. Overwriting the regular files can make your game not play well with other mods, make online break, and it's a big hassle to fix if you break your game accidentally. Just make a mod that replaces those files each time you load it.

Literally all you need to do is open a notepad file, copy-paste one of the codes we gave you and change the colors to what you like, and then open that mod file in ModBuddy and build it.
 
OR:
Code:
<GameData>
	<PlayerColors>	
		<Update>
			<Where Type="PLAYERCOLOR_ASSYRIA"/>
			<Set PrimaryColor="COLOR_PLAYER_MOROCCO_ICON" SecondaryColor="COLOR_PLAYER_MOROCCO_BACKGROUND"/>
		</Update>
	</PlayerColors>
</GameData>
Or even:
Code:
<GameData>
	<Civilizations>
		<Update>
			<Where Type="CIVILIZATION_ASSYRIA"/>
			<Set DefaultPlayerColor="PLAYERCOLOR_MOROCCO"/>
		</Update>
	</Civilizations>
</GameData>
 
Back
Top Bottom