Help! XML is a bucking bronco.......

danjuno

Cole Phelps, Badge 1247
Joined
Feb 19, 2010
Messages
3,369
Location
Wilshire Division
Okay, so I'm creating a modless scenario set in the age of exploration. I edit the XML code in the WBSave, and the Civ/Leader names and colors ( I.E. I gave Scandinavia France's colors and England's cross to make it look like the flag of Sweden) come out okay. But when I try to set their state religions (i.e. Set the blank space after "State Religion=" to Christianity) and when I load up the mod, all the civs have no state religion, even though the civics I set them to worked! Let me give you an example....
Spoiler :
BeginPlayer
Team=0
LeaderType=LEADER_ISABELLA
LeaderName=Isabella
CivDesc=Spanish Empire
CivShortDesc=Spain
CivAdjective=Spanish
FlagDecal=Art/Interface/TeamColor/FlagDECAL_Castle.dds
WhiteFlag=0
CivType=CIVILIZATION_SPAIN
Color=PLAYERCOLOR_PINK
ArtStyle=ARTSTYLE_EUROPEAN
PlayableCiv=1
MinorNationStatus=0
StartingGold=660
StartingX=73, StartingY=54
StateReligion=CHRISTIANITY
StartingEra=ERA_RENAISSANCE
RandomStartLocation=false
CivicOption=CIVICOPTION_GOVERNMENT, Civic=CIVIC_HEREDITARY_RULE
CivicOption=CIVICOPTION_LEGAL, Civic=CIVIC_VASSALAGE
CivicOption=CIVICOPTION_LABOR, Civic=CIVIC_SLAVERY
CivicOption=CIVICOPTION_ECONOMY, Civic=CIVIC_DECENTRALIZATION
CivicOption=CIVICOPTION_RELIGION, Civic=CIVIC_THEOCRACY
Handicap=HANDICAP_NOBLE
EndPlayer
Even with CHRISTIANITY typed in Spain isn't Christian when I load the scenario.
 

Attachments

  • Civ4ScreenShot0386.JPG
    Civ4ScreenShot0386.JPG
    140.2 KB · Views: 84
Yeah, all those names written in CAPITAL_LETTERS are actually XML tag identifiers used by the game. So you should always check either with the documentation (look here) or with the associated XML file directly. (Something like CIV4ReligionInfos.xml in this case or something along those lines.)
 
Back
Top Bottom