How to install a Leaderhead in CIV IV BTS

TheLastOne36

Deity
Joined
Jan 17, 2007
Messages
14,045
So I am about to reformat my computer, and was looking through old files that needed to be saved or not. One of the files I found was a text document about some guide I created long ago about adding leaderheads to CIV IV BTS due to the amount of people complaining about not knowing how to install them in the Graphics forum So I created a guide about a year ago. (But don't think I ever posted it)

I found this text document today because as I said, I am about to reformat my computer, and decided to post it.

I realize some links might be outdated, some images might be broken and maybe something was left incomplete/unclear, but I will correct these things when I get my computer up and running again. =)

So here it is:
-----------------------------------------------------------------------------------Adding leaderheads into the game is quite simple actually. It requires quite simple edits to the XML, a new folder, and of coarse the new leaderhead! :D


Your Materials:
You don't need any materials other than the ones that come with your computer actually. What is required is CIV IV and a program to edit .xml files.

For an xml editing program, notepad works just fine, but I, and most other modder's on this site like to use a program called Notepad++. Notepad++ allows you to work easily and simply with multiple XML files(and others as well) at the same time, and I highly recommend it if you are working with lots and lots of files, if for example, you plan to add 30 leaders and civs to your game.

Another thing about Windows Notepad, is that sometimes when you save xml files, it might corrupt them, which is a problem i've had several times before switching to Notepad++. Now, on to installing your leaderhead!

PART 1:
Finding your leader!

This is the easiest and probably most fun part of adding in a new leader. :lol:

Click this link to go to the Leaderhead Database and Request thread which within, contains most of the leaderheads made by the CivFanatics community. Browse for the leaderhead of your choice, if more than one, pick which one you like the best and download it.

When download is complete, find the .zip .rar or .7z and extract it.

The downloaded leaderhead should include the following files:

Button_Leadername.dds ----- Or some variation of that like btn_leader.dds but it will be a .dds file

leadername.nif
leadername.kfm ----- These are the art files. They are most important.

leadername_BG.kfm ----- This is the background picture.

If you are missing a button, go to the leader maker's thread and complain, rant and whine about it, until they give you what you demand! :p (BUT do not complain about how to add a leaderhead in their thread, this thread is for that, their thread is for their artwork)

I will be adding Emperor Constantine by Ekmek to my mod's Roman Empire. He will be used in the tutorial. Here is a picture of what the artfiles look like:
(image will be reuploaded)
Highlighted in blue are the files that are most important.

Sometimes, your leaderhead will come with all the required XML files. That is good, just move it to the proper folder (see part 2) and fix the Leader_CIV4Artdefines_Leaderhead.

If you have everything than good. Move on to Part 2.

Part 2: Mod location and .xml files

Go to your BTS folder and double click on Mods. Create a new folder called "My Mod" or whatever you want.

In this folder you must include a file called "MyMod.Ini" or whatever.

In that .Ini file, include this code:

Code:
[CONFIG]

; Custom Art from user folder is not loaded
NoCustomArt = 1

; Custom XML and Python from user folder are not loaded
NoCustomAssets = 1

; No Custom Scenario option in main menu
NoCustomScenario = 0

; Scenario file (Single player)
ForceScenario = 0

; No team play allowed
NoTeams = 0

; Always start in the standard era
ForceStandardEra = 0

; Skip the Main menu
SkipMainMenu = 0

; This mod is only for single player games
SinglePlayerOnly = 0

; Allow public maps to be used with this mod
AllowPublicMaps = 1

; Mod Image file
ImageFile = 0

; Name of Mod
Name = [B]My Mod[/B]

; Description of Mod
Description = Generic Mod

; Modular XML Loading
ModularLoading = 1

The bold is what you must change. Change it to whatever the mod is called. If it is called "Constantine of Rome" than it should read: Name = Constantine of Rome

Everyone clear? Now let's move on.

Create a folder called "Assets". Inside Assets, create another folder called "Modules". Inside that folder, create another folder called "Custom Leaderheads". Inside Custom Leaderheads, make one more folder called "Constantine" or whatever leader you are modding into the game.

Go back to your downloaded leaderhead, and copy and paste all the files in the folder (.dds, .kfm, .nif, .kf etc.). It should look like this:


Part 3

Now this is where most mistakes are made.

Create the following files in the leaderhead Folder:

Leader_CIV4ArtDefines_Leader.xml
Leader_CIV4ArtDefinesSchema.xml
Leader_CIV4CivilizationInfos.xml
Leader_CIV4CivilizationsSchema.xml
Leader_CIV4GameText.xml
Leader_CIV4LeaderHeadInfos.xml

There are other files that can be included for further specialization, but these are the files needed to get the leaderhead working.


