For colors:
Files needed:
- \Assets\xml\interface\CIV4ColorVals.xml
- \Assets\xml\interface\CIV4PlayerColorInfos.xml
- \Assets\xml\civilizations\CIV4CivilizationInfos.xml
CIV4ColorVals.xml
here, you put your new color:
Code:
<ColorVal>
<Type>COLOR_PLAYER_BLUEGREEN</Type>
<fRed>0.220</fRed>
<fGreen>0.70</fGreen>
<fBlue>0.51</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_BLUEGREEN_TEXT</Type>
<fRed>0.213</fRed>
<fGreen>0.70</fGreen>
<fBlue>0.512</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
be careful to add the COLOR_PLAYER_XXX_TEXT (where XXX is the color) to the file... or crash

.
CIV4PlayerColorInfos.xml
Here you will define the valors linked to the color
Code:
<PlayerColorInfo>
<Type>PLAYERCOLOR_BLUEGREEN</Type>
<ColorTypePrimary>COLOR_PLAYER_BLUEGREEN</ColorTypePrimary>
<ColorTypeSecondary>COLOR_PLAYER_DARKVIOLET</ColorTypeSecondary> <!--COLOR_PLAYER_DARK_BLUE-->
<TextColorType>COLOR_PLAYER_BLUEGREEN_TEXT</TextColorType>
</PlayerColorInfo>
CIV4CivilizationInfos.xml
Finally you have to put it in the civilizations entries:
Code:
<DefaultPlayerColor>PLAYERCOLOR_BLUEGREEN</DefaultPlayerColor>
Find an entry and replace the color with your color.
BE CAREFUL: Don't put same color for 2 civilizations.... if you do that it would work for some turns until... return to windows
For flags:
Files needed:
- \Assets\xml\art\CIV4ArtDefines_Civilization.xml
- \Assets\xml\civilizations\CIV4CivilizationInfos.xml
CIV4ArtDefines_Civilization.xml
Code:
<CivilizationArtInfo>
<Type>ART_DEF_CIVILIZATION_PERSIA</Type>
<Button>,Art/Interface/Buttons/Civilizations/Persia.dds,Art/Interface/Buttons/Civics_Civilizations_Religions_Atlas.dds,6,6</Button>
<Path>Art/Interface/TeamColor/Persia.dds</Path>
<bWhiteFlag>0</bWhiteFlag>
</CivilizationArtInfo>
Type: the entry. You can define it in the file
\Assets\xml\civilizations\CIV4CivilizationInfos.xml
Button: the picture used in the civilopedia. Here I don't have tried yet to put a new button, I personnally use the existing one...
Path: here is the entry for the flag. put here the link to your flag you want to use.
If you use the "Civilization 4\CustomAssets\art\interface\teamcolor" folder you can use for the link: "Art/Interface/TeamColor/"
Exemple you make a new flag for Russia. You name it "Russia.dds" and put it in the "Civilization 4\CustomAssets\art\interface\teamcolor" folder. In the path field you will put: Art/Interface/TeamColor/Russia.dds
bWhiteFlag: tell the game if the flag is a white flag (valor: "1") or a black flag (valor: "0").
CIV4CivilizationInfos.xml
in this file you can precise the entries used for the flag and civilopedia button.
Code:
<ArtDefineTag>ART_DEF_CIVILIZATION_RUSSIA</ArtDefineTag>
Making a flag
You need this plug in from Nvidia for Photoshop. This permit Photoshop to load the DDS files
http://developer.nvidia.com/object/photoshop_dds_plugins.html
Plug in for gimp is here:
http://nifelheim.dyndns.org/~cocidius/dds/
After go into the directory: Assets\art\interface\teamcolor
Open one and edit it. When you are satisfied save it as DXT3 or DXT5.
Be careful with the alpha channel, if you don't define them.
The white tell to the program what is not displayed in the game, the black tell to the game what is displayed.
The way to make simply a new flag is to copy one picture in the RGB channels and fill the alpha channel in black.
Finally you configure in "CIV4ArtDefines_Civilization.xml" the flag as a white flag.
And you have a new flag in your game...
Hope this will help some

.