Please help newbie. A problem with golden age.

Mtgkuvalda

Chieftain
Joined
Apr 22, 2018
Messages
53
I want to add additional power to the unit in the golden age.
In <SubjectRequirementSetId> I inserted PLAYER_HAS_GOLDEN_AGE just like in Georgian's Tsikhe's ability.
But when I start the game, this error is displayed:

What's my problem? And is it also possible to replace GOLDEN with DARK?
 

Attachments

  • 2.jpg
    2.jpg
    449.8 KB · Views: 37
Full version of the core file.

<GameData>

<Types>
<Row Type="ABILITY_EAGLE_WARRIOR_DARK_AGE_VOLZUS" Kind="KIND_ABILITY"/>
</Types>

<Tags>
<Row Tag="CLASS_EAGLE_WARRIOR" Vocabulary="ABILITY_CLASS"/>
</Tags>

<TypeTags>
<Row Type="ABILITY_EAGLE_WARRIOR_DARK_AGE_VOLZUS" Tag="CLASS_EAGLE_WARRIOR"/>
<Row Type="UNIT_AZTEC_EAGLE_WARRIOR" Tag="CLASS_EAGLE_WARRIOR"/>
</TypeTags>

<UnitAbilities>
<Row UnitAbilityType="ABILITY_EAGLE_WARRIOR_DARK_AGE_VOLZUS"
Name="LOC_ABILITY_EAGLE_WARRIOR_DARK_AGE_NAME_VOLZUS"
Description="LOC_ABILITY_EAGLE_WARRIOR_DARK_AGE_DESCRIPTION_VOLZUS"/>
</UnitAbilities>

<UnitAbilityModifiers>
<Row>
<UnitAbilityType>ABILITY_EAGLE_WARRIOR_DARK_AGE_VOLZUS</UnitAbilityType>
<ModifierId>DARK_AGE_COMBAT_BONUS_VOLZUS</ModifierId>
</Row>
</UnitAbilityModifiers>

<Modifiers>
<Row>
<ModifierId>DARK_AGE_COMBAT_BONUS_VOLZUS</ModifierId>
<ModifierType>MODIFIER_UNIT_ADJUST_COMBAT_STRENGTH</ModifierType> <SubjectRequirementSetId>REQSET_PLAYER_HAS_DARK_AGE_VOLZUS</SubjectRequirementSetId>
</Row>
</Modifiers>

<ModifierArguments>
<Row>
<ModifierId>DARK_AGE_COMBAT_BONUS_VOLZUS</ModifierId>
<Name>Amount</Name>
<Value>7</Value>
</Row>
</ModifierArguments>

<RequirementSets>
<Row> <RequirementSetId>REQSET_PLAYER_HAS_DARK_AGE_VOLZUS</RequirementSetId>
<RequirementSetType>REQUIREMENTSET_TEST_ALL</RequirementSetType>
</Row>
</RequirementSets>

<RequirementSetRequirements>
<Row> <RequirementSetId>REQSET_PLAYER_HAS_DARK_AGE_VOLZUS</RequirementSetId>
<RequirementId>REQ_PLAYER_HAS_DARK_AGE_VOLZUS</RequirementId>
</Row>
</RequirementSetRequirements>

<Requirements>
<Row>
<RequirementId>REQ_PLAYER_HAS_DARK_AGE_VOLZUS</RequirementId>
<RequirementType>REQUIREMENT_PLAYER_HAS_DARK_AGE</RequirementType>
</Row>
</Requirements>

<ModifierStrings>
<Row ModifierId="DARK_AGE_COMBAT_BONUS_VOLZUS" Context="Preview" Text="LOC_MODIFIER_EAGLE_WARRIOR_DARK_AGE_DESCRIPTION_VOLZUS"/>
</ModifierStrings>
</GameData>
 
Last edited:
I don't understand anything anymore! Why in mode EnigmaConundrum's Albania work normal, with absolutely similar script to give unit ability in golden age, and mine, with the script completely copied from there, gives this error! Usually, the game does not start when there are problems, and this is the first time I see this error - and I do not understand what to do with it!
 
The Exception Violation error really has nothing to do with your XML code.

Many people are reporting getting this issue on various sites around the internet. Unfortunately no one in the modding community has as yet figured out what exactly causes it.

We think it may have to do with mods that add too many new 3d animations to the game. But it may also be an issue between Windows and the Game.
 
The Exception Violation error really has nothing to do with your XML code.

Many people are reporting getting this issue on various sites around the internet. Unfortunately no one in the modding community has as yet figured out what exactly causes it.

We think it may have to do with mods that add too many new 3d animations to the game. But it may also be an issue between Windows and the Game.

Thank you so much for your reply! I have all the mods disabled right now. Now I have this error appears exactly on the line PLAYER_HAS_GOLDEN_AGE, when I enter another condition - everything is fine. And the game itself uses this line without problems in Georgia.

Well, it turns out this is really a bug of the game. We'll have to look for other conditions for the ability. Once again, thank you so much for your help!

Upd.: PLAYER_HAS_GOLDEN_AGE work correctly with buildings, also can change GOLD to DARK. The condition works somehow strangely - bonuses are added only from the next turn. Maybe that's why there is a conflict with the units. In Albania mode, the gendarmes give cities loyalty and happiness in the golden age, maybe that's why everything works there - the condition is designed for infrastructure.
 
Last edited:
Back
Top Bottom