Resource Converter Facility - KerbalColonies/KerbalColoniesCore GitHub Wiki
Used to convert resources in a colony.
type: KCResourceConverterFacility
Required parameters in the levelnode
- ISRUcount (int): multiplies the input and output resources for simulated parallel execution
- conversionList (string): the name of the conversionlist for this type.
All of these parameters need to be present in the level 0 node but may be left empty in higher levels, then the lower level value is used.
Conversionrates and Conversionlists
They can be anywhere in the gamedata folder.
KCResourceConversionRate
The node is named "KCResourceConversionRate" and it must contain an unique "name" parameter and a "displayName". It also contains the "inputResources" and "outputResources" nodes, they are like the facility level resource cost nodes, please look at the level node wiki entry for more information.
KCResourceConversionList
The node is named "KCResourceConversionList" and it must contain an unique "name" parameter and a "displayName". It can contain the "recipeName" and/or "conversionList" parameters that have the names of conversionrates/conversionlists seperated by a ",". One of them can be unused but at least one conversionrate must be present in a conversionlist. The conversionsrates from the conversionlists will be added to this conversionlist. Warning: don't cause a reference circle, e.g. list 1 references itself or list 1 references list 2 and list 2 references list 1. One of them can be unused but at least one conversionrate must be present in a conversionlist.
Example:
KCResourceConversionRate
{
name=Ore2LfOx
displayName = Ore to liquid fuel and oxidizer
inputResources
{
Ore = 0.5
}
outputResources
{
LiquidFuel = 0.45
Oxidizer = 0.55
}
}
KCResourceConversionRate
{
name=Ore2Monoprop
displayName = Ore to monopropellant
inputResources
{
Ore = 0.5
}
outputResources
{
MonoPropellant = 1
}
}
KCResourceConversionList
{
name = default
recipeName = Ore2LfOx,Ore2Monoprop
}