From b67d5117b79d94524834983177d041018e3f28c2 Mon Sep 17 00:00:00 2001 From: Micdu70 Date: Tue, 24 Dec 2024 10:17:03 +0100 Subject: [PATCH] Bug fix & Close #399 --- Entities/LogFileWatcher.cs | 3 +++ Entities/Multilingual.cs | 8 +++++++- Views/Stats.cs | 19 +++++++++++++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) diff --git a/Entities/LogFileWatcher.cs b/Entities/LogFileWatcher.cs index 4c61e468..be056e99 100644 --- a/Entities/LogFileWatcher.cs +++ b/Entities/LogFileWatcher.cs @@ -402,6 +402,9 @@ private bool IsRealFinalRound(int roundNum, string roundId, string showId) { || (string.Equals(showId, "event_only_button_bashers_template") && roundNum == 4) + || (string.Equals(showId, "fp16_ski_fall_high_scorers") + && string.Equals(roundId, "round_event_only_skeefall_timetrial_s6_1")) + || (string.Equals(showId, "ftue_uk_show") && string.Equals(roundId, "round_snowballsurvival_noelim_ftue_s2")) diff --git a/Entities/Multilingual.cs b/Entities/Multilingual.cs index add2aee7..6b4315ef 100644 --- a/Entities/Multilingual.cs +++ b/Entities/Multilingual.cs @@ -13467,6 +13467,7 @@ public static class Multilingual { { "event_yeetus_3005_to_3105_2022", "Big Yeetus Tour" }, { "event_yeetus_template", "Big Yeetus Tour" }, { "explore_points", "Explore - Points" }, + { "fp16_ski_fall_high_scorers", "Ski Fall High Scorers" }, { "ftue_uk_show", "Knockout" }, { "invisibeans_0508_to_0708_2022", "SWEET THIEVES" }, { "invisibeans_0707_to_1107_2022", "SWEET THIEVES" }, @@ -14378,6 +14379,7 @@ public static class Multilingual { { "event_yeetus_3005_to_3105_2022", "Spéciale Big Yeetus" }, { "event_yeetus_template", "Spéciale Big Yeetus" }, { "explore_points", "Exploration - Points" }, + { "fp16_ski_fall_high_scorers", "Les hauts scores des pistes folles" }, { "ftue_uk_show", "Tournois" }, { "invisibeans_0508_to_0708_2022", "VOLEURS SUCRÉS" }, { "invisibeans_0707_to_1107_2022", "VOLEURS SUCRÉS" }, @@ -14477,7 +14479,7 @@ public static class Multilingual { { "squads_show_ss2_parrot", "Groupes" }, { "survival_of_the_fittest", "Le plus fort survivra" }, { "teams_show", "Erreur de connexion" }, - { "teams_show_ltm", "Duo Dynamique" }, + { "teams_show_ltm", "Duos dynamiques" }, { "toms_main_show_5_2", "Émission principale" }, { "toms_show2", "Toms Show 2" }, { "turbo_show", "Solo" }, @@ -15289,6 +15291,7 @@ public static class Multilingual { { "event_yeetus_3005_to_3105_2022", "대형 망치 투어" }, { "event_yeetus_template", "대형 망치 투어" }, { "explore_points", "탐험 - 포인트" }, + { "fp16_ski_fall_high_scorers", "스키 점프 고득점" }, { "ftue_uk_show", "넉아웃" }, { "invisibeans_0508_to_0708_2022", "달콤한 도둑들" }, { "invisibeans_0707_to_1107_2022", "달콤한 도둑들" }, @@ -16200,6 +16203,7 @@ public static class Multilingual { { "event_yeetus_3005_to_3105_2022", "ハンマーツアー" }, { "event_yeetus_template", "ハンマーツアー" }, { "explore_points", "自由探索 - ポイント" }, + { "fp16_ski_fall_high_scorers", "スキーフォール・ハイスコア" }, { "ftue_uk_show", "ノックアウト" }, { "invisibeans_0508_to_0708_2022", "キャンディードロボー" }, { "invisibeans_0707_to_1107_2022", "キャンディードロボー" }, @@ -17111,6 +17115,7 @@ public static class Multilingual { { "event_yeetus_3005_to_3105_2022", "重锤巡回赛" }, { "event_yeetus_template", "重锤巡回赛" }, { "explore_points", "探索 - 分数" }, + { "fp16_ski_fall_high_scorers", "雪山速降高分赛" }, { "ftue_uk_show", "淘汰赛" }, { "invisibeans_0508_to_0708_2022", "糖果窃贼" }, { "invisibeans_0707_to_1107_2022", "糖果窃贼" }, @@ -18022,6 +18027,7 @@ public static class Multilingual { { "event_yeetus_3005_to_3105_2022", "重錘巡迴賽" }, { "event_yeetus_template", "重錘巡迴賽" }, { "explore_points", "探索模式 - 奪分關卡" }, + { "fp16_ski_fall_high_scorers", "舞洞飛揚挑戰者" }, { "ftue_uk_show", "淘汰賽" }, { "invisibeans_0508_to_0708_2022", "糖果竊賊" }, { "invisibeans_0707_to_1107_2022", "糖果竊賊" }, diff --git a/Views/Stats.cs b/Views/Stats.cs index 442e7a82..33eb3655 100644 --- a/Views/Stats.cs +++ b/Views/Stats.cs @@ -260,6 +260,7 @@ private static bool IsAlreadyRunning() { "event_xtreme_fall_guys_template", "event_xtreme_fall_guys_squads_template", "no_elimination_show", + "anniversary_fp12_ltm", "event_anniversary_season_1_alternate_name", "event_blast_ball_banger_template", "event_only_button_bashers_template", @@ -275,6 +276,7 @@ private static bool IsAlreadyRunning() { "event_only_jump_club_template", "event_only_hoverboard_template", "event_only_drumtop_template", + "event_only_skeefall_timetrial_s6_1", "event_walnut_template", "survival_of_the_fittest", "show_robotrampage_ss2_show1_template", @@ -3640,6 +3642,21 @@ where string.Equals(ri.ShowNameId, "mrs_pegwin_winter_2teamsfinal") this.CurrentSettings.Version = 110; this.SaveUserSettings(); } + + if (this.CurrentSettings.Version == 110) { + List roundInfoList = (from ri in this.RoundDetails.FindAll() + where string.Equals(ri.ShowNameId, "fp16_ski_fall_high_scorers") + select ri).ToList(); + + foreach (RoundInfo ri in roundInfoList) { + ri.IsFinal = true; + } + this.StatsDB.BeginTrans(); + this.RoundDetails.Update(roundInfoList); + this.StatsDB.Commit(); + this.CurrentSettings.Version = 111; + this.SaveUserSettings(); + } } private UserSettings GetDefaultSettings() { @@ -5109,6 +5126,8 @@ public string GetAlternateShowId(string showId) { case "knockout_squads": case "squadcelebration": return "squads_4player"; + case "fp16_ski_fall_high_scorers": + return "event_only_skeefall_timetrial_s6_1"; case "invisibeans_pistachio_template": case "invisibeans_template": return "invisibeans_mode";