Skip to content

Commit a821521

Browse files
committed
add support for 70154, bump to 1.3.0
1 parent b21d45e commit a821521

File tree

6 files changed

+18
-3
lines changed

6 files changed

+18
-3
lines changed

CHANGELOG.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
CHANGELOG
22
============
33

4+
1.3.0 - November 16, 2018
5+
-------------------------
6+
* Added support for protocol 70154 (StarCraft 4.7.0)
7+
* Added support for Zeratul
8+
* Updated CircleCI build for Python 3.7
9+
* Fixed a bug with printing TrackerEvent
10+
411
1.2.0 - October 7, 2018
512
-----------------------
613
* Added support for Tychus

sc2reader/data/attributes.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,8 @@
714714
"Swan": "Swann",
715715
"Tych": "Tychus",
716716
"Vora": "Vorazun",
717-
"Zaga": "Zagara"
717+
"Zaga": "Zagara",
718+
"Zera": "Zeratul"
718719
}
719720
],
720721
"3014": [

sc2reader/readers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def __call__(self, data, replay):
118118
working_set_slot_id=data.read_uint8() if replay.base_build >= 24764 and data.read_bool() else None,
119119
rewards=[data.read_uint32() for i in range(data.read_bits(17 if replay.base_build >= 34784 else 6 if replay.base_build >= 24764 else 5))],
120120
toon_handle=data.read_aligned_string(data.read_bits(7)) if replay.base_build >= 17266 else None,
121-
licenses=[data.read_uint32() for i in range(data.read_bits(9))] if replay.base_build >= 19132 else [],
121+
licenses=[data.read_uint32() for i in range(data.read_bits(13 if replay.base_build >= 70154 else 9))] if replay.base_build >= 19132 else [],
122122
tandem_leader_user_id=data.read_bits(4) if replay.base_build >= 34784 and data.read_bool() else None,
123123
commander=data.read_aligned_bytes(data.read_bits(9)) if replay.base_build >= 34784 else None,
124124
commander_level=data.read_uint32() if replay.base_build >= 36442 else None,

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
setuptools.setup(
55
license="MIT",
66
name="sc2reader",
7-
version='1.2.0',
7+
version='1.3.0',
88
keywords=["starcraft 2", "sc2", "replay", "parser"],
99
description="Utility for parsing Starcraft II replay files",
1010
long_description=open("README.rst").read()+"\n\n"+open("CHANGELOG.rst").read(),
35.9 KB
Binary file not shown.

test_replays/test_all.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,13 @@ def test_event_print(self):
596596
sys.stdout = sys.__stdout__
597597
capturedOutput.close()
598598

599+
def test_70154(self):
600+
for replayfilename in [
601+
"test_replays/4.7.0.70154/1.SC2Replay",
602+
]:
603+
factory = sc2reader.factories.SC2Factory()
604+
replay = factory.load_replay(replayfilename)
605+
599606

600607
class TestGameEngine(unittest.TestCase):
601608
class TestEvent(object):

0 commit comments

Comments
 (0)