Does anyone know how to make a mod to replace unit icons? I am asking because a data mod I made caused all the new unit icons (encrypted in a different way from the older unit icons) not to show up when I ran the data mod. The new ones which don’t appear are the ones you can see the images for below.
I am hoping by having the icon mod (a graphic mod duplicating existing unit icons) will compel the game to show the icons correctly.
New icons do not work in datamods. We as humans are not that advanced yet to have this ability.
Well… That is something I never messed with much. (I think I recall messing with it a little with theming but, not much.) I am honestly curious how to do it. (if even possible.) I’ll edit post if I find any way to do so. But from what I’ve heard/read, it doesn’t seem possible.
edit: I have a working theory how it works. Need to test it though.
I seek your guidance on this.
Okay so, I do have a ‘working theory’ but, this overwrites the current game data. (I will try to move it over to a mod soon but, I just wanted to take this one step at a time.) As you can see from this image, (bottom left.) I managed to get it to work.
edit: okay so, the modded version does not work. Only the game data one works… Cool… Umm… Not really sure what to say here… You ‘could’ modify the game data but, I don’t recommend that. (but that does work.)
edit: But, what I found is there is a script that builds all the atlas’s. (I don’t know if that is required or just the individual file though. (I will have to test it later. I am gonna eat lunch right now. I’ll check when I come back.)
edit: So, I tried just editing the main file directly (105_50730) and that did not work. So, most likely, you will have to run the script/edit the atlas file instead.
edit: you may be able to edit this file directly. I am unsure.
textures\atlas\ [resolution] \ingameunits.dds
You may need to run a ‘powershell’ script. Unsure if it’s required but if so, I used ‘build_all_atlases.ps1’
edit: The image itself is pretty self explanatory. It is just a tile sheet of each icon in order from 000 to 649. (25x26)
edit: okay, I dunno how the math works out but, it goes to 701… shrugs
edit: SD is 128x128, HD and UHD are 256x256.
edit: gonna try an experiment. I am going to clear the unit icons to all black and see what happens. (modded directory though.)
edit: Nothing is effected. As expected… Now, let’s try the game data…
edit: and that works in game data… So, either one of the following:
1: It’s a modding bug.
2: They don’t want us to mod unit Icons/widgetui stuff.
3: Not implemented (yet).
edit: If you are ‘willing’, you can overwrite the games data as needed but, I highly recommend you don’t/at the very least, make back up data of the originals first before doing so. Then, edit ‘ingameunits.dds’ as your heart is content.
edit: if you don’t understand what I mean, here is a 128x128 [of 25x26] (SD) blank grid sheet. (for example.)
edit: there is also this directory… resources\ _common\wpfg\resources\uniticons (I dunno if these will work though… Maybe…)
edit: Nope…
Icons work in a UI mod (mod without the .dat file)
The huge problem with them is that they don’t load in multiplayer lobbies and that you need to subscribe to them then restart aoe so icons activate.
Can we add new icons and have a data mod read them?


