Afforess
The White Wizard
I noticed after I made a WoC modules that just forced some units to require a building before they can be built, that when starting a map it says UnitUtil - Failed. I know the XML is 100% syntactically correct, but (BUG 4.0 in case you need to know) the Civilopedia section for UNITS ONLY won't show any contents. I can go to the buildings and see that it correctly says "Required To Build..."
WoC XML:
I imagine that the problem is that the UnitUtil's expects a full, regular XML file for units, not the abbreviated WoC version, and thus fails to read it correctly.
WoC XML:
Spoiler :
Code:
<UnitInfo>
<Class>UNIT_SPEARMAN</Class>
<Type>UNIT_SPEARMAN</Type>
<PrereqBuilding>BUILDING_FORGE</PrereqBuilding>
</UnitInfo>
<UnitInfo>
<Class>UNIT_SPEARMAN</Class>
<Type>UNIT_ZULU_IMPI</Type>
<PrereqBuilding>BUILDING_FORGE</PrereqBuilding>
</UnitInfo>
<UnitInfo>
<Class>UNIT_SPEARMAN</Class>
<Type>UNIT_MAYA_HOLKAN</Type>
<PrereqBuilding>BUILDING_FORGE</PrereqBuilding>
</UnitInfo>
I imagine that the problem is that the UnitUtil's expects a full, regular XML file for units, not the abbreviated WoC version, and thus fails to read it correctly.