Skip to content

Commit a3c8c42

Browse files
committed
Change header and include it in the documentation.
1 parent 48a327a commit a3c8c42

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

game_events_debug.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
Outputs the following information in the following format:
99
1010
ggtracker/ggtracker_replay_202597.SC2Replay
11+
Cursor Time P# EventType Bytes
1112
....... 00:04 P2 AbilityEvent - 00 22 0b 01 08 34 07 00 31 00 00 01 1f 0d 21 f8 00 8c c0 80 00 05 ff 00
1213
....... 00:05 P1 SelectionEvent - 38 21 ac 00 06 00 01 05 15 01 03 03 05 18 00 01 05 20 00 01 05 28 00 01
1314
0x000F5 00:05 P2 SelectionEvent - 00 22 ac 00 02 f4 00 00 | 00 0c a1 89 00 10 00 00 00 21 0b 01 00 01 5c 01 00 0c 22 0b
@@ -105,7 +106,7 @@ def get_name(obj):
105106
except ReadError as e:
106107
print filename
107108
if len(e.game_events):
108-
print " Location Time P# EventType Bytes"
109+
print " Cursor Time P# EventType Bytes"
109110
for event in e.game_events[-3:-1]:
110111
print " ....... {:0>2}:{:0>2} P{} {: <19} - {}".format(event.second/60, event.second%60, event.pid, get_name(event), format_bytes(event.bytes))
111112
last_event = e.game_events[-1]

0 commit comments

Comments
 (0)