Adding custom unit flag?

thecrazyscot

Spiffy
Joined
Dec 27, 2012
Messages
2,460
I'm having trouble adding custom unit flags...I've combed through this forum trying to find an answer, but have been unable to locate one.

I've tried combining the unit flags into one file, and breaking them down into individual files - neither one is working for me. Here's what I've tried:

Icon Atlas:
Spoiler :
Code:
<Row>
	<Atlas>TCS_UNITS_FLAG_ATLAS</Atlas>
	<IconSize>32</IconSize>
	<Filename>TCS_UnitFlagAtlas.dds</Filename>
	<IconsPerRow>8</IconsPerRow>
	<IconsPerColumn>1</IconsPerColumn>
</Row>
<Row>
	<Atlas>AFRICAN_MERC_ATLAS</Atlas>
	<IconSize>32</IconSize>
	<Filename>AfricanMercFlag.dds</Filename>
	<IconsPerRow>1</IconsPerRow>
	<IconsPerColumn>1</IconsPerColumn>
</Row>
When combining the flags into one atlas, I used the same identifier system as building icon atlases ("0" for the first, "1" for the second, etc. etc.)

I've attached the 2 example DDS files that I've been trying to work with, a small test mod with everything that should be necessary to test the custom unit, and a screenshot of the result (simply blank unit flags).

Help!
 

Attachments

  • Flag Atlases.zip
    1.7 KB · Views: 70
  • 2014-09-17_00001.jpg
    2014-09-17_00001.jpg
    403.1 KB · Views: 265
  • Unit Test (v 1).civ5mod
    277.7 KB · Views: 67
Modding hat on now :). Your icon files need to be the size 32x32 - so that's one reason they don't show. If you're saving them in GIMP, you need to be using the "export" option instead of save and have the compressed set to BC2/DTX3 (with no minimaps).
 
Top Bottom