From ba59838e21457732fcab651f523e28a5fdd1f1d8 Mon Sep 17 00:00:00 2001 From: Jylpah Date: Tue, 17 Nov 2020 19:08:19 +0200 Subject: [PATCH 1/2] Fix handling of unknown Battle Modes --- analyze_wotb_replays.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/analyze_wotb_replays.py b/analyze_wotb_replays.py index 7a8531b..ded8bc7 100755 --- a/analyze_wotb_replays.py +++ b/analyze_wotb_replays.py @@ -97,7 +97,9 @@ class BattleCategorizationList(): """Make a list of battle modes as required for the _categorizations""" mode_ids = modes.values() id_max = max(mode_ids) - ret_modes = ['-'] * (id_max+16) # create a list of '-' elements + ret_modes = ['-'] * (id_max+16) + for i in range(0, id_max+16): + ret_modes[i] = 'room_type=' + str(i) for mode in modes: id = modes[mode] From 9ca3925b36e56e1a3cf46170f2b60a5c54e9f5c6 Mon Sep 17 00:00:00 2001 From: Jylpah Date: Wed, 18 Nov 2020 00:22:42 +0200 Subject: [PATCH 2/2] Add Skirmish mode --- analyze_wotb_replays.py | 1 + 1 file changed, 1 insertion(+) diff --git a/analyze_wotb_replays.py b/analyze_wotb_replays.py index ded8bc7..cefc11a 100755 --- a/analyze_wotb_replays.py +++ b/analyze_wotb_replays.py @@ -116,6 +116,7 @@ class BattleCategorizationList(): 'Mad Games' : 8, 'Realistic Battles' : 22, 'Gravity Mode' : 24, + 'Skirmish' : 25, 'Burning Games' : 26 }