New text not loading

snafusmith

Unit Maker
Joined
Nov 1, 2005
Messages
1,549
Location
I've been everywhere, man
So after a long respite from modding I'm trying to learn the basics of CiV. I'm working through Kael's tutorial, and have got a new civ to work. I worked around the 'import to vfs' issue with my icons. BUT, I cannot for the life of me get my text to show up properly. No matter what I do "TXT_KEY_CIV..." is all I get in game. None of the text regardless of what it is for ever shows up. Any body have any ideas?
 
I think in one of threads it has been found out, that one reason can be that one of the tags you use is already used somewhere else.
The example was a Texas civ, and on the city list where was a key for a city, which was also in the american city list. Then nothing of the text was loaded, no real idea why.

I don't know, if the real modders do now know more about other possible reasons for the issue :dunno:.
 
What he said. If any TXT_KEY entry is loaded twice, then whichever file contains the second copy will not be loaded. You can usually track this down by seeing what other TXT_KEY entries aren't loading. It's just by far the most common in new Civilizations, because they invariably duplicate a name that's already being used for one of the existing civs, but I had it happen with Great Person names in my own mod.

Figuring out exactly which one is conflicting takes a little work, but it's not too complex. Just comment out most (but not all) of the text keys, build, start a new game, and see if the uncommented ones still work. If so, then uncomment a few more and reiterate; if not, then one of the ones you just uncommented in the previous iteration is the culprit.
(This is how a lot of debugging gets done. That and FireTuner, which you should also be using.)
 
Thanks guys, that's exactly what was happening. I had a duplicate city name in my text file and all for some reason it caused all of the other entries not to load. Now I'm well on my way to adding all the major WW1 nations to my new mod. ;)
 
Back
Top Bottom