Age of Empires III: Definitive Edition, this is a somewhat short guide meant to answer a couple of questions plus some other things on the side about the basics of making and uploading a mod.
A few words about myself
So since I’ve gotten a few people asking me on how to make a mod and then upload said mod I’ve decided to make this short and quick guide as to answer most of the questions.
I will start off with the statement that I’m a long time Age of Mythology modder so most of my experience comes from there. However all 3 games, as in Age of Mythology, Age of Empires 3 and Halo Wars all use the same (albeit heavily modified for each) BANG! engine that was originally created by Ensemble Studios, the original developers of all 3 games a long time ago, give or take around 20 years now.
With that said, I’ve modded AoE3 (and Halo Wars) before but it was a long time ago so naturally I’ve probably forgotten some things or not know how to do certain others and so forth, additionally I’m busy with work and life in general so sadly I will also probably not be able to answer ALL questions and the few that I can will be in a time when I’m free and they might not be complete answers so bare with me.
Introduction to basic modding
Now, to the reason why most of you are probably here.
Modding on the BANG! engine consists of the game’s files being packed up in .bar files, in which are included the files which you can edit like protoy.xml.xmb and techtreey.xml.xmb among many others.
However, the original Age of Mythology and Age of Empires 3 had their files unpacked and ready for editing, as in you didn’t to first unpack the .bar file, then extract the files that you needed to then convert them and finally edit them and then put them in a special mods folder.
This had both it’s pros and cons because when the files are packed up the game loads faster and responds better, but it’s a bane for modders obviously.
On the other hand having the files be unpacked and ready for editing straight away means the game loads slower and responds worse, as in the case of Age of Mythology: Extended Edition on here, especially if you have many mods installed so it’s sadly a knife with 2 edges.
The tools needed for modding
You will first need the Resource Manager which you can find here: https://forums.ageofempires.com/t/resource-manager-viewing-comparing-creating-and-extracting-files-from-age-of-empires-iii-bar-archive/103349/2
As it says in the title, it’s a “Resource Manager” meant for viewing, comparing, creating and extracting as well as converting the in-game files.
Just as a note, the old tools meant to do this for the older version of the game WILL NOT WORK on the DE version, if you want to mod the DE version of the game, you need to use the above tool. It however does have the option to convert old versions of the files to the new DE versions and back.
And Notepad++ which is my recommended xml editor: https://notepad-plus-plus.org/downloads/
It’s very useful for any such xml based modding files for games and I supposed other text based ones as well, plus it’s just very handy and versatile to have as well even if you’re not modding.
A working example
This is the first mod that I made for DE called “Musketeers for the Germans and Dutch mod” which you can find here and subscribe to it so you can see what I’ve done and how I’ve done it: https://www.ageofempires.com/mods/details/18662/
As it says on the tin, does exactly that and is in fact “cut content”, more of which you can see here: https://ageofempires.fandom.com/wiki/Cut_content#Age_of_Empires_III
I’m mentioning that because of 2 things, 1 is that other people might be interested in bringing back other such “cut content” to the game and the other is that I believe both German and Dutch Musketeers have their own unique voice files that are not shared with any other unit, meaning that as it says on the page there, indeed both Civs were meant to have these units.
However sadly I also think that the sound files for the game are currently encrypted meaning that we’re unable to edit or add any custom sound files to the game, at least for the current moment.
Making the mod
For the purpose of this guide I will be using my mod as an example of how and what I’ve done exactly, you can also find and download my mod to see it’s files and what I’ve done for yourself here as well: https://www.ageofempires.com/mods/details/18662/
Moving on, when you unpackage it with whatever application you want, I personally use 7zip, you can start up the Resource Manager.exe and you will be greeted by the following window:
So, for my mod I needed to get the techtreey.xml.xmb file, which is located in the Data.bar file, which in turn is in the:
Alternatively you can directly go to that location to find the file, then right click, open with and then find the Resource Manager from the list, but that’s up to you.
Note: For adding most new units you will also need to reference them in the protoy file as well, but in our case with the musketeer, it’s already under the barracks section there as you can see:
Once the Data.bar file is opened in the Resource Manager we will use the Extract function and your window should look something like this:
Then you mark the files that you want, in our case the techtreey file, and extract it to a location which the app will ask you for. Just as a note, you can also select multiple files by pressing shift and then left mouse clicking on the files as well, or alternatively you can also extract all of the files but it will take a bit more time.
Note: Unfortunately we cannot edit the files with the Resource Manager, yet at least, that’s why we need to first extract them and then convert them. For those that are wondering.
The selected files should be highlighted like this of course:
Note: As you can see in the little search bar at the bottom, I’ve actually used it to look up the file.
Afterwards you will need to convert your extract file(s) to an editable format which in our case is xml because the files are initially in xmb format which if you open in a text editor is just pure jibberish like so:
Making it unreadable or editable to us.
When you’ve converted the xmb files to xml using the Resource Manager, you should be able to open it in a text editor and some code will be inside like so:
Just as a note again, I use Notepad++ for modding most xml/text moddable games and so I highly recommend it for other people as well.
Now, what I did was press ctrl and then f on my keyboard at the same time making a little search bar on the top right pop up like in this picture:
This is a powerful way to search for things on a page in almost any application, be it your internet browser or even Steam.
I first will look up for the “Age0British” and that is a 0 (ZERO) not an O (Oh) which will lead me to this section which enables the production of their musketeer and also attributed upgrades:
There are 3 upgrades, Veteran, Guard and Imperial, I did all 3 but it’s up to you if you want to include all of them or not for balance reasons.
Then you just simply copy and paste the code in the proper order as I’ve done with the Germans at the top here:
However, just make sure the <effect> and </effect> are properly placed because I cannot stress this enough, it will break your mod and thus also game, resulting in either the mod not working or the game simply crashing so make sure that everything is in proper order.
That’s about it for the modding part, I’ve just basically done the same process of editing the techtreey section for the Dutch as well as shown here:
Uploading the mod
Now for the uploading part.
You will first need to place the mod, in the correct file structure, as shown in the pictures below. Once you test that everything is working correctly, you can start uploading it afterwards.
There are 2 ways to do it, one is from the website: https://www.ageofempires.com/mods/create/
Note: You need to zip the thumbnail file along with the folder and files inside it like it’s shown in the first picture in order to upload the mod on the website should you choose not to do so from the in-game mod Manager.
And the other is from inside the game Mod Manager, which you can get to from the tools option.
Both process should be pretty straight forward on what you need to do, as in the title of your mod, description, pictures, files and so forth.
The tricky part comes with the structure of your mod which is DEPENDENT ON WHAT FILE YOU HAVE MODIFIED!
I am bolding and writing that in upper cases because there are often mistakes in how people name files and where they put them which will again, end up in the mod not working and thus also you not being able to upload it.
Here is how my uploaded mod’s structure looks like and you can also see the location of it:
Also for the record, your mods are stored in C:\Users\Name\Games\Age of Empires 3 DE\76561198038732900\mods and has 2 subfolders, 1 is called subscribed and the other is local. Obviously the first one is for the mods that you’ve subscribed to while the other is for your own mods that are located on your computer.
That’s about it.
Link to an exhaustive list of modding tutorials for the original game which mostly apply for here as well: http://aoe3.heavengames.com/modding/tutorials/index.shtml
Cut content wikia page: https://ageofempires.fandom.com/wiki/Cut_content#Age_of_Empires_III
Link to my Muskteer for Germans and Dutch mod: https://www.ageofempires.com/mods/details/18662/
Link to Notepad++, very useful for modding xml based games and others: https://notepad-plus-plus.org/downloads/
Link to page where you can upload your mod as well from outside of the game: https://www.ageofempires.com/mods/create/
That’s all we are sharing today in Age of Empires III: Definitive Edition How to Make and Upload a Mod, if there are anything you want to add please feel free to leave a comment below and we’ll see you soon.