Skip to content

Instantly share code, notes, and snippets.

Created July 1, 2017 03:38
Show Gist options
  • Save anonymous/cbe1debd06c9b211f6818d61553f07be to your computer and use it in GitHub Desktop.
Save anonymous/cbe1debd06c9b211f6818d61553f07be to your computer and use it in GitHub Desktop.
Grab game data from WoT replay files.
# Notes on reviewing a replay:
#Use this to dig into the replay info:
https://github.com/evido/wotreplay-parser
#Installed the tool here (from windows command prompt):
cd C:\Games\World_of_Tanks
#Ran it like this:
mkdir wotreplay-parser_output
#create all the maps:
wotreplay-parser.exe --output wotreplay-parser_output --create-minimaps
wotreplay-parser.exe --parse --root . --output wotreplay-parser_output/replay_last_battle.wotreplay.png --type png --input replays/replay_last_battle.wotreplay
#Create tank movements movie gif:
wotreplay-parser.exe --parse --root . --output wotreplay-parser_output/replay_last_battle.wotreplay.gif --type gif --input replays/replay_last_battle.wotreplay
#Create tank movements json:
wotreplay-parser.exe --parse --root . --output wotreplay-parser_output/replay_last_battle.wotreplay.json --type json --input replays/replay_last_battle.wotreplay
#Started cygwin term and made it more readable:
cd /cygdrive/c/Games/World_of_Tanks
cat wotreplay-parser_output/replay_last_battle.wotreplay.json | python -m json.tool >wotreplay-parser_output/replay_last_battle.wotreplay.readable.json
#View the movements I made:
gvim wotreplay-parser_output/replay_last_battle.wotreplay.readable.json +/proasix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment