I'm having trouble getting this mod to apply ModuleCargoPart to certain parts. This mod finds them and they aren't being bypassed/commented out in partVolumes.cfg. I think all of the offending parts already have ModuleInventoryPart and I see that they're all yielding 'packedVolume = -1' in the .cfg. I even tried hand-editing the .cfg on one part to 'packedVolume = 1000' in a hail mary to make something work but I cannot for the life of me get the gosh-darn ModuleCargoPart to apply. I'm not very familiar with how MM does its magic so please bear with my uninformed self and let me know if there's any additional data that would help or if I'm being really dumb and failed to read something in this thread.
Log
partVolumes.cfg
An offending part: \PlanetaryBaseInc\BaseSystem\Parts\Utility\Garages\garage_adapter_g.cfg
(12/22) Update after another couple hours of tinkering and learning:
True to my avatar, I failed to read something in this thread. Or rather, to process it in any meaningful way. Any time I had it set to 'Process Manipulable-only Parts', I encountered the same restart loop that DPOHbl4 mentioned. I tried the fix Gordon suggested but I still can't get ModuleCargoPart to stick. Is it something to do with the order of that and ModuleInventoryPart that was mentioned upthread? Hand-editing the part.cfg itself to add ModuleCargoPart works.
(12/23) Update after more tinkering and learning:
Yes, the issue is caused by the order of ModuleInventoryPart and ModuleCargoPart. Deleting ModuleInventoryPart before adding ModuleCargoPart solved the problem. I also readded ModuleInventoryPart, albeit with a static volume for all parts. I then removed KSP_PartVolume from the GameData folder so my precious hand edited file wouldn't be harassed.
Using NP++ and the ToolBucket plugin for multiline find+replace, I ran the following on PartVolumes.cfg:
Find:
MODULE
{
name = ModuleCargoPart
packedVolume = -1
KSP_PartVolume = true
}
Replace:
!MODULE[ModuleInventoryPart] {}
MODULE
{
name = ModuleCargoPart
packedVolume = -1
KSP_PartVolume = true
}
MODULE
{
name = ModuleInventoryPart
InventorySlots = 4
packedVolumeLimit = 400
}