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

Investigate: switching to wrong vessel target from tracking station #221

Open
JonnyOThan opened this issue Apr 11, 2024 · 0 comments
Open
Labels
kspBug Identified KSP issue unconfirmed Can't reproduce, more information needed

Comments

@JonnyOThan
Copy link
Contributor

I've seen this pretty often in TPKSP, although we use unusual methods to switch vessels there (KRPC, KOS). But I saw a report on reddit describing the same thing and I think I know the cause: https://www.reddit.com/r/KerbalAcademy/comments/1c0vwh2/a_few_annoying_glitches_that_make_my_life_suck/

I’m fairly sure this occurs when a vessel is deleted during the save/load process that occurs on scene switch. That usually happens when you hit the “max persistent debris” cap set in the main menu but there could be other sources as well.

I think this happens because FlightDriver.FocusVesselAfterLoad is just an index into the savegame's protoVessel list. If a debris or other craft is deleted at an earlier index after the target vessel index is captured, then it'll be pointing to the wrong vessel.

Need to set up a repro case and confirm.

@JonnyOThan JonnyOThan added kspBug Identified KSP issue unconfirmed Can't reproduce, more information needed labels Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kspBug Identified KSP issue unconfirmed Can't reproduce, more information needed
Development

No branches or pull requests

1 participant