How to modify the list of city names?

NeoNick

Chieftain
Joined
Jan 13, 2011
Messages
11
I want all new games (playing a specific civilization) to suggest other city names than is standard. For example I want my Egyptian games to suggest "Mooncity", "Newland" and "Riverport" instead of "Thebes", "Memphis" and "Heliopolis".

Where do I change the city names for future games?

I tried without any effect to change the entries under:
/Assets/Gameplay/XML/Civilizations/Civ5Civilizations.xml
and
/Assets/Gameplay/XML/NewText/EN_US/CIV5GameText_Cities.xml

Even if I changed Thebes to Mooncity in both above files, the game still suggests Thebes as the first Egyptian city name. :mad:

I do not aim to make a mod to change the names, just change them once and for all for my favourite civs. Hence I wasn't helped by the thread http://forums.civfanatics.com/showthread.php?t=468274 and I didn't understand it.

(PS I know how to rename a newly founded city. That's not my question. I want the game to suggest my own chosen/customized city names - so I don't have to change the names every time.)

Help would be appreciated. :)
 
Hi, my thread was about the same thing but using mod tools. I tried what you did before and it was not working for me too.

Now I use some lines in a tiny mod and it works fine. (but me, I didn't want to change core game's files).
 
Oh, thanks for sharing your experience. :)

What is the mod called? Can the mob be downloaded or do I write it myself?
 
NeoNick, I believe this should work:

leave the file /Assets/Gameplay/XML/Civilizations/Civ5Civilizations.xml alone; allow it to have
<Row>
<CivilizationType>CIVILIZATION_EGYPT</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_THEBES</CityName>
</Row>

then amend the file /Assets/Gameplay/XML/NewText/EN_US/CIV5GameText_Cities.xml to this:

<Row Tag="TXT_KEY_CITY_NAME_THEBES">
<Text>Moon city</Text>
</Row>

Essentially, you're telling the program that whilst the first city for Egypt is Thebes, it is spelt "Moon city".

However, this would be changing your permanent files. As a mod, all you'd need is an XML file which had the following in it:

<GameData>
<Language_en_US>
<Row Tag="TXT_KEY_CITY_NAME_THEBES">
<Text>Moon city</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_MEMPHIS">
<Text>Riverport</Text>
</Row>
</Language_en_US>
<GameData>
 
With respect to my post above, I got the bit about creating a mod wrong, sorry!

What you actually need is this:

<GameData>
<Language_en_US>
<Update>
<Where Tag="TXT_KEY_CITY_NAME_MEMPHIS"/>
<Set>
<Text>Riverport</Text>
</Set>
</Update>
<Update>
<Where Tag="TXT_KEY_CITY_NAME_THEBES"/>
<Set>
<Text>Moon city</Text>
</Set>
</Update>
</Language_en_US>
</GameData>

I've made it into a mod for you (attached) which you can put in your my games/Sid Meier's Civilization 5/MODS/ folder; you can go directly into the XML file with a text editor (notepad will do the trick very nicely) and add more cities.
 

Attachments

Thank you very much Rob! :bowdown:

:woohoo:

I will try that out a bit later as I'm going over to a friend. Hopefully we can continue play a co-operative single player game we started. He has a projector which displays the game on a huge :crazyeye: white screen.
 
too late, Rob said everything.

it's an homemade mod, juste like Rob's code. we have an alternative way to do the same thing, no idea if one or another is better. I saw the second way on core game files, expansion dlc files exactly.

1st : (just like Rob said)
Code:
<GameData>
    <Language_en_US>

        <Update>
            <Where Tag="TXT_KEY_CITY_NAME_MEMPHIS"/>
            <Set>
            <Text>Riverport</Text>
            </Set>
         </Update>

         <Update>
            <Where Tag="TXT_KEY_CITY_NAME_THEBES"/>
            <Set>
            <Text>Moon city</Text>
            </Set>
        </Update>

    </Language_en_US>
</GameData>

2nd
Code:
<GameData>
    <Language_en_US>

        <delete Tag="TXT_KEY_CITY_NAME_MEMPHIS">
        <delete Tag="TXT_KEY_CITY_NAME_THEBES">
      
        <Row Tag="TXT_KEY_CITY_NAME_MEMPHIS"><Text>Riverport</Text></Row>
        <Row Tag="TXT_KEY_CITY_NAME_THEBES"><Text>Mooncity</Text></Row>

    </Language_en_US>
</GameData>
 
I didn't know that second method - interesting to find other ways of achieving the same thing :)!
 
Back
Top Bottom