File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ def main():
41
41
if not args .one_each or not already_did :
42
42
replay = sc2reader .load_replay (path , debug = True , load_level = 1 )
43
43
if not args .one_each or replay .is_ladder :
44
- replay = sc2reader .load_replay (path , debug = True , verbose = True )
44
+ replay = sc2reader .load_replay (path , debug = True )
45
45
except sc2reader .exceptions .ReadError as e :
46
46
print
47
47
print path
@@ -56,13 +56,15 @@ def main():
56
56
print
57
57
print path
58
58
try :
59
- replay = sc2reader .load_replay (path , debug = True , load_level = 1 )
59
+ replay = sc2reader .load_replay (path , debug = True , load_level = 2 )
60
60
print '{build} - {real_type} on {map_name} - Played {start_time}' .format (** replay .__dict__ )
61
61
print '[ERROR]' , e .message
62
62
for pid , attributes in replay .attributes .items ():
63
63
print pid , attributes
64
64
for pid , info in enumerate (replay .raw_data ['replay.details' ].players ):
65
65
print pid , info
66
+ for message in replay .raw_data ['replay.message.events' ].messages :
67
+ print message .pid , message .text
66
68
print replay .raw_data ['replay.initData' ].player_names
67
69
traceback .print_exc ()
68
70
print
You can’t perform that action at this time.
0 commit comments