Expanding the Aggressive Trait?

SlipperyJim

Prince
Joined
Jan 10, 2006
Messages
332
Location
Northern Virginia, USA
(originally posted on the Tutorials, Reference, & Guides forum by mistake)

Maybe I'm too much of a warmonger, but the Aggressive trait seems limited to me. Why do only your Melee and Gunpowder units get the free promotion? It's not as if Combat I is some totally unbalancing bonus, after all. Furthermore, it seems lacking in realism. The feared Mongol Keshiks get absolutely no bonus from their Khan's Aggressive trait? :rolleyes:

So, mod it, right? Except I tried that, and it didn't work. Now I'm asking for help. As far as I can tell, the traits are defined in the Civ4TraitInfos.xml file. Within the definition of the Agressive trait, I found this block:
Code:
            <FreePromotions>
                <FreePromotion>
                    <PromotionType>PROMOTION_COMBAT1</PromotionType>
                    <bFreePromotion>1</bFreePromotion>
                </FreePromotion>
            </FreePromotions>
That defines my free promotion as Combat I. Okay, so far, so good. After that section, there's another block:
Code:
            <FreePromotionUnitCombats>
                <FreePromotionUnitCombat>
                    <UnitCombatType>UNITCOMBAT_MELEE</UnitCombatType>
                    <bFreePromotionUnitCombat>1</bFreePromotionUnitCombat>
                </FreePromotionUnitCombat>
                <FreePromotionUnitCombat>
                    <UnitCombatType>UNITCOMBAT_GUN</UnitCombatType>
                    <bFreePromotionUnitCombat>1</bFreePromotionUnitCombat>
                </FreePromotionUnitCombat>
            </FreePromotionUnitCombats>
That block specifies which types of units get the free Combat I promotion. Here's what I wanted to change, so I added a few other unit types (such as mounted) to the list. Here's what I got:
Code:
            <FreePromotionUnitCombats>
                <FreePromotionUnitCombat>
                     <UnitCombatType>UNITCOMBAT_MELEE</UnitCombatType>
                     <bFreePromotionUnitCombat>1</bFreePromotionUnitCombat>
                 </FreePromotionUnitCombat>
                 <FreePromotionUnitCombat>
                     <UnitCombatType>UNITCOMBAT_MOUNTED</UnitCombatType>
                     <bFreePromotionUnitCombat>1</bFreePromotionUnitCombat>
                 </FreePromotionUnitCombat>
                <FreePromotionUnitCombat>
                    <UnitCombatType>UNITCOMBAT_GUN</UnitCombatType>
                    <bFreePromotionUnitCombat>1</bFreePromotionUnitCombat>
                </FreePromotionUnitCombat>
            </FreePromotionUnitCombats>
I saved the changed file into my CustomAssets folder (in the xml\civilizations path), cleared my cache, and started a new game as Kublai Khan. Imagine my shock when my new Keshiks didn't get the free promotion.

What did I do wrong? Did I forget something? Do I need to use Python, too? Any assistance would be greatly appreciated.
 
I've already done this in my New Traits Mod, they get the combat I bonus as they should, suspect you had a directory misspeled preventing the altered files from loading (were any of the mounted units geting a bonus?). My Mod also includes a nice Stable building that warmongers can use for some devistating early conquests.
 
SlipperyJim said:
(originally posted on the Tutorials, Reference, & Guides forum by mistake)

Maybe I'm too much of a warmonger, but the Aggressive trait seems limited to me. Why do only your Melee and Gunpowder units get the free promotion? It's not as if Combat I is some totally unbalancing bonus, after all. Furthermore, it seems lacking in realism. The feared Mongol Keshiks get absolutely no bonus from their Khan's Aggressive trait? :rolleyes:

So, mod it, right? Except I tried that, and it didn't work. Now I'm asking for help. As far as I can tell, the traits are defined in the Civ4TraitInfos.xml file. Within the definition of the Agressive trait, I found this block:
Code:
            <FreePromotions>
                <FreePromotion>
                    <PromotionType>PROMOTION_COMBAT1</PromotionType>
                    <bFreePromotion>1</bFreePromotion>
                </FreePromotion>
            </FreePromotions>
That defines my free promotion as Combat I. Okay, so far, so good. After that section, there's another block:
Code:
            <FreePromotionUnitCombats>
                <FreePromotionUnitCombat>
                    <UnitCombatType>UNITCOMBAT_MELEE</UnitCombatType>
                    <bFreePromotionUnitCombat>1</bFreePromotionUnitCombat>
                </FreePromotionUnitCombat>
                <FreePromotionUnitCombat>
                    <UnitCombatType>UNITCOMBAT_GUN</UnitCombatType>
                    <bFreePromotionUnitCombat>1</bFreePromotionUnitCombat>
                </FreePromotionUnitCombat>
            </FreePromotionUnitCombats>
That block specifies which types of units get the free Combat I promotion. Here's what I wanted to change, so I added a few other unit types (such as mounted) to the list. Here's what I got:
Code:
            <FreePromotionUnitCombats>
                <FreePromotionUnitCombat>
                     <UnitCombatType>UNITCOMBAT_MELEE</UnitCombatType>
                     <bFreePromotionUnitCombat>1</bFreePromotionUnitCombat>
                 </FreePromotionUnitCombat>
                 <FreePromotionUnitCombat>
                     <UnitCombatType>UNITCOMBAT_MOUNTED</UnitCombatType>
                     <bFreePromotionUnitCombat>1</bFreePromotionUnitCombat>
                 </FreePromotionUnitCombat>
                <FreePromotionUnitCombat>
                    <UnitCombatType>UNITCOMBAT_GUN</UnitCombatType>
                    <bFreePromotionUnitCombat>1</bFreePromotionUnitCombat>
                </FreePromotionUnitCombat>
            </FreePromotionUnitCombats>
I saved the changed file into my CustomAssets folder (in the xml\civilizations path), cleared my cache, and started a new game as Kublai Khan. Imagine my shock when my new Keshiks didn't get the free promotion.

What did I do wrong? Did I forget something? Do I need to use Python, too? Any assistance would be greatly appreciated.

Your xml looks good, that is all you should need. I would suspect that it isn't reading the file for some reason. Sometimes when you save it with notepad it slaps a .txt on the end, something like that.
 
Back
Top Bottom