kosh04 / wotreplay

WoT Replay Parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WoTReplay

Build Status Go Report Card GoDoc

World of Tanks Replay Parser (written in Go)

This package is work in progress

Usage

command-line

$ wotreplay-parse [-out FILE] *.wotreplay

$ wotreplay-parse FILE.wotreplay | jq .
{
    "Date": "08.06.2017 04:52:35",
    "Map": "聖なる谷",
    "Gamemode": "1:Random",
    "Reason": "1:Extermination",
    "Tank": "ussr-R41_T-50",
    "Player": "kosh04",
    "Version": "World of Tanks v.0.9.19.0.1 #450"
}

Go code

import (
	"fmt"
	"github.com/kosh04/wotreplay"
)

r, err := wotreplay.ParseFile("FILE.wotreplay")
if err != nil {
	// ParseError
}
fmt.Println(r)

TODO

  • Define JSON data type of Matchstart, ButtleResult, etc
  • Analyze packet
  • Friendly command-line
  • wotrp2j.py compatible JSON
  • Enable parse of old replays

Similar Projects

License

MIT License

About

WoT Replay Parser

License:MIT License


Languages

Language:Go 98.0%Language:Makefile 2.0%