Skip to content

Commit d5eb61a

Browse files
committed
Merge remote-tracking branch 'upstream/master' into ggtracker/upstream
Conflicts: CHANGELOG.rst sc2reader/data/__init__.py sc2reader/data/attributes.json sc2reader/engine/plugins/apm.py sc2reader/engine/plugins/context.py sc2reader/events/game.py sc2reader/events/tracker.py sc2reader/factories/plugins/replay.py sc2reader/readers.py sc2reader/resources.py sc2reader/scripts/sc2parse.py setup.py test_replays/test_all.py
2 parents dbffc7f + d69feb4 commit d5eb61a

27 files changed

+1640
-1644
lines changed

CHANGELOG.rst

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
CHANGELOG
22
============
33

4-
5-
0.6.5 - December ?? 2013
4+
0.7.0 -
65
---------------------------
76

87
* Deprecated unit.killed_by in favor of unit.killing_player
@@ -17,6 +16,27 @@ CHANGELOG
1716
* Removed the defunct replay.player_names attribute.
1817
* Removed the defunct replay.events_by_type attribute.
1918
* Removed the defunct replay.other_people attribute.
19+
* Replays can now be pickled and stored for later consumption.
20+
* All references to the gateway attribute have been replaced in favor of region; e.g. replay.region
21+
* Use generic UnitType and Ability classes for data. This means no more unit._type_class.__class__.__name__. But hopefully people were not doing that anyway.
22+
* Now a CorruptTrackerFileError is raised when the tracker file is corrupted (generally only older resume_from_replay replays)
23+
* Added replay.resume_from_replay flag. See replay.resume_user_info for additional info.
24+
* PacketEvent is now ProgressEvent.
25+
* SetToHotkeyEvent is now SetControlGroupEvent.
26+
* AddToHotkeyEvent is now AddToControlGroupEvent.
27+
* GetFromHotkeyEvent is now GetControlGroupEvent.
28+
* PlayerAbilityEvent is no longer part of the event hierarchy.
29+
* AbilityEvent doubled as both an abstract and concrete class (very bad, see #160). Now split into:
30+
* AbilityEvent is now CommandEvent
31+
* AbilityEvent is now BasicCommandEvent
32+
* TargetAbilityEvent is now TargetUnitCommandEvent
33+
* LocationAbilityEvent is now TargetPointCommandEvent
34+
* SelfAbilityEvent is now DataCommandEvent
35+
* Removed the defunct replay.player_names attribute.
36+
* Removed the defunct replay.events_by_type attribute.
37+
* Removed the defunct replay.other_people attribute.
38+
39+
* event.name is no longer a class property; it can only be accessed from an event instance.
2040
* PingEvents now have new attributes:
2141
* event.to_all - true if ping seen by all
2242
* event.to_allies - true if ping seen by allies
@@ -28,7 +48,7 @@ CHANGELOG
2848
---------------------------
2949

3050
* Fix bug in code for logging errors.
31-
* Fix siege tank supply count
51+
* Fix siege tank supply count.
3252
* Small improvements to message.events parsing.
3353

3454
0.6.3 - September 15th 2013

sc2reader/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"""
2121
from __future__ import absolute_import, print_function, unicode_literals, division
2222

23-
__version__ = "0.6.4"
23+
__version__ = "0.7.0-pre"
2424

2525
import os
2626
import sys

sc2reader/constants.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
'프로토스': 'Protoss',
2424
'저그': 'Zerg',
2525

26-
# ??eu
26+
# plPL
2727
'Terranie': 'Terran',
2828
'Protosi': 'Protoss',
2929
'Zergi': 'Zerg',
@@ -124,7 +124,7 @@
124124

125125
COLOR_CODES_INV = dict(zip(COLOR_CODES.values(), COLOR_CODES.keys()))
126126

127-
REGIONS = {
127+
SUBREGIONS = {
128128
# United States
129129
'us': {
130130
1: 'us',
@@ -142,6 +142,7 @@
142142
1: 'kr',
143143
2: 'tw',
144144
},
145+
145146
# Taiwan - appear to both map to same place
146147
'tw': {
147148
1: 'kr',

sc2reader/data/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def __init__(self, unit_id):
7373
self.killed_units = list()
7474

7575
#: The unique in-game id for this unit. The id can sometimes be zero because
76-
#: TargetAbilityEvents will create a new unit with id zero when a unit
76+
#: TargetUnitCommandEvents will create a new unit with id zero when a unit
7777
#: behind the fog of war is targetted.
7878
self.id = unit_id
7979

0 commit comments

Comments
 (0)