Looking for help removing leader from the game

kid anubis

octorilla wrangler
Joined
Aug 8, 2009
Messages
85
Location
Seattle, WA
Hello all! I am working on a BtS Mod and trying to remove a couple leaders from the game. I'm adding in a few custom leaders and want to keep the overall number of leaders about the same.

First, I added the new leaders and the game seemed to play fine. I then decided to remove a couple leaders.

I commented out the leader from the civilization file (CIV4CivilizationInfos.xml). I then commented out the leader from the leader file (CIV4LeaderHeadInfos.xml).

When I load the mod, I got an error regarding the diplomacy text for the removed leader.

I commented out the diplomacy text for the leaders in CIV4DiplomacyInfos.xml.

When I run the game, some of the leaders now no longer have text for the first contact. The rest of the diplomacy text seems to work fine (like proposing trades, etc).

I've spent 2 nights troubleshooting and am stumped. Any suggestions or things I'm missing?

Thanks for any help.
 
I commented out the diplomacy text for the leaders in CIV4DiplomacyInfos.xml.

When I run the game, some of the leaders now no longer have text for the first contact. The rest of the diplomacy text seems to work fine (like proposing trades, etc).

Dumb question; have you checked if CIV4DiplomacyInfos.xml defines first contact texts for every leader? Sometimes you might miss one (it often happens to me!).
 
Even dumber/stranger - for some reason the commented xml in CIV4DiplomacyInfos.xml was causing the problem. I moved all the commented out first contact responses to the bottom of the first contact section and it seems to work.

I should have thought of this sooner. I encountered this once before with xml and civ.

(I have a bad habit of not deleting but commenting out code/xml)

Thanks for the help!
 
I think there is an xml tag, something like<isplayable> and <isaiplayable>, you could set those to 0 or whatever you set them to to turn them off.
 
One of the tags allows you to deactivate for AIs, another for human players. Then they are gone from the game, but you don't need to bother deleting all the xml files... I do this for leaders that I don't want to have in certain mods
 
Thanks for the suggestion. I tried setting the availability tag to 0. While the leader doesn't show up as playable, they are still in the civopedia under leaders (though removed from the civilization). I thought about it and I actually want them removed from the civilopedia too for my mod.

Again, thanks for all the great responses so quickly. I should have posted sooner!
 
I'm sorry if resurrecting threads is annoying, but I'd like to know something similar as well. :D

Two posters suggested that there is an XML in which leaders can be deactivated, and I'd like to make it so that whenever I choose a random leader, the game can't choose certain leaders which I hate.

The only "playable" kind of tag which I've found is in CIV4CivilizationInfos.xml and it refers to the civilization itself, but this isn't good enough. For instance, I would never play as stalin, but I don't want to deactivate all of Russia.

And there's another tag in this file for leaders being available, but it's not separated between AI and human, and I don't have a problem with the AI playing one of the leaders I hate.

So... could anyone please tell me what the file is where I can set certain leaders to be unplayable by the human? Or if there even is such a thing? :D

Thanks!
 
Hi - you have to open the file: CIV4CivilizationInfos, then you can make leaders unavailable - I don't remember if you can set to 0, or if you have to delete them...


PHP:
			<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>
 
Back
Top Bottom