Skip to content

Conversation

sklett-src
Copy link

No description provided.

Copy link
Collaborator

@StoicLoofah StoicLoofah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR looks good! Thanks for all of the iteration on getting this put together.

In addition to the comments, can you also add a test for this? It should look pretty much like

def test_59587(self):
for replayfilename in [
"test_replays/4.0.0.59587/1.SC2Replay",
]:
factory = sc2reader.factories.SC2Factory()
replay = factory.load_replay(replayfilename)

Presumably the test replay should be uploaded to a new folder 4.3.0.64469.

@@ -1877,6 +1877,47 @@ def trigger_ping_event(self, data):
option=data.read_uint32() - 2147483648,
)

class GameEventsReader_64469(GameEventsReader_38749):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should inherit from GameEventsReader_38996


def command_event(self, data):
return dict(
flags=data.read_bits(26),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you leave a comment right here indicating that this is the only change?

Copy link
Collaborator

@StoicLoofah StoicLoofah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Thanks for the fix and working through all of the feedback!

@StoicLoofah StoicLoofah merged commit d1b6ede into ggtracker:upstream Apr 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants