-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding support for the 36442 base build #187
base: lotv
Are you sure you want to change the base?
Conversation
@@ -579,6 +579,7 @@ def register_default_readers(self): | |||
self.register_reader('replay.game.events', readers.GameEventsReader_26490(), lambda r: 26490 <= r.base_build < 27950) | |||
self.register_reader('replay.game.events', readers.GameEventsReader_27950(), lambda r: 27950 <= r.base_build < 34784) | |||
self.register_reader('replay.game.events', readers.GameEventsReader_34784(), lambda r: 34784 <= r.base_build) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to put an upper bound on this condition now. Same as the ones before it.
I don't have any newer replays myself but you figured it out pretty well. Fix the comment above and I'd be happy to merge. |
Updated with the condition as you mentioned. If you want to play around with it yourself, here's a replay on this build http://lotv.spawningtool.com/903/download/ |
I have been using my own fork in production, and it has been working here. @GraylinKim poking if you want to merge this into your branch? |
add LotV-related tests
test now passes, meaning that we can parse the replay without barfing. test doesn't check the parsed data at all; just confirms that no exception is thrown.
handle 3.0 replays, work in progress.
Conflicts: sc2reader/readers.py sc2reader/resources.py
…ays now parse. Conflicts: sc2reader/events/game.py
Conflicts: test_replays/test_all.py
Conflicts: test_replays/test_all.py
@GraylinKim I feel like an idiot: I had no idea how the different numbers in the s2protocol file corresponded to the types, and then I realized it was just a dictionary into the types. After that, it was easy to figure out.
For posterity (and anyone else who might want to contribute), I:
and it seemed like that worked.
Let me know if there's anything that I might have missed. I'm popping this into production for lotv.spawningtool.com right now, so I will let you know if I see any other errors.