Changing "Default" City Names

agoodfella

Prince
Joined
Nov 12, 2001
Messages
591
Location
USA
I have successfully located, copied and moved the appropriate XML file which contains the "default" cities (CIV4CivilizationInfos), however,

When I tried to add a city (which was a two word city, e.g. Los Angeles), I got this message when the build came to that city:

TXT_KEY_CITY_NAME_LOS_ANGELES

I thought I copied and pasted a line correctly, but I guess I must have done something wrong???

Any ideas?

Thanks
 
Moderator Action: Thread moved to C&C

I also deleted your question in the other thread. Please don't post the same problem in multiple parts of the forum. Have a little patience, the question will get answered.
 
TXT_KEY_CITY_NAME_LOS_ANGELES is only the name tag, not the actual name. The actual names are stored seperately, because they need to be localised. All the localised text is in the Assets/XML/Text folder. The city names are in the CIV4GameTextInfos_Cities.xml file in that folder. Open it up, copy an existing entry, replace the tag with TXT_KEY_CITY_NAME_LOS_ANGELES and the various language entries with "Los Angeles" (although I guess if you play in English you only need to replace the English entry, no real need to replace the other ones as long as you don't share your mod with non-English speakers).
 
Sorry, just so that I understand this correctly (I know, I'm such a tech-DUMMY):

1) I take CIV4GameTextInfos_Cities.xml (from the original Warlords or Civ folder in Program Files) -> make a COPY?

2) Paste into My Games -> [WARLORDS] -> Custom Assets -> [Modified file]

Does this sound about right?

Thanks
 
Well, that's probably a good idea, but you don't have to if you don't want to (though if you don't that could get you in trouble with future patches, MP games, etc -- this goes for all changes you make to any of the files).

I meant that you have to make a copy an existing entry FROM CIV4GameTextInfos_Cities.xml and change it to fit your needs.

So e.g. take the first entry:

Code:
	<TEXT>
		<Tag>TXT_KEY_CITY_NAME_WASHINGTON</Tag>
		<English>Washington</English>
		<French>
			<Text>Washington</Text>
			<Gender>Male</Gender>
			<Plural>0</Plural>
		</French>
		<German>
			<Text>Washington</Text>
			<Gender>Male</Gender>
			<Plural>0</Plural>
		</German>
		<Italian>
			<Text>Washington</Text>
			<Gender>Female</Gender>
			<Plural>0</Plural>
		</Italian>
		<Spanish>
			<Text>Washington</Text>
			<Gender>Female</Gender>
			<Plural>0</Plural>
		</Spanish>
	</TEXT>

And change it to fit your needs:

Code:
	<TEXT>
		<Tag>TXT_KEY_CITY_NAME_LOS_ANGELES</Tag>
		<English>Los Angeles</English>
		<French>
			<Text>Los Angeles</Text>
			<Gender>Male</Gender>
			<Plural>0</Plural>
		</French>
		<German>
			<Text>Los Angeles</Text>
			<Gender>Male</Gender>
			<Plural>0</Plural>
		</German>
		<Italian>
			<Text>Los Angeles</Text>
			<Gender>Female</Gender>
			<Plural>0</Plural>
		</Italian>
		<Spanish>
			<Text>Los Angeles</Text>
			<Gender>Female</Gender>
			<Plural>0</Plural>
		</Spanish>
	</TEXT>

Note you have to do both this AND do what you already did in CIV4CivilizationInfos.xml. If you do both, it should work.
 
Locutus said:
Open it up, copy an existing entry, replace the tag with TXT_KEY_CITY_NAME_LOS_ANGELES and the various language entries with "Los Angeles" (although I guess if you play in English you only need to replace the English entry, no real need to replace the other ones as long as you don't share your mod with non-English speakers).

Or just replace TXT_KEY_CITY_NAME_LOS_ANGELES with "Los Angeles" in the CivilizationsInfos.xml. That save time and isn't a problem if the city has just one name.;)
 
Locutus said:
Well, that's probably a good idea, but you don't have to if you don't want to (though if you don't that could get you in trouble with future patches, MP games, etc -- this goes for all changes you make to any of the files).

I meant that you have to make a copy an existing entry FROM CIV4GameTextInfos_Cities.xml and change it to fit your needs.

So e.g. take the first entry:

Code:
	<TEXT>
		<Tag>TXT_KEY_CITY_NAME_WASHINGTON</Tag>
		<English>Washington</English>
		<French>
			<Text>Washington</Text>
			<Gender>Male</Gender>
			<Plural>0</Plural>
		</French>
		<German>
			<Text>Washington</Text>
			<Gender>Male</Gender>
			<Plural>0</Plural>
		</German>
		<Italian>
			<Text>Washington</Text>
			<Gender>Female</Gender>
			<Plural>0</Plural>
		</Italian>
		<Spanish>
			<Text>Washington</Text>
			<Gender>Female</Gender>
			<Plural>0</Plural>
		</Spanish>
	</TEXT>

And change it to fit your needs:

Code:
	<TEXT>
		<Tag>TXT_KEY_CITY_NAME_LOS_ANGELES</Tag>
		<English>Los Angeles</English>
		<French>
			<Text>Los Angeles</Text>
			<Gender>Male</Gender>
			<Plural>0</Plural>
		</French>
		<German>
			<Text>Los Angeles</Text>
			<Gender>Male</Gender>
			<Plural>0</Plural>
		</German>
		<Italian>
			<Text>Los Angeles</Text>
			<Gender>Female</Gender>
			<Plural>0</Plural>
		</Italian>
		<Spanish>
			<Text>Los Angeles</Text>
			<Gender>Female</Gender>
			<Plural>0</Plural>
		</Spanish>
	</TEXT>

Note you have to do both this AND do what you already did in CIV4CivilizationInfos.xml. If you do both, it should work.

Thank you very much!
 
Back
Top Bottom