#NEWLINE# def getReplayGameEventsDebug( self ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return self . replayGameEventsDebug #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# generator = self . protocol . decode_replay_game_events_debug ( self . mpq . read_file ( 'replay.game.events' ) ) #NEWLINE# self . replayGameEvents = [ ] #NEWLINE# try : #NEWLINE# #INDENT# i = 0 #NEWLINE# for event in generator : #NEWLINE# #INDENT# event [ 'index' ] = i #NEWLINE# if ( i >= 25000 ) : #NEWLINE# #INDENT# return self . replayGameEvents #NEWLINE# #UNINDENT# i = ( i + 1 ) #NEWLINE# #UNINDENT# #UNINDENT# except CorruptedError as e : #NEWLINE# #INDENT# self . replayGameEvents . append ( { #NEWLINE# #INDENT# 'error' : str ( e ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# return self . replayGameEvents