Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pellegrino/s7-e3

Refinery - a SC2 Replay parser
https://github.com/pellegrino/s7-e3

Last synced: 3 months ago
JSON representation

Refinery - a SC2 Replay parser

Awesome Lists containing this project

README

        

# SC2Refinery - RMU SESSION 7 EXERCISE 3

SC2 Replays extractor. This version extracts the name of both players,
as well as the map name where the match was played.

## About the MPQ Format

The MPQ Format is an archive used at Blizzard replays. It is composed
of several binaries files. The project https://github.com/nolanw/mpq
is used to open up the archive.

This project, currently, parses the "replay.details" file, extracting
Basic Player and Map information.

## Usage
@replay = SC2Refinery.load("spec/fixtures/1v1-game1.sc2replay")

puts @replay.first_player # pellegrino
puts @replay.second_player # DeusEx
puts @replay.map # Cavernas Xel'Naga

For more examples of usage, check spec/parser_spec.rb

## General information
This project relies on BinData (http://bindata.rubyforge.org/) to
create its structures used in parsing replay files.
The structures mapped at this project are in lib/sc2refinery/parsers/replay_details.

## Links and documentation
https://github.com/nolanw/mpq

https://github.com/ascendedguard/sc2replay-csharp/wiki/.sc2replay-overview
- from this link i took most of the information about the archive
needed to build this project.