Aoe2records file format

Hello. I like esports and I like statistics, and I think I have some interesting ideas regarding AoE2 statistics.

On games like CSGO and Dota, the developer has disclosed how their replay files are structured, so people like me can go in and extract interesting information from the files. I found some resources online (https://github.com/voblivion/AoE2RecordsParser and https://github.com/stefan-kolb/aoc-mgx-format) that helped me understand a little bit about it, and I’m making do with what I have for now, but there are lot of unknowns, plus I’m antecipating that those resources are outdated with DE’s release.

If there any developers reading these, could you please share the documentation for the replay files?

5 Likes

https://github.com/happyleavesaoc/aoc-mgz will have DE support soon.

5 Likes

Basic support has been added. Ask if you have any questions!

4 Likes

Good work!! Thank you for your efforts.

■■■■ yes, thank you!! I’ll play with it in the weekend!

Hi all,

I have several questions about this topic:

  • I saw the actions enum listed here: aoc-mgz/mgz/enums.py at master · happyleavesaoc/aoc-mgz · GitHub . However, there is not unqueue or cancel research actions there. After aggregate the actions in a record, the de_queue commands is more than the unit trained in actual.

  • I saw there is an action droprelic = 126, so is there an action to represent pick a relic? what is it ID?

  • There are many object IDs stored in the action segment, but how can I determine which the unit type it is? For example, the move action contained lots of object IDs, so how can I determine it is a villager or an archer?

I would be appreciate if AoE2 dev team could give some help on this. It’s significant for improving third party community to create some tools for analyzing game records.