Open up the Leader_CIV4ArtDefinesSchema.xml and put this code in:
Spoiler :
Code:
<!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by Alex Mantzaris (Firaxis Games) -->
<!-- Sid Meier's Civilization 4 -->
<!-- Copyright Firaxis Games 2005 -->
<!-- -->
<!-- Art Defines Schema -->
<Schema xmlns="urn:schemas-microsoft-com:xml-data" xmlns:dt="urn:schemas-microsoft-com:datatypes">
	<ElementType name="SelectionSound" content="textOnly"/>
	<ElementType name="ActionSound" content="textOnly"/>
	<ElementType name="TrainSound" content="textOnly"/>
	<ElementType name="PatrolSound" content="textOnly"/>
	<ElementType name="AudioRunTypeLoop" content="textOnly"/>
	<ElementType name="AudioRunTypeEnd" content="textOnly"/>
	<ElementType name="AudioRunSounds" content="eltOnly">
		<element type="AudioRunTypeLoop" minOccurs="0" maxOccurs="1"/>
		<element type="AudioRunTypeEnd" minOccurs="0" maxOccurs="1"/>
	</ElementType>
	<ElementType name="Type" content="textOnly"/>
	<ElementType name="LSystem" content="textOnly"/>
	<ElementType name="RouteType" content="textOnly"/>
	<ElementType name="Path" content="textOnly"/>
	<ElementType name="Grid" content="textOnly"/>
	<ElementType name="Detail" content="textOnly"/>
	<ElementType name="Connections" content="textOnly"/>
	<ElementType name="ModelConnections" content="textOnly"/>
	<ElementType name="Rotations" content="textOnly"/>
	<ElementType name="ModelFileKey" content="textOnly"/>
	<ElementType name="Animated" content="textOnly" dt:type="boolean"/>
	<ElementType name="ModelFile" content="textOnly"/>
	<ElementType name="LateModelFile" content="textOnly"/>
	<ElementType name="BorderFile" content="textOnly"/>
	<ElementType name="Tag" content="textOnly"/>
	<ElementType name="Name" content="textOnly"/>
	<ElementType name="TextureIndex" content="textOnly" dt:type="int"/>
	<ElementType name="DeltaType" content="textOnly"/>
	<ElementType name="RouteModelInfo" content="eltOnly">
		<element type="ModelFile"/>
		<element type="LateModelFile"/>
		<element type="ModelFileKey"/>
		<element type="Animated"/>
		<element type="RouteType"/>
		<element type="Connections"/>
		<element type="ModelConnections"/>
		<element type="Rotations"/>
	</ElementType>
	<ElementType name="RouteModelInfos" content="eltOnly">
		<element type="RouteModelInfo" maxOccurs="*"/>
	</ElementType>
	<ElementType name="Civ4RouteModelInfos" content="eltOnly">
		<element type="RouteModelInfos" maxOccurs="*"/>
	</ElementType>
	<ElementType name="Civ4RiverModelInfos" content="eltOnly">
		<element type="RiverModelInfos" maxOccurs="*"/>
	</ElementType>
	<ElementType name="RiverModelInfo" content="eltOnly">
		<element type="ModelFile"/>
		<element type="BorderFile"/>
		<element type="TextureIndex"/>
		<element type="DeltaType"/>
		<element type="Connections"/>
		<element type="Rotations"/>
	</ElementType>
	<ElementType name="RiverModelInfos" content="eltOnly">
		<element type="RiverModelInfo" maxOccurs="*"/>
	</ElementType>
	<ElementType name="LayerOrder" content="textOnly" dt:type="int"/>
	<ElementType name="AlphaShader" content="textOnly" dt:type="boolean"/>
	<ElementType name="TextureBlend01" content="textOnly"/>
	<ElementType name="TextureBlend02" content="textOnly"/>
	<ElementType name="TextureBlend03" content="textOnly"/>
	<ElementType name="TextureBlend04" content="textOnly"/>
	<ElementType name="TextureBlend05" content="textOnly"/>
	<ElementType name="TextureBlend06" content="textOnly"/>
	<ElementType name="TextureBlend07" content="textOnly"/>
	<ElementType name="TextureBlend08" content="textOnly"/>
	<ElementType name="TextureBlend09" content="textOnly"/>
	<ElementType name="TextureBlend10" content="textOnly"/>
	<ElementType name="TextureBlend11" content="textOnly"/>
	<ElementType name="TextureBlend12" content="textOnly"/>
	<ElementType name="TextureBlend13" content="textOnly"/>
	<ElementType name="TextureBlend14" content="textOnly"/>
	<ElementType name="TextureBlend15" content="textOnly"/>
	<ElementType name="Description" content="textOnly"/>
	<ElementType name="NIF" content="textOnly"/>
	<ElementType name="KFM" content="textOnly"/>
	<ElementType name="SHADERNIF" content="textOnly"/>
	<ElementType name="Button" content="textOnly"/>
	<ElementType name="FontButtonIndex" content="textOnly" dt:type="int"/>
	<ElementType name="fScale" content="textOnly"/>
	<ElementType name="fUpdateRate" content="textOnly"/>
	<ElementType name="fInterfaceScale" content="textOnly"/>
	<ElementType name="bActAsLand" content="textOnly" dt:type="boolean"/>
	<ElementType name="bActAsAir" content="textOnly" dt:type="boolean"/>
	<ElementType name="bAnimated" content="textOnly" dt:type="boolean"/>
	<ElementType name="bIsProjectile" content="textOnly" dt:type="boolean"/>
	<ElementType name="bRiverArt" content="textOnly" dt:type="boolean"/>
	<ElementType name="TileArtType" content="textOnly"/>
	<ElementType name="LightType" content="textOnly"/>
	<ElementType name="bExtraAnimations" content="textOnly" dt:type="boolean"/>
	<ElementType name="Leaderhead" content="textOnly"/>
	<ElementType name="NoShaderNIF" content="textOnly"/>
	<ElementType name="BackgroundKFM" content="textOnly"/>
	<ElementType name="ShadowNIF" content="textOnly"/>
	<ElementType name="ShadowAttachNode" content="textOnly"/>
	<ElementType name="fShadowScale" content="textOnly"/>
	<ElementType name="ShadowDef" content="eltOnly">
		<element type="ShadowNIF"/>
		<element type="ShadowAttachNode"/>
		<element type="fShadowScale"/>
	</ElementType>
	<ElementType name="iDamageStates" content="textOnly" dt:type="int"/>
	<ElementType name="Texture" content="textOnly"/>
	<ElementType name="fWidth" content="textOnly"/>
	<ElementType name="fLength" content="textOnly"/>
	<ElementType name="fTaper" content="textOnly"/>
	<ElementType name="fFadeStartTime" content="textOnly"/>
	<ElementType name="fFadeFalloff" content="textOnly"/>
	<ElementType name="TrailDefinition" content="eltOnly">
		<element type="Texture"/>
		<element type="fWidth"/>
		<element type="fLength"/>
		<element type="fTaper"/>
		<element type="fFadeStartTime"/>
		<element type="fFadeFalloff"/>
	</ElementType>
	<ElementType name="fBattleDistance" content="textOnly"/>
	<ElementType name="fExchangeAngle" content="textOnly"/>
	<ElementType name="bSmoothMove" content="textOnly" dt:type="boolean"/>
	<ElementType name="fAngleInterpRate" content="textOnly"/>
	<ElementType name="fBankRate" content="textOnly"/>
	<ElementType name="fRangedDeathTime" content="textOnly"/>
	<ElementType name="bCombatExempt" content="textOnly" dt:type="boolean"/>
	<ElementType name="bActAsRanged" content="textOnly" dt:type="boolean"/>
	<ElementType name="InterfaceArtInfo" content="eltOnly">
		<element type="Type"/>
		<element type="Path"/>
	</ElementType>
	<ElementType name="InterfaceArtInfos" content="eltOnly">
		<element type="InterfaceArtInfo" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="MovieArtInfo" content="eltOnly">
		<element type="Type"/>
		<element type="Path"/>
	</ElementType>
	<ElementType name="MovieArtInfos" content="eltOnly">
		<element type="MovieArtInfo" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="MiscArtInfo" content="eltOnly">
		<element type="Type"/>
		<element type="Path"/>
		<element type="fScale"/>
		<element type="NIF"/>
		<element type="KFM"/>
	</ElementType>
	<ElementType name="MiscArtInfos" content="eltOnly">
		<element type="MiscArtInfo" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="UnitArtInfo" content="eltOnly">
		<element type="Type"/>
		<element type="Button"/>
		<element type="fScale"/>
		<element type="fInterfaceScale"/>
		<element type="bActAsLand"/>
		<element type="bActAsAir"/>
		<element type="NIF"/>
		<element type="KFM"/>
		<element type="SHADERNIF" minOccurs="0"/>
		<element type="ShadowDef"/>
		<element type="iDamageStates" minOccurs="0"/>
		<element type="TrailDefinition" minOccurs="0"/>
		<element type="fBattleDistance"/>
		<element type="fRangedDeathTime"/>
		<element type="bSmoothMove" minOccurs="0"/>
		<element type="fAngleInterpRate" minOccurs="0"/>
		<element type="fBankRate" minOccurs="0"/>
		<element type="fExchangeAngle" minOccurs="0"/>
		<element type="bCombatExempt" minOccurs="0"/>
		<element type="bActAsRanged"/>
		<element type="TrainSound" minOccurs="0" maxOccurs="1"/>
		<element type="AudioRunSounds" minOccurs="1" maxOccurs="1"/>
		<element type="PatrolSound" minOccurs="0" maxOccurs="1"/>
		<element type="SelectionSound" minOccurs="0" maxOccurs="1"/>
		<element type="ActionSound" minOccurs="0" maxOccurs="1"/>
	</ElementType>
	<ElementType name="UnitArtInfos" content="eltOnly">
		<element type="UnitArtInfo" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="BuildingArtInfo" content="eltOnly">
		<element type="Type"/>
		<element type="LSystem"/>
		<element type="bAnimated"/>
		<element type="fScale"/>
		<element type="fInterfaceScale"/>
		<element type="NIF"/>
		<element type="KFM"/>
		<element type="Button"/>
	</ElementType>
	<ElementType name="BuildingArtInfos" content="eltOnly">
		<element type="BuildingArtInfo" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="bWhiteFlag" content="textOnly" dt:type="boolean"/>
	<ElementType name="CivilizationArtInfo" content="eltOnly">
		<element type="Type"/>
		<element type="Button"/>
		<element type="Path"/>
		<element type="bWhiteFlag"/>
	</ElementType>
	<ElementType name="CivilizationArtInfos" content="eltOnly">
		<element type="CivilizationArtInfo" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="LeaderheadArtInfo" content="eltOnly">
		<element type="Type"/>
		<element type="Button"/>
		<element type="NIF"/>
		<element type="KFM"/>
		<element type="NoShaderNIF"/>
		<element type="BackgroundKFM" minOccurs="0"/>
	</ElementType>
	<ElementType name="LeaderheadArtInfos" content="eltOnly">
		<element type="LeaderheadArtInfo" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="BonusArtInfo" content="eltOnly">
		<element type="Type"/>
		<element type="fScale"/>
		<element type="fInterfaceScale"/>
		<element type="NIF"/>
		<element type="KFM"/>
		<element type="SHADERNIF" minOccurs="0"/>
		<element type="Button"/>
		<element type="FontButtonIndex"/>
	</ElementType>
	<ElementType name="BonusArtInfos" content="eltOnly">
		<element type="BonusArtInfo" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="ImprovementArtInfo" content="eltOnly">
		<element type="Type"/>
		<element type="bExtraAnimations"/>
		<element type="fScale"/>
		<element type="fInterfaceScale"/>
		<element type="NIF"/>
		<element type="KFM"/>
		<element type="SHADERNIF" minOccurs="0"/>
		<element type="Button"/>
	</ElementType>
	<ElementType name="ImprovementArtInfos" content="eltOnly">
		<element type="ImprovementArtInfo" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="TerrainArtInfo" content="eltOnly">
		<element type="Type"/>
		<element type="Path"/>
		<element type="Grid"/>
		<element type="Detail"/>
		<element type="Button"/>
		<element type="LayerOrder"/>
		<element type="AlphaShader"/>
		<element type="TextureBlend01"/>
		<element type="TextureBlend02"/>
		<element type="TextureBlend04"/>
		<element type="TextureBlend08"/>
		<element type="TextureBlend03"/>
		<element type="TextureBlend06"/>
		<element type="TextureBlend12"/>
		<element type="TextureBlend09"/>
		<element type="TextureBlend07"/>
		<element type="TextureBlend14"/>
		<element type="TextureBlend13"/>
		<element type="TextureBlend11"/>
		<element type="TextureBlend10"/>
		<element type="TextureBlend05"/>
		<element type="TextureBlend15"/>
	</ElementType>
	<ElementType name="TerrainArtInfos" content="eltOnly">
		<element type="TerrainArtInfo" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="FeatureArtPiece" content="eltOnly">
		<element type="ModelFile" minOccurs="0" maxOccurs="*"/>
		<element type="Connections"/>
	</ElementType>
	<ElementType name="FeatureDummyNode" content="eltOnly">
		<element type="Tag"/>
		<element type="Name"/>
	</ElementType>
	<ElementType name="FeatureArtPieces" content="eltOnly">
		<element type="FeatureArtPiece" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="FeatureDummyNodes" content="eltOnly">
		<element type="FeatureDummyNode" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="VarietyButton" content="textOnly"/>
	<ElementType name="bGenerateRotations" content="textOnly" dt:type="boolean"/>
	<ElementType name="FeatureVariety" content="eltOnly">
		<element type="FeatureArtPieces"/>
		<element type="FeatureDummyNodes"/>
		<element type="bGenerateRotations"/>
		<element type="VarietyButton"/>
	</ElementType>
	<ElementType name="FeatureArtInfo" content="eltOnly">
		<element type="Type"/>
		<element type="bAnimated"/>
		<element type="bRiverArt"/>
		<element type="TileArtType"/>
		<element type="LightType"/>
		<element type="fScale"/>
		<element type="fInterfaceScale"/>
		<element type="Button"/>
		<element type="FeatureVariety" minOccurs="1" maxOccurs="*"/>
	</ElementType>
	<ElementType name="FeatureArtInfos" content="eltOnly">
		<element type="FeatureArtInfo" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="EffectArtInfo" content="eltOnly">
		<element type="Type"/>
		<element type="Description"/>
		<element type="fScale"/>
		<element type="fUpdateRate"/>
		<element type="Path"/>
		<element type="bIsProjectile"/>
	</ElementType>
	<ElementType name="Scene" content="textOnly"/>
	<ElementType name="SceneNoShader" content="textOnly"/>
	<ElementType name="Soundtrack" content="textOnly"/>
	<ElementType name="Loading" content="textOnly"/>
	<ElementType name="LoadingSlideshow" content="textOnly"/>
	<ElementType name="MainMenu" content="eltOnly">
		<element type="Type"/>
		<element type="Description"/>
		<element type="Scene"/>
		<element type="SceneNoShader"/>
		<element type="Soundtrack"/>
		<element type="Loading"/>
		<element type="LoadingSlideshow"/>
	</ElementType>
	<ElementType name="Civ4MainMenus" content="eltOnly">
		<element type="MainMenus" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="MainMenus" content="eltOnly">
		<element type="MainMenu" maxOccurs="*"/>
	</ElementType>
	<ElementType name="Civ4ArtDefines" content="eltOnly">
		<element type="InterfaceArtInfos" minOccurs="0" maxOccurs="*"/>
		<element type="MovieArtInfos" minOccurs="0" maxOccurs="*"/>
		<element type="MiscArtInfos" minOccurs="0" maxOccurs="*"/>
		<element type="UnitArtInfos" minOccurs="0" maxOccurs="*"/>
		<element type="BuildingArtInfos" minOccurs="0" maxOccurs="*"/>
		<element type="CivilizationArtInfos" minOccurs="0" maxOccurs="*"/>
		<element type="LeaderheadArtInfos" minOccurs="0" maxOccurs="*"/>
		<element type="BonusArtInfos" minOccurs="0" maxOccurs="*"/>
		<element type="ImprovementArtInfos" minOccurs="0" maxOccurs="*"/>
		<element type="TerrainArtInfos" minOccurs="0" maxOccurs="*"/>
		<element type="FeatureArtInfos" minOccurs="0" maxOccurs="*"/>
		<element type="MainMenus" minOccurs="0" maxOccurs="1"/>
	</ElementType>
