sc2reader

Utility for parsing Starcraft II replay files
Download

sc2reader Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Publisher Name:
  • Graylin Kim

sc2reader Tags


sc2reader Description

Utility for parsing Starcraft II replay files sc2reader is a Python library for extracting game information from Starcraft II replay files into a replay object. Please join the mailing list to be notified of updates and participate in discussion around the replay format.sc2reader is also a format documentation project, documentation is always in progress and the latest and greatest can be found on the github wiki.Contributions, bugs, and suggestions are always welcome. Please direct them to the issue tracker or the mailing list as appropriate.Special thanks to the people of the awesome `phpsc2replay` project whose public documentation and source code made this library possible.Example Usage:>>> replay = Replay(filename)>>> print "\n%s on %s played on %s" % (replay.type,replay.map,replay.date)>>>>>> #Player is None so that players can be indexed by ID>>> for team,players in replay.teams.iteritems():>>> print "\n\tTeam %s: %s" % (team,replay.results)>>> for player in players:>>> print "\t\t%s" % player2v2 on Zwietracht IV played on Mon Dec 27 22:51:59 2010 Team 1: Won Player 1 - Pille (Zerg) Player 2 - Mort (Zerg) Team 2: Lost Player 3 - HaRib0 (Protoss) Player 4 - neosmatrix (Zerg)The same results can be found using the sc2printer utility script which simply wraps up the above code as a (simple) demonstration of the libraries utility:sc2printer game1.sc2replay game2.sc2replay Requirements: · Python


sc2reader Related Software