Changing Civ Icon's Colours

If I only want the top-left icon in my atlas, should I just set IconsPerRow and IconsPerColumn to 1?

Code:
<Row>
            <Atlas>JFD_POLAND_PILSUDSKI_ICON_ATLAS</Atlas>
            <IconSize>128</IconSize>
            <Filename>JFD_PolandPilsudski_IconAtlas128.dds</Filename>
            <IconsPerRow>2</IconsPerRow>
            <IconsPerColumn>2</IconsPerColumn>
        </Row>
got my answer, it's the position
 
so the mod is working :dance: but only if I use SQL :sad:

attaching the mod so someone can help me figure out what's wrong with the XML code
so by alternating the XML and SQL files I've figured out that it's CreateAtlases.xml causing issues

here is the code for the xml (doesn't work):
XML:
<GameData>
    <IconTextureAtlases>
        <Row>
            <Atlas>JFD_POLAND_PILSUDSKI_ICON_ATLAS</Atlas>
            <IconSize>256</IconSize>
            <Filename>JFD_PolandPilsudski_IconAtlas256.dds</Filename>
            <IconsPerRow>2</IconsPerRow>
            <IconsPerColumn>2</IconsPerColumn>
        </Row>
        <Row>
            <Atlas>JFD_POLAND_PILSUDSKI_ICON_ATLAS</Atlas>
            <IconSize>128</IconSize>
            <Filename>JFD_PolandPilsudski_IconAtlas128.dds</Filename>
            <IconsPerRow>2</IconsPerRow>
            <IconsPerColumn>2</IconsPerColumn>
        </Row>
        <Row>
            <Atlas>JFD_POLAND_PILSUDSKI_ICON_ATLAS</Atlas>
            <IconSize>80</IconSize>
            <Filename>JFD_PolandPilsudski_IconAtlas80.dds</Filename>
            <IconsPerRow>2</IconsPerRow>
            <IconsPerColumn>2</IconsPerColumn>
        </Row>
        <Row>
            <Atlas>JFD_POLAND_PILSUDSKI_ICON_ATLAS</Atlas>
            <IconSize>64</IconSize>
            <Filename>JFD_PolandPilsudski_IconAtlas64.dds</Filename>
            <IconsPerRow>2</IconsPerRow>
            <IconsPerColumn>2</IconsPerColumn>
        </Row>
        <Row>
            <Atlas>JFD_POLAND_PILSUDSKI_ICON_ATLAS</Atlas>
            <IconSize>45</IconSize>
            <Filename>JFD_PolandPilsudski_IconAtlas45.dds</Filename>
            <IconsPerRow>2</IconsPerRow>
            <IconsPerColumn>2</IconsPerColumn>
        </Row>
        <Row>
            <Atlas>JFD_POLAND_PILSUDSKI_ICON_ATLAS</Atlas>
            <IconSize>32</IconSize>
            <Filename>JFD_PolandPilsudski_IconAtlas32.dds</Filename>
            <IconsPerRow>2</IconsPerRow>
            <IconsPerColumn>2</IconsPerColumn>
        </Row>


        <Row>
            <Atlas>JFD_POLAND_PILSUDSKI_ALPHA_ATLAS</Atlas>
            <IconSize>128</IconSize>
            <Filename>JFD_PolandPilsudski_AlphaAtlas128.dds</Filename>
            <IconsPerRow>1</IconsPerRow>
            <IconsPerColumn>1</IconsPerColumn>
        </Row>
        <Row>
            <Atlas>JFD_POLAND_PILSUDSKI_ALPHA_ATLAS</Atlas>
            <IconSize>80</IconSize>
            <Filename>JFD_PolandPilsudski_AlphaAtlas80.dds</Filename>
            <IconsPerRow>1</IconsPerRow>
            <IconsPerColumn>1</IconsPerColumn>
        </Row>
        <Row>
            <Atlas>JFD_POLAND_PILSUDSKI_ALPHA_ATLAS</Atlas>
            <IconSize>64</IconSize>
            <Filename>JFD_PolandPilsudski_AlphaAtlas64.dds</Filename>
            <IconsPerRow>1</IconsPerRow>
            <IconsPerColumn>1</IconsPerColumn>
        </Row>
        <Row>
            <Atlas>JFD_POLAND_PILSUDSKI_ALPHA_ATLAS</Atlas>
            <IconSize>45</IconSize>
            <Filename>JFD_PolandPilsudski_AlphaAtlas45.dds</Filename>
            <IconsPerRow>1</IconsPerRow>
            <IconsPerColumn>1</IconsPerColumn>
        </Row>
        <Row>
            <Atlas>JFD_POLAND_PILSUDSKI_ALPHA_ATLAS</Atlas>
            <IconSize>32</IconSize>
            <Filename>JFD_PolandPilsudski_AlphaAtlas32.dds</Filename>
            <IconsPerRow>1</IconsPerRow>
            <IconsPerColumn>1</IconsPerColumn>
        </Row>
        <Row>
            <Atlas>JFD_POLAND_PILSUDSKI_ALPHA_ATLAS</Atlas>
            <IconSize>24</IconSize>
            <Filename>JFD_PolandPilsudski_AlphaAtlas24.dds</Filename>
            <IconsPerRow>1</IconsPerRow>
            <IconsPerColumn>1</IconsPerColumn>
        </Row>
        <Row>
            <Atlas>JFD_POLAND_PILSUDSKI_ALPHA_ATLAS</Atlas>
            <IconSize>26</IconSize>
            <Filename>JFD_PolandPilsudski_AlphaAtlas26.dds</Filename>
            <IconsPerRow>1</IconsPerRow>
            <IconsPerColumn>1</IconsPerColumn>
        </Row>
    </IconTextureAtlases>
</GameData>

and for CreateAtlases.sql (works):
SQL:
INSERT INTO IconTextureAtlases
        (Atlas,                                     IconSize,     Filename,                                         IconsPerRow,     IconsPerColumn)
VALUES    ('JFD_POLAND_PILSUDSKI_ALPHA_ATLAS',        128,         'JFD_PolandPilsudski_AlphaAtlas_128.dds',        1,                1),
        ('JFD_POLAND_PILSUDSKI_ALPHA_ATLAS',        80,         'JFD_PolandPilsudski_AlphaAtlas_80.dds',        1,                 1),
        ('JFD_POLAND_PILSUDSKI_ALPHA_ATLAS',        64,         'JFD_PolandPilsudski_AlphaAtlas_64.dds',        1,                 1),
        ('JFD_POLAND_PILSUDSKI_ALPHA_ATLAS',        48,         'JFD_PolandPilsudski_AlphaAtlas_48.dds',        1,                 1),
        ('JFD_POLAND_PILSUDSKI_ALPHA_ATLAS',        45,         'JFD_PolandPilsudski_AlphaAtlas_45.dds',        1,                 1),
        ('JFD_POLAND_PILSUDSKI_ALPHA_ATLAS',        32,         'JFD_PolandPilsudski_AlphaAtlas_32.dds',        1,                 1),
        ('JFD_POLAND_PILSUDSKI_ALPHA_ATLAS',        24,         'JFD_PolandPilsudski_AlphaAtlas_24.dds',        1,                 1),
        ('JFD_POLAND_PILSUDSKI_ALPHA_ATLAS',        16,         'JFD_PolandPilsudski_AlphaAtlas_16.dds',        1,                 1),
        ('JFD_POLAND_PILSUDSKI_ICON_ATLAS',         256,         'JFD_PolandPilsudski_IconAtlas_256.dds',        2,                 2),
        ('JFD_POLAND_PILSUDSKI_ICON_ATLAS',         128,         'JFD_PolandPilsudski_IconAtlas_128.dds',        2,                 2),
        ('JFD_POLAND_PILSUDSKI_ICON_ATLAS',         80,         'JFD_PolandPilsudski_IconAtlas_80.dds',            2,                 2),
        ('JFD_POLAND_PILSUDSKI_ICON_ATLAS',         64,         'JFD_PolandPilsudski_IconAtlas_64.dds',            2,                 2),
        ('JFD_POLAND_PILSUDSKI_ICON_ATLAS',         45,         'JFD_PolandPilsudski_IconAtlas_45.dds',            2,                 2),
        ('JFD_POLAND_PILSUDSKI_ICON_ATLAS',         32,         'JFD_PolandPilsudski_IconAtlas_32.dds',            2,                 2),
        ('JFD_POLAND_PILSUDSKI_UNIT_FLAG_ATLAS',     32,         'JFD_PolandPilsudski_UnitFlagAtlas_32.dds',        2,                 1);
 
You made a typo - you're telling the game to reference a texture file called "JFD_PolandPilsudski_IconAtlas64.dds", but there is no JFD_PolandPilsudski_IconAtlas64.dds in your mod.

There's a JFD_PolandPilsudski_IconAtlas_64.dds in your mod.

(This error is repeated for all the filenames in <IconTextureAtlases> - you'll either need to fix the spelling in the XML or rename the files themselves)
 
Last edited:
using Sukritact's template to create a new icon for Persia; code is working, but there's a black box around the icon.

Am I doing something wrong here?
 

Attachments

  • 1720838160323.png
    1720838160323.png
    111.5 KB · Views: 21
The black box looks like Layer 25 at the top but I haven't used Sukritact's template in years (I made my own for use in GIMP).

It's decent but it looks like you haven't added the drop shadows yet. Set the shahbaz layer to the current layer and go to Filters > Light and Shadow > Drop Shadow (this looks like a newer version of GIMP, i have no idea what the equivalent path in Photoshop is), set Offset X and Offset Y both to 1, Blur Radius to probably... 3-ish, Opacity ≈ 80, and the color should be black. Keep the resulting drop shadow layer directly underneath the shahbaz.

Then right-click the shahbaz layer > Alpha to Selection, Select > Invert, go back to Filters > Light and Shadow > Drop Shadow, but this time do Offset X = -1, Offset Y -1, same blur radius, Opacity ≈ 60(?), and with the color white. Then move the resulting white drop shadow on top of the shahbaz layer and set its layer mode to Grain Merge, and fiddle with its opacity until it subjectively looks good.
 
Then right-click the shahbaz layer > Alpha to Selection, Select > Invert, go back to Filters > Light and Shadow > Drop Shadow, but this time do Offset X = -1, Offset Y -1, same blur radius, Opacity ≈ 60(?), and with the color white. Then move the resulting white drop shadow on top of the shahbaz layer and set its layer mode to Grain Merge, and fiddle with its opacity until it subjectively looks good.
I make the shadow a separate layer? How do I do that?
 
What? The Drop Shadow tool automatically creates a separate layer. You don't have to do anything in particular to make it a separate layer.
 
Well something is either wrong with my GIMP copy, or something is wrong with me, and judging by past experience it's probably the latter
 
so here
What? The Drop Shadow tool automatically creates a separate layer. You don't have to do anything in particular to make it a separate layer.
Not anymore, it seems?


For some inexplicable reason, the newer version of the filter is actually a bit less helpful than the old one, because it renders your drop shadow into the same layer as your original image element.
The Drop Shadow filter offers a lot of customization options, although it doesn’t let you choose whether or not you want to have your shadow appear on a new layer beneath your selected layer, which seems like a major omission to me.
 
I've been fiddling a lot with Sukritact's template and it seems it's more for display rather than converting to DDS for use in the game (or maybe the template doesn't translate well into GIMP?)
 
Mmm. I use a relatively old version of GIMP (2.8.22) so I don't know if or how it works differently in newer versions.

You might try making a duplicate of the shahbaz layer and then applying the drop shadow to the bottom of the two layers. Or even just making a blank layer below the shahbaz, go back to the shahbaz layer, right click > Alpha to Selection, go back to the blank layer, and then apply the drop shadow.
 
There's no particular reason to assume that what's true of one template made by one guy for one purpose is true of a completely different template made by a completely different guy for a different purpose. Kael's template and Sukritact's template don't really have anything to do with each other.

You would have to check the alpha channel of Sukritact's template to know if it's true for it too. But again, I don't use Sukritact's template, so I'm not the one to be asking about it, and it was designed for use in Photoshop instead of GIMP anyway, so it possibly relies on functionality that GIMP doesn't have.
 
Kael doesn't have his own template, the template he's referring to are the PSD files provided by the developers themselves. Sukritact's own template has an alpha background behind the black "mask" so it's not unreasonable to assume they're for the same purpose
 
made another mod for the Achaemenid icon from scratch. The icon in the leader selection screen is working, but there's a black box around it again (even though it's transparent in the DDS file). The rest of the icons aren't even showing, they only have the default Persian icons

attaching mod
 

Attachments

made another mod for the Achaemenid icon from scratch. The icon in the leader selection screen is working, but there's a black box around it again (even though it's transparent in the DDS file). The rest of the icons aren't even showing, they only have the default Persian icons

attaching mod
I could use some help here... :cringe:
 
Back
Top Bottom