Dresden
Emperor
- Joined
- Jul 10, 2008
- Messages
- 1,081
It's not that difficult but the font files are very, err "fragile." You have to be quite careful about maintaining the borders between icons including making sure the Alpha Channel doesn't alter them. There are easy to follow instructions in the gamefont tutorial.Is there any special stuff you need to look out for when editing those icons stored in gamefont.tga and gamefont75.tga ? *noobish*
If yes, can you point me to a FAQ dealing with this file ?
Note that it will take more than altering the font file to get different icons to show in version 6c; I whipped up some quick icons based on the SMAC Social Engineering icons when I was trying out the mod thinking it would be a quick fix and it was an utter nightmare getting them to work properly. A massive XML hack was needed that took me forever to come up with and I had also recompiled the DLL along the way to get the enums pointing at the new symbols only to find out later that wasn't going to help...
Anyhow, here are the icons in action:

They aren't perfect (the baseline in particular seems too high although that might be a text issue) but it's a whole lot less confusing and they can always be improved/replaced later. These are the steps needed to use them:
1) Replace the font files in Assets\res\Fonts with the attached ones.
2) Open up Assets\XML\Text\TextPlanet.xml in a text editor that has search & replace. Globally replace [ICON_HEALTHY] with ⇽ and globally replace [ICON_UNHEALTHY] with ⇿ (all the symbols, including the semicolon, are necessary.)
Spoiler SDK Enum info and extra font notes :
The enum changes needed to match the attached font files are: (POWER_CHAR listed for context)
The icon for MAP_X_CHAR is just a copy of the globe icon since I haven't a clue what it's supposed to be used for and PLANET_GLOBAL is just a blue tree for the same reason. The "+3" is used to skip the empty spots at the end of the first line.
Code:
POWER_CHAR,
MAP_X_CHAR = POWER_CHAR+3,
PLANET_GOOD_CHAR,
PLANET_GLOBAL_CHAR,
PLANET_BAD_CHAR,