Civ trait that increases religious pressure?

Alright so I'm convinced Firaxis put some type of CAP on RP. I tried the mod in two ways. The first being

Code:
<GameData>
    <Modifiers>
        <Row>
            <ModifierId>WOLF_INCREASED_RP</ModifierId>
            <ModifierType>MODIFIER_PLAYER_RELIGION_ADJUST_RELIGIOUS_SPREAD_STRENGTH</ModifierType>
            <SubjectRequirementSetId>NULL</SubjectRequirementSetId>
        </Row>
    </Modifiers>
   
    <ModifierArguments>
        <Row ModifierId="WOLF_INCREASED_RP" Name="Amount" Value="8900"/>
    </ModifierArguments>
   
    <TraitModifiers>   
        <TraitType>TRAIT_LEADER_MAJOR_CIV</TraitType>
        <ModifierId>WOLF_INCREASED_RP</ModifierId>
       
        <TraitType>TRAIT_LEADER_MINOR_CIV</TraitType>
        <ModifierId>WOLF_INCREASED_RP</ModifierId>
    </TraitModifiers>
</GameData>

And the 2nd being

Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- GameData1 -->
<!-- Author: WOLF -->
<!-- DateCreated: 5/24/2020 6:46:02 PM -->
<GameData>
    <!--Increased RP from cities-->
    <Types>
        <Type>WOLF_RP_CITY</Type>
        <Kind>KIND_TRAIT</Kind>
    </Types>
    <DynamicModifiers>
        <Row>
            <ModifierType>WOLF_RP_CITY</ModifierType>
            <CollectionType>COLLECTION_ALL_CITIES</CollectionType>
            <EffectType>EFFECT_ADJUST_CITY_RELIGION_PRESSURE</EffectType>
        </Row>
    </DynamicModifiers>
   
    <Modifiers>
        <Row>
            <ModifierId>WOLF_INCREASED_RP</ModifierId>
            <ModifierType>WOLF_RP_CITY</ModifierType>
            <SubjectRequirementSetId>NULL</SubjectRequirementSetId>
        </Row>
    </Modifiers>
    <ModifierArguments>
        <Row ModifierId="WOLF_INCREASED_RP" Name="Amount" Value="8900"/>
    </ModifierArguments>
    <TraitModifiers>
        <TraitType>TRAIT_LEADER_MAJOR_CIV</TraitType>
        <ModifierId>WOLF_INCREASED_RP</ModifierId>
        <TraitType>TRAIT_LEADER_MINOR_CIV</TraitType>
        <ModifierId>WOLF_INCREASED_RP</ModifierId>
    </TraitModifiers>
</GameData>

Both worked as in the game didn't crash and there was a difference in the RP but it only doubled the religious pressure. As in both times the outgoing RP in a Holy City was 8 when it is usually 4. Surprisingly. Running a Holy Site Prayers Further Increased This Religious pressure to 16. If I'm understanding correctly I believe the conclusion is you can only double the RP in a city using this effect but multiple instances of this trait stack? so using it twice as a civ trait and a holy cite project quadrupled the original RP.
 
If that's an accurate copy/paste of your code then you need to learn how to read messages in Database.log
These are syntax errors
Code:
    <TraitModifiers>   
        <TraitType>TRAIT_LEADER_MAJOR_CIV</TraitType>
        <ModifierId>WOLF_INCREASED_RP</ModifierId>
       
        <TraitType>TRAIT_LEADER_MINOR_CIV</TraitType>
        <ModifierId>WOLF_INCREASED_RP</ModifierId>
    </TraitModifiers>
and
Code:
    <Types>
        <Type>WOLF_RP_CITY</Type>
        <Kind>KIND_TRAIT</Kind>
    </Types>
