B9PartSwitch
B9PartSwitch copied to clipboard
Investigate module switching
This is risky but potentially incredibly useful. As far as I can tell there are two patterns
- Module exists and we just want to switch some data but not ever remove it
- Module exists for some subtypes but not for others (and maybe we also want to switch some data).
It is indeed a very useful feature.
A basic and safe implementation of module switching can be done by enabling/disabling already-defined modules, setting the "isEnabled" and "Enabled" properties. It was implemented in the Kerbalism Configure partmodule. Some partmodules may cause problems but for the vast majority of them this was working flawlessly. It can even be used to define the same module twice with different values.
See https://github.com/blowfishpro/B9PartSwitch/pull/100 for a prototype