From 70cfe906706b78ab82812778244a0675b36db3fe Mon Sep 17 00:00:00 2001 From: algernon-A Date: Tue, 13 Dec 2022 20:28:55 +1100 Subject: [PATCH] Version 1.1; game version 1.16 (Financial Districts). --- Changelog.txt | 1 + Code/Loading/AssetDeserializer.cs | 2 +- Code/Loading/LevelLoader.cs | 11 +++++++++++ Code/Mod.cs | 2 +- 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Changelog.txt b/Changelog.txt index 3a0c9af..f830478 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -1,5 +1,6 @@ Version 1.1 - +- Support game version 1.16 - Implement network skipping - Implement tree skipping - Automatically create any missing skipfile directories and files when opening a specified skip file via the options panel diff --git a/Code/Loading/AssetDeserializer.cs b/Code/Loading/AssetDeserializer.cs index 17ba26a..d02a402 100644 --- a/Code/Loading/AssetDeserializer.cs +++ b/Code/Loading/AssetDeserializer.cs @@ -235,7 +235,7 @@ private object DeserializeSingleObject(Type type, Type expectedType) } catch (MissingMethodException) { - Logging.Error("unsupported type for deserialization: ", type.Name); + Logging.Error("unsupported type for deserialization: ", type.Name, " in package ", _package.packageName); return null; } } diff --git a/Code/Loading/LevelLoader.cs b/Code/Loading/LevelLoader.cs index 7228cdb..9e34580 100644 --- a/Code/Loading/LevelLoader.cs +++ b/Code/Loading/LevelLoader.cs @@ -903,6 +903,7 @@ private static List> SetLevels() loadingManager.m_supportsExpansion[8] = DLC(1146930u); loadingManager.m_supportsExpansion[9] = DLC(1726380u); loadingManager.m_supportsExpansion[10] = DLC(2008400u); + loadingManager.m_supportsExpansion[11] = DLC(2148901u); bool isWinter = Singleton.instance.m_metaData.m_environment == "Winter"; if (isWinter && !loadingManager.m_supportsExpansion[1]) { @@ -994,6 +995,11 @@ private static List> SetLevels() prefabScenes.Add(new KeyValuePair((!isWinter) ? "Expansion11Prefabs" : "WinterExpansion11Prefabs", 0.1f)); } + if (loadingManager.m_supportsExpansion[11]) + { + prefabScenes.Add(new KeyValuePair((!isWinter) ? "Expansion12Prefabs" : "WinterExpansion12Prefabs", 0.1f)); + } + if (DLC(456200u)) { prefabScenes.Add(new KeyValuePair("FootballPrefabs", 0.01f)); @@ -1104,6 +1110,11 @@ private static List> SetLevels() prefabScenes.Add(new KeyValuePair("Station17Prefabs", 0.01f)); } + if (DLC(2148904u)) + { + prefabScenes.Add(new KeyValuePair("Station18Prefabs", 0.01f)); + } + if (DLC(563850u)) { prefabScenes.Add(new KeyValuePair("ChinaPackPrefabs", 0.02f)); diff --git a/Code/Mod.cs b/Code/Mod.cs index 63a530f..a07ef6d 100644 --- a/Code/Mod.cs +++ b/Code/Mod.cs @@ -17,7 +17,7 @@ namespace LoadingScreenModRevisited /// public sealed class Mod : PatcherMod, IUserMod { - private readonly string _compatibleVersion = "1.15"; + private readonly string _compatibleVersion = "1.16"; /// /// Gets the mod's base display name (name only).