A mod pack for Kerbal Space Program, specifically supporting my other mods Kerbal Atomics and Cryogenic Engines, dealing with cryogenic fuels, their storage and their properties
This mod contains patches that enables fuel switching on most parts, stock and modded, that contain LiquidFuel/Oxidizer. The parts will be able to contain the following fuel settings with correct dry mass
- LiquidFuel/Oxidizer
- LqdHydrogen/Oxidizer
- LiquidFuel
- Oxidizer
- LqdHydrogen
The mod contains a plugin that causes LiquidHydrogen to evaporate from improperly cooled tanks. The boiloff rate is quite low so there is only a need to deal with it if you are storing fuel on orbit or doing long interplanetary transfers.
This mod adds several ZBO tanks that use electricity to halt boiloff. These are provided in 1.25m to 5m size classes as well as several radial mount models. They have the same mass properties, but take less power to cool
Either remove the SimpleBoiloff.dll
file from GameData/CryoTanks/Plugins/
or remove the following code block from GameData/CryoTanks/Patches/CryoTanksFuelSwitcher.cfg
:
MODULE
{
name = ModuleCryoTank
... stuff
}
I certainly accept pull requests. Please target all such thing to the dev
branch though!
Adding boiloff support to a fuel or fuel tank is simple. Specify the following MODULE block:
MODULE
{
name = ModuleCryoTank
// in Ec per 1000 units per second
CoolingCost = 0.08
CoolingEnabled = True
BOILOFFCONFIG
{
FuelName = LqdHydrogen
// in % per hr
BoiloffRate = 0.05
}
}
Any number of BOILOFFCONFIGs can be used to boil off multiple fuels, though the CoolingCost is shared per tank.
It is possible to set things so that boiloff creates another resource instead of venting into the ether. Do do this, specify an OUTPUT_RESOURCE
in the BOILOFFCONFIG
. You can set ratio, flow mode and resource name. With this option set, an amount of ResourceName
will be produced according to the Ratio
field, with the specified FlowMode
.
BOILOFFCONFIG
{
FuelName = Hydrogen
// in % per hr
BoiloffRate = 0.05
OUTPUT_RESOURCE
{
ResourceName = Hydrogen
Ratio = 1.0
FlowMode = ALL_VESSEL
}
}
It is also possible to configure such that there is a boiloff dependence on energy input from planets and the sun. This does not affect cooling cost, but allows more interesting boiloff mitigation strategies, like hiding behind planets and being in the outer solar system.
MODULE
{
name = ModuleCryoTank
// in Ec per 1000 units per second
CoolingCost = 0.08
CoolingEnabled = True
Albedo = 0.5
LongwaveFluxAffectsBoiloff = True
LongwaveFluxBaseline = 0.5
ShortwaveFluxAffectsBoiloff = True
ShortwaveFluxBaseline = 0.5
MaximumBoiloffScale = 5
MinimumBoiloffScale = 0.001
BOILOFFCONFIG
{
FuelName = LqdHydrogen
// in % per hr
BoiloffRate = 0.05
}
}
Setting LongwaveFluxAffectsBoiloff
will cause emission from planets to affect boiloff. This depends on the part's emissiveConstant
, so ensure it is configured correctly. High emissiveConstant
will increase boiloff. Modifying LongwaveFluxBaseline
allows the scale of this to be changed - it defaults to a value of 0.1231, which is the flux received by an object in Low Kerbin Orbit with an emissiveConstant
of 0.2. If the baseline is unchanged, the boiloff in LKO should be approximately the same as if LongwaveFluxAffectsBoiloff
was disabled.
Setting ShortwaveFluxAffectsBoiloff
will cause emission from the sun to affect boiloff. This depends on the Albedo
field, so ensure it is configured correctly. High Albedo
will decrease boiloff. Modifying ShortwaveFluxBaseline
allows the scale of this to be changed - it defaults to a value of 0.7047, which is the flux received by an object in Low Kerbin Orbit with an Albedo
of 0.5. If the baseline is unchanged, the boiloff in LKO should be approximately the same as if ShortwaveFluxAffectsBoiloff
was disabled.
The DebugMode
flag can also be set in order to observe solar input and planetary input as UI fields ingame.
Finally, the MaximumBoiloffScale
and MinimumBoiloffScale
fields can be configured to cap the modifier to boiloff from these modifications.
- KSP 1.5.1
- Updated MiniAVC to 1.2.0.6
- KSP 1.4.5
- Adjusted switcher patch that was erronously running
- KSP 1.4.2
- Updated MiniAVC to 1.2.0.1
- Final content update
- Fixed boiloff being disabled if a tank's fuel was disabled
- Fixed boiloff rates being calculated incorrectly at timewarp
- Redid all tank textures, particularly foils
- Added 3 new tank models
- Short 2.5m (standard, compact variants)
- Short 3.75m (standard, compact, bare variants)
- Short 5m (standard, compact, bare variants)
- Fixed attach nodes of 3.75m compact tank variants
- Rebalanced capacities, masses and costs of all tanks
- Decreased cooling cost of ZBO tanks to 0.05 Ec/1000u
- Added an optional ability to specify a set of OUTPUT_RESOURCE blocks in a BOILOFFCONFIG. This causes boiloff to produce that resource with the specified ratio and flow mode. See Config Documentation section
- Added the optional ability to specify boiloff as dependent on solar/planetary radiation input. See Config Documentation section
- Deconflicted a WBI fuel switcher
- Cryo Tanks no longer suck up all EC
- Fixed an issue where parts with '_' in their name would not be patched properly
- All tanks can now be cooled. Lifting tanks cast ~10% more to cool and have cooling disabled by default
- Repaired normals on tanks
- Fixed science costs of many tanks
- Refactored plugin to support multiple cryogenic fuels per tank
- Updates to MFT Compatibility
- Added Russian translation from vladmir_v
- Fixed a typo in the version file
- Adjusted the position of the nodes for the compact variants of 3.75m tanks
- Fixed medium 3.75m tank's Compact variant collider being correctly specified
- Fixed low cost of 5m hydrogen tanks
- Fixed slightly off cost of 10m hydrogen tank
- Not tracked in this readme