https://github.com/kosh04/wotreplay
WoT Replay Parser
https://github.com/kosh04/wotreplay
cli go worldoftanks
Last synced: 4 months ago
JSON representation
WoT Replay Parser
- Host: GitHub
- URL: https://github.com/kosh04/wotreplay
- Owner: kosh04
- License: mit
- Created: 2017-09-03T07:57:52.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-03-09T09:25:48.000Z (over 3 years ago)
- Last Synced: 2024-06-20T01:52:33.889Z (about 2 years ago)
- Topics: cli, go, worldoftanks
- Language: Go
- Size: 3.84 MB
- Stars: 7
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WoTReplay
[](https://travis-ci.org/kosh04/wotreplay)
[](https://goreportcard.com/report/github.com/kosh04/wotreplay)
[](https://godoc.org/github.com/kosh04/wotreplay)
[World of Tanks](https://worldoftanks.com/) 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](https://github.com/Phalynx/WoT-Replay-To-JSON) compatible JSON
- [ ] Enable parse of old replays
## Similar Projects
- https://github.com/evido/wotreplay-parser (C++)
- https://github.com/Aimdrol/WoT-Replay-Analyzer (exe only)
- https://github.com/Phalynx/WoT-Replay-To-JSON (Python)
- https://gist.github.com/benvanstaveren/2402016 (Perl)
- https://github.com/thesilvervestgroup/wot-replay-parser (PHP)
## License
MIT License