@@ -18,7 +18,7 @@ def doFile(filename, arguments):
18
18
return
19
19
prev = e .game_events [- 1 ]
20
20
print "\n Version {0} replay:\n \t {1}" .format (e .replay .release_string , e .replay .filename )
21
- print "\t {0}, Type={1:X}, Code={2:X} " .format (e .msg , e .type , e . code )
21
+ print "\t {0}, Type={1:X}" .format (e .msg , e .type )
22
22
print "\t Previous Event: {0}" .format (prev .name )
23
23
print "\t \t " + prev .bytes .encode ('hex' )
24
24
print "\t Following Bytes:"
@@ -43,11 +43,8 @@ def doFile(filename, arguments):
43
43
if arguments .date :
44
44
print " Date: {0}" .format (replay .date )
45
45
if arguments .teams :
46
- races = list ()
47
- for team in replay .teams :
48
- races .append ('' .join ([player .pick_race [0 ] for player in team .players ]))
49
- print " Teams: {0}" .format ("v" .join (races ))
50
-
46
+ lineups = [team .lineup for team in replay .teams ]
47
+ print " Teams: {0}" .format ("v" .join (lineups ))
51
48
for team in replay .teams :
52
49
print " Team {0}\t {1} ({2})" .format (team .number ,team .players [0 ].name ,team .players [0 ].pick_race [0 ])
53
50
for player in team .players [1 :]:
@@ -84,7 +81,7 @@ def main():
84
81
85
82
for path in arguments .paths :
86
83
if arguments .recursive :
87
- files = utils .get_replay_files (path )
84
+ files = utils .get_files (path , extension = 'SC2Replay' )
88
85
else :
89
86
files = utils .get_replay_files (path , depth = 0 )
90
87
0 commit comments