Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vessels teleport/switch places upon EVA #2590

Closed
gert7 opened this issue May 23, 2020 · 5 comments · Fixed by #2600
Closed

Vessels teleport/switch places upon EVA #2590

gert7 opened this issue May 23, 2020 · 5 comments · Fixed by #2600
Labels
Milestone

Comments

@gert7
Copy link

gert7 commented May 23, 2020

Image

1.9.1 Fuchs. This happened to my Apollo 11-style flight. When I noticed I hadn't moved my crew over to the lander I decided to EVA. The two undocked vessel sides switched places when I hit the EVA. I tried this again in an earlier quicksave and the same thing happened with a much greater distance between the vessels.

@pleroy
Copy link
Member

pleroy commented May 23, 2020

Are you using any mods besides Principia? Can you give us your save and the logs at the time where the glitch happened?

@gert7
Copy link
Author

gert7 commented May 24, 2020

Eva.zip

Quicksave here can reproduce the bug after undocking the middle and switching to EVA. To me it seems to only move vessels along their trajectories, namely the vessel being EVA-d from moves forward some amount. The distance seems to vary, velocities and rotations are completely unaffected.

@gert7
Copy link
Author

gert7 commented May 24, 2020

And no, Principia is the only mod I have ever installed in this installation of KSP.

@pleroy pleroy added the bug label Jun 4, 2020
@pleroy
Copy link
Member

pleroy commented Jun 4, 2020

I have reproduced the problem and I have a journal. This is going to be challenging to debug.

@pleroy
Copy link
Member

pleroy commented Jun 5, 2020

When the Kerbal goes in EVA, it is unready (and therefore unmanageable by Principia) for a short period (probably 1 frame). If, during that period, it collides with the vessel, this makes the vessel unmanageable and Principia forgets about it. Shortly thereafter the Kerbal becomes ready, and the vessel is re-created by Principia, using the position provided by KSP. That position may differ significantly from the "real" one and the vessel appears to jump.

The solution is to ignore collisions with an unready Kerbal. Unreadiness is a transient state anyway, so at the next frame the Kerbal will be ready and will nicely pile-up with the vessel.

There have been reports in the past of the history and flight plan being lost when doing EVA. That's probably the same cause (deletion and re-creation of a vessel). I checked that the history is preserved in this instance.

Sorry, something went wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants