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

IVA doesn’t work properly for parts with ModuleAnimateGeneric that modify crew capacity #169

Closed
JonnyOThan opened this issue Nov 18, 2023 · 1 comment
Labels
kspBug Identified KSP issue

Comments

@JonnyOThan
Copy link
Contributor

JonnyOThan commented Nov 18, 2023

Part internals are created before the moduleAnimateGeneric is started, so the internal will not be created until something else forces a refresh (crew transfer etc). This affects the making history inflatable airlock and some modded parts. Just need to insert some logic to spawn or de spawn the internals in CheckCrew.

Repro steps:

  1. create a ship that has an inflatable airlock and launch it with 1 kerbal on board
  2. expand the airlock
  3. transfer the kerbal to the airlock
  4. save & load, switch scenes and come back, etc.

The kerbal portrait will be missing and pressing C to enter IVA mode has no effect. Doing a crew transfer will refresh things.

@gotmachine gotmachine added the kspBug Identified KSP issue label Dec 6, 2023
gotmachine added a commit that referenced this issue Dec 6, 2023
… 1.8.0 - 1.12.5], fix IVA & crew portrait not spawning/despawning when ModuleAnimateGeneric is used to change the part crew capacity. Notably affect the stock inflatable airlock.
@gotmachine
Copy link
Contributor

Fix released in 1.32.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kspBug Identified KSP issue
Development

No branches or pull requests

2 participants