Skip to content

Patch converting B9PartSwitch fuel tanks to WBIConvertibleStorage. #49

@ProgrammerFailure

Description

@ProgrammerFailure

This is a small patch I use that replaces B9PartSwitch fuel tanks with WBIConvertibleStorage modules, containing almost identical resource values. It's not yet perfect, but it works for 90% of parts.

@PART:HAS[@MODULE[ModuleB9PartSwitch]:HAS[#baseVolume,#baseVolume[>0]],!MODULE[WBIConvertibleStorage]]:FINAL
{
	%MODULE[WBIConvertibleStorage]
	{
		enableLogging = True
		showGUI = True
		confirmResourceSwitch = True
		defaultTemplate = LFO
		templateNodes = STORAGE_TEMPLATE
		templateTypes = Storage
		fieldReconfigurable = True
		resourcesToReplace = ALL
		capacityFactor = #$/MODULE[ModuleB9PartSwitch]:HAS[#baseVolume]/baseVolume$
		@capacityFactor /= 1801
		logoPanelTransforms = decalPanel001, decalPanel002, decalPanel003, decalPanel004
		decalsVisible = false
		baseStorage = .001
		maxStorage = 9100
	}
}

Obviously, it is a VERY intrusive patch, so I just put it here as an option, if it can be useful to anyone.
Me and @Lisias have made some progress on a better version here:
KSP-ModularManagement/ModuleManager#24

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions