Skip to content

Fixes #3002 ModuleCargoPart breaks PAW.#3003

Merged
Dunbaratu merged 1 commit intoKSP-KOS:developfrom
Dunbaratu:fixes_3002_ModuleCargoPart_breaks_PAW
Aug 19, 2021
Merged

Fixes #3002 ModuleCargoPart breaks PAW.#3003
Dunbaratu merged 1 commit intoKSP-KOS:developfrom
Dunbaratu:fixes_3002_ModuleCargoPart_breaks_PAW

Conversation

@Dunbaratu
Copy link
Member

Fixes #3002

The fix was to only apply the ModuleCargoPart if the KSP version
is high enough to be safe, using ModuleManager to do it.

Note that ModuleManager still doesn't have a KSP version check filter,
so I had to indirectly check the version by looking to see if a known part
definition exists for a part that didn't exist prior to KSP 1.11.x.
That's an ugly kludge, but it does seem to be what all the other
modders who ran into this same problem did.

The fix was to only apply the ModuleCargoPart if the KSP version
is high enough to be safe, using ModuleManager to do it.

Note that ModuleManager still doesn't have a KSP version check filter,
so I had to indirectly check the version by looking to see if a known part
definition exists for a part that didn't exist prior to KSP 1.11.x.
That's an ugly kludge, but it does seem to be what all the other
modders who ran into this same problem did.
@Dunbaratu Dunbaratu added the bug Weird outcome is probably not what the mod programmer expected. label Aug 19, 2021
@Dunbaratu Dunbaratu merged commit 988a24a into KSP-KOS:develop Aug 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Weird outcome is probably not what the mod programmer expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ModuleCargoPart in Part.cfg breaks the PAW in Editor scene if KSP version is old.

1 participant