Maniac
Apolyton Sage
For Planetfall I wanted to add some extra options for invisibility types, eg an invisibility type for native life which only makes them invisible on fungus features.
Therefore I harvested code from Conqueror's Delight which allows exactly that. Conqueror's Delight removes CIV4InvisibilityInfos.xml from BasicInfos, and adds a new file to GameInfo with the same name.
I did the related code changes too, but now, when I try to load the game, I get an error saying the PlayerOptionInfos.xml and GraphicsOptionInfos.xml failed to load, upon which the game crashes.
Does anyone have a clue what could cause this problem??
Edit: When using an older DLL, the error still occurs. The problem lies somewhere in what I added in GameInfoSchema. If I remove this, the error disappears. I can't see why this could cause issues though.
Therefore I harvested code from Conqueror's Delight which allows exactly that. Conqueror's Delight removes CIV4InvisibilityInfos.xml from BasicInfos, and adds a new file to GameInfo with the same name.
I did the related code changes too, but now, when I try to load the game, I get an error saying the PlayerOptionInfos.xml and GraphicsOptionInfos.xml failed to load, upon which the game crashes.
Does anyone have a clue what could cause this problem??

Edit: When using an older DLL, the error still occurs. The problem lies somewhere in what I added in GameInfoSchema. If I remove this, the error disappears. I can't see why this could cause issues though.

Code:
<ElementType name="Civ4InvisibleInfos" content="eltOnly">
<element type="InvisibleInfos" minOccurs="1" maxOccurs="1"/>
</ElementType>
<ElementType name="InvisibleInfos" content="eltOnly">
<element type="InvisibleInfo" minOccurs="0" maxOccurs="*"/>
</ElementType>
<ElementType name="InvisibleInfo" content="eltOnly">
<element type="bPermanent" minOccurs="0"/>
<element type="bFullHealth" minOccurs="0"/>
<element type="InvisibleOnTerrains" minOccurs="0"/>
<element type="InvisibleOnFeatures" minOccurs="0"/>
</ElementType>
<ElementType name="bPermanent" content="textOnly" dt:type="boolean"/>
<ElementType name="bFullHealth" content="textOnly" dt:type="boolean"/>
<ElementType name="InvisibleOnTerrains" content="eltOnly">
<element type="InvisibleOnTerrain" minOccurs="0"/>
</ElementType>
<ElementType name="InvisibleOnFeatures" content="eltOnly">
<element type="InvisibleOnFeature" minOccurs="0"/>
</ElementType>
<ElementType name="InvisibleOnTerrain" content="eltOnly">
<element type="TerrainType"/>
<element type="bInvisible"/>
</ElementType>
<ElementType name="TerrainType" content="textOnly"/>
<ElementType name="bInvisible" content="textOnly" dt:type="boolean"/>
<ElementType name="InvisibleOnFeature" content="eltOnly">
<element type="FeatureType"/>
<element type="bInvisible"/>
</ElementType>