How to add a leader to an existing civilization?

The Almighty dF

Pharaoh
Joined
Mar 27, 2007
Messages
2,252
Location
dFland
Sorry to make two question threads in one day but...

Awhile back I was making a Vatican Civ, but I had to reformat... and I lost everything. So I decided to move recreating it to #2 on my modding priorities list and move something simpler to #1.
I want to add another leader to an existing civ, in this case Richard Nixon to America (I've been watching a lot of Futurama. >.>)

I haven't really seen a tutorial on how to do this, and it seems a bit more confusing than simply making an entirely new civ.
Can anyone offer some help?
 
If the leader exists, open Civ4CivilizationInfos.xml and go to the relevant Civ. The following section is where leaders are connected to Civs:

Code:
			<Leaders>
				<Leader>
					<LeaderName>LEADER_WASHINGTON</LeaderName>
					<bLeaderAvailability>1</bLeaderAvailability>
				</Leader>
				<Leader>
					<LeaderName>LEADER_FRANKLIN_ROOSEVELT</LeaderName>
					<bLeaderAvailability>1</bLeaderAvailability>
				</Leader>
				<Leader>
					<LeaderName>LEADER_LINCOLN</LeaderName>
					<bLeaderAvailability>1</bLeaderAvailability>
				</Leader>
			</Leaders>
 
And if it doesn't?
I'm kinda confused as to what files to move to a Mod folder, what info, etc.
With adding a new civilization, it makes sense. You basically just start from scratch if you're going modular.
Adding a new leader, however... seems to be a more confusing process. Possibly because I've only seen it done on a few occasions (Adding Hitler to Germany, and several leaders to Russia.)
 
Whatever file you alter/change for a new unit/leader stat-change, etc, needs to be copied and moved to the Mod folder.

In the case of leader heads, I'm pretty sure there's more then one XML file involved... in fact, I think it's two or three at least that need to be changed/updated...

It can be fairly easy though... if you want to add a leader (say Nixon) that is like another existing leader (say Caeser... I dunno, just as an example), then copy all of Caeser's XML entries dupe-them in each XML they appear in, then rename them from "Caeser" to "Nixon"... the only other thing you need to do is link the XML art file to your new Nixon leader-head art.
 
What if I have CIV4 Gold (has Warlords) and just want to add a Leaderhead that someone else created, say Olav Tryggvason? That's all I want to do. Do I just add him to the MOD directory and load him as a mod? Where would he show up? Under what country?

As you can probably tell, this is what I did and even though it says I loaded the Olav Tryggvason mod, nothing else happened. I don't see him anywhere.
 
I kinda get it, though I'm still having problems finding what all XML files I need to find.
I tried going through all the XML files under BTS and looking for an American leader (Washington) and copying all those... but it definetly feels like I'm missing several (such as civilopedia entries and such.)
Anyone know all the files I'll need to copy and edit?
 
To add a new leader, you need to refer to four XML files (luckily there's two in the \Civilizations\ folder, and two in the \Art\ folder) :)

Civ4LeaderHeadInfos.xml and Civ4ArtDefines_Leaderhead.xml holds the info for the leader, whilst Civ4CivilizationInfos.xml and Civ4ArtDefines_Civilization.xml holds the info for the Civ.

1. Create the leader in Civ4LeaderHeadInfos.xml
2. Create a Civ and link the leader to it in Civ4CivilizationInfos.xml
3. Setup the leaderhead graphics in Civ4ArtDefines_Leaderhead.xml
4. Setup the Civ's graphics in Civ4ArtDefines_Civilization.xml

As for text, just create a new file in \Text\ called something link Civ4GameText_MyMod.xml using the same format as the other text files and add your game texts to it. :)
 
Ahh... thanks. ^^
 
How do I put in the name? I put in Henry the navigator (with the tag HENRIQUE) it just says "TXT_KEY_LEADER_HENRIQUE" and for the pedia "TXT_KEY_LEADER_HENRIQUE_PEDIA"

I know the name doesn't show up because I didn't put anything in, but I don't know where to put it, so if anyone sees this and can help me out that would be great.

Thank you.
 
Alright, I got his name and his pedia entry to show up. But his greeting doesn't show up. I don't quite know how to do this part, anyone know what to do here?
 
It goes in Civ4DiplomacyInfos.xml in the GameInfo folder.
 
Back
Top Bottom