Changing City-State Names

Bubba_Thudd

Chieftain
Joined
Feb 12, 2011
Messages
6
Is there a way to do this? I can change the name of the city itself in worldbuilder, but the old city state name is still used in-game.
 
You can do it by wrapping the map in a mod, I don't know if there's another way. It's just updating a value or two:

<Language_en_US>
<Update>
<Where Tag="TXT_KEY_CITYSTATE_SINGAPORE"/>
<Set Text="Jakarta"/>​
</Update>
<Update>
<Where Tag="TXT_KEY_CITYSTATE_SINGAPORE_ADJ"/>
<Set Text="Sundanese"/>​
</Update>​
</Language_en_US>

I can give you more information should you decide to go this way.
 
Ok ;) I just wasn't sure you were willing to go that far :)

The first step is to get this great guide: kael.civfanatics.net/files/ModdersGuide.pdf
That's how I got started. I recommend reading it through (at least up to the point the graphical stuff starts), but you can take a shortcut and go straight to page 14 to create the mod.

On pages 17-18 it shows how to update the game XML. For changing a city state name the full code (just paste it in an XML file) would be:
Spoiler :
<GameData>
<Language_en_US>
<Update>
<Where Tag="TXT_KEY_CITYSTATE_CAPE_TOWN"/>
<Set Text="Great Zimbabwe"/>
</Update>
<Update>
<Where Tag="TXT_KEY_CITYSTATE_CAPE_TOWN_ADJ"/>
<Set Text="Zimbabwean"/>
</Update>
<Update>
<Where Tag="TXT_KEY_CIV5_CAPETOWN_TEXT"/>
<Set Text="Great Zimbabwe is a ruined city that was once the capital of the Kingdom of Zimbabwe, which existed from 1100 to 1450 AD during the country&#8217;s Late Iron Age."/>
</Update>
</Language_en_US>
</GameData>
Replace tags and text with those you prefer. This could be your complete mod! Every game you start with the mod active, it will change the city name accordingly.

You can also add the map on which you want to make the change to the mod. To do this, copy the map in your mod folder and go to the "Content" tab (check the screen on page 63). Fill in "Map" under Type and map_name.Civ5Map under "File". Pick whatever you like for the other fields. Voila, you can now pick given map when you loaded your mod.

Hope this gets you there! Happy modding :)
 
Back
Top Bottom