and
Code:
    <TraitModifiers>
        <TraitType>TRAIT_LEADER_MAJOR_CIV</TraitType>
        <ModifierId>WOLF_INCREASED_RP</ModifierId>
        <TraitType>TRAIT_LEADER_MINOR_CIV</TraitType>
        <ModifierId>WOLF_INCREASED_RP</ModifierId>
    </TraitModifiers>
The files are not being loaded at all or only partially depending on which syntax error you look at. The game only loads the contents of a file until it hits a syntax error and then it stops reading anything within that file into the game's Database.

In all the quoted bits of the code there is no <Row> command. In the <TraitModifiers> table you are trying to add two complete rows so you will need two sets of <Row> commands, each with a <TraitType> and <ModifierId> designation.
 
Thanks so much! Okay so after some more tinkering I have this. It's interesting because I'm getting and error log for WOLF_INCREASED_RP however the RP is still being changed. It's in the thousands. The 2nd part of my code handles RP from trade routes. I'm confused as to if it's working or not.

Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- GameData1 -->
<!-- Author: WOLF -->
<!-- DateCreated: 5/24/2020 6:46:02 PM -->
<GameData>
    <!--Increased RP from cities-->
    <Types>
        <Row>
            <Type>WOLF_RP_CITY</Type>
            <Kind>KIND_TRAIT</Kind>
        </Row>
    </Types>
    <DynamicModifiers>
        <Row>
            <ModifierType>WOLF_RP_CITY</ModifierType>
            <CollectionType>COLLECTION_ALL_CITIES</CollectionType>
            <EffectType>EFFECT_ADJUST_CITY_RELIGION_PRESSURE</EffectType>
        </Row>
    </DynamicModifiers>
  
    <Modifiers>
        <Row>
            <ModifierId>WOLF_INCREASED_RP</ModifierId>
            <ModifierType>WOLF_RP_CITY</ModifierType>
            <SubjectRequirementSetId>NULL</SubjectRequirementSetId>
        </Row>
    </Modifiers>
    <ModifierArguments>
        <Row ModifierId="WOLF_INCREASED_RP" Name="Amount" Value="8900"/>
    </ModifierArguments>
    <TraitModifiers>
        <Row>
            <TraitType>TRAIT_LEADER_MAJOR_CIV</TraitType>
            <ModifierId>WOLF_INCREASED_RP</ModifierId>  
        </Row>
        <Row>
            <TraitType>MINOR_CIV_DEFAULT_TRAIT</TraitType>
            <ModifierId>WOLF_INCREASED_RP</ModifierId>
        </Row>
      
    </TraitModifiers>
    <!--Increased RP from trade routes-->
  
    <Modifiers>
        <Row>
            <ModifierId>WOLF_INCREASED_RP_TRADE</ModifierId>
            <ModifierType>MODIFIER_PLAYER_ADJUST_TRADE_ROUTE_RELIGIOUS_PRESSURE</ModifierType>
            <SubjectRequirementSetId>NULL</SubjectRequirementSetId>
        </Row>
    </Modifiers>
    <ModifierArguments>
        <Row ModifierId="WOLF_INCREASED_RP" Name="Amount" Value="8900"/>
    </ModifierArguments>
    <TraitModifiers>
        <Row>
            <TraitType>TRAIT_LEADER_MAJOR_CIV</TraitType>
            <ModifierId>WOLF_INCREASED_RP_TRADE</ModifierId>
        </Row>
        <Row>
            <TraitType>MINOR_CIV_DEFAULT_TRAIT</TraitType>
            <ModifierId>WOLF_INCREASED_RP_TRADE</ModifierId>
        </Row>
    </TraitModifiers>
  
</GameData>

My error log is here

