1

I used to play older versions of Kerbal Space Program and I had this problem which is really annoying.

I place a probe with relay antennas around a planet or moon so that it can bounce signals for other vessels as they lose direct sight of Kerbin. Then when I'm done I focus on other things and run other interplanetary errands. Years later I go check my setup with the relay probe and... it's left the parent body.

I always make sure that the relays' orbits don't have them come anywhere close to moons (usually they just hang right over Jool's atmosphere). In fact sometimes I have them orbiting Laythe, for example. Yet when I go checking on these years later, I have relays orbiting Kerbol and not wherever it is that I had parked them.

I had thought this to be a known bug but I can't find anything about it. And I'm playing 1.11 now, build 3066, and this keeps happening. I just had a relay on Eve lost its orbit.

I'm feeling stupid now. Am I doing something wrong?

1 Answer 1

4

That is most likely stemming from floating-point precision.

Whenever you load a vessel, the path gets loaded with the maximum precision from the file. However, the path data it handles on an active vessel is in a different coordinate system. When saving the vessel to inactive or swapping to time-warp, those coordinates get converted again, and somewhere at the end one of the decimals can get truncated. The more often a vessel is loaded, the more the error accumulates - and it happens at least once for each vessel. The tiny error created when unfocusing the craft already can throw off the path enormously over the course of decades.

This error was much worse before they rewrote much of the code for Unity 5 so they could use 64-bit variables in version 1.1, yet it is almost impossible to eliminate completely as the error will accumulate whenever the vessel is reread and saved. But you are lucky: it takes longer now. For example in 0.25 floating point error would crash your active vessel on a perfectly circular orbit into a moon within a few minutes.

But fret not: if you know what your vessel's orbit exactly should be... Scott Manley has an explanation for you how to alter your vessel data that still works 8 years later.

2
  • 2
    This sounds like the most plausible explanation for what the OP is describing. That said, shouldn't these errors only accumulate if the OP kept switching to the relay and away from it again repeatedly? AFAIK as long as the vessel is never activated (and doesn't encounter any SOI transitions) there should be no coordinate conversions and it should stay firmly on its current orbit. Feb 7, 2021 at 4:20
  • 2
    I assume, the first instance threw the vessel on an escape path on a years scale or to interact with a Body. Further activations would have sped up the process.
    – Trish
    Feb 7, 2021 at 9:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .