Modding Civilization Flag Icons

Jframe2002

Chieftain
Joined
May 12, 2014
Messages
2
Hi

I was wondering if anyone knows where to find the graphic files for civilization flag icons. There are a couple I would love to change myself (I'm a graphic designer so I can create the art myself) i was just wondering if anyone here can help me find where the files are that I could change... i know you can because i've seen people's flag mods, but i can't seem to be able to download them...

any help is appreciated. (specifically i want to change the flag of Casimer III of Poland with the BNW expansion. I wanted the Eagle to be white, not black, as traditionally the Polish eagle is white on a red background.)

Thanks for the help ahead of time.

Moderator Action: Moved to the main Creation & customisation section, since this is about modding
 
Instead of modifying the base graphic files for the icons, I would suggest updating the XML with your mod to point to a different atlas, like this:

Code:
<GameData>
	<Civilizations>
		<Update>
			<Where CivilizationType="CIVILIZATION_POLAND"/>
			<Set>
				<PortraitIndex>0</PortraitIndex>
				<IconAtlas>POLAND_ATLAS</IconAtlas>
				<AlphaIconAtlas>POLAND_ALPHA_ATLAS</AlphaIconAtlas>
			</Set>
		</Update>
	</Civilization>
</GameData>
This code means that where the Civilization is equal to CIVILIZATION_POLAND it will point to a new atlas (which would contain your icon), since that's a lot easier than modifying the base ones. In this case, you'd also need an IconTextureAtlas, which would tell the game what file to go to when it's accessing POLAND_ATLAS:

Code:
<GameData>
	<IconTextureAtlases>
		<Row>
			<Atlas>POLAND_ATLAS</Atlas>
			<IconSize>256</IconSize>
			<Filename>POLAND_256.dds</Filename>
			<IconsPerRow>1</IconsPerRow>
			<IconsPerColumn>1</IconsPerColumn>
		</Row>
		<Row>
			<Atlas>POLAND_ATLAS</Atlas>
			<IconSize>128</IconSize>
			<Filename>POLAND_128.dds</Filename>
			<IconsPerRow>1</IconsPerRow>
			<IconsPerColumn>1</IconsPerColumn>
		</Row>
		<Row>
			<Atlas>POLAND_ATLAS</Atlas>
			<IconSize>80</IconSize>
			<Filename>POLAND_80.dds</Filename>
			<IconsPerRow>1</IconsPerRow>
			<IconsPerColumn>1</IconsPerColumn>
		</Row>
		<Row>
			<Atlas>POLAND_ATLAS</Atlas>
			<IconSize>64</IconSize>
			<Filename>POLAND_64.dds</Filename>
			<IconsPerRow>1</IconsPerRow>
			<IconsPerColumn>1</IconsPerColumn>
		</Row>
		<Row>
			<Atlas>POLAND_ATLAS</Atlas>
			<IconSize>48</IconSize>
			<Filename>POLAND_48.dds</Filename>
			<IconsPerRow>1</IconsPerRow>
			<IconsPerColumn>1</IconsPerColumn>
		</Row>
		<Row>
			<Atlas>POLAND_ATLAS</Atlas>
			<IconSize>45</IconSize>
			<Filename>POLAND_45.dds</Filename>
			<IconsPerRow>1</IconsPerRow>
			<IconsPerColumn>1</IconsPerColumn>
		</Row>
		<Row>
			<Atlas>POLAND_ATLAS</Atlas>
			<IconSize>32</IconSize>
			<Filename>POLAND_32.dds</Filename>
			<IconsPerRow>1</IconsPerRow>
			<IconsPerColumn>1</IconsPerColumn>
		</Row>
		<Row>
			<Atlas>POLAND_ALPHA_ATLAS</Atlas>
			<IconSize>128</IconSize>
			<Filename>POLANDALPHA_128.dds</Filename>
			<IconsPerRow>1</IconsPerRow>
			<IconsPerColumn>1</IconsPerColumn>
		</Row>
		<Row>
			<Atlas>POLAND_ALPHA_ATLAS</Atlas>
			<IconSize>64</IconSize>
			<Filename>POLANDALPHA_64.dds</Filename>
			<IconsPerRow>1</IconsPerRow>
			<IconsPerColumn>1</IconsPerColumn>
		</Row>
		<Row>
			<Atlas>POLAND_ALPHA_ATLAS</Atlas>
			<IconSize>48</IconSize>
			<Filename>POLANDALPHA_48.dds</Filename>
			<IconsPerRow>1</IconsPerRow>
			<IconsPerColumn>1</IconsPerColumn>
		</Row>
		<Row>
			<Atlas>POLAND_ALPHA_ATLAS</Atlas>
			<IconSize>32</IconSize>
			<Filename>POLANDALPHA_32.dds</Filename>
			<IconsPerRow>1</IconsPerRow>
			<IconsPerColumn>1</IconsPerColumn>
		</Row>
		<Row>
			<Atlas>POLAND_ALPHA_ATLAS</Atlas>
			<IconSize>24</IconSize>
			<Filename>POLANDALPHA_24.dds</Filename>
			<IconsPerRow>1</IconsPerRow>
			<IconsPerColumn>1</IconsPerColumn>
		</Row>
		<Row>
			<Atlas>POLAND_ALPHA_ATLAS</Atlas>
			<IconSize>16</IconSize>
			<Filename>POLANDALPHA_16.dds</Filename>
			<IconsPerRow>1</IconsPerRow>
			<IconsPerColumn>1</IconsPerColumn>
		</Row>
	</IconTextureAtlases>
</GameData>
As long as the File names are correct and the files are both .dds and imported into VFS, that should work
 
I agree with Pouakai. However, as far as finding the game's art files to have something to start with, you have to use the script in Nexus (from the SDK) to unpack the FPKs, or use the third-party tool, Dragon UnPACKer. You also need this tool to convert the indexed DDS files into PNG. (They don't need to be reindexed; you can then convert them to traditional DDS files).
 
Thanks for all the help! I'm gonna try this out and hopefully it works. I forgot to mention i'm on a Mac, but it seems like the coding part can be easily done in a txt editor. I have to check on the unpacking software but thanks so much though.
 
Back
Top Bottom