albie_123
Modding In Secret
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:
And here's the relevant Database.log entry:
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.
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.