Expansion files

Serp

King
Joined
Apr 1, 2015
Messages
666
How does the Expansion files work.

I mean e.g we have three times the Civ5UnitPromotions.xml file. In Vanilla, in Exp1 and in Exp2.
When I play Expansion2, is only the xml file from Expansion2 used? Or are the other files also partly used?

I ask, because in Expansion 2 file, it seems no unit is able to choose the indirect fire promotion. Does this really mean, in expansion 2 no unit is able to choose this promotion?
 
Expansion files are loaded after the vanilla. Many 'base game' definitions are still located in the vanilla files. Expansion files re-write over their equivalent vanilla files as necessary.

In BNW as a general rule there will be up to three similarly-named files for one type of game element. For buildings, there is Civ5Buildings.xml, Civ5Buildings_Inherited_Expansion2.xml, and Civ5Buildings_Expansion2.xml. Items for Buildings and Wonders that were added in Vanilla are located in Civ5Buildings.xml and any changes to Vanilla buildings and wonders are contained therein. Items for Buildings and Wonders that were added in G&K are located in Civ5Buildings_Inherited_Expansion2.xml and any changes to G&K buildings and wonders are contained therein. Civ5Buildings_Expansion2.xml will contain the stuff added new in BNW. This is the general pattern adhered to by Firaxis. But Firaxis is never 100% consistent about anything, so this is only a general rule to understand where to find the relevant XML for BNW. DLC info is found in additional DLC subfolders for each of the expansions (these are located under the over-all expansion subfolder), so you will find nothing about Walls of Babylon in BNW in the three files mentioned earlier -- Walls of Babylon will be found in the XML folders for the Babylon DLC (sorry I can't remember off the top of my head which DLC Babylon is in).

Adding to the fun of understanding where things are in the XML files is the fact that in BNW, Firaxis was inconsistent in their methods. Austrian Hussars, for example, are mentioned nowhere in the three BNW "Units" files. But if you have both G&K and BNW, when playing BNW you still have Austrian Hussars in-game. This is because the Hussars are defined in G&K and 'left alone' by the BNW code. Which is fine in and of itself, but inconsistent with the methods used for 90+% of all the other units.

All this fun and 'consistency' is a big reason why many of us recommend downloading one of the free SQL database viewer programs, and only working directly with what is actually implimented into the game's SQL database rather than trying to hunt-peck-browse through all the hash of game-file arrangement and organization. Though I still maintain there is no superior method for understanding the structure of the game's basic elements (such as buildings, units, promotions, policies, techs) than opening the relevant XML files and studying the table definitions as used by the game, and as used for a particular expansion-level.
 
Thanks for your detailed explanation :)

To summarize it:

So if the files have different names, like Civ5Buildings.xml, Civ5Buildings_Inherited_Expansion2.xml, and Civ5Buildings_Expansion2.xml , they are all, up to the expasnion I play, used.

But if they have the same name, like Civ5UnitPromotions.xml , only the one from the Expansion I play is used.
 
Only kinda that way. 1st the game loads all the Vanilla CIV5 stuff, then the G&K CIV5 stuff, then the BNW CIV5 stuff. Most things in the original Vanilla CIV5 Civ5UnitPromotions.xml files will either be restated in the two expansion files with the same name, or slightly alterred in the Expansion version(s) of the file with the same name, but not always everything in all cases.

You can more clearly see what I am referring to in the C:\Program Files (x86)\Steam\SteamApps\common\Sid Meier's Civilization V\assets\DLC\Expansion2\Gameplay\XML\Civilizations folder in the three files CIV5Civilizations.xml, CIV5Civilizations_Inherited_Expansion2.xml, and CIV5Civilizations_Expansion2.xml. CIV5Civilizations_Inherited_Expansion2.xml only has stuff in it about Ethiopia (and for Byzantium, Netherlands, and Sweden relating to default religion-name), but more than just those few bits were added as new civs in G&K.
 
Back
Top Bottom