How to mod civ colors?

low said:
Go here:

http://www.2kgames.com/civ4/support_ati.htm

Bottom of page and download PakBuild. Now you can unpack the "Art0.FPK" file located in the Assets folder. You should then be able to find the .dds you're looking for.

THanks. Unfortunately, I'm still using Windows 2000, so I won't be able to use this until they make the software compatible with it. :(
 
You can also just open a specific World Builder Save file and edit civ colors specifically for that one scenario as well if you don't want to globally change every color.

What we really need is some updated xml files that allow one to pick civ colors in the setup screens when you're choosing you civ, leader and difficulty level.
 
ShroudedMist said:
You can also just open a specific World Builder Save file and edit civ colors specifically for that one scenario as well if you don't want to globally change every color.

What we really need is some updated xml files that allow one to pick civ colors in the setup screens when you're choosing you civ, leader and difficulty level.

Hmm. I'll bet that's what they did in that American Revolution scenario.

Oh well, at least I learned a bit about how XML works trying this.
 
Correct jkp1187

Some of the World Builder Save files have sections such as

BeginPlayer
Team=0
...
Color=PLAYERCOLOR_BLUE
....
Handicap=HANDICAP_NOBLE
EndPlayer


which follow the Begin Team sections. I left out most of what occurs there but it's fairly straight forward what a lot of the settings correspond to ingame.

\Assets\XML\Interface\CIV4ColorVals.xml in your install directory has listings for the appropriate color names although a save file with 18 civs will list them all as well.
 
For what it's worth, the stars & stripes work relatively well with the default American colors (although the white stripes appear light blue, close enough for government work and/or someone who doesn't really know how to program). The union jack for England looks fine, as long as you keep the default colors.
 
Here's something more advanced.

You can alter flags using NVidia DDS plug-in for photoshop.
http://developer.nvidia.com/object/nv_texture_tools.html

Not tested, I'm getting ready to try it.

Flags are located in
C:\Program Files\Firaxis Games\Sid Meier's Civilization 4\Assets\Art\interface\buttons\civilizations


XML file for your custom civ should reference new symbol.
 
I also found out that even just altering the color XML files gives your opponents a "Civ versions do not match!" warning when going multiplayer.
 
Here's another subject on modding civ colors. I'd like the transparency level to be a little less transparent at the edge, so the border actually shows up a little better. Any ideas on how to change this? And I'd like to totally replace the white one with something else, it really doesn't show up well. Can you specify the actual color values to be used?
 
jkp1187 said:
For what it's worth, the stars & stripes work relatively well with the default American colors (although the white stripes appear light blue, close enough for government work and/or someone who doesn't really know how to program). The union jack for England looks fine, as long as you keep the default colors.
All you have to do is go to '\Assets\XML\Art\CIV4ArtDefines_Civilization.xml' and change <bWhiteFlag>0</bWhiteFlag> to <bWhiteFlag>1</bWhiteFlag> for all the civs who you've given a flag that requires a white background to look correct.

Take a look (America conquered Shanghai):
Civ4FlagMods.JPG

I took the Union Jack from the American Revolution scenario, and the American and Spanish flags from the Desert War scenario (note that the Spanish flag is from the WWII era, not the current one). I also "fixed" the Eye of Ra ;).
 
Kopernikus1979 said:
Could you please tell us, how exactly you have made the changes? thx...

I'll do a write-up when I get home from work tonight.
 
Note: It is good practice to back up your files before modifying them

