{"repo":"icza/s2prot","free":true,"listed":false,"github":"https://github.com/icza/s2prot","clone":"git clone https://github.com/icza/s2prot.git","description":"Decoder/parser of Blizzard's StarCraft II replay file format (*.SC2Replay)","language":"Go","stars":70,"topics":["replay","parser","replay-header","decoder","starcraft-ii-replays","sc2replay","command-line-tool"],"license":"Apache-2.0","category":"cli-tools","readme_excerpt":"s2prot Package s2prot is a decoder/parser of Blizzard's StarCraft II replay file format ( .SC2Replay). s2prot processes the \"raw\" data that can be decoded from replay files using an MPQ parser such as github.com/icza/mpq. The package is designed to be used by other packages or apps, and is safe for concurrent use. There is also an example CLI app that can be used standalone. Parses all versions that were written with retail versions of StarCraft II (and some beta versions too). Check out the sister project to parse StarCraft: Brood War replays: screp Using the s2prot CLI app There is a command line application in the cmd/s2prot folder which can be used to parse and display information about a single replay file. The extracted data is displayed using JSON representation. Usage is as simple as: s2prot [FLAGS] repfile.SC2Replay Run with -h to see a list of available flags. Example to parse a file called sample.SC2Replay , and display replay header, game metadata (included by default) and replay details: s2prot -details=true sample.SC2Relay Or simply: s2prot -details sample.SC2Relay High-level Usage The package s2prot/rep provides enumerations and types to model data structures of StarCraft II replays ( .SC2Replay) decoded by the s2prot package. These provide a higher level overview and much easier to use. The below example code can be found in https://github.com/icza/s2prot/blob/master/ example/rep.go. Install the latest version of the library: To open and parse a replay: import","default_branch":null,"files":null,"tree":[],"storefront":"/r/icza","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/icza/s2prot/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}