Skip to content

Commit

Permalink
Version 1.1; game version 1.16 (Financial Districts).
Browse files Browse the repository at this point in the history
  • Loading branch information
algernon-A committed Dec 13, 2022
1 parent 9013aef commit 70cfe90
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion Code/Loading/AssetDeserializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down
11 changes: 11 additions & 0 deletions Code/Loading/LevelLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -903,6 +903,7 @@ private static List<KeyValuePair<string, float>> 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<SimulationManager>.instance.m_metaData.m_environment == "Winter";
if (isWinter && !loadingManager.m_supportsExpansion[1])
{
Expand Down Expand Up @@ -994,6 +995,11 @@ private static List<KeyValuePair<string, float>> SetLevels()
prefabScenes.Add(new KeyValuePair<string, float>((!isWinter) ? "Expansion11Prefabs" : "WinterExpansion11Prefabs", 0.1f));
}

if (loadingManager.m_supportsExpansion[11])
{
prefabScenes.Add(new KeyValuePair<string, float>((!isWinter) ? "Expansion12Prefabs" : "WinterExpansion12Prefabs", 0.1f));
}

if (DLC(456200u))
{
prefabScenes.Add(new KeyValuePair<string, float>("FootballPrefabs", 0.01f));
Expand Down Expand Up @@ -1104,6 +1110,11 @@ private static List<KeyValuePair<string, float>> SetLevels()
prefabScenes.Add(new KeyValuePair<string, float>("Station17Prefabs", 0.01f));
}

if (DLC(2148904u))
{
prefabScenes.Add(new KeyValuePair<string, float>("Station18Prefabs", 0.01f));
}

if (DLC(563850u))
{
prefabScenes.Add(new KeyValuePair<string, float>("ChinaPackPrefabs", 0.02f));
Expand Down
2 changes: 1 addition & 1 deletion Code/Mod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace LoadingScreenModRevisited
/// </summary>
public sealed class Mod : PatcherMod<OptionsPanel, Patcher>, IUserMod
{
private readonly string _compatibleVersion = "1.15";
private readonly string _compatibleVersion = "1.16";

/// <summary>
/// Gets the mod's base display name (name only).
Expand Down

0 comments on commit 70cfe90

Please sign in to comment.