Unit Renaming

Mcclaud

Chieftain
Joined
Oct 2, 2009
Messages
97
Location
Lincolnshire, United Kingdom
Hi everyone.

I want to rename several units, and already tried.

However, when I rename the Jet Fighter to F-16 and save, the game stops loading at XML (uncached).

I must be doing something wrong, does anyone know what it is?

Thanks.
 
There are two methods to change the name of a unit in game. The first method is slightly more complex than the second but is a good habit to develop, especially if you want to change a lot of units, the second is simple, fast but would not be regarded as best practice.

Method 1. Open Civ4UnitInfos.XML and search for the unit whose name you want to change (in this case JET_FIGHTER), look for the tag
Code:
<Description>TXT_KEY_UNIT_JET_FIGHTER</Description>
Next open CIV4GameTextInfos_Objects.xml
As this unit is present in Civ4 Vanilla you will find it in Firaxis Games\Sid Meier's Civilization 4\Assets\XML\Text.
Units introduced in Warlords are in Firaxis Games\Sid Meier's Civilization 4\Warlords\Assets\XML\Text. (CIV4GameText_Warlords_Objects.xml)
And units new to BTS are in Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Assets\XML\Text (CIV4GameText_Objects_BTS.xml).

NB Never alter original game files, if you mess it up its a lot of trouble to put it right. best practice is to;

In Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods create a new folder what ever you want to call your mod. Inside that a folder called Assets, inside that a folder called XML, inside that a folder called Text.
your file directory should look like this.
Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\Your mod name\Assets\XML\Text

Now copy and paste CIV4GameTextInfos_Objects.xml and alter the entry to F-16 as shown below(note there are 4 different languages in the entry, you only need alter the language you use)
Spoiler :
Code:
	<TEXT>
		<Tag>TXT_KEY_UNIT_JET_FIGHTER</Tag>
		<English>[COLOR="Red"]F-16[/COLOR]</English>
		<French>
			<Text>Chasseur à réaction</Text>
			<Gender>Male</Gender>
			<Plural>0</Plural>
		</French>
		<German>
			<Text>Düsenjäger</Text>
			<Gender>Male</Gender>
			<Plural>0</Plural>
		</German>
		<Italian>
			<Text>Jet da combattimento:Jet da combattimento</Text>
			<Gender>Male</Gender>
			<Plural>0:1</Plural>
		</Italian>
		<Spanish>
			<Text>Caza a reacción:Cazas a reacción</Text>
			<Gender>Male</Gender>
			<Plural>0:1</Plural>
		</Spanish>
	</TEXT>

Method 2. Is to alter the <Description> entry in CIV4UnitInfos.xml (you should still create a mod with the above method and copy and paste the CIV4UnitInfos.xml from BTS Assets into a folder called Units)
Find the unit and replace TXT_KEY_UNIT_JET_FIGHTER with this.
Code:
<Description>F-16</Description>
 
Ok, I've managed to do it, the only downside is that I have to load the mod to make it work, and if I do, I can't use any existing saves.

Anyway around this?

EDIT: Nevermind, I managed to do it.
 
Ok, I've managed to do it, the only downside is that I have to load the mod to make it work, and if I do, I can't use any existing saves.

Anyway around this?

EDIT: Nevermind, I managed to do it.

:goodjob: I don't know if you did but you can create a short cut to your mod so it loads directly without loading vanilla BTS first.
 
Top Bottom