happyleavesaoc / aoc-mgz

Age of Empires II recorded game parsing and summarization in Python 3.
MIT License
197 stars 42 forks source link

Fix timeline for unit train #3

Closed philipp94831 closed 6 years ago

happyleavesaoc commented 6 years ago

Thanks! Just pushed another commit, _timeline is now _queue, and it supports Wololo Kingdoms unit IDs.

philipp94831 commented 6 years ago

@happyleavesaoc Do you have any clue how to assign queued units to a player? I only see the building_ids but cannot assign them to players...

happyleavesaoc commented 6 years ago

You can't. That information is not stored in the recorded game file.

philipp94831 commented 6 years ago

That's sad. I wonder how the game handles this...

happyleavesaoc commented 6 years ago

It keeps a mapping of building ID to player ID.

philipp94831 commented 6 years ago

Yeah, I thought so. Maybe I find a way to reconstruct these building_ids

happyleavesaoc commented 6 years ago

You won't be able to do it via the recorded game file. I had hoped there was a way to derive ownership, etc from the evidence in the file, but there doesn't seem to be a way.

philipp94831 commented 6 years ago

okay