City names...

jackfletch

Chieftain
Joined
Mar 3, 2008
Messages
10
Location
Middlesbrough, UK
Hello all! Yet again I need help, but this time it is to do with city names. At the mo I'm making my own little Europe mod (I wont be publishing it due to it being my first ever CIV IV mod, so its just practice! ;)) and I've hit a snag! Basiclly I've been messing around with city names, such as, instead of classical Roman city names I've changed them too 'modern' Italian city names eg. Turin and Milan. Now in game, when I've been testing it, more often than not the city name appears as such; TXT_KEY_CITY_NAME_MILAN, just as its set out in the XML....?!?!? I'd normally put it down to my own error but then some cities are being named as normal, without the XML before hand. Now I've checked the XML over and over and there doesnt seem to be anything wrong with what I've typed, so if anyone has an idea...PLEASE TELL ME WHAT THE HELL IS WRONG!!!

Cheers!
 
Post the sections of text. There may be something wrong.
There may also be some kind of miniscule error, the type too small to actually crash the game, like indenting (I've heard the game can fail with indentation errors, but never seen it myself.)
 
Have you defined that TXT_KEY_CITY_NAME_MILAN ?
When introducing a new TXT key you need to actually povide text for that key, by defining it in one of the CIV4GameText_***.XML files. (You can make your own for your mod e.g. CIV4GameText_MyMod.XML or something).
 
yep, you'll need to define any new text in your XML\TEXT\CIV4GameTextYOURMOD.XML file

replace YOURMOD with the name of your mod. You only need to add new entries to this, any entry not found in it, civ will look through the original civ text files.

Its pretty straight forward and easy once you get the hang of it.
 
Cheers guys! Much appreciation all round for helping a newby like me! Like I've said before I've been playing for years but only now have I started to mod and I'm still learning!

Cheers again!
 
You can also just type the city name in to the info file instead of using a TXT reference. If it doesn't find the reference civ just uses whatever text is in the tag, which is why you get that. This is poor form I guess, but I do it for short entries like Description. The proper name of something can be the same in all languages.
 
Top Bottom