linuxgurugamer/universal-storage-2

USCargoStorageWedge part missing ModuleInventoryPart/packedVolumeLimit (Causes issues with KSP_PartVolume)

Opened this issue · 1 comments

The latest update of KSP_PartVolume includes a patch with the following line:

packedVolumeLimit = #$/MODULE[ModuleInventoryPart]/packedVolumeLimit$

This will generate the following ModuleManager error on the USCargoStorageWedge part:

[LOG 17:41:05.298] Applying update KSP_PartVolume/AddToAllParts/@part[*]:HAS[!MODULE[ModuleCargoPart],@module[ModuleInventoryPart],!MODULE[KerbalEVA]]:FINAL to UniversalStorage2/Parts/Science/CargoStorageWedge.cfg/PART[USCargoStorageWedge]
[WRN 17:41:05.298] Cannot find key packedVolumeLimit in MODULE
[ERR 17:41:05.298] Error - Cannot parse variable search when inserting new key packedVolumeLimit = #$/MODULE[ModuleInventoryPart]/packedVolumeLimit$

So I believe the fix is to define a packedVolumeLimit on the part, though I'm not sure what that value should be. It's a little odd it didn't have one already, as it does have an actual limit (at least I couldn't put any large item I tried in it), but it's not displayed in the PAW anywhere.

I used packedVolumeLimit = 400 on mine because that's what the equivalent KAS Cargo Wedge uses. I don't use KAS so I don't know if the units are the same.