Hey guys,
I want to tweak resource frequency in Beyond the Sword a little to adjust them to my liking. Now I know the approach I'm pursuing here (make a mod with a changed CIV4BonusInfos.xml) may not be the best way; I probably want to mess with a mapscript. The thing is, I also have rather stringent requirements as far as mapscripts go; basically I need to be running a mirrored map (since I'm trying to set up for fair-as-possible 1v1 multiplayer). I have a beautiful mapscript for that (LD's mirror inland sea, further modified by Shizanu), but that mapscript is running vanilla resource placement for the most part. I don't really want to write up a whole new resource placement subroutine if I can just tweak a few iTilesPer or iPlayer values.
Now here's the problem I run into:
* I made a whole fresh new mod folder, copying the .ini from one of the existing mods and adjusting it for my needs. It's very small and I don't think there should be a problem with it, but just in case, here it is:
[CONFIG]
; This mod is only for single player games
SinglePlayerOnly = 0
; Set to 1 to disallow use of WorldBuilder scenarios
IgnoreWorldBuilderScenarios = 0
; Allow public maps to be used with this mod
AllowPublicMaps = 1
; Mod Image file
ImageFile = 0
; Name of Mod
Name = ResourceRebalance
; Description of Mod
Description = Generic Mod
* In that new directory, I created the proper subdirectory structure: Assets\XML\Terrain
* Then I copied the CIV4BonusInfos.xml from BtS into the Terrain folder.
Starting like that gives me an XML error:
Failed Loading XML file xml\Terrain/CIV4BonusInfos.xml [...] Element content is invalid according to the DTD/Schema.
Expecting: {x-schema:CIV4TerrainSchema.xml}iAiObjective.
Line: 25, 13
Source: <iHealth>0</iHealth>
Just to restate this: this is a 100% unchanged CIV4BonusInfos.xml from my Beyond The Sword Assets\XML\Terrain dir.
So I think, okay, maybe I need the whole folder. So I copy the entire Terrain folder over. This now triggers an error in an XML file in the Buildings folder. So I copy that over. Now I get an error in the Gameinfo folder. And finally when I copy that over, I get a CtD during mod loading.
In case this matters, I'm using the steam version of Civilization IV. The source directory from which I'm taking these XML files is:
C:\Program Files\steam\steamapps\common\sid meier's civilization iv beyond the sword\Assets\XML
So I'm a little stumped here. How hard can it be to run a minimal mod that only changes one of the original XML files? What am I doing wrong?
Thanks in advance!
I want to tweak resource frequency in Beyond the Sword a little to adjust them to my liking. Now I know the approach I'm pursuing here (make a mod with a changed CIV4BonusInfos.xml) may not be the best way; I probably want to mess with a mapscript. The thing is, I also have rather stringent requirements as far as mapscripts go; basically I need to be running a mirrored map (since I'm trying to set up for fair-as-possible 1v1 multiplayer). I have a beautiful mapscript for that (LD's mirror inland sea, further modified by Shizanu), but that mapscript is running vanilla resource placement for the most part. I don't really want to write up a whole new resource placement subroutine if I can just tweak a few iTilesPer or iPlayer values.
Now here's the problem I run into:
* I made a whole fresh new mod folder, copying the .ini from one of the existing mods and adjusting it for my needs. It's very small and I don't think there should be a problem with it, but just in case, here it is:
Spoiler :
[CONFIG]
; This mod is only for single player games
SinglePlayerOnly = 0
; Set to 1 to disallow use of WorldBuilder scenarios
IgnoreWorldBuilderScenarios = 0
; Allow public maps to be used with this mod
AllowPublicMaps = 1
; Mod Image file
ImageFile = 0
; Name of Mod
Name = ResourceRebalance
; Description of Mod
Description = Generic Mod
* In that new directory, I created the proper subdirectory structure: Assets\XML\Terrain
* Then I copied the CIV4BonusInfos.xml from BtS into the Terrain folder.
Starting like that gives me an XML error:
Spoiler :
Failed Loading XML file xml\Terrain/CIV4BonusInfos.xml [...] Element content is invalid according to the DTD/Schema.
Expecting: {x-schema:CIV4TerrainSchema.xml}iAiObjective.
Line: 25, 13
Source: <iHealth>0</iHealth>
Just to restate this: this is a 100% unchanged CIV4BonusInfos.xml from my Beyond The Sword Assets\XML\Terrain dir.
So I think, okay, maybe I need the whole folder. So I copy the entire Terrain folder over. This now triggers an error in an XML file in the Buildings folder. So I copy that over. Now I get an error in the Gameinfo folder. And finally when I copy that over, I get a CtD during mod loading.
In case this matters, I'm using the steam version of Civilization IV. The source directory from which I'm taking these XML files is:
C:\Program Files\steam\steamapps\common\sid meier's civilization iv beyond the sword\Assets\XML
So I'm a little stumped here. How hard can it be to run a minimal mod that only changes one of the original XML files? What am I doing wrong?
Thanks in advance!