Dota 2 (Source 1) replay parser written in Go, extracted from Dotabuff TrueSight.
We're working on both maintaining the parser for replays of both Source 1 and Source 2 Engines.
This parser is able to parse replays recorded since about 2012.
The upcoming Source 2 Engine requires several incompatible changes, so we work on it in a separate repository.
See also Manta, the Dota 2 (Source 2) parser
Simple as:
$ go get github.com/dotabuff/yasha
And in your code:
import "github.com/dotabuff/yasha"
Please be aware that you can't import Sange and Yasha in the same binary! The Protocol Buffer definitions conflict, and will panic.
Yasha is a dependency of and was extracted from Dotabuff TrueSight. Test coverage is currently upstream. We'll be working to implement comprehensive testing in both Yasha and Sange and are especially grateful for contributions in this area.
See the examples
directory.
MIT, see the LICENSE file.
If you have any questions, just ask manveru in the #dota2replay channel on QuakeNet.