Closed juliastic closed 2 years ago
You're right -- the most recent patch broke the fast
parser. I recommend using the full
parser (which does support the latest patch) until the fast
parser is fixed.
When trying to print match data with a full summary
with open('replay.aoe2record', 'rb') as data: s = FullSummary(data, True) print(s.get_players()[0])
I get "NONE" for player achievements when fetching player data.
{'name': '_WWP_Yo', 'civilization': 24, 'human': True, 'number': 1, 'color_id': 2, 'winner': False, 'mvp': None, 'score': None, 'position': (0.0, 0.0), 'rate_snapshot': None, 'user_id': 197964, 'cheater': False, 'prefer_random': False, 'achievements': {'military': {'score': None, 'units_killed': None, 'hit_points_killed': None, 'units_lost': None, 'buildings_razed': None, 'hit_points_razed': None, 'buildings_lost': None, 'units_converted': None}, 'economy': {'score': None, 'food_collected': None, 'wood_collected': None, 'stone_collected': None, 'gold_collected': None, 'tribute_sent': None, 'tribute_received': None, 'trade_gold': None, 'relic_gold': None}, 'technology': {'score': None, 'feudal_time': None, 'castle_time': None, 'imperial_time': None, 'explored_percent': None, 'research_count': None, 'research_percent': None}, 'society': {'score': None, 'total_wonders': None, 'total_castles': None, 'total_relics': None, 'villager_high': None}}}
Am I doing something wrong or is this related to the recent patch as well?
That is expected behavior. DE does not support achievements in the recorded game.
Hello, when trying to analyse a recent replay of AoE II DE (from early March) with the following simple code snippet:
I came across this exception (with stack trace for your convenience):
I am guessing a recent format change has caused this. Attached you can also find an example record file.
replay.aoe2record.zip