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
413 stars 85 forks source link

NameError: global name 'PlayerJoinEvent' is not defined #137

Closed derbroti closed 11 years ago

derbroti commented 11 years ago

Using the script sc2replayer.py the error is thrown, because there seems to be no PlayerJoinEvent available at all.

Removing the line(85): "isinstance(event,PlayerJoinEvent) or\" everything works fine.

GraylinKim commented 11 years ago

Hi @derbroti, thanks for reporting the issue.

The PlayerJoinEvent was replaced by the UserOptionsEvent in the v0.5 release. The event was never actually a "join" event. We now know that the event reports user options at the start of the game.

I'll make the appropriate changes for the next release.