GraylinKim / sc2reader

A python library that extracts data from various Starcraft II resources to power tools and services for the SC2 community. Who doesn't want to hack on the games they play?
http://sc2reader.readthedocs.org
MIT License
411 stars 85 forks source link

Old replay files #202

Closed agi1512 closed 5 years ago

agi1512 commented 5 years ago

Hello! Trying to parse replays from blizzard of version 3.16.1: https://github.com/Blizzard/s2client-proto#replay-packs . Is there any way to run simulations, or to translate events to newer format? Sadly, i get only these types of events, no 'UnitDoneEvent' or simillar ones:

{'AddToControlGroupEvent',
 'BasicCommandEvent',
 'CameraEvent',
 'ControlGroupEvent',
 'DataCommandEvent',
 'GetControlGroupEvent',
 'PlayerLeaveEvent',
 'SelectionEvent',
 'SetControlGroupEvent',
 'TargetPointCommandEvent',
 'TargetUnitCommandEvent',
 'UpdateTargetPointCommandEvent',
 'UpdateTargetUnitCommandEvent',
 'UserOptionsEvent'}

Any way to get these replays to work? Maybe i can attach sample replay so you dont have to download entire pack?

StoicLoofah commented 5 years ago

Hey, so this is a known issue in that whatever Blizzard did to anonymize/create these replays, it ripped out important data (such as the UnitDoneEvent) that appears difficult to recover. You can see the discussion at https://github.com/ggtracker/sc2reader/issues/61

Also, https://github.com/ggtracker/sc2reader is now the official version of ggtracker, so I recommend that you use that version, and if you have any issues, you can file them there

agi1512 commented 5 years ago

Thanks for the answer! I was installing package via pip, so, i guess it's already ggtracker's version. Seems like whoever anonimized these replays is not a cool guy :(