Adding new values to Civic XML file (and others)

Encyclopath

Chieftain
Joined
Aug 19, 2008
Messages
7
Is there any way to add more options to the Civicinfos.XML file by modifying CIV4GameInfoSchema.xml?

I was disappointed when I went to mod my civics and found a lot of the modifiers I wanted to use weren't there. (build time for individual improvements, base unhappiness, base unhealthiness, unhealthiness for certain improvement types, (un)happiness per resource, etc.)
Most notably, considering how overpowered hurry production with gold is, especially with the Pyramids, I wanted to add that ability to most government civics, but with cost penalties for all but Universal Sufferage. There is an iGlobalHurryProduction (?) tag for buildings that changes it for all cities by a percent value (Kremlin), but I wasn't able to figure out how to migrate that into Civics (or CIV4TraitInfos.xml and CIV4CivilizationsSchema.xml for that matter)

Can that be done?

In the meantime, I made the Pyramids a national wonder that expires with either Democracy or Communism. It seems fair for the AI in my case, since I'm a wonder-a-holic.
 
Moddifyiing the XML file and the Schema is a first step, but it's not enought.
For the game to actually use the new stuff you defined you will have to add something (code on how to use the coll new tags) to the GameCore.dll.

Kael wrote a tutorial on this:
http://forums.civfanatics.com/showthread.php?t=166935
 
Moddifyiing the XML file and the Schema is a first step, but it's not enought.
For the game to actually use the new stuff you defined you will have to add something (code on how to use the coll new tags) to the GameCore.dll.

Kael wrote a tutorial on this:
http://forums.civfanatics.com/showthread.php?t=166935

I was afraid of that. Yikes! I've got my work cut out for me it seems, but this makes what I want to do, doable. Thanks much! I'll reply with the added lines if anyone else wants to use them.
Of course, if anyone has already done this, I'd surely appreciate the same. :)
 
Back
Top Bottom