SaltieRL/carball

KeyError during damage events

dtracers opened this issue · 0 comments

Traceback (most recent call last):
  File "/user_code/main.py", line 105, in parse_replay
    game_manager, proto_location, pandas_location = decompile_replay(replay_location)
  File "/user_code/main.py", line 41, in decompile_replay
    proto_manager = analyze_replay_file(filename, rattletrap_path=dir_path)
  File "/env/local/lib/python3.7/site-packages/carball/decompile_replays.py", line 45, in analyze_replay_file
    game.initialize(loaded_json=_json)
  File "/env/local/lib/python3.7/site-packages/carball/json_parser/game.py", line 99, in initialize
    self.parse_all_data(self.all_data, clean_player_names)
  File "/env/local/lib/python3.7/site-packages/carball/json_parser/game.py", line 288, in parse_all_data
    if frames[i] + 1 == frames[i + 1] and damage_events[frames[i]][0] == damage_events[frames[i + 1]][0]:
KeyError: 480

https://cdn.discordapp.com/attachments/493849514680254468/633507576793006080/dropshot_key_error.replay