Editing city names on the XML file

emopants

Chieftain
Joined
Jun 28, 2007
Messages
33
I recently edited the city names in the main file for it under the BTS folder, so it appears in the main game, not having to load any mods. Mainly Japan's to make Tokyo the capital, move Hiroshima, Fukuoka and Kobe up the list as well as adding in Kitakyushu and Sendai. All the others work fine, except Kitakyushu and Sendai, as when they're founded, 'TXT_KEY_CITY_NAME_KITAKYUSHU' is the city name instead of just Kitakyushu. However, I realise why this happens as the others were just swapped around, while these 2 were added and I haven't put what appears ingame on that other file you're supposed to edit, which I haven't gotten around to doing just yet.

After doing this, seemingly unrelated errors things like Tank noises not working, or the 'Water pouring' sound the Great scientist makes when it does something(it came on the event log) not working. The biggest one, is that workers seem to freeze (eg when mining, they stay bending over with the pick touching the ground) aswell as South American workers being replaced by a red dome...

I've since rebooted my computer, and run CHKDSK which fixed everything minus the freezing workers(Haha) I've still got my custom Japanese city names(Still haven't fixed Kitakyushu and Sendai though, too lazy to find the file at the moment haha)

So after all that writing, my question is, did changing the city names for the main game cause all those errors or was it just a coincidence?(and if so, how did they cause the errors :confused:) And now that they have been fixed, is there any way to fix my freezing workers?

Thank you!
 
I recently edited the city names in the main file for it under the BTS folder, so it appears in the main game, not having to load any mods. Mainly Japan's to make Tokyo the capital, move Hiroshima, Fukuoka and Kobe up the list as well as adding in Kitakyushu and Sendai. All the others work fine, except Kitakyushu and Sendai, as when they're founded, 'TXT_KEY_CITY_NAME_KITAKYUSHU' is the city name instead of just Kitakyushu. However, I realise why this happens as the others were just swapped around, while these 2 were added and I haven't put what appears ingame on that other file you're supposed to edit, which I haven't gotten around to doing just yet.

Please excuse my severe lack of experience and any real programming knowledge.

The reason 'TXT_KEY_CITY_NAME_KITAKYUSHU' comes up as that is because that 'variable' is not defined elsewhere. I forget where you can define that variable, but this is done (exclusively?) for multilingual support. For example, when you found a city, Civ uses the first unused city name appropriate to your civilization. For example, the first one America uses is Washington. It doesn't automatically use "Washington," though. Civ uses "TXT_KEY_CITY_NAME_WASHINGTON," which, when playing in English, is Washington.

At least, that's what I've put together just from looking around.

Edit: There's nothing wrong with you naming cities Kitkyushu, if that's what you want the city to be called, you can even put it wherever you want. Only thing is, if you switch to another language (say, Japanese), everything BUT Kitkyushu will appear in Japanese (i.e. with the appropriate characters)... if Civ even supports Japanese, that is.
 
You added city "variable" names to Japan's entry in the "..\Beyond the Sword\Assets\XML\Civilizations\CIV4CivilizationInfos.xml" file, but you have to give those city variable names in the "..\Beyond the Sword\Assets\XML\Text\CIV4GameText_Cities_BTS.xml" file or you'll get cities named as 'TXT_KEY_CITY_NAME_KITAKYUSHU' and such, where they aren't defined.
 
Back
Top Bottom