Bratboy
Apr 18, 2006, 12:09 PM
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:
woodelf
Apr 18, 2006, 12:11 PM
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.
Bratboy
Apr 18, 2006, 12:21 PM
Thanks for the reply woodelf. Can you tell me how to create a
Civ4GameTextInfos_Cities xml file?
woodelf
Apr 18, 2006, 12:25 PM
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.
Osymandias
Apr 18, 2006, 12:36 PM
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.
Bratboy
Apr 18, 2006, 12:38 PM
I found the Civ4GameTextInfos_Cities xml file, Im just not sure how to edit it. What to I put in the file?
woodelf
Apr 18, 2006, 12:38 PM
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. ;)
woodelf
Apr 18, 2006, 12:39 PM
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.
Bratboy
Apr 18, 2006, 12:50 PM
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??
woodelf
Apr 18, 2006, 01:00 PM
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.
Bratboy
Apr 18, 2006, 01:03 PM
Thanks for your help guys.......