From 98a611e4ddfae5fdf0c8eabac900fee6a97e2e32 Mon Sep 17 00:00:00 2001 From: AlienXAXS Date: Thu, 15 Aug 2024 20:19:53 +0100 Subject: [PATCH 1/3] Partial update to 0.10.30.23292 - Fixed EPrototype -> ECraftProto rename - Fixed PlanetFactory.AlterPrebuildModelState no longer having two arguments --- .../Factory/PrebuildItemRequiredUpdateProcessor.cs | 2 +- NebulaWorld/Player/DroneManager.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/NebulaNetwork/PacketProcessors/Factory/PrebuildItemRequiredUpdateProcessor.cs b/NebulaNetwork/PacketProcessors/Factory/PrebuildItemRequiredUpdateProcessor.cs index f5d7ff941..87e2c761e 100644 --- a/NebulaNetwork/PacketProcessors/Factory/PrebuildItemRequiredUpdateProcessor.cs +++ b/NebulaNetwork/PacketProcessors/Factory/PrebuildItemRequiredUpdateProcessor.cs @@ -43,7 +43,7 @@ protected override void ProcessPacket(PrebuildItemRequiredUpdate packet, NebulaC factory.NotifyPrebuildChange(ptr.id, 3); if (factory.planet.factoryLoaded || factory.planet.factingCompletedStage >= 3) { - factory.AlterPrebuildModelState(ptr.id, false); + factory.AlterPrebuildModelState(ptr.id); } factory.constructionSystem.AddBuildTargetToModules(ptr.id, ref ptr.pos); } diff --git a/NebulaWorld/Player/DroneManager.cs b/NebulaWorld/Player/DroneManager.cs index ff0a77717..128713484 100644 --- a/NebulaWorld/Player/DroneManager.cs +++ b/NebulaWorld/Player/DroneManager.cs @@ -279,7 +279,7 @@ private ref DroneComponent CreateDrone(PlanetFactory factory, Vector3 pos, Quate craftData.astroId = factory.planetId; craftData.owner = playerId; // Use craft.owner field to store playerId craftData.port = 0; - craftData.prototype = EPrototype.ConstructionDrone; + craftData.prototype = ECraftProto.ConstructionDrone; craftData.dynamic = true; craftData.isSpace = false; craftData.pos = pos; From 4d2fd0ecdd7dd29b54c05081337bb123b30b1cd3 Mon Sep 17 00:00:00 2001 From: AlienXAXS Date: Thu, 15 Aug 2024 23:20:14 +0100 Subject: [PATCH 2/3] Removed RefreshAstroBox Transplier Read the comments for info --- .../Transpilers/UIStatisticsWindow_Transpiler.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/NebulaPatcher/Patches/Transpilers/UIStatisticsWindow_Transpiler.cs b/NebulaPatcher/Patches/Transpilers/UIStatisticsWindow_Transpiler.cs index 03464b37b..ed466cfab 100644 --- a/NebulaPatcher/Patches/Transpilers/UIStatisticsWindow_Transpiler.cs +++ b/NebulaPatcher/Patches/Transpilers/UIStatisticsWindow_Transpiler.cs @@ -16,6 +16,15 @@ namespace NebulaPatcher.Patches.Transpilers; [HarmonyPatch(typeof(UIStatisticsWindow))] public static class UIStatisticsWindow_Transpiler { + + /* + * AlienX: After looking at the code which v0.10.30.23292 has (this method changed), it would seem that: + * - It creates two lists private in scope to the method: items and itemsData + * - Populates these lists + * - Does nothing with them + * + * Is this method completely redundant now??? + [HarmonyTranspiler] [HarmonyPatch(nameof(UIStatisticsWindow.RefreshAstroBox))] private static IEnumerable RefreshAstroBox_Transpiler(IEnumerable instructions) @@ -65,6 +74,7 @@ private static IEnumerable RefreshAstroBox_Transpiler(IEnumerab return codeInstructions; } } + */ [HarmonyTranspiler] [HarmonyPatch(nameof(UIStatisticsWindow.ComputeDisplayProductEntries))] From f1a8e774cfbf0bf3c778e7c4c0590677f2b65b93 Mon Sep 17 00:00:00 2001 From: AlienXAXS Date: Thu, 15 Aug 2024 23:21:51 +0100 Subject: [PATCH 3/3] Updated version to 0.9.8 --- CHANGELOG.md | 3 +++ version.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ef1f81e4c..ff0130d6e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ ## Changelog +0.9.8: +- @AlienXAXS: Added Online Player UI (Backtick key by default) +- @AlienXAXS: Updated Nebula to be compatible with Dyson Sphere Program v0.10.30.23292 0.9.7: - @AlienXAXS: Headless now calculates planetary shields on CPU diff --git a/version.json b/version.json index 475467750..51f7e273c 100644 --- a/version.json +++ b/version.json @@ -1,6 +1,6 @@ { "$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json", - "version": "0.9.7", + "version": "0.9.8", "assemblyVersion": { "precision": "build" },