From 4705682a0e2506080ddf420f62dc94317713d8f6 Mon Sep 17 00:00:00 2001 From: JC Yuan <75869853+jcyuan06@users.noreply.github.com> Date: Mon, 8 May 2023 10:24:18 -0500 Subject: [PATCH 1/2] Update RSSKopernicusSettings.cfg Fix compatibility with other planet mods. The previous version removes all the other celestial bodies. Newer version only removes stock celestial bodies. --- .../RealSolarSystem/RSSKopernicusSettings.cfg | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/GameData/RealSolarSystem/RSSKopernicusSettings.cfg b/GameData/RealSolarSystem/RSSKopernicusSettings.cfg index f0ed89c5..76d32f16 100644 --- a/GameData/RealSolarSystem/RSSKopernicusSettings.cfg +++ b/GameData/RealSolarSystem/RSSKopernicusSettings.cfg @@ -38,5 +38,21 @@ // We do not set the periods because nothing good can come out of // inconsistent orbital elements. - !Body,* {} + !Body[Sun] {} + !Body[Kerbin] {} + !Body[Moho] {} + !Body[Duna] {} + !Body[Eve] {} + !Body[Ike] {} + !Body[Gilly] {} + !Body[Mun] {} + !Body[Minmus] {} + !Body[Jool] {} + !Body[Eeloo] {} + !Body[Laythe] {} + !Body[Vall] {} + !Body[Tylo] {} + !Body[Bop] {} + !Body[Pol] {} + !Body[Dres] {} } From 28ad66d16b6b0feeca09fae998b0ad2a4da7d77a Mon Sep 17 00:00:00 2001 From: JC Yuan <75869853+jcyuan06@users.noreply.github.com> Date: Mon, 8 May 2023 10:30:55 -0500 Subject: [PATCH 2/2] Update NavballSwitchAltitude.cfg altitude, maxAltitude, and atmosphereDepth can all set max atmosphere heights. The previous version can only apply to configs using maxAltitude, but if there are configs using altitude or atmosphereDepth, Module Manager errors will pop in. This new version fixes the issue and improves stability and compatibility. --- .../RSSKopernicus/NavballSwitchAltitude.cfg | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/GameData/RealSolarSystem/RSSKopernicus/NavballSwitchAltitude.cfg b/GameData/RealSolarSystem/RSSKopernicus/NavballSwitchAltitude.cfg index dd3dbcd3..ba759bca 100644 --- a/GameData/RealSolarSystem/RSSKopernicus/NavballSwitchAltitude.cfg +++ b/GameData/RealSolarSystem/RSSKopernicus/NavballSwitchAltitude.cfg @@ -1,7 +1,7 @@ // Compute default surface/orbital navball switching heights. @Kopernicus:AFTER[RealSolarSystem] { - @Body:HAS[@Atmosphere] + @Body:HAS[@Atmosphere:HAS[#maxAltitude]] { // For atmospheric bodies, set to 80% the height of the atmosphere. @Properties:HAS[~navballSwitchRadiusMult,~navballSwitchRadiusMultLow] @@ -13,6 +13,30 @@ @navballSwitchRadiusMultLow *= 0.95 } } + @Body:HAS[@Atmosphere:HAS[#altitude]] + { + // For atmospheric bodies, set to 80% the height of the atmosphere. + @Properties:HAS[~navballSwitchRadiusMult,~navballSwitchRadiusMultLow] + { + navballSwitchRadiusMult = #$../Atmosphere/altitude$ + @navballSwitchRadiusMult *= 0.8 + @navballSwitchRadiusMult /= #$radius$ + navballSwitchRadiusMultLow = #$navballSwitchRadiusMult$ + @navballSwitchRadiusMultLow *= 0.95 + } + } + @Body:HAS[@Atmosphere:HAS[#atmosphereDepth]] + { + // For atmospheric bodies, set to 80% the height of the atmosphere. + @Properties:HAS[~navballSwitchRadiusMult,~navballSwitchRadiusMultLow] + { + navballSwitchRadiusMult = #$../Atmosphere/atmosphereDepth$ + @navballSwitchRadiusMult *= 0.8 + @navballSwitchRadiusMult /= #$radius$ + navballSwitchRadiusMultLow = #$navballSwitchRadiusMult$ + @navballSwitchRadiusMultLow *= 0.95 + } + } @Body:HAS[!Atmosphere] { // Clamp minimum switch height of non-atmospheric bodies to 1 km.