@@ -28,6 +28,11 @@ def printReplay(filepath, arguments):
28
28
print (" Team {0}\t {1} ({2})" .format (team .number , team .players [0 ].name , team .players [0 ].pick_race [0 ]))
29
29
for player in team .players [1 :]:
30
30
print (" \t {0} ({1})" .format (player .name , player .pick_race [0 ]))
31
+ if arguments .observers :
32
+ print (" Observers:" )
33
+ for observer in replay .observers :
34
+ print (" {0}" .format (observer .name ))
35
+
31
36
if arguments .messages :
32
37
print (" Messages:" )
33
38
for message in replay .messages :
@@ -43,9 +48,9 @@ def printReplay(filepath, arguments):
43
48
print ("\n Version {0} replay:\n \t {1}" .format (e .replay .release_string , e .replay .filepath ))
44
49
print ("\t {0}, Type={1:X}" .format (e .msg , e .type ))
45
50
print ("\t Previous Event: {0}" .format (prev .name ))
46
- print ("\t \t " + prev .bytes .encode ('hex' ))
51
+ print ("\t \t " + prev .bytes .encode ('hex' ))
47
52
print ("\t Following Bytes:" )
48
- print ("\t \t " + e .buffer .read_range (e .location , e .location + 30 ).encode ('hex' ))
53
+ print ("\t \t " + e .buffer .read_range (e .location , e .location + 30 ).encode ('hex' ))
49
54
print ("Error with '{0}': " .format (filepath ))
50
55
print (e )
51
56
except Exception as e :
@@ -92,13 +97,15 @@ def main():
92
97
93
98
shared_args = parser .add_argument_group ('Shared Arguments' )
94
99
shared_args .add_argument ('--date' , action = "store_true" , default = True ,
95
- help = "print( game date [default on]" )
100
+ help = "print game date [default on]" )
96
101
shared_args .add_argument ('--length' , action = "store_true" , default = False ,
97
- help = "print( game duration mm:ss in game time (not real time) [default off]" )
102
+ help = "print game duration mm:ss in game time (not real time) [default off]" )
98
103
shared_args .add_argument ('--map' , action = "store_true" , default = True ,
99
- help = "print( map name [default on]" )
104
+ help = "print map name [default on]" )
100
105
shared_args .add_argument ('--teams' , action = "store_true" , default = True ,
101
- help = "print(teams, their players, and the race matchup [default on]" )
106
+ help = "print teams, their players, and the race matchup [default on]" )
107
+ shared_args .add_argument ('--observers' , action = "store_true" , default = True ,
108
+ help = "print observers" )
102
109
103
110
replay_args = parser .add_argument_group ('Replay Options' )
104
111
replay_args .add_argument ('--messages' , action = "store_true" , default = False ,
0 commit comments