I'll start with resources, first with BonusInfo files from SVN 7442 (I'll do the ArtDefines_Bonus and Gametext located in the same folders later on if everything goes well).
I assume all of them are located in files matching .*CIV4BonusInfo.xml :
My suggestion :
- Keep the ones in Alt_Timelines inchanged
- Keep the Culture file inchanged (it contains all culture bonus except the alt_timelines ones ; I counted 215).
- Merge everything else (383 entries) into a single file. I can split them into two files (TradeGoods and Manufactured), but I'm not sure how one knows whether a resource is either. I assume the first is for resources "gathered" on the maps while the second are for those generated by buildings - but can't a resource be both? From the look of it, I'd say that TradeGoods are the one located in XML\Terrain\CIV4BonusInfos.xml and Manufactured all the ones in Modules, but I'm not really sure...
Anyway, if you want me to split this file, let me know which bonus should go where (below is the full list; the ones from XML\Terrain\CIV4BonusInfos.xml are from BONUS_BARLEY to the end). Also, I can take this opportunity to sort all entries in whatever order (for example alphabetical), tell me if you want a specific order.
Quick other comments:
- Not all files have the same x-schema defined; they start with either:
<Civ4BonusInfos xmlns="x-schema:C2C_CIV4TerrainSchema.xml">
<Civ4BonusInfos xmlns="x-schema:Tools_CIV4TerrainSchema.xml">
<Civ4BonusInfos xmlns="x-schema:Hydro_CIV4TerrainSchema.xml">
etc. depending on where they are located. The content of those xml schemas do not seem identical.
Is one of them a "master file" which I can use for the merged file? Or will I have to merge them somehow?
- Some tags are nearly unused:
* <Help> is only used for BONUS_PERSONAL_REPLICATORS (it contains TXT_KEY_BONUS_PERSONAL_REPLICATORS_HELP)
* <bForceOverwrite> is only used (with value 1) for BONUS_WOOL, which has only one instance and is located in core (XML\Terrain\CIV4BonusInfos.xml)
* In the following tag that appears for nearly every bonus, the 4th subtag (<iRandApp4>0</iRandApp4>) never contains anything else than 0:
<Rands>
<iRandApp1>25</iRandApp1>
<iRandApp2>25</iRandApp2>
<iRandApp3>0</iRandApp3>
<iRandApp4>0</iRandApp4>
</Rands>
Could those tags be removed?
- More broadly, as I remember you said that reading each tag took time, would it be useful to remove all tags which contain default values? If so, where could I find the default value for each tag?
- I few odd things I've noticed. Probably normal, but just in case:
* BONUS_QUANTONIUM_CRYSTAL has two entries for <TechCityTrade>:
<TechCityTrade>TECH_OPTRONICS</TechCityTrade>
<TechCityTrade>NONE</TechCityTrade>
No other bonus has two <TechCityTrade>. Is the second <TechCityTrade> really relevant?
* The following resources (not including cultures) have NONE as TechReveal:
The following (not including cultures) have NONE as TechCityTrade:
Those have NONE to both TechReveal and TechCityTrade:
* BONUS_KAVA has -30 to iMinLatitude and 10 iMaxLatitude (this is the only one with a negative value)
BONUS_GEMS has 0 to iMinLatitude and 0 iMaxLatitude