</Schema>
No further adjustments are necessary.
 
Now open up Leader_CIV4CivilizationsSchema and paste this code it:

Spoiler :
Code:
<!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by Alex Mantzaris (Firaxis Games) -->
<!-- Sid Meier's Civilization 4 -->
<!-- Copyright Firaxis Games 2005 -->
<!-- -->
<!-- Civilizations Schema -->
<Schema xmlns="urn:schemas-microsoft-com:xml-data" xmlns:dt="urn:schemas-microsoft-com:datatypes">
	<ElementType name="Description" content="textOnly"/>
	<ElementType name="Civilopedia" content="textOnly"/>
	<ElementType name="Strategy" content="textOnly"/>
	<ElementType name="ArtDefineTag" content="textOnly"/>
	<ElementType name="iWonderConstructRand" content="textOnly" dt:type="int"/>
	<ElementType name="iBaseAttitude" content="textOnly" dt:type="int"/>
	<ElementType name="iBasePeaceWeight" content="textOnly" dt:type="int"/>
	<ElementType name="iPeaceWeightRand" content="textOnly" dt:type="int"/>
	<ElementType name="iWarmongerRespect" content="textOnly" dt:type="int"/>
	<ElementType name="iEspionageWeight" content="textOnly" dt:type="int"/>
	<ElementType name="iRefuseToTalkWarThreshold" content="textOnly" dt:type="int"/>
	<ElementType name="iNoTechTradeThreshold" content="textOnly" dt:type="int"/>
	<ElementType name="iTechTradeKnownPercent" content="textOnly" dt:type="int"/>
	<ElementType name="iMaxGoldTradePercent" content="textOnly" dt:type="int"/>
	<ElementType name="iMaxGoldPerTurnTradePercent" content="textOnly" dt:type="int"/>
	<ElementType name="iMaxWarRand" content="textOnly" dt:type="int"/>
	<ElementType name="iMaxWarNearbyPowerRatio" content="textOnly" dt:type="int"/>
	<ElementType name="iMaxWarDistantPowerRatio" content="textOnly" dt:type="int"/>
	<ElementType name="iMaxWarMinAdjacentLandPercent" content="textOnly" dt:type="int"/>
	<ElementType name="iLimitedWarRand" content="textOnly" dt:type="int"/>
	<ElementType name="iLimitedWarPowerRatio" content="textOnly" dt:type="int"/>
	<ElementType name="iDogpileWarRand" content="textOnly" dt:type="int"/>
	<ElementType name="iMakePeaceRand" content="textOnly" dt:type="int"/>
	<ElementType name="iDeclareWarTradeRand" content="textOnly" dt:type="int"/>
	<ElementType name="iDemandRebukedSneakProb" content="textOnly" dt:type="int"/>
	<ElementType name="iDemandRebukedWarProb" content="textOnly" dt:type="int"/>
	<ElementType name="iRazeCityProb" content="textOnly" dt:type="int"/>
	<ElementType name="iBuildUnitProb" content="textOnly" dt:type="int"/>
	<ElementType name="iBaseAttackOddsChange" content="textOnly" dt:type="int"/>
	<ElementType name="iAttackOddsChangeRand" content="textOnly" dt:type="int"/>
	<ElementType name="iWorseRankDifferenceAttitudeChange" content="textOnly" dt:type="int"/>
	<ElementType name="iBetterRankDifferenceAttitudeChange" content="textOnly" dt:type="int"/>
	<ElementType name="iCloseBordersAttitudeChange" content="textOnly" dt:type="int"/>
	<ElementType name="iLostWarAttitudeChange" content="textOnly" dt:type="int"/>
	<ElementType name="iAtWarAttitudeDivisor" content="textOnly" dt:type="int"/>
	<ElementType name="iAtWarAttitudeChangeLimit" content="textOnly" dt:type="int"/>
	<ElementType name="iAtPeaceAttitudeDivisor" content="textOnly" dt:type="int"/>
	<ElementType name="iAtPeaceAttitudeChangeLimit" content="textOnly" dt:type="int"/>
	<ElementType name="iSameReligionAttitudeChange" content="textOnly" dt:type="int"/>
	<ElementType name="iSameReligionAttitudeDivisor" content="textOnly" dt:type="int"/>
	<ElementType name="iSameReligionAttitudeChangeLimit" content="textOnly" dt:type="int"/>
	<ElementType name="iDifferentReligionAttitudeChange" content="textOnly" dt:type="int"/>
	<ElementType name="iDifferentReligionAttitudeDivisor" content="textOnly" dt:type="int"/>
	<ElementType name="iDifferentReligionAttitudeChangeLimit" content="textOnly" dt:type="int"/>
	<ElementType name="iBonusTradeAttitudeDivisor" content="textOnly" dt:type="int"/>
	<ElementType name="iBonusTradeAttitudeChangeLimit" content="textOnly" dt:type="int"/>
	<ElementType name="iOpenBordersAttitudeDivisor" content="textOnly" dt:type="int"/>
	<ElementType name="iOpenBordersAttitudeChangeLimit" content="textOnly" dt:type="int"/>
	<ElementType name="iDefensivePactAttitudeDivisor" content="textOnly" dt:type="int"/>
	<ElementType name="iDefensivePactAttitudeChangeLimit" content="textOnly" dt:type="int"/>
	<ElementType name="iShareWarAttitudeChange" content="textOnly" dt:type="int"/>
	<ElementType name="iShareWarAttitudeDivisor" content="textOnly" dt:type="int"/>
	<ElementType name="iShareWarAttitudeChangeLimit" content="textOnly" dt:type="int"/>
	<ElementType name="iFavoriteCivicAttitudeChange" content="textOnly" dt:type="int"/>
	<ElementType name="iFavoriteCivicAttitudeDivisor" content="textOnly" dt:type="int"/>
	<ElementType name="iFavoriteCivicAttitudeChangeLimit" content="textOnly" dt:type="int"/>
	<ElementType name="DemandTributeAttitudeThreshold" content="textOnly"/>
	<ElementType name="NoGiveHelpAttitudeThreshold" content="textOnly"/>
	<ElementType name="TechRefuseAttitudeThreshold" content="textOnly"/>
	<ElementType name="StrategicBonusRefuseAttitudeThreshold" content="textOnly"/>
	<ElementType name="HappinessBonusRefuseAttitudeThreshold" content="textOnly"/>
	<ElementType name="HealthBonusRefuseAttitudeThreshold" content="textOnly"/>
	<ElementType name="MapRefuseAttitudeThreshold" content="textOnly"/>
	<ElementType name="DeclareWarRefuseAttitudeThreshold" content="textOnly"/>
	<ElementType name="DeclareWarThemRefuseAttitudeThreshold" content="textOnly"/>
	<ElementType name="StopTradingRefuseAttitudeThreshold" content="textOnly"/>
	<ElementType name="StopTradingThemRefuseAttitudeThreshold" content="textOnly"/>
	<ElementType name="AdoptCivicRefuseAttitudeThreshold" content="textOnly"/>
	<ElementType name="ConvertReligionRefuseAttitudeThreshold" content="textOnly"/>
	<ElementType name="OpenBordersRefuseAttitudeThreshold" content="textOnly"/>
	<ElementType name="DefensivePactRefuseAttitudeThreshold" content="textOnly"/>
	<ElementType name="PermanentAllianceRefuseAttitudeThreshold" content="textOnly"/>
	<ElementType name="VassalRefuseAttitudeThreshold" content="textOnly"/>
	<ElementType name="iVassalPowerModifier" content="textOnly" dt:type="int"/>
	<ElementType name="iFreedomAppreciation" content="textOnly" dt:type="int"/>
	<ElementType name="FavoriteCivic" content="textOnly"/>
	<ElementType name="FavoriteReligion" content="textOnly"/>
	<ElementType name="TraitType" content="textOnly"/>
	<ElementType name="bTrait" content="textOnly" dt:type="boolean"/>
	<ElementType name="Trait" content="eltOnly">
		<element type="TraitType"/>
		<element type="bTrait"/>
	</ElementType>
	<ElementType name="Traits" content="eltOnly">
		<element type="Trait" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="FlavorType" content="textOnly"/>
	<ElementType name="iFlavor" content="textOnly" dt:type="int"/>
	<ElementType name="Flavor" content="eltOnly">
		<element type="FlavorType"/>
		<element type="iFlavor"/>
	</ElementType>
	<ElementType name="Flavors" content="eltOnly">
		<element type="Flavor" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="DerivativeCiv" content="textOnly"/>
	<ElementType name="ContactType" content="textOnly"/>
	<ElementType name="iContactRand" content="textOnly" dt:type="int"/>
	<ElementType name="ContactRand" content="eltOnly">
		<element type="ContactType"/>
		<element type="iContactRand"/>
	</ElementType>
	<ElementType name="ContactRands" content="eltOnly">
		<element type="ContactRand" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="iContactDelay" content="textOnly" dt:type="int"/>
	<ElementType name="ContactDelay" content="eltOnly">
		<element type="ContactType"/>
		<element type="iContactDelay"/>
	</ElementType>
	<ElementType name="ContactDelays" content="eltOnly">
		<element type="ContactDelay" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="MemoryType" content="textOnly"/>
	<ElementType name="iMemoryRand" content="textOnly" dt:type="int"/>
	<ElementType name="MemoryDecay" content="eltOnly">
		<element type="MemoryType"/>
		<element type="iMemoryRand"/>
	</ElementType>
	<ElementType name="MemoryDecays" content="eltOnly">
		<element type="MemoryDecay" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="iMemoryAttitudePercent" content="textOnly" dt:type="int"/>
	<ElementType name="MemoryAttitudePercent" content="eltOnly">
		<element type="MemoryType"/>
		<element type="iMemoryAttitudePercent"/>
	</ElementType>
	<ElementType name="MemoryAttitudePercents" content="eltOnly">
		<element type="MemoryAttitudePercent" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="AttitudeType" content="textOnly"/>
	<ElementType name="iNoWarProb" content="textOnly" dt:type="int"/>
	<ElementType name="NoWarAttitudeProb" content="eltOnly">
		<element type="AttitudeType"/>
		<element type="iNoWarProb"/>
	</ElementType>
	<ElementType name="NoWarAttitudeProbs" content="eltOnly">
		<element type="NoWarAttitudeProb" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="UnitAIType" content="textOnly"/>
	<ElementType name="iWeightModifier" content="textOnly" dt:type="int"/>
	<ElementType name="UnitAIWeightModifier" content="eltOnly">
		<element type="UnitAIType"/>
		<element type="iWeightModifier"/>
	</ElementType>
	<ElementType name="UnitAIWeightModifiers" content="eltOnly">
		<element type="UnitAIWeightModifier" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="ImprovementType" content="textOnly"/>
	<ElementType name="ImprovementWeightModifier" content="eltOnly">
		<element type="ImprovementType"/>
		<element type="iWeightModifier"/>
	</ElementType>
	<ElementType name="ImprovementWeightModifiers" content="eltOnly">
		<element type="ImprovementWeightModifier" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="EraType" content="textOnly"/>
	<ElementType name="DiploScriptId" content="textOnly"/>
	<ElementType name="DiploMusicPeaceEra" content="eltOnly">
		<element type="EraType"/>
		<element type="DiploScriptId" minOccurs="0" maxOccurs="1"/>
	</ElementType>
	<ElementType name="DiplomacyMusicPeace" content="eltOnly">
		<element type="DiploMusicPeaceEra" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="DiplomacyIntroMusicPeace" content="eltOnly">
		<element type="DiploMusicPeaceEra" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="DiploMusicWarEra" content="eltOnly">
		<element type="EraType"/>
		<element type="DiploScriptId" minOccurs="0" maxOccurs="1"/>
	</ElementType>
	<ElementType name="DiplomacyMusicWar" content="eltOnly">
		<element type="DiploMusicWarEra" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="DiplomacyIntroMusicWar" content="eltOnly">
		<element type="DiploMusicWarEra" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="LeaderHeadInfo" content="eltOnly">
		<element type="Type"/>
		<element type="Description"/>
		<element type="Civilopedia"/>
		<element type="ArtDefineTag"/>
		<element type="iWonderConstructRand"/>
		<element type="iBaseAttitude"/>
		<element type="iBasePeaceWeight"/>
		<element type="iPeaceWeightRand"/>
		<element type="iWarmongerRespect"/>
		<element type="iEspionageWeight"/>
		<element type="iRefuseToTalkWarThreshold"/>
		<element type="iNoTechTradeThreshold"/>
		<element type="iTechTradeKnownPercent"/>
		<element type="iMaxGoldTradePercent"/>
		<element type="iMaxGoldPerTurnTradePercent"/>
		<element type="iMaxWarRand"/>
		<element type="iMaxWarNearbyPowerRatio"/>
		<element type="iMaxWarDistantPowerRatio"/>
		<element type="iMaxWarMinAdjacentLandPercent"/>
		<element type="iLimitedWarRand"/>
		<element type="iLimitedWarPowerRatio"/>
		<element type="iDogpileWarRand"/>
		<element type="iMakePeaceRand"/>
		<element type="iDeclareWarTradeRand"/>
		<element type="iDemandRebukedSneakProb"/>
		<element type="iDemandRebukedWarProb"/>
		<element type="iRazeCityProb"/>
		<element type="iBuildUnitProb"/>
		<element type="iBaseAttackOddsChange"/>
		<element type="iAttackOddsChangeRand"/>
		<element type="iWorseRankDifferenceAttitudeChange"/>
		<element type="iBetterRankDifferenceAttitudeChange"/>
		<element type="iCloseBordersAttitudeChange"/>
		<element type="iLostWarAttitudeChange"/>
		<element type="iAtWarAttitudeDivisor"/>
		<element type="iAtWarAttitudeChangeLimit"/>
		<element type="iAtPeaceAttitudeDivisor"/>
		<element type="iAtPeaceAttitudeChangeLimit"/>
		<element type="iSameReligionAttitudeChange"/>
		<element type="iSameReligionAttitudeDivisor"/>
		<element type="iSameReligionAttitudeChangeLimit"/>
		<element type="iDifferentReligionAttitudeChange"/>
		<element type="iDifferentReligionAttitudeDivisor"/>
		<element type="iDifferentReligionAttitudeChangeLimit"/>
		<element type="iBonusTradeAttitudeDivisor"/>
		<element type="iBonusTradeAttitudeChangeLimit"/>
		<element type="iOpenBordersAttitudeDivisor"/>
		<element type="iOpenBordersAttitudeChangeLimit"/>
		<element type="iDefensivePactAttitudeDivisor"/>
		<element type="iDefensivePactAttitudeChangeLimit"/>
		<element type="iShareWarAttitudeChange"/>
		<element type="iShareWarAttitudeDivisor"/>
		<element type="iShareWarAttitudeChangeLimit"/>
		<element type="iFavoriteCivicAttitudeChange"/>
		<element type="iFavoriteCivicAttitudeDivisor"/>
		<element type="iFavoriteCivicAttitudeChangeLimit"/>
		<element type="DemandTributeAttitudeThreshold"/>
		<element type="NoGiveHelpAttitudeThreshold"/>
		<element type="TechRefuseAttitudeThreshold"/>
		<element type="StrategicBonusRefuseAttitudeThreshold"/>
		<element type="HappinessBonusRefuseAttitudeThreshold"/>
		<element type="HealthBonusRefuseAttitudeThreshold"/>
		<element type="MapRefuseAttitudeThreshold"/>
		<element type="DeclareWarRefuseAttitudeThreshold"/>
		<element type="DeclareWarThemRefuseAttitudeThreshold"/>
		<element type="StopTradingRefuseAttitudeThreshold"/>
		<element type="StopTradingThemRefuseAttitudeThreshold"/>
		<element type="AdoptCivicRefuseAttitudeThreshold"/>
		<element type="ConvertReligionRefuseAttitudeThreshold"/>
		<element type="OpenBordersRefuseAttitudeThreshold"/>
		<element type="DefensivePactRefuseAttitudeThreshold"/>
		<element type="PermanentAllianceRefuseAttitudeThreshold"/>
		<element type="VassalRefuseAttitudeThreshold"/>
		<element type="iVassalPowerModifier"/>
		<element type="iFreedomAppreciation"/>
		<element type="FavoriteCivic"/>
		<element type="FavoriteReligion"/>
		<element type="Traits"/>
		<element type="Flavors"/>
		<element type="ContactRands"/>
		<element type="ContactDelays"/>
		<element type="MemoryDecays"/>
		<element type="MemoryAttitudePercents"/>
		<element type="NoWarAttitudeProbs"/>
		<element type="UnitAIWeightModifiers"/>
		<element type="ImprovementWeightModifiers"/>
		<element type="DiplomacyIntroMusicPeace"/>
		<element type="DiplomacyMusicPeace"/>
		<element type="DiplomacyIntroMusicWar"/>
		<element type="DiplomacyMusicWar"/>
	</ElementType>
	<ElementType name="LeaderHeadInfos" content="eltOnly">
		<element type="LeaderHeadInfo" maxOccurs="*"/>
	</ElementType>
	<ElementType name="Type" content="textOnly"/>
	<ElementType name="ShortDescription" content="textOnly"/>
	<ElementType name="Help" content="textOnly"/>
	<ElementType name="iHealth" content="textOnly" dt:type="int"/>
	<ElementType name="iHappiness" content="textOnly" dt:type="int"/>
	<ElementType name="iMaxAnarchy" content="textOnly" dt:type="int"/>
	<ElementType name="iUpkeepModifier" content="textOnly" dt:type="int"/>
	<ElementType name="iLevelExperienceModifier" content="textOnly" dt:type="int"/>
	<ElementType name="iGreatPeopleRateModifier" content="textOnly" dt:type="int"/>
	<ElementType name="iGreatGeneralRateModifier" content="textOnly" dt:type="int"/>
	<ElementType name="iDomesticGreatGeneralRateModifier" content="textOnly" dt:type="int"/>
	<ElementType name="iMaxGlobalBuildingProductionModifier" content="textOnly" dt:type="int"/>
	<ElementType name="iMaxTeamBuildingProductionModifier" content="textOnly" dt:type="int"/>
	<ElementType name="iMaxPlayerBuildingProductionModifier" content="textOnly" dt:type="int"/>
	<ElementType name="iExtraYieldThreshold" content="textOnly" dt:type="int"/>
	<ElementType name="ExtraYieldThresholds" content="eltOnly">
		<element type="iExtraYieldThreshold" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="iYield" content="textOnly" dt:type="int"/>
	<ElementType name="TradeYieldModifiers" content="eltOnly">
		<element type="iYield" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="iCommerce" content="textOnly" dt:type="int"/>
	<ElementType name="CommerceChanges" content="eltOnly">
		<element type="iCommerce" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="CommerceModifiers" content="eltOnly">
		<element type="iCommerce" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="PromotionType" content="textOnly"/>
	<ElementType name="bFreePromotion" content="textOnly" dt:type="boolean"/>
	<ElementType name="FreePromotion" content="eltOnly">
		<element type="PromotionType"/>
		<element type="bFreePromotion"/>
	</ElementType>
	<ElementType name="FreePromotions" content="eltOnly">
		<element type="FreePromotion" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="UnitCombatType" content="textOnly"/>
	<ElementType name="bFreePromotionUnitCombat" content="textOnly" dt:type="boolean"/>
	<ElementType name="FreePromotionUnitCombat" content="eltOnly">
		<element type="UnitCombatType"/>
		<element type="bFreePromotionUnitCombat"/>
	</ElementType>
	<ElementType name="FreePromotionUnitCombats" content="eltOnly">
		<element type="FreePromotionUnitCombat" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="TraitInfo" content="eltOnly">
		<element type="Type"/>
		<element type="Description"/>
		<element type="ShortDescription"/>
		<element type="Help" minOccurs="0"/>
		<element type="iHealth"/>
		<element type="iHappiness"/>
		<element type="iMaxAnarchy"/>
		<element type="iUpkeepModifier"/>
		<element type="iLevelExperienceModifier"/>
		<element type="iGreatPeopleRateModifier"/>
		<element type="iGreatGeneralRateModifier"/>
		<element type="iDomesticGreatGeneralRateModifier"/>
		<element type="iMaxGlobalBuildingProductionModifier"/>
		<element type="iMaxTeamBuildingProductionModifier"/>
		<element type="iMaxPlayerBuildingProductionModifier"/>
		<element type="ExtraYieldThresholds"/>
		<element type="TradeYieldModifiers"/>
		<element type="CommerceChanges"/>
		<element type="CommerceModifiers"/>
		<element type="FreePromotions"/>
		<element type="FreePromotionUnitCombats"/>
	</ElementType>
	<ElementType name="TraitInfos" content="eltOnly">
		<element type="TraitInfo" maxOccurs="*"/>
	</ElementType>
	<ElementType name="Adjective" content="textOnly"/>
	<ElementType name="DefaultPlayerColor" content="textOnly"/>
	<ElementType name="FlagTexture" content="textOnly"/>
	<ElementType name="ArtStyleType" content="textOnly"/>
	<ElementType name="City" content="textOnly"/>
	<ElementType name="Cities" content="eltOnly">
		<element type="City" maxOccurs="*"/>
	</ElementType>
	<ElementType name="BuildingClassType" content="textOnly"/>
	<ElementType name="BuildingType" content="textOnly"/>
	<ElementType name="Building" content="eltOnly">
		<element type="BuildingClassType"/>
		<element type="BuildingType"/>
	</ElementType>
	<ElementType name="Buildings" content="eltOnly">
		<element type="Building" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="UnitClassType" content="textOnly"/>
	<ElementType name="UnitType" content="textOnly"/>
	<ElementType name="Unit" content="eltOnly">
		<element type="UnitClassType"/>
		<element type="UnitType"/>
	</ElementType>
	<ElementType name="Units" content="eltOnly">
		<element type="Unit" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="iFreeUnits" content="textOnly" dt:type="int"/>
	<ElementType name="FreeUnitClass" content="eltOnly">
		<element type="UnitClassType"/>
		<element type="iFreeUnits"/>
	</ElementType>
	<ElementType name="FreeUnitClasses" content="eltOnly">
		<element type="FreeUnitClass" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="bFreeBuildingClass" content="textOnly" dt:type="boolean"/>
	<ElementType name="FreeBuildingClass" content="eltOnly">
		<element type="BuildingClassType"/>
		<element type="bFreeBuildingClass"/>
	</ElementType>
	<ElementType name="FreeBuildingClasses" content="eltOnly">
		<element type="FreeBuildingClass" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="TechType" content="textOnly"/>
	<ElementType name="bFreeTech" content="textOnly" dt:type="boolean"/>
	<ElementType name="FreeTech" content="eltOnly">
		<element type="TechType"/>
		<element type="bFreeTech"/>
	</ElementType>
	<ElementType name="FreeTechs" content="eltOnly">
		<element type="FreeTech" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="bDisableTech" content="textOnly" dt:type="boolean"/>
	<ElementType name="DisableTech" content="eltOnly">
		<element type="TechType"/>
		<element type="bDisableTech"/>
	</ElementType>
	<ElementType name="DisableTechs" content="eltOnly">
		<element type="DisableTech" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="CivicType" content="textOnly"/>
	<ElementType name="InitialCivics" content="eltOnly">
		<element type="CivicType" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="AnarchyCivics" content="eltOnly">
		<element type="CivicType" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="bPlayable" content="textOnly" dt:type="boolean"/>
	<ElementType name="bAIPlayable" content="textOnly" dt:type="boolean"/>
	<ElementType name="LeaderName" content="textOnly"/>
	<ElementType name="bLeaderAvailability" content="textOnly" dt:type="boolean"/>
	<ElementType name="Leader" content="eltOnly">
		<element type="LeaderName"/>
		<element type="bLeaderAvailability"/>
	</ElementType>
	<ElementType name="Leaders" content="eltOnly">
		<element type="Leader" maxOccurs="*"/>
	</ElementType>
	<ElementType name="CivilizationSelectionSound" content="textOnly"/>
	<ElementType name="CivilizationActionSound" content="textOnly"/>
	<ElementType name="UnitArtStyleType" content="textOnly"/>
	<ElementType name="CivilizationInfo" content="eltOnly">
		<element type="Type"/>
		<element type="Description"/>
		<element type="ShortDescription"/>
		<element type="Adjective"/>
		<element type="Civilopedia"/>
		<element type="DefaultPlayerColor"/>
		<element type="ArtDefineTag"/>
		<element type="ArtStyleType"/>
		<element type="UnitArtStyleType" minOccurs="0" maxOccurs="1"/>
		<element type="bPlayable"/>
		<element type="bAIPlayable"/>
		<element type="Cities"/>
		<element type="Buildings"/>
		<element type="Units"/>
		<element type="FreeUnitClasses"/>
		<element type="FreeBuildingClasses"/>
		<element type="FreeTechs"/>
		<element type="DisableTechs"/>
		<element type="InitialCivics"/>
		<element type="AnarchyCivics" minOccurs="0"/>
		<element type="Leaders" minOccurs="0"/>
		<element type="DerivativeCiv"/>
		<element type="CivilizationSelectionSound"/>
		<element type="CivilizationActionSound"/>
	</ElementType>
	<ElementType name="CivilizationInfos" content="eltOnly">
		<element type="CivilizationInfo" maxOccurs="*"/>
	</ElementType>
	<ElementType name="Civ4LeaderHeadInfos" content="eltOnly">
		<element type="LeaderHeadInfos" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="Civ4TraitInfos" content="eltOnly">
		<element type="TraitInfos"/>
	</ElementType>
	<ElementType name="Civ4CivilizationInfos" content="eltOnly">
		<element type="CivilizationInfos" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="EarlyArtDefineTag" content="textOnly"/>
	<ElementType name="LateArtDefineTag" content="textOnly"/>
	<ElementType name="MiddleArtDefineTag" content="textOnly"/>
	<ElementType name="UnitMeshGroup" content="eltOnly">
		<element type="EarlyArtDefineTag" minOccurs="0"/>
		<element type="LateArtDefineTag" minOccurs="0"/>
		<element type="MiddleArtDefineTag" minOccurs="0"/>
	</ElementType>
	<ElementType name="StyleUnit" content="eltOnly">
		<element type="UnitType"/>
		<element type="UnitMeshGroup" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="StyleUnits" content="eltOnly">
		<element type="StyleUnit" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="UnitArtStyleTypeInfo" content="eltOnly">
		<element type="Type"/>
		<element type="StyleUnits" minOccurs="0" maxOccurs="1"/>
	</ElementType>
	<ElementType name="UnitArtStyleTypeInfos" content="eltOnly">
		<element type="UnitArtStyleTypeInfo" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	<ElementType name="Civ4UnitArtStyleTypeInfos" content="eltOnly">
		<element type="UnitArtStyleTypeInfos" minOccurs="0"/>
	</ElementType>
	<ElementType name="Civ4Civilizations" content="eltOnly">
		<element type="LeaderHeadInfos" minOccurs="0" maxOccurs="*"/>
		<element type="TraitInfos" minOccurs="0" maxOccurs="*"/>
		<element type="CivilizationInfos" minOccurs="0" maxOccurs="*"/>
		<element type="UnitArtStyleTypeInfos" minOccurs="0" maxOccurs="*"/>
	</ElementType>
