How do I change Chinese names transliterated as Pinyin into Wade-Giles?

TheRealMaestro

Chieftain
Joined
Aug 20, 2013
Messages
42
Location
Earth
I am still rather inexperienced to modding, but there is a list of slight
changes to Civ IV that I wish to make for myself. One of them is the
system of transcribing Chinese into the Latin alphabet. Civ IV uses the
modern "Pinyin" system, but the first version of Civilisation used the
traditional system called "Wade-Giles", invented in the late XIX century
and only replaced in the past few decades (and still in use in Formosa):
http://en.wikipedia.org/wiki/Wade-Giles
http://www.civfanatics.com/civ1/cia/chinese.htm

Some examples of changes between the systems:

Mao Tse-Tung (Wade-Giles) = Mao Zedong (Pinyin)
Peking (Wade-Giles) = Beijing (Pinyin)
Shih Huang-ti (Wade-Giles) = Shi Huangdi (Pinyin)

I want to change the names of cities, leaders, great people, modify
Civilopedia entries, &c, to use the traditional romanisation. Presumably
this would simply consist of locating the right game-files and changing
the names, but where would each of the relevant files be located?
Also, how do I make sure that the game will by default run my
modified files instead of the originals that came with the installation?
Your guidance would be a big help.

Edit: Yes, I indeed am referring to Vanilla Civ IV, not Beyond the
Sword. I lost my copy of BtS years ago and changed computers since then.
 
I want to change the names of cities, leaders, great people, modify Civilopedia entries, &c, to use the traditional romanisation. Presumably this would simply consist of locating the right game-files and changing the names, but where would each of the relevant files be located? Also, how do I make sure that the game will by default run my modified files instead of the originals that came with the installation? Your guidance would be a big help.

The files you want to change are in Assets\XML\Text
The key one is CIV4GameTextInfos_Cities.xml for city names, but there are a few others you'll want to look at (like CIV4GameTextInfos_GreatPeople.xml and CIV4GameText_Civilopedia_CivLeaders.xml).

Do not change the original files. That's asking for heart/headache.

Instead, go to the mods directory and create a new subdirectory, then copy just the path and files you want to change. I'm attaching a copy to get you started.

When you change the files, I suggest only changing the display text, not the keys. In this entry, for example, you'd leave TXT_KEY_CITY_NAME_BEIJING alone while changing the English "Beijing" to "Peking" (funny that you don't have to touch the other languages).
Code:
	<TEXT>
		<Tag>TXT_KEY_CITY_NAME_BEIJING</Tag>
		<English>Beijing</English>
		<French>
			<Text>Pékin</Text>
			<Gender>Male</Gender>
			<Plural>0</Plural>
		</French>
...
	</TEXT>

To load the mod by default, create a shortcut which loads the mod. See this thread. Your shortcut will be something like
Code:
"C:\Program Files\Firaxis Games\Sid Meier's Civilization 4 Complete\Beyond the Sword\Civ4BeyondSword.exe" mod=Wade-Giles

I hope you'll share the finished version.

edit: I uploaded files for BTS, not Vanilla. :P Deleted.

edit2: this may be useful http://forums.civfanatics.com/showthread.php?t=144366
 
Firstly, thank you very much for your advice. It took me two
uninterrupted hours to look up the transliterations (some of these
cities were quite difficult to find in Wade-Giles and I am not
entirely confident in them), but I was able to plough through
the entire list.

I then decided to transcribe the Chinese Great People (I knew
most of them from elsewhere, making it easy) and fixed the
Civilopædia entry on China (which interestingly used a mix of
Wade-Giles and Pinyin, making my job easier). While I was at
it, why not?

I saved all three XML files inside Mods\Wade-Giles (I created
a new folder entitled "Wade-Giles" without quotes) with nothing
else in the folder, opened Civ IV, and loaded the mod. I selected
China and left Mao as my player (his name was still Zedong; I
hadn't changed the leaders' names yet, but I expected that)
and immediately founded a city. The city's suggested name
was "Beijing", not "Peking".

I obviously must not have done everything I needed to. All of
the original files are still intact and unchanged. You mention
"copying the path" as well as the files; may I ask what that
precisely means? I think in that is where my problem lies, but
I am at a loss as to what this "path" is supposed to be or how
I am to set it. Your guidance will allow me to have an unfinished
mod to upload, and I look forward to your further aid.
 
