Extract JSON data from Replays
WoT 0.7.x and higher. Latest tested version: WoT 0.8.11.
parseWot - creates a text file with the name of the replay where the extension has been replaced by ".json" and returns array.
$wot = new parseWot($filepath); $wot->parse();
common[status] = "ok" or "error" common[message] = detailed error, otherwise "ok"
common[datablock_1] = Datablock 1 exists common[datablock_battle_result] = Battle Result exists
If the replay can be read, the file will contain additional blocks:
datablock_1 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