How does the XML and the WBS interact?

Feet

Warlord
Joined
Oct 25, 2005
Messages
143
Location
Southend, UK
OK I've been going through creating all the new factions for my Mod [pimp]see my sig[/pimp] and I've got a querie.

Here's a small excert from the WBS file I'm using,

Code:
BeginPlayer
	Team=0
	LeaderType=LEADER_NAPOLEON
	LeaderName=Lysa Arryn
	CivDesc=House Arryn
	CivShortDesc=Arryns
	CivAdjective=Falcon
	FlagDecal=Art/Interface/TeamColor/FlagDECAL_Helmet.dds
	WhiteFlag=0
	CivType=CIVILIZATION_ARRYN
	Color=PLAYERCOLOR_CYAN
	ArtStyle=ARTSTYLE_EUROPEAN
	PlayableCiv=1
	MinorNationStatus=0
	StartingGold=500
	StartingX=29, StartingY=122
	StateReligion=
	StartingEra=ERA_ANCIENT
	CivicOption=CIVICOPTION_GOVERNMENT, Civic=CIVIC_DESPOTISM
	CivicOption=CIVICOPTION_LEGAL, Civic=CIVIC_BARBARISM
	CivicOption=CIVICOPTION_LABOR, Civic=CIVIC_TRIBALISM
	CivicOption=CIVICOPTION_ECONOMY, Civic=CIVIC_DECENTRALIZATION
	CivicOption=CIVICOPTION_RELIGION, Civic=CIVIC_PAGANISM
	Handicap=HANDICAP_NOBLE
EndPlayer

Now surely there is an overlap here between my XML and what is in the WBS file.

For example you can set Civ flag in both the WBS and the XML.
You can set the Civics in both too.
Other stuff like PLayerColour as well.

So which one takes precedence? Or does the WBS pull this info from the XML?
 
I don't claim to be a modding god, but here's my guess. First I'm not sure which sections of the XML and WBS files are overlapping, so its hard to say unless someone knows exactly what you're talking about.

I think the WBS files are just save files that store as much data about the game in progress. I think you are refering to the leader traits such as name and description. These values can be modified by the player, so to keep the saves uniform between multiplayer and singleplayer, the game saves all of the values like that in the file. Now in your game that civ is probably AI, so it pulls those descriptions from the XML to use as its reference. I don't think the XML files do any referencing on WBS files, as they are just files that store data. The WBS file just pulls any defaults about civs and maps out of those XML files when it is created. Thats my guess at least, hope it helps.
 
in the WBS, you can change the settings from the xml. ie, if you want to have all civs starting in the mid-renaissance era, and with diff civics, you can change it in the WBS, rather than having to change the XML and make a whole new mod folder
 
Back
Top Bottom