1. We have added the ability to collapse/expand forum categories and widgets on forum home.
    Dismiss Notice
  2. All Civ avatars are brought back and available for selection in the Avatar Gallery! There are 945 avatars total.
    Dismiss Notice
  3. To make the site more secure, we have installed SSL certificates and enabled HTTPS for both the main site and forums.
    Dismiss Notice
  4. Civ6 is released! Order now! (Amazon US | Amazon UK | Amazon CA | Amazon DE | Amazon FR)
    Dismiss Notice
  5. Dismiss Notice
  6. Forum account upgrades are available for ad-free browsing.
    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:
    45
    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:
    45
    Solved it. Just needed to add the DLC's as dependencies
     

Share This Page

Ebates: Get Paid to Shop