I'd like to remind you that there's openage, a free engine for Age of Empires 2.
https://github.com/SFTtech/openage
It will be the future if you wanna accomplish things the original engine is incapable of doing, especially a sane mod API.
Help us make it more awesome :)