HELP Custom UNIT Icon not showing on Techtree

PrimoXanthous

~ knightmare13 ~
Joined
Feb 19, 2012
Messages
639
Location
Sa Puso mo
Im making a MOD that makes Chevalier a French UU and remove Chateau from the game. Unit icon is not showing in Techtree though despite showing everywhere else.
Spoiler Missing in Techtree :
Civ5Screen0003.png


Spoiler Showing in Lobby :
Civ5Screen0001.png


Spoiler DOM Screen :
Civ5Screen0002.png


Spoiler Ingame :
Civ5Screen0004.png


Spoiler Code :
Screenshot 2025-09-06 121931.png


everything is properly labeled and imported. BTW which icon the game uses on Techtree is it 45 or 64?
 
This will likely be because of the dds compression you're using - some formats need the file dimensions to be a multiple of 4 to compress, and don't work properly if that's not the case. It's only an issue for the 45 icon size usually, which is why it's working fine for the other areas but not for the tech tree (and I assume also not on the construction panel).

To fix it, the easiest way is to add some extra pixels to the right and bottom of your atlas until the overall file dimensions are a multiple of 4 (eg. if it's just the one icon and it's 45x45, add three pixels to each so that it becomes 48x48). As long as your icon stays in the right position in relation to the top left corner, there shouldn't be any issues.
 
Back
Top Bottom