B9PartSwitch icon indicating copy to clipboard operation
B9PartSwitch copied to clipboard

Investigate module switching

Open blowfishpro opened this issue 6 years ago • 1 comments

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).

blowfishpro avatar Oct 17 '17 03:10 blowfishpro

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

gotmachine avatar Jul 29 '18 13:07 gotmachine