Unitcombat_

Paasky

Good News Everyone!
Joined
Nov 19, 2003
Messages
2,062
Location
Vantaa, Finland
This is getting annoying. How can I make new UNITCOMBAT_ names? Like UNITCOMBAT_FIGHTER, UNITCOMBAT_BOMBER, etc.

The game gives me an error:

Tag: UNITCOMBAT_SUB in Info class was incorrect
Current XML file is: Units\CIV4UnitInfos.xml


when I add this:
Code:
<Combat>UNITCOMBAT_SUB</Combat>



The same error

Tag: UNITCOMBAT_SUB in Info class was incorrect
Current XML file is: Units\CIV4UnitInfos.xml


came again because I added this:
Code:
			<UnitCombatMods>
				<UnitCombatMod>
					<UnitCombatType>UNITCOMBAT_SUB</UnitCombatType>
					<iUnitCombatMod>100</iUnitCombatMod>
				</UnitCombatMod>
			</UnitCombatMods>

I'm assuming (because I had a similiar error when I didn't add a new unitclass into the unitclasses.xml) that they have to be defined somewhere, but I can't find that file!

:mad:
 
UNITCOMBAT_* definitions are contained in CIV4BasicInfos.xml. Add it there first.
 
Back
Top Bottom