</Schema>

As with the other schema, no adjustments are required.

Now open up Leader_CIV4ArtDefines_Leaderhead in your xml editor. This file control's the graphics of the leaderhead, so it is very important.

Open it up and put this code in:

Code:
<?xml version="1.0"?>
<!-- Sid Meier's Civilization 4 Beyond the Sword -->
<!-- Modified by the Civ Gold Team -->
<!-- -->
<Civ4ArtDefines xmlns="x-schema:[B]Constantine[/B]_CIV4ArtDefinesSchema.xml">
	<LeaderheadArtInfos>
         <Type>ART_DEF_LEADER_CONSTANTINE</Type>
         <Button>Modules/Custom Leaderheads/Constantine/[B]Btn_LH_Constantine.dds[/B]</Button>
         <NIF>Modules/Custom Leaderheads/Constantine/[B]augustus_caesar.nif[/B]</NIF>
         <KFM>Modules/Custom Leaderheads/Constantine/[B]augustus_caesar.kfm[/B]</KFM>
         <NoShaderNIF>Modules/Custom Leaderheads/Constantine/[B]augustus_caesar.nif[/B]</NoShaderNIF>
         <BackgroundKFM>Modules/Custom Leaderheads/Constantine/[B]augustus_caesar_BG.kfm[/B]</BackgroundKFM>
	</LeaderheadArtInfos>
