View Full Version : Default CIVS Front Loader


Fierabras
Dec 05, 2007, 08:02 PM
What I do is just keep 1 CivilizationInfos File, and edit it, as i add leaders. Ignoring the XXX_CivilizationInfos.xml for each individual leader.

This is very good solution :goodjob:

I encountered a similiar problem and came up with the same solution. I wanted to add a modular EDU mod and a custom leaderhead for Ethiopia

I created 2 files:

/Mod/Assets/Modules/Default_CIV4CivilizationInfos.xml
/Mod/Assets/Modules/Default_CIV4CivilizationsSchema.xml

and updated in /Mod/Assets/Modules/Default_CIV4CivilizationInfos.xml

<Civ4CivilizationInfos xmlns="x-schema:CIV4CivilizationsSchema.xml">

to

<Civ4CivilizationInfos xmlns="x-schema: Default_CIV4CivilizationsSchema.xml">

These files are exact copies from the /Assets/XML/Civilizations/ folder. The reason I put them in Modules was in case you don't want a /Mod/Assets/XML folder in your mod (although I still needed one for Audio & Diplomacy).

In Default_CIV4CivilizationInfos.xml I made the changes, for example Ethiopia:

overwrite:

<UnitArtStyleType>UNIT_ARTSTYLE_AFRICAN</UnitArtStyleType>

add:

<Leader>
<LeaderName>LEADER_SELASSIE</LeaderName>
<bLeaderAvailability>1</bLeaderAvailability>
</Leader>

I use this file stritcly for changes to the Firaxis civs. Added civs still get their own ***_CIV4CivilizationInfos.xml in Custom Civilizations.

Of course this does not make it Plug & Play, but it is a clean solution for now.

Fierabras
Dec 06, 2007, 08:11 AM
Another example of how this can be used.

Let's say you want to combine these 2 mods:

2ND Unique Units for all 34 Civs (http://forums.civfanatics.com/showthread.php?t=218649)
Plug And Play Leader Heads (http://forums.civfanatics.com/showthread.php?t=237003)

The problem is that in these 2 mods you have an overlap for some civs, like Carthage. To solve this you can move the changes made in ***_CIV4CivilizationInfos.xml in these mods to Default_CIV4CivilizationInfos.xml to make them compatible.

TAfirehawk
Dec 06, 2007, 06:32 PM
It would appear Firaxis released a less than perfect "Modular" system.....

:p

Fierabras
Dec 06, 2007, 06:44 PM
It would appear Firaxis released a less than perfect "Modular" system.....

:p

Sometimes you just have to be pragmatic in a less than perfect world ;)

If true Plug & Play is not possible, then reducing the workload to mostly editing 1 file is a practical solution. Plug & Single Edit & Play.

TAfirehawk
Dec 06, 2007, 07:59 PM
And what if true Plug & Play was possible?

Fierabras
Dec 18, 2007, 12:22 PM
And what if true Plug & Play was possible?

Then we should make every effort to let people know, even by using your signature in every post you make...