Trade Mod unexpected result

Wolffleet

Chieftain
Joined
Jun 1, 2019
Messages
66
Hi so I built a trade Mod that attaches modifiers to buildings in campus, Holy site, and Theater square. For some reason the AI no longer builds these buildings when the mod is enabled. I was wondering If anyone understood why?

Here is the code:

Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- GameData1 -->
<!-- Author: WOLF -->
<!--Credit: Masked Man-->
<!-- DateCreated: 5/26/2020 10:01:23 PM -->
<GameData>
    <ModifierArguments>
    <!-- International-->
        <Row>
            <ModifierId>BONUS_4_GOLD_FROM_INGOING_TRADE</ModifierId>
            <Name>YieldType</Name>
            <Value>YIELD_GOLD</Value>
        </Row>
        <Row>
            <ModifierId>BONUS_4_GOLD_FROM_INGOING_TRADE</ModifierId>
            <Name>Amount</Name>
            <Value>4</Value>
        </Row>
        <Row>
            <ModifierId>NEGATIVE_4_GOLD_TO_OTHER_CIV</ModifierId>
            <Name>YieldType</Name>
            <Value>YIELD_GOLD</Value>
        </Row>
        <Row>
            <ModifierId>NEGATIVE_4_GOLD_TO_OTHER_CIV</ModifierId>
            <Name>Amount</Name>
            <Value>-4</Value>
        </Row>
        <!-- Added Science, Culture, Faith Yields -->
        <Row>
            <ModifierId>BONUS_1_SCIENCE_TO_OTHER_CIV</ModifierId>
            <Name>YieldType</Name>
            <Value>YIELD_SCIENCE</Value>
        </Row>
        <Row>
            <ModifierId>BONUS_1_SCIENCE_TO_OTHER_CIV</ModifierId>
            <Name>Amount</Name>
            <Value>1</Value>
        </Row>
        <Row>
            <ModifierId>BONUS_1_CULTURE_TO_OTHER_CIV</ModifierId>
            <Name>YieldType</Name>
            <Value>YIELD_CULTURE</Value>
        </Row>
        <Row>
            <ModifierId>BONUS_1_CULTURE_TO_OTHER_CIV</ModifierId>
            <Name>Amount</Name>
            <Value>1</Value>
        </Row>
        <Row>
            <ModifierId>BONUS_1_FAITH_TO_OTHER_CIV</ModifierId>
            <Name>YieldType</Name>
            <Value>YIELD_FAITH</Value>
        </Row>
        <Row>
            <ModifierId>BONUS_1_FAITH_TO_OTHER_CIV</ModifierId>
            <Name>Amount</Name>
            <Value>1</Value>
        </Row>
        <Row>
            <ModifierId>WOLF_BONUS_GOLD_INTERNATIONAL_PASSING_THROUGH</ModifierId>
            <Name>YieldType</Name>
            <Value>YIELD_GOLD</Value>
        </Row>
        <Row>
            <ModifierId>WOLF_BONUS_GOLD_INTERNATIONAL_PASSING_THROUGH</ModifierId>
            <Name>Amount</Name>
            <Value>3</Value>
        </Row>
        <!--Domestic-->
        <Row>
            <ModifierId>WOLF_BONUS_1_SCIENCE_DOMESTIC_CIV</ModifierId>
            <Name>YieldType</Name>
            <Value>YIELD_SCIENCE</Value>
        </Row>
        <Row>
            <ModifierId>WOLF_BONUS_1_SCIENCE_DOMESTIC_CIV</ModifierId>
            <Name>Amount</Name>
            <Value>1</Value>
        </Row>
        <Row>
            <ModifierId>WOLF_BONUS_1_CULTURE_DOMESTIC_CIV</ModifierId>
            <Name>YieldType</Name>
            <Value>YIELD_CULTURE</Value>
        </Row>
        <Row>
            <ModifierId>WOLF_BONUS_1_CULTURE_DOMESTIC_CIV</ModifierId>
            <Name>Amount</Name>
            <Value>1</Value>
        </Row>
        <Row>
            <ModifierId>WOLF_BONUS_1_FAITH_DOMESTIC_CIV</ModifierId>
            <Name>YieldType</Name>
            <Value>YIELD_FAITH</Value>
        </Row>
        <Row>
            <ModifierId>WOLF_BONUS_1_FAITH_DOMESTIC_CIV</ModifierId>
            <Name>Amount</Name>
            <Value>1</Value>
        </Row>
    </ModifierArguments>
    <!--Assigning Modifiers to Dynamic Variables-->
    <Modifiers>
        <Row>
            <ModifierId>BONUS_4_GOLD_FROM_INGOING_TRADE</ModifierId>
            <ModifierType>MODIFIER_SINGLE_CITY_ADJUST_TRADE_ROUTE_YIELD_FROM_OTHERS</ModifierType>
        </Row>
        <Row>
            <ModifierId>NEGATIVE_4_GOLD_TO_OTHER_CIV</ModifierId>
            <ModifierType>MODIFIER_SINGLE_CITY_ADJUST_TRADE_ROUTE_YIELD_TO_OTHERS</ModifierType>
        </Row>
        <Row>
            <ModifierId>BONUS_1_SCIENCE_TO_OTHER_CIV</ModifierId>
            <ModifierType>MODIFIER_SINGLE_CITY_ADJUST_TRADE_ROUTE_YIELD_TO_OTHERS</ModifierType>
        </Row>
        <Row>
            <ModifierId>BONUS_1_CULTURE_TO_OTHER_CIV</ModifierId>
            <ModifierType>MODIFIER_SINGLE_CITY_ADJUST_TRADE_ROUTE_YIELD_TO_OTHERS</ModifierType>
        </Row>
        <Row>
            <ModifierId>BONUS_1_FAITH_TO_OTHER_CIV</ModifierId>
            <ModifierType>MODIFIER_SINGLE_CITY_ADJUST_TRADE_ROUTE_YIELD_TO_OTHERS</ModifierType>
        </Row>
        <Row>
            <ModifierId>WOLF_BONUS_GOLD_INTERNATIONAL_PASSING_THROUGH</ModifierId>
            <ModifierType>MODIFIER_CITY_ADJUST_YIELD_FROM_FOREIGN_TRADE_ROUTES_PASSING_THROUGH</ModifierType>
        </Row>
        <Row>
            <ModifierId>WOLF_BONUS_1_SCIENCE_DOMESTIC_CIV</ModifierId>
            <ModifierType>MODIFIER_SINGLE_CITY_ADJUST_TRADE_ROUTE_YIELD_FOR_DOMESTIC</ModifierType>
        </Row>
        <Row>
            <ModifierId>WOLF_BONUS_1_CULTURE_DOMESTIC_CIV</ModifierId>
            <ModifierType>MODIFIER_SINGLE_CITY_ADJUST_TRADE_ROUTE_YIELD_FOR_DOMESTIC</ModifierType>
        </Row>
        <Row>
            <ModifierId>WOLF_BONUS_1_FAITH_DOMESTIC_CIV</ModifierId>
            <ModifierType>MODIFIER_SINGLE_CITY_ADJUST_TRADE_ROUTE_YIELD_FOR_DOMESTIC</ModifierType>
        </Row>
    </Modifiers>
    <BuildingModifiers>
        <!--For CH Trade-->
        <Row>
            <BuildingType>BUILDING_MARKET</BuildingType>
            <ModifierId>WOLF_BONUS_GOLD_INTERNATIONAL_PASSING_THROUGH</ModifierId>
        </Row>
        <Row>
            <BuildingType>BUILDING_BANK</BuildingType>
            <ModifierId>WOLF_BONUS_GOLD_INTERNATIONAL_PASSING_THROUGH</ModifierId>
        </Row>
        <!-- Science buildings -->
        <Row>
            <BuildingType>BUILDING_LIBRARY</BuildingType>
            <ModifierId>BONUS_4_GOLD_FROM_INGOING_TRADE</ModifierId>
        </Row>
        <Row>
            <BuildingType>BUILDING_LIBRARY</BuildingType>
            <ModifierId>NEGATIVE_4_GOLD_TO_OTHER_CIV</ModifierId>
        </Row>
        <Row>
            <BuildingType>BUILDING_LIBRARY</BuildingType>
            <ModifierId>BONUS_1_SCIENCE_TO_OTHER_CIV</ModifierId>
        </Row>
        <Row>
            <BuildingType>BUILDING_LIBRARY</BuildingType>
            <ModifierId>WOLF_BONUS_1_SCIENCE_DOMESTIC_CIV</ModifierId>
        </Row>
        <Row>
            <BuildingType>BUILDING_UNIVERSITY</BuildingType>
            <ModifierId>BONUS_4_GOLD_FROM_INGOING_TRADE</ModifierId>
        </Row>
        <Row>
            <BuildingType>BUILDING_UNIVERSITY</BuildingType>
            <ModifierId>NEGATIVE_4_GOLD_TO_OTHER_CIV</ModifierId>
        </Row>
        <Row>
            <BuildingType>BUILDING_UNIVERSITY</BuildingType>
            <ModifierId>BONUS_1_SCIENCE_TO_OTHER_CIV</ModifierId>
        </Row>
        <Row>
            <BuildingType>BUILDING_UNIVERSITY</BuildingType>
            <ModifierId>WOLF_BONUS_1_SCIENCE_DOMESTIC_CIV</ModifierId>
        </Row>
        <Row>
            <BuildingType>BUILDING_MADRASA</BuildingType>
            <ModifierId>BONUS_4_GOLD_FROM_INGOING_TRADE</ModifierId>
        </Row>
        <Row>
            <BuildingType>BUILDING_MADRASA</BuildingType>
            <ModifierId>NEGATIVE_4_GOLD_TO_OTHER_CIV</ModifierId>
        </Row>
        <Row>
            <BuildingType>BUILDING_MADRASA</BuildingType>
            <ModifierId>BONUS_1_SCIENCE_TO_OTHER_CIV</ModifierId>
        </Row>
        <Row>
            <BuildingType>BUILDING_MADRASA</BuildingType>
            <ModifierId>WOLF_BONUS_1_SCIENCE_DOMESTIC_CIV</ModifierId>
        </Row>
        <Row>
            <BuildingType>BUILDING_RESEARCH_LAB</BuildingType>
            <ModifierId>BONUS_4_GOLD_FROM_INGOING_TRADE</ModifierId>
        </Row>
        <Row>
            <BuildingType>BUILDING_RESEARCH_LAB</BuildingType>
            <ModifierId>NEGATIVE_4_GOLD_TO_OTHER_CIV</ModifierId>
        </Row>
        <Row>
            <BuildingType>BUILDING_RESEARCH_LAB</BuildingType>
            <ModifierId>BONUS_1_SCIENCE_TO_OTHER_CIV</ModifierId>
        </Row>
        <Row>
            <BuildingType>BUILDING_RESEARCH_LAB</BuildingType>
            <ModifierId>WOLF_BONUS_1_SCIENCE_DOMESTIC_CIV</ModifierId>
        </Row>
        <!-- Culture buildings -->
        <Row>
            <BuildingType>BUILDING_AMPHITHEATER</BuildingType>
            <ModifierId>BONUS_4_GOLD_FROM_INGOING_TRADE</ModifierId>
        </Row>
        <Row>
            <BuildingType>BUILDING_AMPHITHEATER</BuildingType>
            <ModifierId>NEGATIVE_4_GOLD_TO_OTHER_CIV</ModifierId>
        </Row>
        <Row>
            <BuildingType>BUILDING_AMPHITHEATER</BuildingType>
            <ModifierId>BONUS_1_CULTURE_TO_OTHER_CIV</ModifierId>
        </Row>
        <Row>
            <BuildingType>BUILDING_AMPHITHEATER</BuildingType>
            <ModifierId>WOLF_BONUS_1_CULTURE_DOMESTIC_CIV</ModifierId>
        </Row>
        <Row>
            <BuildingType>BUILDING_MUSEUM_ART</BuildingType>
            <ModifierId>BONUS_4_GOLD_FROM_INGOING_TRADE</ModifierId>
        </Row>
        <Row>
            <BuildingType>BUILDING_MUSEUM_ART</BuildingType>
            <ModifierId>NEGATIVE_4_GOLD_TO_OTHER_CIV</ModifierId>
        </Row>
        <Row>
            <BuildingType>BUILDING_MUSEUM_ART</BuildingType>
            <ModifierId>BONUS_1_CULTURE_TO_OTHER_CIV</ModifierId>
        </Row>
        <Row>
            <BuildingType>BUILDING_MUSEUM_ART</BuildingType>
            <ModifierId>WOLF_BONUS_1_CULTURE_DOMESTIC_CIV</ModifierId>
        </Row>
        <Row>
            <BuildingType>BUILDING_MUSEUM_ARTIFACT</BuildingType>
            <ModifierId>BONUS_4_GOLD_FROM_INGOING_TRADE</ModifierId>
        </Row>
        <Row>
            <BuildingType>BUILDING_MUSEUM_ARTIFACT</BuildingType>
            <ModifierId>NEGATIVE_4_GOLD_TO_OTHER_CIV</ModifierId>
        </Row>
        <Row>
            <BuildingType>BUILDING_MUSEUM_ARTIFACT</BuildingType>
            <ModifierId>BONUS_1_CULTURE_TO_OTHER_CIV</ModifierId>
        </Row>
        <Row>
            <BuildingType>BUILDING_MUSEUM_ARTIFACT</BuildingType>
            <ModifierId>WOLF_BONUS_1_CULTURE_DOMESTIC_CIV</ModifierId>
        </Row>
        <Row>
            <BuildingType>BUILDING_BROADCAST_CENTER</BuildingType>
            <ModifierId>BONUS_4_GOLD_FROM_INGOING_TRADE</ModifierId>
        </Row>
        <Row>
            <BuildingType>BUILDING_BROADCAST_CENTER</BuildingType>
            <ModifierId>NEGATIVE_4_GOLD_TO_OTHER_CIV</ModifierId>
        </Row>
        <Row>
            <BuildingType>BUILDING_BROADCAST_CENTER</BuildingType>
            <ModifierId>BONUS_1_CULTURE_TO_OTHER_CIV</ModifierId>
        </Row>
            <Row>
            <BuildingType>BUILDING_BROADCAST_CENTER</BuildingType>
            <ModifierId>WOLF_BONUS_1_CULTURE_DOMESTIC_CIV</ModifierId>
        </Row>
        <!-- FAITH buildings -->
        <Row>
            <BuildingType>BUILDING_SHRINE</BuildingType>
            <ModifierId>BONUS_4_GOLD_FROM_INGOING_TRADE</ModifierId>
        </Row>
        <Row>
            <BuildingType>BUILDING_SHRINE</BuildingType>
            <ModifierId>NEGATIVE_4_GOLD_TO_OTHER_CIV</ModifierId>
        </Row>
        <Row>
            <BuildingType>BUILDING_SHRINE</BuildingType>
            <ModifierId>BONUS_1_FAITH_TO_OTHER_CIV</ModifierId>
        </Row>
        <Row>
            <BuildingType>BUILDING_SHRINE</BuildingType>
            <ModifierId>WOLF_BONUS_1_FAITH_DOMESTIC_CIV</ModifierId>
        </Row>
        <Row>
            <BuildingType>BUILDING_TEMPLE</BuildingType>
            <ModifierId>BONUS_4_GOLD_FROM_INGOING_TRADE</ModifierId>
        </Row>
        <Row>
            <BuildingType>BUILDING_TEMPLE</BuildingType>
            <ModifierId>NEGATIVE_4_GOLD_TO_OTHER_CIV</ModifierId>
        </Row>
        <Row>
            <BuildingType>BUILDING_TEMPLE</BuildingType>
            <ModifierId>BONUS_1_FAITH_TO_OTHER_CIV</ModifierId>
        </Row>
        <Row>
            <BuildingType>BUILDING_TEMPLE</BuildingType>
            <ModifierId>WOLF_BONUS_1_FAITH_DOMESTIC_CIV</ModifierId>
        </Row>
       
    </BuildingModifiers>
</GameData>
 
Update my bad. Turns out it was just because of difficulty. I was testing on settler and the AI didn't seem to want to build buildings. Once I changed to Deity it went back right.
 
Top Bottom