TransWikia.com

Vessels escaping host bodies over time

Arqade Asked on June 27, 2021

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?

One Answer

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. and there is almost impossible to eliminate completely. 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.

Answered by Trish on June 27, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP