Referencing UNITCOMBAT_MOUNTED

albie_123

Modding In Secret
Joined
Mar 12, 2010
Messages
1,380
Location
Sydney, NSW
I'm getting an odd issue recently.

About 50% of the time, when I reference UNITCOMBAT_MOUNTED, the game spits it back out. Here's the code:

Code:
<Building_UnitCombatProductionModifiers>
	<Row>
[INDENT]	<BuildingType>BUILDING_GER</BuildingType>
	<UnitCombatType>UNITCOMBAT_MOUNTED</UnitCombatType>
	<Modifier>10</Modifier>[/INDENT]
	</Row>
</Building_UnitCombatProductionModifiers>
<UnitPromotions_UnitCombats>
	<Row>
		<PromotionType>PROMOTION_GER</PromotionType>
		<UnitCombatType>UNITCOMBAT_MOUNTED</UnitCombatType>
	</Row>
</UnitPromotions_UnitCombats>

And here's the relevant Database.log entry:

Database.log said:
[17469.163] Invalid Reference on Building_UnitCombatProductionModifiers.UnitCombatType - "UNITCOMBAT_MOUNTED" does not exist in UnitCombatInfos
[17469.693] Invalid Reference on UnitPromotions_UnitCombats.UnitCombatType - "UNITCOMBAT_MOUNTED" does not exist in UnitCombatInfos

I know it's not an issue with PROMOTION_GER or BUILDING_GER, or with my syntax, as when I change the unitcombat to UNITCOMBAT_MELEE or UNITCOMBAT_ARCHER it works every time.
 
Hm, that would explain the difficulty getting it to work, but it seems odd that melee and ranged ARE working...

EDIT: I realised that when I changed the values to melee and ranged, I forgot to set the dependencies again, meaning it was loading BEFORE UP/VE, meaning it worked. Guess I'll have to ask Thal what the deal is. Thanks anyway, whoward. :)
 
Back
Top Bottom