1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

Editing city names

Discussion in 'Civ4 - Creation & Customization' started by hookmonkey, Oct 26, 2007.

  1. hookmonkey

    hookmonkey evolved monkey

    Joined:
    Feb 21, 2004
    Messages:
    201
    Location:
    the Netherlands
    Some time ago I modified some of the citynames for The Netherlands.

    Here is the citylist I made:

    Code:
    <Cities>
    				<City>TXT_KEY_CITY_NAME_AMSTERDAM</City>
    				<City>TXT_KEY_CITY_NAME_ROTTERDAM</City>
    				<City>TXT_KEY_CITY_NAME_DEN_HAAG</City>
    				<City>TXT_KEY_CITY_NAME_UTRECHT</City>
    				<City>TXT_KEY_CITY_NAME_NIJMEGEN</City>
    				<City>TXT_KEY_CITY_NAME_MAASTRICHT</City>
    				<City>TXT_KEY_CITY_NAME_DELFT</City>
    				<City>TXT_KEY_CITY_NAME_MIDDELBURG</City>
    				<City>TXT_KEY_CITY_NAME_LEIDEN</City>
    				<City>TXT_KEY_CITY_NAME_HAARLEM</City>
    				<City>TXT_KEY_CITY_NAME_BREDA</City>
    				<City>TXT_KEY_CITY_NAME_NEW_AMSTERDAM</City>
    				<City>TXT_KEY_CITY_NAME_DEVENTER</City>
    				<City>TXT_KEY_CITY_NAME_NEW_HOLLAND</City>
    				<City>TXT_KEY_CITY_NAME_GRONINGEN</City>
    				<City>TXT_KEY_CITY_NAME_LEEUWARDEN</City>
    				<City>TXT_KEY_CITY_NAME_ENKHUIZEN</City>
    				<City>TXT_KEY_CITY_NAME_HOORN</City>
    				<City>TXT_KEY_CITY_NAME_TIEL</City>
    				<City>TXT_KEY_CITY_NAME_S_HERTOGENBOSCH</City>
    				<City>TXT_KEY_CITY_NAME_EINDHOVEN</City>
    				<City>TXT_KEY_CITY_NAME_DORDRECHT</City>
    				<City>TXT_KEY_CITY_NAME_VLISSINGEN</City>
    				<City>TXT_KEY_CITY_NAME_KAMPVERE</City>
    				<City>TXT_KEY_CITY_NAME_ROERMOND</City>
    				<City>TXT_KEY_CITY_NAME_ZUTPHEN</City>
    				<City>TXT_KEY_CITY_NAME_ARNHEM</City>
    				<City>TXT_KEY_CITY_NAME_AMERSFOORT</City>
    				<City>TXT_KEY_CITY_NAME_GOUDA</City>
    				<City>TXT_KEY_CITY_NAME_ALKMAAR</City>
    				<City>TXT_KEY_CITY_NAME_MEDEMBLIK</City>
    				<City>TXT_KEY_CITY_NAME_GORKUM</City>
    				<City>TXT_KEY_CITY_NAME_TILBURG</City>
    				<City>TXT_KEY_CITY_NAME_BERGEN_OP_ZOOM</City>
    				<City>TXT_KEY_CITY_NAME_ZWOLLE</City>
    				<City>TXT_KEY_CITY_NAME_HARDERWIJK</City>
    				<City>TXT_KEY_CITY_NAME_VENLO</City>
    				<City>TXT_KEY_CITY_NAME_FRANEKER</City>
    				<City>TXT_KEY_CITY_NAME_HARLINGEN</City>
    				<City>TXT_KEY_CITY_NAME_STAVOREN</City>
    				<City>TXT_KEY_CITY_NAME_ASSEN</City>
    				<City>TXT_KEY_CITY_NAME_ENSCHEDE</City>
    				<City>TXT_KEY_CITY_NAME_APELDOORN</City>
    				<City>TXT_KEY_CITY_NAME_LELYSTAD</City>
    				<City>TXT_KEY_CITY_NAME_ALMERE</City>
    			</Cities>
    In the game cities are being made with names like: TXT_KEY_CITY_NAME.
    Den Haag goes wrong and several others to. I can see no mistakes... does anyone know what I did wrong?

    Thanks in advance
     
  2. Refar

    Refar Deity

    Joined:
    Apr 10, 2005
    Messages:
    4,608
    the TXT_KEY_CITY_DEN_HAAG is a 'link' to a name defined in another File. (I think to make ranslating easier). If the particular Key is not defined there, your city will be called "TXT_KEY_..." in game.

    There are 2 Possible solutions:

    <City>Den Haag</City> will work - here you just use the name directly rather than pointing to another file.

    Otherwise take a look at Assets/Xml/Text/Civ4GameText_Cities.xml (or the equivalent in the Warlords/Bts folders - Dutch are Bts i think.) There you will find someting like this:

    Code:
    	<TEXT>
    		<Tag>TXT_KEY_CITY_NAME_S_GRAVENHAGE</Tag>
    		<English>The Hague</English>
    		<French>La Haye</French>
    		<German>Den Haag</German>
    		<Italian>L'Aia</Italian>
    		<Spanish>La Haya</Spanish>
    	</TEXT>
    Here the TXT_KEY's you point to in other files are defined.
     

Share This Page