</Civ4ArtDefines>
Bolded is what you will need to change. The first bold is simplest. Just redirect it to the proper artdefinesschema, so basically to whatever you named it. The rest of the bolds have to do with files. Different leaders have different names for their files. First one is the button. It will always be .dds file. Look for whatever variation is the proper one. It usually involves the leadername and bt or btn or button or something.

Second and third usually have the same name. First will be a .nif, and second will be the .kfm . The fourth is the noshadernif. If the leader comes with one, route to it, otherwise, redirect to the nif you routed to last.

Fifth one is the background. Route it to the background, usually called Leader_BG or something. It will always be a .kfm file though.

Next up is the Leader_GameText.xml file. Game text is simplest one.

Code:
 <?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Sid Meier's Civilization 4 Beyond the Sword -->
<!-- Modified by the Civ Gold Team -->
<!-- -->
<Civ4GameText xmlns="http://www.firaxis.com">
	<TEXT>
		<Tag>TXT_KEY_LEADER_CONSTANTINE</Tag>
		<English>Constantine</English>
		<French>Constantine</French>
		<German>Constantine</German>
		<Italian>Constantine</Italian>
		<Spanish>Constantine</Spanish>
	</TEXT>
	<TEXT>
		<Tag>TXT_KEY_LEADER_CONSTANTINE_PEDIA</Tag>
		<English> </English>
        <French> </French>
		<German> </German>
		<Italian> </Italian>
		<Spanish> </Spanish>
		</TEXT>
	<TEXT>
		<Tag>AI_DIPLO_FIRST_CONTACT_LEADER_CONSTANTINE_1</Tag>
		<English></English>
		<French></French>
		<German></German>
		<Italian></Italian>
		<Spanish></Spanish>
	</TEXT>
