WoT-Replay-To-JSON
Version 9.3
Respect for my work
Please respect my work invested in this project. You have to give me credit on your application or website.
Supported Versions
- WoT 0.7.x and higher.
- Latest tested version: WoT 0.9.3.
Requirements
Tank and Map definitions
For parsing of the most current Tanks and Maps you will need tanks.jsonand maps.json from my WoT-Dossier-Cache-to-JSON repository
Python
- You need Python 2.7, or just use the compiled version wotrp2j.exe
Usage
-
wotrp2j.pyc
creates a text file with the name of the replay where the extension has been replaced by ".json"
-
wotrp2j.pyc -c
Console mode, suppress all messages and print parsed replay to the console window
-
wotrp2j.pyc -a
Advanced mode. Tries to read uncompressed part of the replay. Provides access to battleLevel, arenaUniqueID and localized data for Clanwars
-
wotrp2j.pyc -chat
Include chat.
Example:
python.exe wotrp2j.pyc 20130126_2329_ussr-Object_704_07_lakeville.wotreplay
Example:
python.exe wotrp2j.pyc 20130619_2232_ussr-SU-101_02_malinovka.wotreplay -c
Without installing Python, you can use wotrp2j.exe instead of wotrp2j.pyc
Keep in mind
By using the advanced mode or chat the processing takes much longer, as the binary part of the replay is decrypted and uncompressed
Structure:
- common[status] = "ok" or "error"
- common[message] = detailed error, otherwise "ok"
- common[parser] = Version of used script
- common[datablock_1] = Datablock 1 exists
- common[datablock_2] = Datablock 2 exists
- common[datablock_battle_result] = Battle Result exists
- common[datablock_advanced] = Advanced data exists
- common[datablock_chat] = Chat exists
If the replay can be read, the file will contain additional blocks:
- datablock_1
- datablock_2 - not always available
- datablock_battle_result - available only for replays created by WoT 0.8.2 or higher
Value of -1 is indicating a corrupt/wrong inserted Battle Result due to a bug in WoT
- datablock_advanced - available only with the -a option by decompressing the replay
- chat - Available only with the option -chat
- identify - Contains data used by vBAddict to identify a replay
Credits