Trying to port
into base terrain.
In the TerrainInfo type:
To make it validate, I've moved TechYieldChanges and all of its children up in the schema:
When I launch, it works as long as I haven't put anything inside of PrereqTech. With the following data for the Grass entry in CIV4TerrainInfos.xml:
I get an error on startup:
Tag: TECH_MYSTICISM in Info class is incorrect.
It loads, and I can get the civilopedia and play normally.
I get no errors at all with the following changes (but obviously this won't work):
Anyone know what's up with this?
Code:
<element type="TechYieldChanges"/>
into base terrain.
In the TerrainInfo type:
Code:
<element type="iDefense"/>
<element type="TechYieldChanges" minOccurs="0"/>
<element type="Button"/>
To make it validate, I've moved TechYieldChanges and all of its children up in the schema:
Code:
<ElementType name="iYield" content="textOnly" dt:type="int"/>
<ElementType name="Yields" content="eltOnly">
<element type="iYield" minOccurs="0" maxOccurs="*"/>
</ElementType>
<ElementType name="PrereqTech" content="textOnly"/>
<ElementType name="TechYields" content="eltOnly">
<element type="iYield" minOccurs="0" maxOccurs="*"/>
</ElementType>
<ElementType name="TechYieldChange" content="eltOnly">
<element type="PrereqTech"/>
<element type="TechYields"/>
</ElementType>
<ElementType name="TechYieldChanges" content="eltOnly">
<element type="TechYieldChange" minOccurs="0" maxOccurs="*"/>
</ElementType>
When I launch, it works as long as I haven't put anything inside of PrereqTech. With the following data for the Grass entry in CIV4TerrainInfos.xml:
Code:
<TechYieldChanges>
<TechYieldChange>
<PrereqTech>TECH_MYSTICISM</PrereqTech>
<TechYields>
<iYield>5</iYield>
<iYield>10</iYield>
<iYield>20</iYield>
</TechYields>
</TechYieldChange>
</TechYieldChanges>
I get an error on startup:
Tag: TECH_MYSTICISM in Info class is incorrect.
It loads, and I can get the civilopedia and play normally.
I get no errors at all with the following changes (but obviously this won't work):
Code:
<TechYieldChanges>
<TechYieldChange>
<PrereqTech/>
<TechYields>
<iYield>5</iYield>
<iYield>10</iYield>
<iYield>20</iYield>
</TechYields>
</TechYieldChange>
</TechYieldChanges>
Anyone know what's up with this?