</Civ4GameText>

Fill it in as you please. Replace all the Constantine's with your leader. Remember to put in caps when needed.

It should look something like this:


Next up is Civilizationinfos.

Fairly straightforward. Only two things you should need to change.

Code:
<?xml version="1.0"?>
<!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by Firaxis Games (Firaxis Games) -->
<!-- Sid Meier's Civilization 4 -->
<!-- Copyright Firaxis Games 2005 -->
<!-- -->
<!-- Civilization Infos -->
<Civ4CivilizationInfos xmlns="x-schema:[B]Constantine[/B]_CIV4CivilizationsSchema.xml">
	<CivilizationInfos>[B]
		     !!PASTE HERE!![/B]
	</CivilizationInfos>
</Civ4CivilizationInfos>

Bolded needs to be changed. First fix the schema as needed, like before.

Now go to C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Assets\XML\Civilizations

Double click on CIV4CivilizationInfos.xml and hit ctrl-f and search for Rome or whatever the civ is. Copy everything between <CivilizationInfo> and </CivilizationInfo>

Now scroll down and add your leader. This is for the game to recognize that your leader is part of this civilization.

<Leaders>
<Leader>
<LeaderName>LEADER_JULIUS_CAESAR</LeaderName>
<bLeaderAvailability>1</bLeaderAvailability>
</Leader>
<Leader>
<LeaderName>LEADER_AUGUSTUS</LeaderName>
<bLeaderAvailability>1</bLeaderAvailability>
</Leader>
<Leader>
<LeaderName>LEADER_CONSTANTINE</LeaderName>
<bLeaderAvailability>1</bLeaderAvailability>
</Leader>
</Leaders>

