Skip to content

Instantly share code, notes, and snippets.

@cerebrate
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cerebrate/0d6d4366f29684dd39f3 to your computer and use it in GitHub Desktop.
Save cerebrate/0d6d4366f29684dd39f3 to your computer and use it in GitHub Desktop.
Convert TAC Life Support plugin to liters
Replace the GlobalSettings section with:
GlobalSettings
{
MaxDeltaTime = 86400
ElectricityMaxDeltaTime = 1
FoodResource = Food
WaterResource = Water
OxygenResource = Oxygen
CarbonDioxideResource = CarbonDioxide
WasteResource = Waste
WasteWaterResource = WasteWater
FoodConsumptionRate = 0.32
WaterConsumptionRate = 1.798
OxygenConsumptionRate = 304.27
ElectricityConsumptionRate = 1200
BaseElectricityConsumptionRate = 2400
EvaElectricityConsumptionRate = 200
CO2ProductionRate = 261.78
WasteProductionRate = 0.56
WasteWaterProductionRate = 1.98
DefaultResourceAmount = 86400
EvaDefaultResourceAmount = 43200
MaxTimeWithoutFood = 2592000
MaxTimeWithoutWater = 259200
MaxTimeWithoutOxygen = 7200
MaxTimeWithoutElectricity = 7200
}
@PART[*]:HAS[@MODULE[ModuleCommand]]:Final
{
@RESOURCE[Food]
{
@amount *= 0.317
@maxAmount *= 0.317
}
@RESOURCE[Water]
{
@amount *= 1.798
@maxAmount *= 1.798
}
@RESOURCE[Oxygen]
{
@amount *= 304.27
@maxAmount *= 304.27
}
@RESOURCE[CarbonDioxide]
{
@maxAmount *= 261.78
}
@RESOURCE[Waste]
{
@maxAmount *= 0.56
}
@RESOURCE[WasteWater]
{
@maxAmount *= 1.98
}
}
@PART[Tac*]
{
@RESOURCE[Food]
{
@amount *= 0.317
@maxAmount *= 0.317
}
@RESOURCE[Water]
{
@amount *= 1.798
@maxAmount *= 1.798
}
@RESOURCE[Oxygen]
{
@amount *= 304.27
@maxAmount *= 304.27
}
@RESOURCE[CarbonDioxide]
{
@maxAmount *= 261.78
}
@RESOURCE[Waste]
{
@maxAmount *= 0.56
}
@RESOURCE[WasteWater]
{
@maxAmount *= 1.98
}
}
@PART[HexCan*]
{
@RESOURCE[Food]
{
@amount *= 0.317
@maxAmount *= 0.317
}
@RESOURCE[Water]
{
@amount *= 1.798
@maxAmount *= 1.798
}
@RESOURCE[Oxygen]
{
@amount *= 304.27
@maxAmount *= 304.27
}
@RESOURCE[CarbonDioxide]
{
@maxAmount *= 261.78
}
@RESOURCE[Waste]
{
@maxAmount *= 0.56
}
@RESOURCE[WasteWater]
{
@maxAmount *= 1.98
}
}
@PART[TacAirFilter]
{
@MODULE[TacGenericConverter]
{
@outputResources = Oxygen, 304.27, false
}
}
@PART[TacCarbonExtractor*]
{
@MODULE[TacGenericConverter]
{
@inputResources = CarbonDioxide, 261.78, ElectricCharge, 1000
@outputResources = Oxygen, 273.843, false, Waste, 1.24208, true
}
}
@PART[TacWaterSplitter]
{
@MODULE[TacGenericConverter]
{
@inputResources = Water, 1, ElectricCharge, 100
@outputResources = Oxygen, 3126.4, false, Waste, 3.581, true
}
}
@PART[TacWaterPurifier*]
{
@MODULE[TacGenericConverter]
{
@inputResources = WasteWater, 1.98, ElectricCharge, 1000
@outputResources = Water, 1.6182, false, Waste, 6.382, true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment