KSP2Community / PatchManager

A mod for generic patching needs similar to KSP 1's Module Manager.
https://ksp2community.github.io/PatchManagerDocs/
MIT License
5 stars 5 forks source link

Issue when removing all resource containers from crew pods #33

Closed ghost closed 10 months ago

ghost commented 10 months ago

Summary: errors and issues when all resource containers are removed from crew pods

Reproduction: Remove both electric charge and monopropellant from a crew pod, e.g.

:parts #pod_1v_conical_crew {
  * > resourceContainers > .MonoPropellant { @delete; }
  * > resourceContainers > .ElectricCharge { @delete; }
}

This seems to be applied as expected in the cache: "resourceContainers": [ ],

Isolation: Removed the patch to keep at least one resource on the crew pod and everything returns to normal

Issues: When first selecting the pod it's just a purple circle without the model, this error appears in console:

image

After removing the pod and then trying to add it to a vessel after this, nothing appears when clicking on the part icon, and these errors are spammed in console (every FixedUpdate):

image

After going through this process I think the bug may be on the backend instead of just a syntax or user issue

cheese3660 commented 10 months ago

You need to remove the module_resourcecapacities as well