• Our friends from AlphaCentauri2.info are in need of technical assistance. If you have experience with the LAMP stack and some hours to spare, please help them out and post here.

How do I change city names in a mod?

Bratboy

Chieftain
Joined
Aug 3, 2002
Messages
39
I am creating a mod and want to change the city names. I went into the XML folder and found the CIV4Civilization Infos file I altered it in notepad. Changing the city name to the one I wanted. When placing a city in the game the city names apears like this: <City>TXT_KEY_CITY_NAME_ANON</City> instead of just Anon, which is the name that I want to use for my city. Im not sure why the whole text shows up like that in the game itself. Can someone help me?

Thanks
Bratboy:confused:
 
You'll need to create a Civ4GameTextInfos_Cities xml file. There you take your TXT_KEY_CITY_NAME_ANON and define that tag to simply say Anon.
 
Thanks for the reply woodelf. Can you tell me how to create a
Civ4GameTextInfos_Cities xml file?
 
Bratboy said:
Thanks for the reply woodelf. Can you tell me how to create a
Civ4GameTextInfos_Cities xml file?

Try this: It's zipped since you can't attach XML files here.

edit - This will go in your Mod Assets/XML/Text folder.
 

Attachments

or you just replace the TXT_KEY_CITY_NAME_ANON with Anon in the CIV4CivilizationInfos.xml.
i do it also with the civpedia and descriptions and it works perfectly in own my mod :)

for example:
<Description>TXT_KEY_CIV_AMERICA_DESC</Description> replaceable by <Description>Reich der Ableraner</Description>
or
<Civilopedia>TXT_KEY_CIV_AMERICA_PEDIA</Civilopedia> replaceable by <Civilopedia>Das Babylonische Reich entstand.....</Civilopedia>
and so on and so furth.

but it only *works* this way if you will not translate it to another lang.
 
I found the Civ4GameTextInfos_Cities xml file, Im just not sure how to edit it. What to I put in the file?
 
0d1n3oo3Broad said:
or you just replace the TXT_KEY_CITY_NAME_ANON with Anon in the CIV4CivilizationInfos.xml.
i do it with the civpedia and descriptions and it works perfectly in own my mod :)

Yeah, but if you need another language you'll be hosed down the road. ;)
 
Bratboy said:
I found the Civ4GameTextInfos_Cities xml file, Im just not sure how to edit it. What to I put in the file?

Just d/l the one I put up and don't mess with the core file unless you rename them into your mod.
 
Im not altering the core Civ4GameTextInfos_Cities xml file I have one in my mod folder. Im just not sure what I should write in the Civ4GameTextInfos_Cities xml file??
 
Bratboy said:
Im not altering the core Civ4GameTextInfos_Cities xml file I have one in my mod folder. Im just not sure what I should write in the Civ4GameTextInfos_Cities xml file??

Just d/l the one 5 posts up. It's moderately self explanatory and small.

Or you can use 0d1n3oo3Broad's method and simply overwrite the TXT_KEY blather with a name. No biggie if using 1 language.
 
Back
Top Bottom