How do you rename city states?

nokmirt

Emperor
Joined
Feb 14, 2009
Messages
5,088
Location
Iowa USA
It is kind of hard to make anything authentic in a mod, without being able to edit city names. Thanks for any help.
 
Find the appropriate city names in the vanilla NewText files. They're in their somewhere.

Update the old tags to reflect your new text.
 
civ5/assets/gameplay/xml/civilizations/civ5minorcivilizations.xml is where most of the information is located. from there you have txt keys to other files, etc
 
civ5/assets/gameplay/xml/newtext/en_us/CIV5GameTextInfos_CityStates.xml

That's the file you're looking for. Go crazy!

The above file will only give you where the actual city states are named. If you want to rename them, you can also do it from there, but doing that will remove the TXT_KEY stuff and make it un-translatable.
 
It's ok you can edit from the worldbuilder. I just did'nt know the program. I want to leave this first mod without messing with the xml. We can look into that for the next one. One step at a time, and we have plenty of time.
 
It's ok you can edit from the worldbuilder. I just did'nt know the program. I want to leave this first mod without messing with the xml. We can look into that for the next one. One step at a time, and we have plenty of time.

Is it really possible to do this through worldbuilder? I thought renaming city states could only be done through XML editor (which I haven't totally figured out yet). I'm trying to add the likes of Carthage, Inca, Maya, Aztec etc as city states to a real world map. :confused:
 
You can change the name of cities/city-states that exist on a pre-made map in Worldbuilder...

Just like you can change the names of civs and their cities (Civilization/City-states are each a tab within the same window).
 
When I did that in the WB, I ended up with the renamed city on the map, but in the diplomacy screen and everywhere else, the city state was always named as vanilla. So if I renamed Oslo into Lorraine, I'd still end up with Lorraine as a city on the map, but whenever I conducted diplomacy with them, they'd show up as Oslo.

This was seriously confusing with many city states. I really recommend an XML-update when changing city states; it's easy enough to do too.
 
When I did that in the WB, I ended up with the renamed city on the map, but in the diplomacy screen and everywhere else, the city state was always named as vanilla. So if I renamed Oslo into Lorraine, I'd still end up with Lorraine as a city on the map, but whenever I conducted diplomacy with them, they'd show up as Oslo.

This was seriously confusing with many city states. I really recommend an XML-update when changing city states; it's easy enough to do too.

Correct, I experienced the very same thing. It needs to be modded. But I don't feel confident enough about XML editing, so I'll just look around a bit more...
 
Here's the xml for changing the City State names all over. This will change Edinburgh into Wales. I use this for all my City States in my Hundred Years' War mod.

PHP:
    <Update>
      <Set Description="Wales" ShortDescription="Wales" Adjective="Wales" />
      <Where Type="MINOR_CIV_EDINBURGH" />
    </Update>
 
Here's the xml for changing the City State names all over. This will change Edinburgh into Wales. I use this for all my City States in my Hundred Years' War mod.

PHP:
    <Update>
      <Set Description="Wales" ShortDescription="Wales" Adjective="Wales" />
      <Where Type="MINOR_CIV_EDINBURGH" />
    </Update>

So it's as simple as that? Can I replace your "Wales" by any other description I'd like?
 
Here's the xml for changing the City State names all over. This will change Edinburgh into Wales. I use this for all my City States in my Hundred Years' War mod.

PHP:
    <Update>
      <Set Description="Wales" ShortDescription="Wales" Adjective="Wales" />
      <Where Type="MINOR_CIV_EDINBURGH" />
    </Update>

Where is this XML? Also, should I add that on or is it already in the XML? Thanks.
 
This is just an update. This means that you can add it into a completely new xml-file in your project. As you continue to rename city states, you just then edit that file and copy and paste further of these entires below the first one.

It's really simple. Just don't forget the UpdateDatabase operation in the Properties. That's my most common mistake.
 
This is just an update. This means that you can add it into a completely new xml-file in your project. As you continue to rename city states, you just then edit that file and copy and paste further of these entires below the first one.

It's really simple. Just don't forget the UpdateDatabase operation in the Properties. That's my most common mistake.

edit: nvm, thanks I'll figure it out
 
Back
Top Bottom