Additive mods: Techtree example not working

I’ve been trying to add some units to some civs, so I started by using the example used by the official Additive Data Mods guide. (https://support.ageofempires.com/hc/en-us/articles/360062106732-Additive-Data-Mods)

The xml mod file its located in the data folder (along with my working protomods file) under the name techtreemods

<techtreemods>
    <Tech name ='Age0Russian'>
       <Effects>
           <Effect mergeMode='add' type ='Data' amount ='1.00' subtype ='Enable' relativity ='Absolute'>
               <Target type ='ProtoUnit'>Pikeman</Target>
           </Effect>
       </Effects>
    </Tech>
 </techtreemods>

This however doesn’t work. The unit isn’t available in the blockhouse or the fort.

Any ideas?

The example works for me.
My exact filepath is:
%USERPROFILE%\Games\Age of Empires 3 DE\76561197982569903\mods\local\dev\data\techtreemods.xml
where 76561197982569903 is my Steam ID and “dev” the name of my local mod.

Like this?

On this screenshot you seem to have a broken XML, unlike in the example and unlike in your original post :thinking:
There is an unclosed techtree tag.

Correct contents:

<techtreemods>
    <!-- modify a tech (add effect - enable Pikeman for the Russians) -->
    <Tech name ='Age0Russian'>
        <Effects>
            <Effect mergeMode='add' type ='Data' amount ='1.00' subtype ='Enable' relativity ='Absolute'>
                <Target type ='ProtoUnit'>Pikeman</Target>
            </Effect>
        </Effects>
    </Tech>
</techtreemods>
1 Like

Copy and pasted.

It works now. Thanks!

Now, If I wanted to add the upgrades I have to do it with the tag right?