XML General civ info

psifaktor7

Chieftain
Joined
Jul 8, 2009
Messages
44
In my xml file I have something like this:

Team=2
LeaderType=LEADER_ELIZABETH
LeaderName=Churchill
CivDesc=English Empire
CivShortDesc=England
CivAdjective=English
FlagDecal=Art/Interface/TeamColor/FlagDECAL_StGeorgeCross.dds
WhiteFlag=0
CivType=CIVILIZATION_ENGLAND
Color=PLAYERCOLOR_WHITE
ArtStyle=ARTSTYLE_EUROPEAN

The question I have is how do I find out what is the 'LeaderName' for LEADER_ELIZABETH, how does the game assign it? And where to find the other descriptions (CivDesc, FlagDecal, etc) for a certain 'LeaderType'?
I am trying to replace civs in a scenario. I assume there is no way to do it automatically or is it?
 
In your example, the LEADER_ELIZABETH (characteristics are in the file CIV4LeaderHeadInfos.xml) will be named "Churchill". Normally, you would see this: TXT_KEY_LEADER_ELIZABETH. This is a text tag that you can find in a text file, in this case, in the file CIV4GameTextInfos_Objects.xml under vanilla/assets/xml/text folder. It is used for translation into different languages. For example, in Italian, she is "Elisabetta".

For tags like CivDesc or FlagDecal, you assign them the same way. The normal settings, you will find them under CIV4CivilizationInfos.xml or CIV4ArtDefines_Civilization.xml.

A normal setting would be something like this:
Spoiler :
Code:
BeginPlayer
	Team=11
	LeaderType=LEADER_ELIZABETH
	LeaderName=TXT_KEY_LEADER_ELIZABETH
	CivDesc=TXT_KEY_CIV_ENGLAND_DESC
	CivShortDesc=TXT_KEY_CIV_ENGLAND_SHORT_DESC
	CivAdjective=TXT_KEY_CIV_ENGLAND_ADJECTIVE
	FlagDecal=Art/Interface/TeamColor/FlagDECAL_StGeorgeCross.dds
	WhiteFlag=0
	CivType=CIVILIZATION_ENGLAND
	Color=PLAYERCOLOR_WHITE
	ArtStyle=ARTSTYLE_EUROPEAN

However, you can assign pretty much the settings you want like the name "Churchill" or TXT_KEY_LEADER_CHURCHILL (if you want to have the standard form for alternate languages).

I'm not sure I answered your question(s) but at least I tried!

Edit: about the automation: there is a minimum of information you have to enter and then the game could fill in the remaining stuff. I think that this tutorial could be helpful to you.
 
It seems you answered it ;)
I'll give it a try with the minimal settings since I need everything to be on default. Thanks.
 
I have another question:

How do I give the archery technology to every civ except the human controled one (which you can freely choose)?
 
What's the problem?

Spoiler :
Code:
BeginTeam
	TeamID=0
	Tech=TECH_HUNTING
	Tech=TECH_ARCHERY
	ContactWithTeam=0
	RevealMap=0
EndTeam

Just choose the team you want to add this.

If you want this to be only for AI Civs, no way.
 
What's the problem?

Spoiler :
Code:
BeginTeam
	TeamID=0
	Tech=TECH_HUNTING
	Tech=TECH_ARCHERY
	ContactWithTeam=0
	RevealMap=0
EndTeam

Just choose the team you want to add this.

If you want this to be only for AI Civs, no way.

I wanted to simulate the emperor difficulty level and the AI starts with archers there, but the human doesn't. If it's not possible, ok then. :rolleyes:
 
I wanted to simulate the emperor difficulty level and the AI starts with archers there, but the human doesn't. If it's not possible, ok then. :rolleyes:

Well, it's just that the player can choose any of the civilizations, so you can't guess which team to put it on. On the other hand, you can force the difficulty to be Emperor if you want.
 
Back
Top Bottom