Dependencies * ModuleManager * Click Through Blocker * SpaceTuxLibrary
This is a small mod which will add the ModuleCargoPart to all parts which don't already have it. This is necessary in order to allow a part to be an inventory cargo part that can be placed in inventories or allowing larger parts to be manipulated in EVA construction mode (but not placeable in inventories).
It works by using the stock methods GetRendererBounds() to get the outermost bounds of the part.
Install the mod using either CKAN or a manual install. The first time the game is run, a file will be created in the GameData directory called partVolume.cfg A popup warning will be shown indicating that the file has been generated and the game will need to be restarted for it to take effect.
Settings A toolbar button will be visible when at the MainMenu. Click the button to open a Settings window
Filler is a default amount of extra volume used for packing and storage. There are several different filler settings, the settings are (with their defaults) as follows:
Filler (10%) A default amount when no other applies ScienceFiller (25%) Filler for science parts EngineFiller (15%) Filler for engines RCS Filler (20%) Filler for RCS parts DoTanks (False) Create configs for tanks Manned (False) Create configs for manned parts Limit Size (True) Limit maximum size for a config to be applied (before filler adjustment) Largest Allowable Part (64000 l) Largest volume allowed if Limit Size is true
All filler percentages go from 0 to 100%. In the event that more than one type of filler can apply to a part, only the largest will apply.
Part types are determined as follows:
Science Part is listed in the config to be a PartCategories.Science part Engine Part has either ModuleEngines or ModuleEnginesFX RCS Part has either ModuleRCS or ModuleRCSFX Tank Part has resources and no other module (yes, this includes batteries) Manned Part can hold crew
If any setting is changed and saved, the config file (GameData/partVolumes.cfg) is deleted and a popup is shown indicating that the game will need to be restarted
All configs generated by this mod will only apply if a part does NOT have a ModuleCargoPart already defined. This way mods can get updated by the author with their settings with no worry that their settings will be overridden.
If you have Kerbal Inventory For All installed, you will need to delete the file:
Released on 2022-09-20
Fixed mod running every time returned to mainMenu Fixed mod appending comment lines to file every time game started, thereby invalidating the ModuleManager.ConfigCache Fixed typos for KSP_PartVolume, stackableQuantity, and packedVolume
Released on 2022-08-26
Fixed deletion of older partVolumes cfg files (was leaving the previous one)
Released on 2022-07-26
Added patch to add packedVolumeLimit = 0 to those modules which existed and didn't have it
Released on 2022-06-08
Updated original patch to only add ModuleCargoPart if no ModuleInventoryPart is there Thanks to forum user @LEC for this patch Added patch to add ModuleCargoPart and make sure ModuleInventoryPart is after ModuleCargoPart for those parts where there was a ModuleInventoryPart Updated file version to 3
Released on 2022-02-04
Added missing line to config file (was not needed, but nice to have) for processManipulableOnly option Added tank volume calculations Added code to clamp window on screen Now hides the button if no changes are detected Thanks to user @yalov for these: add stackable support: parts, that is fitted at least two times in maxStackCommonVolume, have stackableQuantity, but no more than maxPartsInStack add packedVolume to ModuleCargoPart Bypass reasons info change patch, so an index of ModuleCargoPart is not changed support blacklistRegexPattern, and move KerbalEVA there update settings window (checkbox for all fillers) Fixed parts having ModuleInventoryPart getting a cargo module added Added file versioning, with automatic deletion of old file versions Fixed having manipuable parts constantly getting told to restart game
Released on 2021-08-18
Added check for ModuleInventoryPart, if there, packedVolume set to -1 Added part whitelist Added option to allow manipulatable parts to have volumes changed Added part cryoengine-iguanodon-1 to blacklist due to an inability to properly get the correct dimensions from Unity for this engine
Released on 2021-07-28
Renamed DLL for CKAN compatibility Added AssemblyFileVersion Updated version file for 1.12
Released on 2021-07-11
Added Part Blacklist, will now ignore parts listed. Look at the file PartBlacklist.cfg for an example Replaced check for part called "flag" with the blacklist file
Released on 2021-07-11
Added check for missing resource (if resource in tank/engine doesn't exist, ignores it now)
Released on 2021-07-05
Fixed partVolumes.cfg getting deleted every other run
Released on 2021-06-30
Fixed partVolumes.cfg file constantly being appended to after every start
Released on 2021-06-19
No changelog provided
Released on 2021-05-10
Fixed error caused by parens in file name
Released on 2021-05-09
Changed output to write commented data for all parts to the cfg file. New parts now don't require a restart of the game Added new part module to udpate the packedVolume Removed popup requiring restart after new parts added Added packedVolume to PAW for parts which have been modified Fixed nullrefs caused by UniversalStorage.GetInfo() begin called by ModuleCargoPart during initialization
Released on 2021-04-01
Fixed the saving/loading of the DoTanks option
Released on 2021-03-31
Fixed issue where a partname with a space was causing a ModuleManager error. Replaced spaces in partnames with questionmarks per the MM manual
Delete the file partVolumes.cfg in the GameData directory before rerunning again
Released on 2021-03-31
Raw stats are from the beginning of time until now. Each follower and download entry represents one hour of data. Uneventful hours are omitted.