pellinor0 / TweakScale

Forked from Gaius Goodspeed's Goodspeed Aerospace Part & TweakScale plugin
29 stars 23 forks source link

Scaling crew capacity #28

Closed pellinor0 closed 8 years ago

pellinor0 commented 8 years ago

There was a point in some KSP changelog about changing crew capacity in flight. Maybe this allows to scale it. We might still be limited to the number of seats in the IVA, but at least we can put less seats in downscaled parts.

pellinor0 commented 8 years ago

Seems to work in flight, but the editor does not recognize the change. It still offers the old amount of seats. When capacity is lowered, placing the excess kerbals fails at launch.

Having more kerbals than IVA seats throws an error, but works (excess kerbals get no portrait, which is not a big issue).

pellinor0 commented 8 years ago

Some more failed attempts for the editor UI

part.UnregisterCrew();
part.RegisterCrew();
EditorLogic.fetch.UpdateUI();

part.protoModuleCrew is not used in the editor (empty while there are already filled seats)

ShipConstruction.ShipManifest contains the right kerbals, that's a start

pellinor0 commented 8 years ago

fixed by https://github.com/pellinor0/TweakScale/commit/289f9def1a1c5a095c2ae238b36dd819ea5ad459 and https://github.com/pellinor0/TweakScale/commit/d5575ef07e0eb9b5315349706cfdebb926b7c191