Skip to content

kosh04/wotreplay

Repository files navigation

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

Releases

No releases published

Packages

No packages published