mjdgoldeneye
Chieftain
- Joined
- Sep 1, 2007
- Messages
- 18
Hello.
I'm trying to get my icon atlases to work in a mod I'm making. I feel like I've done everything necessary, so I'm stumped.
I, so far, have my leader icon and civilization icon completed. Using the templates provided in the SDK (the 8x8 grids in Photoshop format), I placed my icons on the 256 grid (both leader and Civ), saved in whatever format, loaded them into GIMP 2, removed the extraneous background layer (the templates have a black background layer beneath the layer with the alpha circles and .dds files for Civ need to be 1 layer), and saved as a .dds file with no compression and default format.
I then scaled the files to match all the remaining necessary sizes (128, 80, 64, 45, 32). In case you're wondering, no, I didn't make them 128x128 and so on. I made them 1024x1024 and so on as I am supposed to.
I imported all the files into ModBuddy. I set them all to import into VFS.
Under my custom Civilization's XML, I have:
Under my Leader's XML, I have:
Here, the "0" means top left-most icon and "1" means the icon to the immediate right of "0".
Under an XML file for defining the atlas stuff (which I have set to OnModActivated -> Update Database), I have (and this is the entire file contents):
(I made the Alpha icons for the Civ symbol too, but they haven't thrown any errors for me.)
Does anyone know what might be wrong?
When I load the mod, upon selection "Set Up Game" and trying to select a Civ, it stalls for a very short moment and then two alerts pop up saying "Can't load texture MJDAtlas128.dds" and whatever the smaller one is. I imagine they're the 128x128 sized leader icon and the smaller civ icon because both are replaced by garish red squares where the leader and civ icon should go in the civ select menu.
I'm trying to get my icon atlases to work in a mod I'm making. I feel like I've done everything necessary, so I'm stumped.
I, so far, have my leader icon and civilization icon completed. Using the templates provided in the SDK (the 8x8 grids in Photoshop format), I placed my icons on the 256 grid (both leader and Civ), saved in whatever format, loaded them into GIMP 2, removed the extraneous background layer (the templates have a black background layer beneath the layer with the alpha circles and .dds files for Civ need to be 1 layer), and saved as a .dds file with no compression and default format.
I then scaled the files to match all the remaining necessary sizes (128, 80, 64, 45, 32). In case you're wondering, no, I didn't make them 128x128 and so on. I made them 1024x1024 and so on as I am supposed to.
I imported all the files into ModBuddy. I set them all to import into VFS.
Under my custom Civilization's XML, I have:
Code:
<PortraitIndex>1</PortraitIndex>
<IconAtlas>MJD_ATLAS</IconAtlas>
Under my Leader's XML, I have:
Code:
<PortraitIndex>0</PortraitIndex>
<IconAtlas>MJD_ATLAS</IconAtlas>
Here, the "0" means top left-most icon and "1" means the icon to the immediate right of "0".
Under an XML file for defining the atlas stuff (which I have set to OnModActivated -> Update Database), I have (and this is the entire file contents):
Code:
<?xml version="1.0" encoding="utf-8"?>
<GameData>
<IconTextureAtlases>
<Row>
<Atlas>MJD_ATLAS</Atlas>
<IconSize>256</IconSize>
<Filename>MJDAtlas256.dds</Filename>
<IconsPerRow>8</IconsPerRow>
<IconsPerColumn>8</IconsPerColumn>
</Row>
<Row>
<Atlas>MJD_ATLAS</Atlas>
<IconSize>128</IconSize>
<Filename>MJDAtlas128.dds</Filename>
<IconsPerRow>8</IconsPerRow>
<IconsPerColumn>8</IconsPerColumn>
</Row>
<Row>
<Atlas>MJD_ATLAS</Atlas>
<IconSize>80</IconSize>
<Filename>MJDAtlas80.dds</Filename>
<IconsPerRow>8</IconsPerRow>
<IconsPerColumn>8</IconsPerColumn>
</Row>
<Row>
<Atlas>MJD_ATLAS</Atlas>
<IconSize>64</IconSize>
<Filename>MJDAtlas64.dds</Filename>
<IconsPerRow>8</IconsPerRow>
<IconsPerColumn>8</IconsPerColumn>
</Row>
<Row>
<Atlas>MJD_ATLAS</Atlas>
<IconSize>45</IconSize>
<Filename>MJDAtlas45.dds</Filename>
<IconsPerRow>8</IconsPerRow>
<IconsPerColumn>8</IconsPerColumn>
</Row>
<Row>
<Atlas>MJD_ATLAS</Atlas>
<IconSize>32</IconSize>
<Filename>MJDAtlas32.dds</Filename>
<IconsPerRow>8</IconsPerRow>
<IconsPerColumn>8</IconsPerColumn>
</Row>
<Row>
<Atlas>MJD_ALPHA_ATLAS</Atlas>
<IconSize>64</IconSize>
<Filename>MJDAlphaAtlas64.dds</Filename>
<IconsPerRow>1</IconsPerRow>
<IconsPerColumn>1</IconsPerColumn>
</Row>
<Row>
<Atlas>MJD_ALPHA_ATLAS</Atlas>
<IconSize>48</IconSize>
<Filename>MJDAlphaAtlas48.dds</Filename>
<IconsPerRow>1</IconsPerRow>
<IconsPerColumn>1</IconsPerColumn>
</Row>
<Row>
<Atlas>MJD_ALPHA_ATLAS</Atlas>
<IconSize>32</IconSize>
<Filename>MJDAlphaAtlas32.dds</Filename>
<IconsPerRow>1</IconsPerRow>
<IconsPerColumn>1</IconsPerColumn>
</Row>
<Row>
<Atlas>MJD_ALPHA_ATLAS</Atlas>
<IconSize>24</IconSize>
<Filename>MJDAlphaAtlas24.dds</Filename>
<IconsPerRow>1</IconsPerRow>
<IconsPerColumn>1</IconsPerColumn>
</Row>
</IconTextureAtlases>
</GameData>
(I made the Alpha icons for the Civ symbol too, but they haven't thrown any errors for me.)
Does anyone know what might be wrong?
When I load the mod, upon selection "Set Up Game" and trying to select a Civ, it stalls for a very short moment and then two alerts pop up saying "Can't load texture MJDAtlas128.dds" and whatever the smaller one is. I imagine they're the 128x128 sized leader icon and the smaller civ icon because both are replaced by garish red squares where the leader and civ icon should go in the civ select menu.