From d78218ad0e753f65bb828b25378df1b0eaab9365 Mon Sep 17 00:00:00 2001 From: Clayell <125416952+Clayell@users.noreply.github.com> Date: Thu, 16 Jan 2025 16:31:36 -0500 Subject: [PATCH 1/6] Update RealSolarSystem.cfg --- GameData/RealSolarSystem/RealSolarSystem.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameData/RealSolarSystem/RealSolarSystem.cfg b/GameData/RealSolarSystem/RealSolarSystem.cfg index aff4f7cc..d136bd89 100644 --- a/GameData/RealSolarSystem/RealSolarSystem.cfg +++ b/GameData/RealSolarSystem/RealSolarSystem.cfg @@ -18,7 +18,7 @@ REALSOLARSYSTEM } } - timeWarpRates + timeWarpRates:NEEDS[!BetterTimeWarpCont|!TimeControl] { rate1 = 10 rate2 = 100 From 480ff39ae44ee7593097bad7f70f06cc2de3227b Mon Sep 17 00:00:00 2001 From: Clayell <125416952+Clayell@users.noreply.github.com> Date: Sun, 20 Jul 2025 22:37:06 -0400 Subject: [PATCH 2/6] this should use 'and' --- GameData/RealSolarSystem/RealSolarSystem.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameData/RealSolarSystem/RealSolarSystem.cfg b/GameData/RealSolarSystem/RealSolarSystem.cfg index d136bd89..77a488a0 100644 --- a/GameData/RealSolarSystem/RealSolarSystem.cfg +++ b/GameData/RealSolarSystem/RealSolarSystem.cfg @@ -18,7 +18,7 @@ REALSOLARSYSTEM } } - timeWarpRates:NEEDS[!BetterTimeWarpCont|!TimeControl] + timeWarpRates:NEEDS[!BetterTimeWarpCont&!TimeControl] { rate1 = 10 rate2 = 100 From bcc62047b2ffd4a06fd9756e03dc68b7eb93fb75 Mon Sep 17 00:00:00 2001 From: Clayell <125416952+Clayell@users.noreply.github.com> Date: Sat, 2 May 2026 11:03:50 -0400 Subject: [PATCH 3/6] Create TimeWarp.cfg --- GameData/RealSolarSystem/Compatibility/TimeWarp.cfg | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 GameData/RealSolarSystem/Compatibility/TimeWarp.cfg diff --git a/GameData/RealSolarSystem/Compatibility/TimeWarp.cfg b/GameData/RealSolarSystem/Compatibility/TimeWarp.cfg new file mode 100644 index 00000000..91bff142 --- /dev/null +++ b/GameData/RealSolarSystem/Compatibility/TimeWarp.cfg @@ -0,0 +1,12 @@ +// No need to override the user's settings when using BetterTimeWarp or TimeControl + +timeWarpRates:NEEDS[!BetterTimeWarpCont&!TimeControl] +{ + rate1 = 10 + rate2 = 100 + rate3 = 1000 + rate4 = 10000 + rate5 = 100000 + rate6 = 1000000 + rate7 = 6000000 +} From 70133dc6eeefed0f2fe6c4e1c1ac0d9c69739163 Mon Sep 17 00:00:00 2001 From: Clayell <125416952+Clayell@users.noreply.github.com> Date: Sat, 2 May 2026 11:04:23 -0400 Subject: [PATCH 4/6] Update RealSolarSystem.cfg --- GameData/RealSolarSystem/RealSolarSystem.cfg | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/GameData/RealSolarSystem/RealSolarSystem.cfg b/GameData/RealSolarSystem/RealSolarSystem.cfg index 77a488a0..7acd1a3c 100644 --- a/GameData/RealSolarSystem/RealSolarSystem.cfg +++ b/GameData/RealSolarSystem/RealSolarSystem.cfg @@ -17,17 +17,6 @@ REALSOLARSYSTEM cam01FarClip = 1875000 } } - - timeWarpRates:NEEDS[!BetterTimeWarpCont&!TimeControl] - { - rate1 = 10 - rate2 = 100 - rate3 = 1000 - rate4 = 10000 - rate5 = 100000 - rate6 = 1000000 - rate7 = 6000000 - } } RSSRUNWAYFIX From 56e52a640027fddc490a3c8ef5d43a86c352c427 Mon Sep 17 00:00:00 2001 From: Clayel Date: Sat, 2 May 2026 11:15:09 -0400 Subject: [PATCH 5/6] use linq in timewarpfixer --- .../Compatibility/TimeWarp.cfg | 19 +++++++++++-------- Source/TimeWarpFixer.cs | 11 +++++------ 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/GameData/RealSolarSystem/Compatibility/TimeWarp.cfg b/GameData/RealSolarSystem/Compatibility/TimeWarp.cfg index 91bff142..9b504bee 100644 --- a/GameData/RealSolarSystem/Compatibility/TimeWarp.cfg +++ b/GameData/RealSolarSystem/Compatibility/TimeWarp.cfg @@ -1,12 +1,15 @@ // No need to override the user's settings when using BetterTimeWarp or TimeControl -timeWarpRates:NEEDS[!BetterTimeWarpCont&!TimeControl] +RealSolarSystem { - rate1 = 10 - rate2 = 100 - rate3 = 1000 - rate4 = 10000 - rate5 = 100000 - rate6 = 1000000 - rate7 = 6000000 + timeWarpRates:NEEDS[!BetterTimeWarpCont&!TimeControl] + { + rate1 = 10 + rate2 = 100 + rate3 = 1000 + rate4 = 10000 + rate5 = 100000 + rate6 = 1000000 + rate7 = 6000000 + } } diff --git a/Source/TimeWarpFixer.cs b/Source/TimeWarpFixer.cs index 1bb3400d..f2e1326d 100644 --- a/Source/TimeWarpFixer.cs +++ b/Source/TimeWarpFixer.cs @@ -1,4 +1,5 @@ -using UnityEngine; +using System.Linq; +using UnityEngine; namespace RealSolarSystem { @@ -23,15 +24,13 @@ public void Update() if (!fixedTimeWarp && TimeWarp.fetch != null) { fixedTimeWarp = true; - ConfigNode twNode = null; - foreach (ConfigNode node in GameDatabase.Instance.GetConfigNodes("REALSOLARSYSTEM")) - twNode = node.GetNode("timeWarpRates"); - - Debug.Log("[RealSolarSystem] Setting TimeWarp rates..."); + ConfigNode twNode = GameDatabase.Instance.GetConfigNodes("REALSOLARSYSTEM").FirstOrDefault(n => n.HasNode("timeWarpRates")); if (twNode != null) { + Debug.Log("[RealSolarSystem] Setting TimeWarp rates..."); + for (int i = 1; i < 8; i++) { if (twNode.HasValue("rate" + i)) From a2a25db2fba844a4df2c99a7476c3ae74b3b4fc2 Mon Sep 17 00:00:00 2001 From: Clayel Date: Sat, 2 May 2026 11:59:06 -0400 Subject: [PATCH 6/6] move needs to top level --- GameData/RealSolarSystem/Compatibility/TimeWarp.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GameData/RealSolarSystem/Compatibility/TimeWarp.cfg b/GameData/RealSolarSystem/Compatibility/TimeWarp.cfg index 9b504bee..b36ddc6d 100644 --- a/GameData/RealSolarSystem/Compatibility/TimeWarp.cfg +++ b/GameData/RealSolarSystem/Compatibility/TimeWarp.cfg @@ -1,8 +1,8 @@ // No need to override the user's settings when using BetterTimeWarp or TimeControl -RealSolarSystem +RealSolarSystem:NEEDS[!BetterTimeWarpCont&!TimeControl] { - timeWarpRates:NEEDS[!BetterTimeWarpCont&!TimeControl] + timeWarpRates { rate1 = 10 rate2 = 100