Skip to content

Commit e6b87b6

Browse files
Turn off finalizeOrbit in Kopernicus configs (#285)
This causes problems due to the way that the KSP Orbit class is written and the way that Kopernicus attempts to scribble over the meanMotion is not internally consistent. That would need to be patched and debugged in stock fairly extensively. The intended behavior also makes it difficult to simulate the Keplerian motion of planets/satellites in RSS since the referenceBody.gravParameter is incorrect and needs to be fixed by "reverse engineering" the effective mu from the meanMotion on the celestial. This adds a lot of headache. Even apart from those issues, the buginess remains and causes issues with Keplerian motion, and creates issues that have been seen with detecting SOI encounters in the Earth-Moon system. Attempting to fix those issues by patching KSP for the meanMotion problems was not successful either, which suggests some of the other tweaking that finalizeOrbit is doing may be buggy as well. KSPModdingLibs/KSPCommunityFixes#141 Kopernicus/Kopernicus#584 Merging this may not be the right way to fix this though since when I tried disabling this value on a save, the Moon jumped by about 90 degrees in its orbit and a ManeuverNode which was on an encounter was now no longer close. This change may be save-breaking.
1 parent 36cc1af commit e6b87b6

25 files changed

Lines changed: 25 additions & 25 deletions

File tree

GameData/RealSolarSystem/RSSKopernicus/Earth/Earth.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{
66
name = Kerbin
77
cbNameLater = Earth
8-
finalizeOrbit = true
8+
finalizeOrbit = false
99
flightGlobalsIndex = 1
1010
cacheFile = RealSolarSystem/RSSKopernicus/Cache/Earth.bin
1111
Template

GameData/RealSolarSystem/RSSKopernicus/Earth/Moon.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Body
55
{
66
name = Moon
7-
finalizeOrbit = true
7+
finalizeOrbit = false
88
flightGlobalsIndex = 10
99
cacheFile = RealSolarSystem/RSSKopernicus/Cache/Moon.bin
1010
Template

GameData/RealSolarSystem/RSSKopernicus/Jupiter/Callisto.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Body
55
{
66
name = Callisto
7-
finalizeOrbit = true
7+
finalizeOrbit = false
88
flightGlobalsIndex = 4
99
cacheFile = RealSolarSystem/RSSKopernicus/Cache/Callisto.bin
1010
Template

GameData/RealSolarSystem/RSSKopernicus/Jupiter/Europa.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Body
55
{
66
name = Europa
7-
finalizeOrbit = true
7+
finalizeOrbit = false
88
flightGlobalsIndex = 9
99
cacheFile = RealSolarSystem/RSSKopernicus/Cache/Europa.bin
1010
Template

GameData/RealSolarSystem/RSSKopernicus/Jupiter/Ganymede.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Body
55
{
66
name = Ganymede
7-
finalizeOrbit = true
7+
finalizeOrbit = false
88
flightGlobalsIndex = 13
99
cacheFile = RealSolarSystem/RSSKopernicus/Cache/Ganymede.bin
1010
Template

GameData/RealSolarSystem/RSSKopernicus/Jupiter/Io.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Body
55
{
66
name = Io
7-
finalizeOrbit = true
7+
finalizeOrbit = false
88
flightGlobalsIndex = 8
99
cacheFile = RealSolarSystem/RSSKopernicus/Cache/Io.bin
1010
Template

GameData/RealSolarSystem/RSSKopernicus/Jupiter/Jupiter.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Body
55
{
66
name = Jupiter
7-
finalizeOrbit = true
7+
finalizeOrbit = false
88
flightGlobalsIndex = 5
99
cacheFile = RealSolarSystem/RSSKopernicus/Cache/Jupiter.bin
1010
Template

GameData/RealSolarSystem/RSSKopernicus/Mars/Deimos.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Body
55
{
66
name = Deimos
7-
finalizeOrbit = true
7+
finalizeOrbit = false
88
flightGlobalsIndex = 12
99
cacheFile = RealSolarSystem/RSSKopernicus/Cache/Deimos.bin
1010
Template

GameData/RealSolarSystem/RSSKopernicus/Mars/Mars.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Body
55
{
66
name = Mars
7-
finalizeOrbit = true
7+
finalizeOrbit = false
88
flightGlobalsIndex = 11
99
cacheFile = RealSolarSystem/RSSKopernicus/Cache/Mars.bin
1010
Template

GameData/RealSolarSystem/RSSKopernicus/Mars/Phobos.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Body
55
{
66
name = Phobos
7-
finalizeOrbit = true
7+
finalizeOrbit = false
88
flightGlobalsIndex = 7
99
cacheFile = RealSolarSystem/RSSKopernicus/Cache/Phobos.bin
1010
Template

0 commit comments

Comments
 (0)