Afforess
The White Wizard
I've (at least I think I have) added a new array to CvBuildingInfos. I cloned DomainProductionModifer, and changed it to UnitClassProductionModifiers. I'm pretty sure I did all the C++ changes correct, (I only edited the CvCity.cpp/h and Infos.cpp/h, are there any other files I missed? [other than CvGameTextMgr, CvCityAI, and the Cy files, I will do those later])
Well, my changes compiled just fine. However, when I updated the Schema and added a test XML entry to the castle, I get XML loading errors. Any ideas why?
Schema:
XML Addition:
If you need to see the code, I'll post that too.
Well, my changes compiled just fine. However, when I updated the Schema and added a test XML entry to the castle, I get XML loading errors. Any ideas why?
Schema:
Code:
<ElementType name="iProductionModifier" content="textOnly" dt:type="int"/>
<ElementType name="UnitClassProductionModifier" content="eltOnly">
<element type="UnitClassType"/>
<element type="iProductionModifier"/>
</ElementType>
<ElementType name="UnitClassProductionModifiers" content="eltOnly">
<element type="UnitClassProductionModifier" minOccurs="0" maxOccurs="*"/>
</ElementType>
XML Addition:
Code:
<UnitClassProductionModifiers>
<UnitClassProductionModifier>
<UnitClassType>UNITCLASS_WORKER</UnitClassType>
<iProductionModifier>100</iProductionModifier>
</UnitClassProductionModifier>
</UnitClassProductionModifiers>
If you need to see the code, I'll post that too.