steveforez
Chieftain
Well, my mod work good but my trait fail.
(For write this, i have see on belief file in God of open sky )
Log Error :
[Gameplay] ERROR: UNIQUE constraint failed: RequirementSets.RequirementSetId
[3023901.534] [Gameplay]: Validating Foreign Key Constraints...
[3023901.553] [Gameplay]: Passed Validation.
[3024048.766] [FullTextSearch]: FTS - Creating Context
[3024050.390] [FullTextSearch]: FTS - Creating Context
[3024055.365] [FullTextSearch]: FTS - Creating Context
Spoiler Trait Code :
Code:
<Modifiers>
<Row>
<ModifierId>TRAIT_ADDCULTURE_PASTURE</ModifierId>
<ModifierType>MODIFIER_CITY_PLOT_YIELDS_ADJUST_PLOT_YIELD</ModifierType>
<SubjectRequirementSetId>PLOT_HAS_PASTURE_REQUIREMENTS</SubjectRequirementSetId>
</Row>
<Row>
<ModifierId>TRAIT_ADDGOLD_PASTURE</ModifierId>
<ModifierType>MODIFIER_CITY_PLOT_YIELDS_ADJUST_PLOT_YIELD</ModifierType>
<SubjectRequirementSetId>PLOT_HAS_PASTURE_REQUIREMENTS</SubjectRequirementSetId>
</Row>
</Modifiers>
<ModifierArguments>
<Row>
<ModifierId>TRAIT_ADDCULTURE_PASTURE</ModifierId>
<Name>YieldType</Name>
<Value>YIELD_CULTURE</Value>
</Row>
<Row>
<ModifierId>TRAIT_ADDCULTURE_PASTURE</ModifierId>
<Name>Amount</Name>
<Value>1</Value>
</Row>
<Row>
<ModifierId>TRAIT_ADDGOLD_PASTURE</ModifierId>
<Name>YieldType</Name>
<Value>YIELD_GOLD</Value>
</Row>
<Row>
<ModifierId>TRAIT_ADDGOLD_PASTURE</ModifierId>
<Name>Amount</Name>
<Value>1</Value>
</Row>
</ModifierArguments>
<RequirementSets>
<Row>
<RequirementSetId>PLOT_HAS_PASTURE_REQUIREMENTS</RequirementSetId>
<RequirementSetType>REQUIREMENTSET_TEST_ALL</RequirementSetType>
</Row>
</RequirementSets>
<Requirements>
<Row>
<RequirementId>REQUIRES_PLOT_HAS_PASTURE</RequirementId>
<RequirementType>REQUIREMENT_PLOT_IMPROVEMENT_TYPE_MATCHES</RequirementType>
</Row>
</Requirements>
<RequirementArguments>
<Row>
<RequirementId>REQUIRES_PLOT_HAS_PASTURE</RequirementId>
<Name>ImprovementType</Name>
<Value>IMPROVEMENT_PASTURE</Value>
</Row>
</RequirementArguments>
<RequirementSetRequirements>
<Row>
<RequirementSetId>PLOT_HAS_PASTURE_REQUIREMENTS</RequirementSetId>
<RequirementId>REQUIRES_PLOT_HAS_PASTURE</RequirementId>
</Row>
</RequirementSetRequirements>
<TraitModifiers>
<Row TraitType="TRAIT_CIVILIZATION_HORSE_CULTURE">
<ModifierId>TRAIT_ADDCULTURE_PASTURE</ModifierId>
</Row>
<Row TraitType="TRAIT_CIVILIZATION_HORSE_CULTURE">
<ModifierId>TRAIT_ADDGOLD_PASTURE</ModifierId>
</Row>
</TraitModifiers>
(For write this, i have see on belief file in God of open sky )
Log Error :
[Gameplay] ERROR: UNIQUE constraint failed: RequirementSets.RequirementSetId
[3023901.534] [Gameplay]: Validating Foreign Key Constraints...
[3023901.553] [Gameplay]: Passed Validation.
[3024048.766] [FullTextSearch]: FTS - Creating Context
[3024050.390] [FullTextSearch]: FTS - Creating Context
[3024055.365] [FullTextSearch]: FTS - Creating Context