FluffyMaguro / SC2_Coop_Overlay

Overlay for StarCraft II Co-op showing post-game statistics

Home Page:https://www.maguro.one

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Replay analysis crashes with Dehaka - Bloodbrother prestiege

destromano opened this issue · comments

Ally was playing Dehaka with Bloodbrother. Traceback:

22:16:47 - SCOF (ERROR): Failed to analyse replay: ...
Traceback (most recent call last):
  File "SCOFunctions.py", line 336, in move_in_AllReplays
    replay_dict = analyse_replay(key,PLAYER_NAMES)
  File "ReplayAnalysis.py", line 684, in analyse_replay
    fill_unit_kills_and_icons(replay_report_dict['ally'], ally_player, unit_type_dict_ally)
  File "ReplayAnalysis.py", line 656, in fill_unit_kills_and_icons
    replay_report_dict[unitkey][unit][0] = replay_report_dict[unitkey]['Dehaka'][0]
KeyError: 'Dehaka'

value of replay_report_dict[unitkey] at the time:

{'Impaler': [15, 0, 375, 0.43], 'Zweihaka': [1, 1, 237, 0.27]}

value of sorted_dict at the time:

{'Impaler': [15, 0, 375, 0.43], 'Zweihaka': [1, 1, 237, 0.27], 'Dehaka': [3, 2, 228, 0], 'Glevig': [1, 1, 14, 0], 'Primal Zergling': [8, 8, 8, 0], 'Greater Primal Wurm': [3, 3, 7, 0], 'Primal Hydralisk': [34, 2, 6, 0], 'Dakrun': [1, 1, 3, 0], 'Primal Roach': [2, 2, 3, 0], 'Primal Mutalisk': [1, 1, 1, 0], 'Primal Hive': [2, 0, 0, 0], 'Primal Drone': [57, 10, 0, 0], 'DehakaCoopReviveCocoon': [1, 0, 0, 0], 'DehakaCoopReviveCocoonFootPrint': [3, 3, 0, 0], 'Egg': [77, 77, 0, 0], 'Extractor': [4, 0, 0, 0], 'EssencePickup': [764, 729, 0, 0], 'Primal Warden': [2, 0, 0, 0], "Glevig's Den": [1, 0, 0, 0], "Murvar's Den": [1, 0, 0, 0], "Glevig's Hydralisk": [2, 0, 0, 0], "Glevig's Roach": [2, 0, 0, 0], "Glevig's Zergling": [8, 0, 0, 0], 'DehakaGlevigDeepTunnelPlacement': [2, 2, 0, 0], "Dakrun's Den": [1, 0, 0, 0], 'DehakaPlacement': [6, 6, 0, 0]}