View Full Version : Changing "Default" City Names
agoodfella Jul 26, 2006, 06:54 PM 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
Turner Jul 26, 2006, 09:30 PM 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.
Locutus Jul 26, 2006, 09:32 PM 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).
agoodfella Jul 27, 2006, 12:42 AM 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
Locutus Jul 27, 2006, 08:34 AM 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:
<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:
<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.
Chamaedrys Jul 27, 2006, 12:45 PM 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 Jul 27, 2006, 01:56 PM I doubt you can have keys with spaces in it.
The Great Apple Jul 27, 2006, 02:40 PM It wouldn't be a key if you did that - it would just take that as the text.
agoodfella Jul 27, 2006, 05:33 PM 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:
<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:
<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!
|
|