Just add your leader like the format shown above. Hit ctrl-s and move on.
 
Next up is the Leader_GameText.xml file. Game text is simplest one.

Code:
 <?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Sid Meier's Civilization 4 Beyond the Sword -->
<!-- Modified by the Civ Gold Team -->
<!-- -->
<Civ4GameText xmlns="http://www.firaxis.com">
	<TEXT>
		<Tag>TXT_KEY_LEADER_CONSTANTINE</Tag>
		<English>Constantine</English>
		<French>Constantine</French>
		<German>Constantine</German>
		<Italian>Constantine</Italian>
		<Spanish>Constantine</Spanish>
	</TEXT>
	<TEXT>
		<Tag>TXT_KEY_LEADER_CONSTANTINE_PEDIA</Tag>
		<English> </English>
        <French> </French>
		<German> </German>
		<Italian> </Italian>
		<Spanish> </Spanish>
		</TEXT>
	<TEXT>
		<Tag>AI_DIPLO_FIRST_CONTACT_LEADER_CONSTANTINE_1</Tag>
		<English></English>
		<French></French>
		<German></German>
		<Italian></Italian>
		<Spanish></Spanish>
	</TEXT>
</Civ4GameText>

Fill it in as you please. Replace all the Constantine's with your leader. Remember to put in caps when needed.