Firstly, thank you very much for your advice. It took me two
uninterrupted hours to look up the transliterations (some of these
cities were quite difficult to find in Wade-Giles and I am not
entirely confident in them), but I was able to plough through
the entire list.

I then decided to transcribe the Chinese Great People (I knew
most of them from elsewhere, making it easy) and fixed the
Civilopædia entry on China (which interestingly used a mix of
Wade-Giles and Pinyin, making my job easier). While I was at
it, why not?

I saved all three XML files inside Mods\Wade-Giles (I created
a new folder entitled "Wade-Giles" without quotes) with nothing
else in the folder, opened Civ IV, and loaded the mod. I selected
China and left Mao as my player (his name was still Zedong; I
hadn't changed the leaders' names yet, but I expected that)
and immediately founded a city. The city's suggested name
was "Beijing", not "Peking".

I obviously must not have done everything I needed to. All of
the original files are still intact and unchanged. You mention
"copying the path" as well as the files; may I ask what that
precisely means? I think in that is where my problem lies, but
I am at a loss as to what this "path" is supposed to be or how
I am to set it. Your guidance will allow me to have an unfinished
mod to upload, and I look forward to your further aid.

Text files go in the game's Assets/XML/Text, so they should go in a similar file structure in your mod folder.

So your text files should be in a folder structure like this:
Mods\Wades-Giles\Assets\XML\Text
 
I obviously must not have done everything I needed to. All of the original files are still intact and unchanged. You mention "copying the path" as well as the files; may I ask what that precisely means? I think in that is where my problem lies, but I am at a loss as to what this "path" is supposed to be or how I am to set it. Your guidance will allow me to have an unfinished mod to upload, and I look forward to your further aid.

My path is
C:\Program Files (x86)\2K Games\Firaxis Games\Sid Meier's Civilization 4 Complete
so my mod path is
C:\Program Files (x86)\2K Games\Firaxis Games\Sid Meier's Civilization 4 Complete\Mods
The original CIV4GameTextInfos_Cities.xml is
C:\Program Files (x86)\2K Games\Firaxis Games\Sid Meier's Civilization 4 Complete\Assets\XML\Text\CIV4GameTextInfos_Cities.xml

So the full path to your modded CIV4GameTextInfos_Cities.xml would be
C:\Program Files (x86)\2K Games\Firaxis Games\Sid Meier's Civilization 4 Complete\Mods\Wade-Giles\Assets\XML\Text\CIV4GameTextInfos_Cities.xml

Because you were able to find the mod and load it, you probably did either
Mods\Wade-Giles\Wade-Giles\Assets\... (extra directory)
or
Mods\Wade-Giles\XML\... (without Assets)
If I load a mod and nothing changes, 9 times out of 10 it's because I made one of those two errors.

If you attach a ZIP of your mod to a reply, I'll try to launch myself and try to help find the problem.
 
Thank you for your advice; I have fixed the directory so that
the three files are in the proper folder. Despite that, it still does
not seem to do any good. Having verified that the files are
where they belong, I tried running the mod again.... And it
still does not work. I still found Beijing by default. The
Civilopædia entries are also unchanged (again noting that
the Civilopædia uses by default a mix of the two romanisations;
those originally Pinyin are still in Pinyin).

Attached is version 0.1 of my Wade-Giles mod as a ZIP (1.1
will be the completed version). I am not sure what is going
wrong here.... What would you suggest I do now to fix this?
 

Attachments

How do you load your mod? Your zip does not tell us the name of the mod's folder.

Before using shortcuts, I would try the traditional way: through BtS - Advanced - Load a Mod. When the menu is there, look at the top right corner: you should see the mod's name.

Also, clear the cache by removing all traces of your mod if any in the (My) Documents/My Games folders. You can also load your mod keeping the shift key pushed: it does not load the cache then.

In the end, I can tell you that when I founded the first city of the Chinese, it was Peking and not Beijing.

