Skip to content

Commit

Permalink
Mod: excluded bionic dlc from queries to avoid angering the backend.
Browse files Browse the repository at this point in the history
added mod updater+ mod profile manager to allowed mod list
  • Loading branch information
Sgt-Imalas committed Jan 6, 2025
1 parent 75539af commit 3b9eac4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,18 @@ public static List<string> GiveWeirdRemappedDlcIds(List<string> 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");
break;
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;
}
Expand Down
2 changes: 1 addition & 1 deletion mod/_WorldGenStateCapture/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class Config : SingletonOptions<Config>
[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]
Expand Down
10 changes: 6 additions & 4 deletions mod/_WorldGenStateCapture/Mod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<KMod.Mod> mods)
Expand All @@ -28,13 +28,15 @@ public override void OnAllModsLoaded(Harmony harmony, IReadOnlyList<KMod.Mod> 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;
}
}
}
}
}
}

0 comments on commit 3b9eac4

Please sign in to comment.