It should look something like this:


Next up is Civilizationinfos.

Fairly straightforward. Only two things you should need to change.

Code:
<?xml version="1.0"?>
<!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by Firaxis Games (Firaxis Games) -->
<!-- Sid Meier's Civilization 4 -->
<!-- Copyright Firaxis Games 2005 -->
<!-- -->
<!-- Civilization Infos -->
<Civ4CivilizationInfos xmlns="x-schema:[B]Constantine[/B]_CIV4CivilizationsSchema.xml">
	<CivilizationInfos>[B]
		     !!PASTE HERE!![/B]
	</CivilizationInfos>
</Civ4CivilizationInfos>

Bolded needs to be changed. First fix the schema as needed, like before.

Now go to C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Assets\XML\Civilizations

Double click on CIV4CivilizationInfos.xml and hit ctrl-f and search for Rome or whatever the civ is. Copy everything between <CivilizationInfo> and </CivilizationInfo>

Now scroll down and add your leader. This is for the game to recognize that your leader is part of this civilization.

<Leaders>
<Leader>
<LeaderName>LEADER_JULIUS_CAESAR</LeaderName>
<bLeaderAvailability>1</bLeaderAvailability>
</Leader>
<Leader>
<LeaderName>LEADER_AUGUSTUS</LeaderName>
<bLeaderAvailability>1</bLeaderAvailability>
</Leader>
<Leader>
<LeaderName>LEADER_CONSTANTINE</LeaderName>
<bLeaderAvailability>1</bLeaderAvailability>
</Leader>
</Leaders>

Just add your leader like the format shown above. Hit ctrl-s and move on.

Last file. ;)

Leader_CIV4LeaderHeadInfos.xml

open it up, as well as CIV4LeaderheadInfos in C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Assets\XML\Civilizations.

First think long and hard of what leaderhead personality you want. For example, if your adding Hitler, you are probably thinking Montezuma. Right? No, Wrong. Hitler was quite productive, intelligent and Germany advanced alot scientifically in his years. So Monte, a personality who blows everything on war, going behind in tech and using stacks of 70 jaguars against Rifleman would be a bad idea.

That is what I mean, this file effects a great lot of how the leader behaves in game. Other factors to consider when making this is 'what other leaders in the game have the same traits as my leader?'. You can of coarse mod him on your own, make a brand new personality, but that is much more difficult and time consuming, plus requires hours of playtesting to see if you got it right. That is way beyond me, and way beyond this tutorial.

When you decided which leader you want to mimic, copy this code into your Leader_CIV4LeaderHeadInfos.xml :

Code:
<?xml version="1.0"?>
<!-- Sid Meier's Civilization 4 Beyond the Sword -->
<!-- Modified by the Civ Gold Team -->
<!-- -->
<Civ4LeaderHeadInfos xmlns="x-schema:Constantine_CIV4CivilizationsSchema.xml">
	<LeaderHeadInfos>
	     !!PASTE HERE!!
	</LeaderHeadInfos>
</Civ4LeaderHeadInfos>

Once again, edit the Schema the way you will like.

Now go to the Vanilla CIV4LeaderHeadInfos.xml and hit ctrl-f and look for the leaderhead you will want to mimic. Copy everything between <LeaderHeadInfo> and </LeaderHeadInfo> and paste it on the marker.

To edit further (the traits and stuff) scroll down just a bit and take a look at this:

<FavoriteCivic>CIVIC_ORGANIZED_RELIGION</FavoriteCivic>
<FavoriteReligion>RELIGION_CHRISTIANITY</FavoriteReligion>
<Traits>
<Trait>
<TraitType>TRAIT_SPIRITUAL</TraitType>
<bTrait>1</bTrait>
</Trait>
<Trait>
<TraitType>TRAIT_ORGANIZED</TraitType>
<bTrait>1</bTrait>
</Trait>
</Traits>
<Flavors>
<Flavor>
<FlavorType>FLAVOR_MILITARY</FlavorType>
<iFlavor>2</iFlavor>
</Flavor>
<Flavor>
<FlavorType>FLAVOR_RELIGION</FlavorType>
<iFlavor>5</iFlavor>
</Flavor>
</Flavors>

Edit is you wish. The Traits are the Leader Traits in game. Even if you want a leader to mimic another leader, you may want to change their traits anyway. The Flavor Military and Flavor Religion represent how much the leader cares about building units and making their Power Graph look impressive, or how much negative points you will have against them when your a different religion. =P

Of coarse you can edit anything in this file and drastically change the leader's personality, that is time consuming even though the results could be amazing.

That is all, Save and load up your mod and test it in game!
 
In my Maria folder (Maria Theresa leader) I cant find the button flie. I have a bunch of dds files but none of them have a bt or btn
 
Also it keeps saying that my Civilization info folder for Maria is incorrect. Along with the leader head info page. PLEASE HELP ME!!!!
 
I get two error messages saying that they couldnt load the civartdefines_leaderhead and 4 saying they couldnt civilizationinfos couldnt work and one of two of those say that the leader info class for MARIA_THERESA was incorrect. can you please help me?
 
Likely the person who uploaded the Maria Theresa did not make a button. Other guides on here explain how to make buttons. :)

Try adding Maria Theresa from scratch, you obviously did something wrong along the way.
 
Well I gave up on that lol but now whenever I try to upload another mod they say MARIA THERESA invalid something. So now my mods dont work.
 
How everything before line 7 in the file looks would be important.

This is the entry I put on FrancisI_Civ4LeaderHeadInfos.xml from line 1 .. till 15

Spoiler :
<?xml version="1.0"?>
<!-- Sid Meier's Civilization 4 Beyond the Sword -->
<!-- Modified by the Civ Gold Team -->
<!-- -->
<Civ4LeaderHeadInfos xmlns="x-schema:FrancisI_CIV4CivilizationsSchema.xml">
<LeaderHeadInfos>
<Type>LEADER_FRANCISI</Type>
<Description>TXT_KEY_LEADER_FRANCISI</Description>
<Civilopedia>TXT_KEY_LEADER_FRANCISI_PEDIA</Civilopedia>
<ArtDefineTag>ART_DEF_LEADER_FRANCISI</ArtDefineTag>
<iWonderConstructRand>40</iWonderConstructRand>
<iBaseAttitude>0</iBaseAttitude>
<iBasePeaceWeight>1</iBasePeaceWeight>
<iPeaceWeightRand>3</iPeaceWeightRand>
<iWarmongerRespect>1</iWarmongerRespect>

Thanks :)
 
Okay, i don't have Civ here (holiday (some sort of) over the weekend), but i'm quite sure that the entries for a new civ begin with
PHP:
<LeaderHeadInfo>

and end with

PHP:
</LeaderHeadInfo>

(look closely: No s at the end, that's another, additionally needed tag)
 
Okay, i don't have Civ here (holiday (some sort of) over the weekend), but i'm quite sure that the entries for a new civ begin with
PHP:
<LeaderHeadInfo>

and end with

PHP:
</LeaderHeadInfo>

(look closely: No s at the end, that's another, additionally needed tag)

So I have change from
PHP:
<LeaderHeadInfos>
to
PHP:
<LeaderHeadInfo>
and so do with the "/" one ? thanks :) I hope it works..
 
When I am trying to install a leaderhead but every time i try to sve them in the civinfod it says check to see if the file is open somewhwere else but its not
 
Top Bottom