1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

[R&F] Error and not sure why

Discussion in 'Mod Creation Help' started by Zenphys, Sep 16, 2018.

  1. Zenphys

    Zenphys Chieftain

    Joined:
    Aug 9, 2014
    Messages:
    55
    I'm making a mod to allow all civilizations to rush the production of wonders by 10% using a builder charge.

    I first modified china's ability to remove the free worker charge and change the wonder percentage by 10%

    Code:
    <GameData>
    
    
            -<ModifierArguments>
    
                <Delete ModifierId="TRAIT_ADJUST_BUILDER_CHARGES"/>
    
    
                -<Row>
    
                    <ModifierId>TRAIT_ADJUST_BUILDER_CHARGES</ModifierId>
    
                    <Name>Amount</Name>
    
                    <Value>0</Value>
    
                </Row>
    
                <Delete ModifierId="TRAIT_BUILDER_WONDER_PERCENT"/>
    
    
                -<Row>
    
                    <ModifierId>TRAIT_BUILDER_WONDER_PERCENT</ModifierId>
    
                    <Name>Amount</Name>
    
                    <Value>10</Value>
    
                </Row>
    
            </ModifierArguments>
          
    </GameData>
    Then i changed the max build era so it can rush wonders in any Era

    Code:
    <GameData>
        <UnitCommands>
            -<Update>
    
                <Where CommandType="UNITCOMMAND_WONDER_PRODUCTION"/>
    
                <Set MaxEra="8"/>
    
            </Update>
    
        </UnitCommands>
    </GameData>
    Then i added china's 'first emperor' trait to the other leaders. All using the same template, this is the example for Roosevelt below

    Code:
    <GameData>
        <LeaderTraits>
    
            <Delete LeaderType="LEADER_T_ROOSEVELT"/>
    
            <Row LeaderType="LEADER_T_ROOSEVELT" TraitType="TRAIT_LEADER_ROOSEVELT_COROLLARY"/>
    
            <Row LeaderType="LEADER_T_ROOSEVELT" TraitType="FIRST_EMPEROR_TRAIT"/>
    
        </LeaderTraits>
    </GameData>
    This worked fine for the original leaders from the vanilla civ vi release and also works fine for the Rise and Fall civs. However when i try this with DLC leaders it creates an error and doesn't work. But i have no idea what i'm doing wrong
     
    Last edited: Sep 16, 2018
  2. Zenphys

    Zenphys Chieftain

    Joined:
    Aug 9, 2014
    Messages:
    55
    Solved it. Just needed to add the DLC's as dependencies
     

Share This Page