In order to set the English flag as the Union Jack, and set the American flag, and Spanish (WWII) flag as defaults, make the following changes:

  • Open "...\Assets\XML\Art\CIV4ArtDefines_Civilization.xml"
  • Under <Type>ART_DEF_CIVILIZATION_AMERICA</Type> find <Path>Art/Interface/TeamColor/FlagDECAL_Star.dds</Path> and replace with <Path>Mods/Desert War/Assets/Art/Interface/TeamColor/FlagDECAL_USA.dds</Path>
  • Under <Type>ART_DEF_CIVILIZATION_ENGLAND</Type> find <Path>Art/Interface/TeamColor/FlagDECAL_StGeorgeCross.dds</Path> and replace with <Path>Mods/American Revolution/Assets/Art/Interface/TeamColor/FlagDECAL_UK.dds</Path>
  • Under <Type>ART_DEF_CIVILIZATION_SPAIN</Type> find <Path>Art/Interface/TeamColor/FlagDECAL_Castle.dds</Path> and replace with <Path>Mods/Desert War/Assets/Art/Interface/TeamColor/FlagDECAL_Spain.dds</Path>
  • For all three civs change <bWhiteFlag>0</bWhiteFlag> to <bWhiteFlag>1</bWhiteFlag>

In order to make the Egyptian flag look like it does in the pic, you have to modify the civ colors (this will make Egypt appear as black on the map, military advisor screen, etc.). So, if you're okay with that, here is how to do it:

  • Open "...\Assets\XML\Civilizations\CIV4CivilizationInfos.xml"
  • Find <Type>CIVILIZATION_EGYPT</Type> and replace <DefaultPlayerColor>PLAYERCOLOR_YELLOW</DefaultPlayerColor> with <DefaultPlayerColor>PLAYERCOLOR_BLACK</DefaultPlayerColor>
  • Next, open "...Assets\XML\Interface\CIV4PlayerColorInfos.xml"
  • Find <Type>PLAYERCOLOR_BLACK</Type> and replace <ColorTypeSecondary>COLOR_PLAYER_WHITE</ColorTypeSecondary> with <ColorTypeSecondary>COLOR_PLAYER_DARK_CYAN</ColorTypeSecondary>

As a useful general note, any time you make changes in your (hopefully) backed up xml files, you can leave a comment after any change you make by typing <!--[comment goes here]-->. I put the original colors / flag links in comments after any changes I made.
 
Heh, beat me to it, so I'll just add a couple of marginal things that others may find useful.

Changing
Code:
<bWhiteFlag>0</bWhiteFlag>
to
Code:
<bWhiteFlag>2</bWhiteFlag>
(I experimented) gets you an XML error at startup. It appears to be a binary variable.

The file C:\Program Files\Firaxis Games\Sid Meier's Civilization 4\Assets\XML\Interface\CIV4ColorVals.xml enumerates the available colors and their values. Changing these numbers would (presumably) adjust the appearance of the color. It looks like this:

Code:
<ColorVal>
			<Type>COLOR_RED</Type>
			<fRed>1.00</fRed>
			<fGreen>0.00</fGreen>
			<fBlue>0.00</fBlue>
			<fAlpha>1.00</fAlpha>
		</ColorVal>

<ColorVal>
			<Type>COLOR_PLAYER_DARK_RED</Type>
			<fRed>0.62</fRed>
			<fGreen>0.00</fGreen>
			<fBlue>0.00</fBlue>
			<fAlpha>1.00</fAlpha>
		</ColorVal>

Note that the "Dark Red" color is not used as a default primary civilization color (it is used as a secondary color), so I changed the English to this color, so that I did not have to change Japan's primary from "Red". The distinction between the two is no worse than the White/Gray distinction.

For the newbies: the "Primary" color is the color of the civilization's borders. It is also one of the colors that appears on the default flag and in color-coded text refering to that civilization. The "Secondary" color also appears on the default flag, depending on how those colors were assigned.

If you have a typo or otherwise enter an invalid value for the design of the flag (e.g., put down "FlagDECAL_USS.dds" instead of "FladDECAL_USA.dds",) the flag will appear as a plain banner colored the secondary color.

Hope all this is helpful.
 
Speaking of colors.

Has anyone looked into modding the opacity of your civilizations cultural area and its boundary lines? On the main map it's damn hard to see when you bump into a player's area, especially in certain terrains.
 
Back
Top Bottom