Where are the TXT_KEY_TRAIT_XXX?

Manifold

ModderProtectionAdvocate
Joined
Aug 27, 2007
Messages
1,580
i try to make a new trait for a leader. to write the text i need some [ICON_XXX]. which icons are possible? where do i find them? thanks in advance
 
Text icons are in GameInfo/CIV5IconFontMapping.xml. There's about 80 of them. The first few are used heavily (ICON_GOLD, ICON_PRODUCTION, etc.) but the later ones like flower, pirate, omega, etc. are also pretty useful for new resources and such, which is what I use them for in my mod. Most of the names are pretty self-explanatory, and it's easy enough to see what they all do for yourself.
Note that these are only for Text icons, as in, the little hammer/citizen/whatever icons you see in the Civilopedia or help texts. Anything bigger than that (like tech icons) will be in an Icon Atlas, and those files just aren't available without some file unpacking.

As to the question in your title, the TXT_KEY_* entries are all in NewText/en_US/CIV5GameTextInfos_*.xml (assuming you're using American English; replace the en_US with the appropriate directory for you). The one you probably want is the _Civilizations.xml, but it might be in _Objects, _Jon, or the massive _Civilopedia.xml file. (I don't have the files in front of me.)
 
GameInfo/CIV5IconFontMapping.xml did it:) for what do you need the Shuriken?

the TXT_KEY_TRAIT_XXX are still missing, but thats unimportant, merci
 
GameInfo/CIV5IconFontMapping.xml did it:) for what do you need the Shuriken?

I use that for one of my new strategic resources, Dilithium. I saw "ICON_STAR", and since it was a fusion-related element it seemed appropriate. I didn't realize they meant "throwing star" instead of the big glowy ball of gas kind. I also use the Pirate (for the Information luxury resource), Flower (Omnicytes strategic resource), Omega (Neutronium strategic resource), and I forget what I used for the Ambrosia luxury.

It's really easy to see what these all look like; just make a text string that goes through them all in order, for debugging purposes, and assign it to some civilopedia entry. Otherwise, you'll never know what [ICON_WTF1] displays.
 
Back
Top Bottom