PS: third option for the cache, edit the Wade-Giles.ini (it should correspond to the mod's name and is automatically created in the Wade-Giles folder when you launch your mod). Locate this:

Code:
; Custom XML and Python from user folder are not loaded
NoCustomAssets = 0
and change the value to 1. Then, it will never try to load anything from the (My)Documents folder anymore (only for this mod). Don't do that if you have Blue Marble installed there!

Edit: Wait: you started the thread with Vanilla Civ4 icon? Is your mod for Vanilla? There are three folders for mods: one for Vanilla, one for Warlords and one for BtS!
 
Firstly, I am rather impressed that, while my mod doesn't work
for me, it apparently works for other people :lol:

Anyway, I have yet to set up any mechanism to load my modded
version of Civ by default; I went to it by clicking on "Advanced &#8594;
Load a Mod" from the main menu and selecting Wade-Giles in the
list of mods. Presumably, when you load the mod, it goes into the
"mod" folder.

The My Documents\My Games Civ IV folder is also completely empty,
so there is apparently no cache to clear. The Wade-Giles mod folder
goes into Civilization 4\Mods, along with the default American Revolution,
Desert War, Greek World, and Tutorial scenarios.

I apologise if this is not very helpful, but this is becoming bizarre
if my mod works for other people but not me.... Have you any advice?
 
Something must be wrong in the structure of your mod's folders.

Check if you don't have any useless intermediary folder in between Mods/Wade-Giles/Assets/XML/Text. Look at the Tutorial for an example.

Last test, try to launch the Tutorial Mod. If it works, make a copy of it elsewhere, put your text files in the Tutorial/Assets/XML/Text folder, get rid of the other files. Lauch Tutorial again. Does it work? Rename Tutorial into Wade-Giles. Still working?

Edit: aside information: your text file can be unique, be named CIV4GameText_WadeGiles.xml and contain only the tags that you want to change.
 
Check if you don't have any useless intermediary folder in between Mods/Wade-Giles/Assets/XML/Text. Look at the Tutorial for an example.
I have done as you said and checked the directories. My directory
to the text files is:
C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Mods\Wade-Giles\Assets\XML\Text

I can replace "Wade-Giles" with "Tutorial" (both without quotes) in
the above directory and I will get the text files for the tutorial. That
thus cannot be the problem.

Last test, try to launch the Tutorial Mod. If it works, make a copy of it elsewhere, put your text files in the Tutorial/Assets/XML/Text folder, get rid of the other files. Lauch Tutorial again. Does it work? Rename Tutorial into Wade-Giles. Still working?

I started with the steps in your last test. The tutorial that
came with Civ IV works. I copied it to My Documents and changed
the files in the version saved in My Documents, not changing the
name. When I tried to paste it into the Mods folder, I was informed
that it would replace the Tutorial files as the two folders had the
same name. I did not replace it, wishing to avoid modifying the
original folders.

Edit: aside information: your text file can be unique, be named CIV4GameText_WadeGiles.xml and contain only the tags that you want to change.

To be honest, I am not sure what you mean by that. What do you
mean by "tag"?

What would you suggest I try now? Thank you in advance for
your patience and advice; the longer this goes on, the stranger
it becomes.
 
This is a tag:
Code:
<Tag>TXT_KEY_CITY_NAME_BEIJING</Tag>

Spoiler :
And of course I meant the whole thing:
Code:
	<TEXT>
		<Tag>TXT_KEY_CITY_NAME_BEIJING</Tag>
		<English>Peking</English>
		<French>
			<Text>Pékin</Text>
			<Gender>Male</Gender>
			<Plural>0</Plural>
		</French>
		<German>
			<Text>Peking</Text>
			<Gender>Male</Gender>
			<Plural>0</Plural>
		</German>
		<Italian>
			<Text>Pechino</Text>
			<Gender>Female</Gender>
			<Plural>0</Plural>
		</Italian>
		<Spanish>
			<Text>Pekín</Text>
			<Gender>Female</Gender>
			<Plural>0</Plural>
		</Spanish>
	</TEXT>

You don't want to change the Tutorial folder, OK.

What else can I say? Sorry, nothing.
 
Thank you all for whatever help you were able to provide....
I will probably purchase Beyond the Sword soon enough, so at
least I know my mod will work there.

Best wishes.
 
Back
Top Bottom