Giter Club home page Giter Club logo

wot-replay-to-json's Introduction

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 <replay.wotreplay> creates a text file with the name of the replay where the extension has been replaced by ".json"

  • wotrp2j.pyc <replay.wotreplay> -c Console mode, suppress all messages and print parsed replay to the console window

  • wotrp2j.pyc <replay.wotreplay> -a Advanced mode. Tries to read uncompressed part of the replay. Provides access to battleLevel, arenaUniqueID and localized data for Clanwars

  • wotrp2j.pyc <replay.wotreplay> -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

wot-replay-to-json's People

Contributors

phalynx avatar vb64 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.