Advertisement
foonix

TAC-LS.cfg

Mar 4th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.54 KB | None | 0 0
  1. @PART[*_AgModule]:NEEDS[TACLifeSupport]
  2. {
  3. @MODULE[ModuleResourceConverter,Agroponics]
  4. {
  5. // Get original input of mulch and output of supplies and compute the equivalent number of Kerbals
  6.  
  7. %MulchIn = #$INPUT_RESOURCE:HAS[#ResourceName[Mulch]]/Ratio$
  8. @MulchIn /= #$@LIFE_SUPPORT_SETTINGS/WasteAmount$
  9. %SuppliesOut = #$OUTPUT_RESOURCE:HAS[#ResourceName[Supplies]]/Ratio$
  10. @SuppliesOut /= #$@LIFE_SUPPORT_SETTINGS/SupplyAmount$
  11. //%MulchIn = 1
  12. //%SuppliesOut = 1
  13.  
  14. // Now change to the same equivalent number of Kerbals for TAC-LS resources
  15. @INPUT_RESOURCE:HAS[#ResourceName[Mulch]]
  16. {
  17. @ResourceName = Waste
  18. @Ratio = #$../MulchIn$
  19. @Ratio *= 0.000001539351852
  20. }
  21. INPUT_RESOURCE
  22. {
  23. ResourceName = CarbonDioxide
  24. Ratio = #$../MulchIn$
  25. @Ratio *= 0.00148012889876
  26. }
  27. INPUT_RESOURCE
  28. {
  29. ResourceName = Water
  30. Ratio = #$../MulchIn$
  31. @Ratio *= 0.000011188078704
  32. }
  33. @OUTPUT_RESOURCE:HAS[#ResourceName[Supplies]]
  34. {
  35. @ResourceName = Food
  36. @Ratio = #$../SuppliesOut$
  37. @Ratio *= 0.000016927083333
  38.  
  39. %DumpExcess = False
  40. }
  41. OUTPUT_RESOURCE
  42. {
  43. ResourceName = WasteWater
  44. Ratio = #$../SuppliesOut$
  45. @Ratio *= 0.000014247685185
  46.  
  47. %DumpExcess = True
  48. }
  49. OUTPUT_RESOURCE
  50. {
  51. ResourceName = Oxygen
  52. Ratio = #$../SuppliesOut$
  53. @Ratio *= 0.001713537562385
  54.  
  55. %DumpExcess = False
  56. }
  57. }
  58. }
  59.  
  60. @PART[*_Aeroponics]:NEEDS[TACLifeSupport]
  61. {
  62. @MODULE[ModuleResourceConverter,Cultivator]
  63. {
  64. %SuppliesOut = #$OUTPUT_RESOURCE:HAS[#ResourceName[Supplies]]/Ratio$
  65. @SuppliesOut /= #$@LIFE_SUPPORT_SETTINGS/SupplyAmount$
  66. //%SuppliesOut = 1
  67.  
  68. INPUT_RESOURCE
  69. {
  70. ResourceName = CarbonDioxide
  71. Ratio = #$../SuppliesOut$
  72. @Ratio *= 0.00148012889876
  73. }
  74. OUTPUT_RESOURCE
  75. {
  76. ResourceName = Oxygen
  77. Ratio = #$../SuppliesOut$
  78. @Ratio *= 0.001713537562385
  79. %DumpExcess = False
  80. }
  81. OUTPUT_RESOURCE
  82. {
  83. ResourceName = WasteWater
  84. Ratio = #$../SuppliesOut$
  85. @Ratio *= 0.000014247685185
  86.  
  87. %DumpExcess = True
  88. }
  89. @OUTPUT_RESOURCE:HAS[#ResourceName[Supplies]]
  90. {
  91. @ResourceName = Food
  92. @Ratio = #$../SuppliesOut$
  93. @Ratio *= 0.000016927083333
  94. //Ratio = 0.000016927083333
  95.  
  96. %DumpExcess = False
  97. }
  98. }
  99. }
  100.  
  101. @PART[OKS_Kerbitat]:NEEDS[TACLifeSupport]
  102. {
  103. MODULE
  104. {
  105. name = MKSModule
  106. workSpace = 1
  107. livingSpace = 0
  108. efficiencyPart = OKS_HabRing,10
  109. }
  110. }
  111. @PART[MKS_Kerbitat]:NEEDS[TACLifeSupport]
  112. {
  113. MODULE
  114. {
  115. name = MKSModule
  116. workSpace = 1
  117. livingSpace = 0
  118. efficiencyPart = MKV_HabModule,5
  119. }
  120. }
  121.  
  122. @PART[*_Kerbitat]:NEEDS[TACLifeSupport]
  123. {
  124. MODULE
  125. {
  126. name = ModuleResourceConverter
  127. ConverterName = Oxygenator
  128. StartActionName = Start Oxygenator
  129. StopActionName = Stop Oxygenator
  130. INPUT_RESOURCE
  131. {
  132. ResourceName = CarbonDioxide
  133. Ratio = 0.00148012889876
  134. }
  135. OUTPUT_RESOURCE
  136. {
  137. ResourceName = Oxygen
  138. Ratio = 0.001713537562385
  139. }
  140. OUTPUT_RESOURCE
  141. {
  142. ResourceName = Waste
  143. Ratio = 0.000001539351852
  144. DumpExcess = True
  145. }
  146. INPUT_RESOURCE
  147. {
  148. ResourceName = ElectricCharge
  149. Ratio = 8
  150. }
  151. }
  152. MODULE
  153. {
  154. name = ModuleResourceConverter
  155. ConverterName = WaterCleaner
  156. StartActionName = Start Water Cleaner
  157. StopActionName = Stop Water Cleaner
  158. INPUT_RESOURCE
  159. {
  160. ResourceName = WasteWater
  161. Ratio = 0.000014247685185
  162. }
  163. OUTPUT_RESOURCE
  164. {
  165. ResourceName = Water
  166. Ratio = 0.000011188078704
  167. }
  168. OUTPUT_RESOURCE
  169. {
  170. ResourceName = Waste
  171. Ratio = 0.000001539351852
  172. DumpExcess = True
  173. }
  174. INPUT_RESOURCE
  175. {
  176. ResourceName = ElectricCharge
  177. Ratio = 1
  178. }
  179. }
  180. MODULE
  181. {
  182. name = ModuleResourceConverter
  183. ConverterName = TrashBurner
  184. StartActionName = Start Trash Burner
  185. StopActionName = Stop Trash Burner
  186. OUTPUT_RESOURCE
  187. {
  188. ResourceName = CarbonDioxide
  189. Ratio = 0.00148012889876
  190. DumpExcess = False
  191. }
  192. INPUT_RESOURCE
  193. {
  194. ResourceName = Oxygen
  195. Ratio = 0.001713537562385
  196. }
  197. INPUT_RESOURCE
  198. {
  199. ResourceName = Waste
  200. Ratio = 0.000001539351852
  201. }
  202. INPUT_RESOURCE
  203. {
  204. ResourceName = ElectricCharge
  205. Ratio = 1
  206. }
  207. }
  208. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement