From 3b9eac458aaf6400a3622c60159037588fccca83 Mon Sep 17 00:00:00 2001 From: Sgt_Imalas <20609939+Sgt-Imalas@users.noreply.github.com> Date: Mon, 6 Jan 2025 16:10:41 +0100 Subject: [PATCH] Mod: excluded bionic dlc from queries to avoid angering the backend. added mod updater+ mod profile manager to allowed mod list --- .../BlackBoxInACornerBuriedDeepInMoria.cs | 8 +++++--- mod/_WorldGenStateCapture/Config.cs | 2 +- mod/_WorldGenStateCapture/Mod.cs | 10 ++++++---- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/mod/_WorldGenStateCapture/BlackBoxInACornerBuriedDeepInMoria.cs b/mod/_WorldGenStateCapture/BlackBoxInACornerBuriedDeepInMoria.cs index a48b728..fcb3dd4 100644 --- a/mod/_WorldGenStateCapture/BlackBoxInACornerBuriedDeepInMoria.cs +++ b/mod/_WorldGenStateCapture/BlackBoxInACornerBuriedDeepInMoria.cs @@ -26,8 +26,8 @@ public static List GiveWeirdRemappedDlcIds(List semiConsistentKl { switch (semiConsistentKleiDlcId) { - case DlcManager.VANILLA_ID://Server assumes base game to be an absence of "SpacedOut" - //weirdIdNameThings.Add("BaseGame"); + case DlcManager.VANILLA_ID: + weirdIdNameThings.Add("BaseGame"); break; case DlcManager.EXPANSION1_ID: weirdIdNameThings.Add("SpacedOut"); @@ -35,7 +35,9 @@ public static List GiveWeirdRemappedDlcIds(List semiConsistentKl case DlcManager.DLC2_ID: weirdIdNameThings.Add("FrostyPlanet"); break; - default: + case DlcManager.DLC3_ID: //bionic booster pack doesnt have any form of woldgen manipulation and isnt part of the backend + break; + default: weirdIdNameThings.Add(semiConsistentKleiDlcId); // If it's not a known ID, keep it as is break; } diff --git a/mod/_WorldGenStateCapture/Config.cs b/mod/_WorldGenStateCapture/Config.cs index c844b42..25f834a 100644 --- a/mod/_WorldGenStateCapture/Config.cs +++ b/mod/_WorldGenStateCapture/Config.cs @@ -30,7 +30,7 @@ public class Config : SingletonOptions [Option("STRINGS.WORLDPARSERMODCONFIG.RANDOMMIXING.NAME", "STRINGS.WORLDPARSERMODCONFIG.RANDOMMIXING.DESC")] [JsonProperty] [Limit(0, 100)] - public int RandomMixingPercentage { get; set; } = 5; + public int RandomMixingPercentage { get; set; } = 10; [Option("STRINGS.WORLDPARSERMODCONFIG.ACCEPTREQUESTED.NAME", "STRINGS.WORLDPARSERMODCONFIG.ACCEPTREQUESTED.DESC")] [JsonProperty] diff --git a/mod/_WorldGenStateCapture/Mod.cs b/mod/_WorldGenStateCapture/Mod.cs index 8f69c55..e9d776c 100644 --- a/mod/_WorldGenStateCapture/Mod.cs +++ b/mod/_WorldGenStateCapture/Mod.cs @@ -18,8 +18,8 @@ public override void OnLoad(Harmony harmony) Debug.Log("Initializing MNI statistics.."); MNI_Statistics.OnGameInitialisation(); - Debug.Log("MNI statistics initialized."); - } + Debug.Log("MNI statistics initialized."); + } public static Harmony harmonyInstance; public override void OnAllModsLoaded(Harmony harmony, IReadOnlyList mods) @@ -28,13 +28,15 @@ public override void OnAllModsLoaded(Harmony harmony, IReadOnlyList mo IntegrityCheck.CheckModVersion(); foreach (var mod in mods) { - if (mod.IsEnabledForActiveDlc() && mod != this.mod) + if (mod.IsEnabledForActiveDlc() && mod != this.mod + && mod.staticID != "PeterHan.ModUpdateDate" //mod updater + && mod.staticID != "SaveGameModLoader") //mod profile manager { //another mod than this is active, abort all actions ModAssets.ModDilution = true; break; } - } + } } } }