Easy way to change city names?

evrett37

Prince
Joined
Jul 3, 2008
Messages
346
After years and years I would have thought we could get a drop down list of available city names to pick from instead just being offered the next one on a liner list. But anyhoo..there are some names on that list I dont like...such a Bursa...ugly name that..is there any easy way for the less technically minded to change those city lists?
 
it would require creating a mod, which would require learning to use modbuddy, so it depends on your definition of easy. Once you get past the basics, making some xml edits like city names isn't too hard, even for most new modders.
 
it would probably require looking at the city names in the XML assets, deleting those entries and recreating the list in the order you want.
 
it would probably require looking at the city names in the XML assets, deleting those entries and recreating the list in the order you want.

But, of course, backup the .xml file, just in case. Hacking, rather than modding, is a good way to screw up your install of Civ5, so be careful

But if you want to hack it to remove some city names, then find [Your civ install]\Assets\Gameplay\XML\Civilizations\CIV5Civilizations.xml, and scroll down until you find code that looks like:

Code:
		<Row>
			<CivilizationType>CIVILIZATION_AMERICA</CivilizationType>
			<CityName>TXT_KEY_CITY_NAME_WASHINGTON</CityName>
		</Row>

Delete that, and you've removed a city from the game. But learn to mod.
 
If you want to change the city name or add new ones, rather than deleting the entries there, you should go Assets\Gameplay\XML\NewText\EN_US and take a look at CIV5GameText_Cities.XML

Of course, adding new city names takes two steps. You have to add the key and text string to the EN_US XML, and add a reference to it in the Civilizations XML.

Making a mod would be the best way though.
 
you technically can just fill in the CityName with something like "Washington" but its not the best modding practices, in case you are ever going to make it work for any language other than english.
 
You will have to make a script that looks through a file of city names and reads them into some sort of array or something. Then you need to add a UI element that adds a dropdown list to the game, populated with your city names, minus ones that are already built.

I'd estimate it would take about 5 or 6 hours of screwing around to determine if this is even possible, and a while longer to get it up and running if it is. That's assuming you know what you're doing.
 
You will have to make a script that looks through a file of city names and reads them into some sort of array or something. Then you need to add a UI element that adds a dropdown list to the game, populated with your city names, minus ones that are already built.

I'd estimate it would take about 5 or 6 hours of screwing around to determine if this is even possible, and a while longer to get it up and running if it is. That's assuming you know what you're doing.

*nod* an sqlite db with a table for each civ. lua code to parse the db, choose the right 'civ table' and then random selection based on guiid's would work.

Tap into the current lua/xml to point to the new lua might be easiest...

Now sure I myself would bother with making a drop down list to select from. I'd probably leave someone else to muck about with that bit of gui tomfoolery. :)

I just would like to see a random selection of names rather than an 'in order' list every time.

Call me quirky like that. :p

Shouldn't take a lot of time... once I actually have some. lol
 
But, of course, backup the .xml file, just in case. Hacking, rather than modding, is a good way to screw up your install of Civ5, so be careful

But if you want to hack it to remove some city names, then find [Your civ install]\Assets\Gameplay\XML\Civilizations\CIV5Civilizations.xml, and scroll down until you find code that looks like:

Code:
		<Row>
			<CivilizationType>CIVILIZATION_AMERICA</CivilizationType>
			<CityName>TXT_KEY_CITY_NAME_WASHINGTON</CityName>
		</Row>

Delete that, and you've removed a city from the game. But learn to mod.

You can also just fill in a name on the civ list like so:
<CityName>Washington</CityName>

It's less elegant, but easier if it's only for personal use.

But yeah, back up the originals no mtter what!

BTW, whats wrong with Bursa? It's a pretty important one historically.
 
LOL Just like Gamer Geeks to over think a problem eh?

Learn to mod to change a city name? I think not.

Just click on the city name in your game to open the city screen. Top edge of the city screen, dead center, you have your city hame, above that a shield and a number, showing your city strength. There's also 2 arrows, one forward, one back, to go to the previous or next city. Just below the forward arrow is a little word that reads: "Edit".

Click that and change your city name to what ever you want.

I recomend naming all your citys "Bob". But be different... spell it backwards.

Moderator Action: There's no need to be that rude.
 
Ummm I wasn't being rude, I was joking... notice the "LOL"... laughing...

I'm a "Gamer Geek" as well. I thought all gamer geeks had their sense of humor debugged at birth?

Note: That was a joke as well...
 
If you want to change the city name or add new ones, rather than deleting the entries there, you should go Assets\Gameplay\XML\NewText\EN_US and take a look at CIV5GameText_Cities.XML

I did a minor change in that XML-file (Rome -> Roma in latin) I did not add new cities so I didn't touch anything else.

When I started the game every text on every button was "txt_key... something".

I hope to change some of the names to their original form (like Roman and German names, like: Munich -> München).

What files should I check? I did this with CivIV :confused:
 
Back
Top Bottom