Parsing Replay Files

so this is odd, in the game_state_string 1 is you and 2 is the opponent, but in using functions in other places like get_resource or something, 0 is you and 1 is the enemy.

1 Like

The replay file format hasn’t been touched in a long while, we will probably standardize it and clean it up at some point

1 Like

Just to add it here for reference,
3rd parameter of [‘events’][‘move’] seems to be target edge, but is currently always loged as [0, 0]

events[ ..., "move":[ [ [2,11],  [2,12],  [0,0], 3, "1", 1], ...]....]
events[ ..., "move":[ [ [27,13], [27,14], [0,0], 3, "2", 1], ...]....]
events[ ..., "move":[ [ [24,17], [24,16], [0,0], 3, "3", 2], ...]....]
events[ ..., "move":[ [ [0,14],  [0,13],  [0,0], 3, "4", 2], ...]....]