Code:
[1301057.953] [Localization]: StartupErrorMessages.xml
[1301057.953] [Localization]: Input XML does not contain database entry tags. GameData, GameInfo or Database
[1301061.199] [Localization]: Validating Foreign Key Constraints...
[1301061.199] [Localization]: Passed Validation.
[1301061.213] [Configuration]: Validating Foreign Key Constraints...
[1301061.213] [Configuration]: Passed Validation.
[1301062.180] [FullTextSearch]: Initializing FullTextSearch
[1301063.163] [Gameplay]: Validating Foreign Key Constraints...
[1301063.178] [Gameplay]: Passed Validation.
[1301064.222] [Configuration]: Validating Foreign Key Constraints...
[1301064.223] [Configuration]: Passed Validation.
[1301065.381] [HallofFame]: Database found. Checking versions...
[1301065.383] [HallofFame]: Database is up-to-date!
[1301081.177] [FullTextSearch]: FTS - Creating Context
[1301090.963] [Configuration]: Validating Foreign Key Constraints...
[1301090.963] [Configuration]: Passed Validation.
[1301096.587] [Gameplay] ERROR: UNIQUE constraint failed: ModifierArguments.ModifierId, ModifierArguments.Name
[1301096.587] [Gameplay]: While executing - 'insert into ModifierArguments('ModifierId', 'Name', 'Value') values (?, ?, ?);'
[1301096.588] [Gameplay]: In XMLSerializer while inserting row into table insert into ModifierArguments('ModifierId', 'Name', 'Value') with  values (WOLF_INCREASED_RP, Amount, 8900, ).
[1301096.588] [Gameplay]: In XMLSerializer while updating table ModifierArguments from file Religion Rework.xml.
[1301096.588] [Gameplay] ERROR: UNIQUE constraint failed: ModifierArguments.ModifierId, ModifierArguments.Name
[1301096.971] [Gameplay]: Validating Foreign Key Constraints...
[1301096.994] [Gameplay]: Passed Validation.
[1301099.637] [FullTextSearch]: FTS - Creating Context
[1301099.637] [FullTextSearch]: FTS - Creating Context
[1301100.054] [FullTextSearch]: FTS - Creating Context
[1301100.409] [FullTextSearch]: FTS - Creating Context
[1301101.759] [FullTextSearch]: FTS - Creating Context
[1301161.947] [Configuration]: Validating Foreign Key Constraints...
[1301161.948] [Configuration]: Passed Validation.
[1301162.878] [FullTextSearch]: FTS - Creating Context
[1301182.660] [Configuration]: Validating Foreign Key Constraints...
[1301182.660] [Configuration]: Passed Validation.
[1301191.467] [Gameplay] ERROR: UNIQUE constraint failed: ModifierArguments.ModifierId, ModifierArguments.Name
[1301191.467] [Gameplay]: While executing - 'insert into ModifierArguments('ModifierId', 'Name', 'Value') values (?, ?, ?);'
[1301191.467] [Gameplay]: In XMLSerializer while inserting row into table insert into ModifierArguments('ModifierId', 'Name', 'Value') with  values (WOLF_INCREASED_RP, Amount, 8900, ).
[1301191.467] [Gameplay]: In XMLSerializer while updating table ModifierArguments from file Religion Rework.xml.
[1301191.467] [Gameplay] ERROR: UNIQUE constraint failed: ModifierArguments.ModifierId, ModifierArguments.Name
[1301191.904] [Gameplay]: Validating Foreign Key Constraints...
[1301191.942] [Gameplay]: Passed Validation.
[1301196.959] [FullTextSearch]: FTS - Creating Context
[1301196.960] [FullTextSearch]: FTS - Creating Context
[1301197.272] [FullTextSearch]: FTS - Creating Context
[1301197.538] [FullTextSearch]: FTS - Creating Context
[1301198.721] [FullTextSearch]: FTS - Creating Context
 
Code:
    <ModifierArguments>
        <Row ModifierId="WOLF_INCREASED_RP" Name="Amount" Value="8900"/>
    </ModifierArguments>
You have that twice.

Also make sure you have not listed the file itself more than once in the UpdateDatabae Actions of your mod.
 
Back
Top Bottom