Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @PART[*_AgModule]:NEEDS[TACLifeSupport]
- {
- @MODULE[ModuleResourceConverter,Agroponics]
- {
- // Get original input of mulch and output of supplies and compute the equivalent number of Kerbals
- %MulchIn = #$INPUT_RESOURCE:HAS[#ResourceName[Mulch]]/Ratio$
- @MulchIn /= #$@LIFE_SUPPORT_SETTINGS/WasteAmount$
- %SuppliesOut = #$OUTPUT_RESOURCE:HAS[#ResourceName[Supplies]]/Ratio$
- @SuppliesOut /= #$@LIFE_SUPPORT_SETTINGS/SupplyAmount$
- //%MulchIn = 1
- //%SuppliesOut = 1
- // Now change to the same equivalent number of Kerbals for TAC-LS resources
- @INPUT_RESOURCE:HAS[#ResourceName[Mulch]]
- {
- @ResourceName = Waste
- @Ratio = #$../MulchIn$
- @Ratio *= 0.000001539351852
- }
- INPUT_RESOURCE
- {
- ResourceName = CarbonDioxide
- Ratio = #$../MulchIn$
- @Ratio *= 0.00148012889876
- }
- INPUT_RESOURCE
- {
- ResourceName = Water
- Ratio = #$../MulchIn$
- @Ratio *= 0.000011188078704
- }
- @OUTPUT_RESOURCE:HAS[#ResourceName[Supplies]]
- {
- @ResourceName = Food
- @Ratio = #$../SuppliesOut$
- @Ratio *= 0.000016927083333
- %DumpExcess = False
- }
- OUTPUT_RESOURCE
- {
- ResourceName = WasteWater
- Ratio = #$../SuppliesOut$
- @Ratio *= 0.000014247685185
- %DumpExcess = True
- }
- OUTPUT_RESOURCE
- {
- ResourceName = Oxygen
- Ratio = #$../SuppliesOut$
- @Ratio *= 0.001713537562385
- %DumpExcess = False
- }
- }
- }
- @PART[*_Aeroponics]:NEEDS[TACLifeSupport]
- {
- @MODULE[ModuleResourceConverter,Cultivator]
- {
- %SuppliesOut = #$OUTPUT_RESOURCE:HAS[#ResourceName[Supplies]]/Ratio$
- @SuppliesOut /= #$@LIFE_SUPPORT_SETTINGS/SupplyAmount$
- //%SuppliesOut = 1
- INPUT_RESOURCE
- {
- ResourceName = CarbonDioxide
- Ratio = #$../SuppliesOut$
- @Ratio *= 0.00148012889876
- }
- OUTPUT_RESOURCE
- {
- ResourceName = Oxygen
- Ratio = #$../SuppliesOut$
- @Ratio *= 0.001713537562385
- %DumpExcess = False
- }
- OUTPUT_RESOURCE
- {
- ResourceName = WasteWater
- Ratio = #$../SuppliesOut$
- @Ratio *= 0.000014247685185
- %DumpExcess = True
- }
- @OUTPUT_RESOURCE:HAS[#ResourceName[Supplies]]
- {
- @ResourceName = Food
- @Ratio = #$../SuppliesOut$
- @Ratio *= 0.000016927083333
- //Ratio = 0.000016927083333
- %DumpExcess = False
- }
- }
- }
- @PART[OKS_Kerbitat]:NEEDS[TACLifeSupport]
- {
- MODULE
- {
- name = MKSModule
- workSpace = 1
- livingSpace = 0
- efficiencyPart = OKS_HabRing,10
- }
- }
- @PART[MKS_Kerbitat]:NEEDS[TACLifeSupport]
- {
- MODULE
- {
- name = MKSModule
- workSpace = 1
- livingSpace = 0
- efficiencyPart = MKV_HabModule,5
- }
- }
- @PART[*_Kerbitat]:NEEDS[TACLifeSupport]
- {
- MODULE
- {
- name = ModuleResourceConverter
- ConverterName = Oxygenator
- StartActionName = Start Oxygenator
- StopActionName = Stop Oxygenator
- INPUT_RESOURCE
- {
- ResourceName = CarbonDioxide
- Ratio = 0.00148012889876
- }
- OUTPUT_RESOURCE
- {
- ResourceName = Oxygen
- Ratio = 0.001713537562385
- }
- OUTPUT_RESOURCE
- {
- ResourceName = Waste
- Ratio = 0.000001539351852
- DumpExcess = True
- }
- INPUT_RESOURCE
- {
- ResourceName = ElectricCharge
- Ratio = 8
- }
- }
- MODULE
- {
- name = ModuleResourceConverter
- ConverterName = WaterCleaner
- StartActionName = Start Water Cleaner
- StopActionName = Stop Water Cleaner
- INPUT_RESOURCE
- {
- ResourceName = WasteWater
- Ratio = 0.000014247685185
- }
- OUTPUT_RESOURCE
- {
- ResourceName = Water
- Ratio = 0.000011188078704
- }
- OUTPUT_RESOURCE
- {
- ResourceName = Waste
- Ratio = 0.000001539351852
- DumpExcess = True
- }
- INPUT_RESOURCE
- {
- ResourceName = ElectricCharge
- Ratio = 1
- }
- }
- MODULE
- {
- name = ModuleResourceConverter
- ConverterName = TrashBurner
- StartActionName = Start Trash Burner
- StopActionName = Stop Trash Burner
- OUTPUT_RESOURCE
- {
- ResourceName = CarbonDioxide
- Ratio = 0.00148012889876
- DumpExcess = False
- }
- INPUT_RESOURCE
- {
- ResourceName = Oxygen
- Ratio = 0.001713537562385
- }
- INPUT_RESOURCE
- {
- ResourceName = Waste
- Ratio = 0.000001539351852
- }
- INPUT_RESOURCE
- {
- ResourceName = ElectricCharge
- Ratio = 1
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement