Skip to content

Commit b0ed7c4

Browse files
authored
Move from FINAL to zSDHISMS pass and..TacFix
Tac fix for TacGenericConverter
1 parent dd68c1f commit b0ed7c4

File tree

1 file changed

+97
-20
lines changed

1 file changed

+97
-20
lines changed

GameData/SDHI/Service Module System/Parts/MM_configs/SDHI_SMS_MMPatch_TACLifeSupport.cfg

Lines changed: 97 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@
3030
// - three Kerbal days of CarbonDioxide storage
3131
// - eight Kerbal days of Waste storage
3232
// - three Kerbal days of WasteWater storage
33-
@PART[Mark1-2Pod]:NEEDS[TacLifeSupport]:FINAL {
34-
33+
@PART[Mark1-2Pod]:NEEDS[TacLifeSupport]:FOR[zSDHISMS]
34+
{
3535
// Remove MFT support
36-
!MODULE[ModuleFuelTanks] {}
37-
36+
!MODULE[ModuleFuelTanks]
37+
{}
3838
// Use replace (%) rather than edit (@), to ensure that the following values are loaded regardless of the presence/absence of MFT/RealFuels
3939
%RESOURCE[Food]
4040
{
@@ -67,15 +67,12 @@
6767
%maxAmount = 2.772
6868
}
6969
}
70-
71-
7270
// Modifies the SDHI SM to provide an additional five Kerbal days of Water and Oxygen, the equivalent in WasteWater and CarbonDioxide storage, and built-in Carbon Extractors / Water Purifiers
73-
@PART[SDHI_2.5_ServiceModule]:NEEDS[TacLifeSupport]:FINAL {
74-
71+
@PART[SDHI_2.5_ServiceModule]:NEEDS[TacLifeSupport]:FOR[zSDHISMS]
72+
{
7573
// Here, we *don't* apply a MM patch to remove MFT/Real Fuels, since:
7674
// - MFT/Real Fuels is needed to allow users to have reconfigurable fuel tanks or non-stock fuels
7775
// - The TAC LS patch that uses MFT/RealFuels doesn't cater for the unusual situation where a Service Module is used to hold life support provisions
78-
7976
RESOURCE
8077
{
8178
name = Water
@@ -107,8 +104,28 @@
107104
name = TacGenericConverter
108105
converterName = Carbon Extractor
109106
conversionRate = 8.16
110-
inputResources = CarbonDioxide, 0.001703210064733, ElectricCharge, 0.039783051310155
111-
outputResources = Oxygen, 0.001713537562385, false, Waste, 0.000001209166498, true
107+
INPUT_RESOURCE
108+
{
109+
ResourceName = CarbonDioxide
110+
Ratio = 0.001703210064733
111+
}
112+
INPUT_RESOURCE
113+
{
114+
ResourceName = ElectricCharge
115+
Ratio = 0.039783051310155
116+
}
117+
OUTPUT_RESOURCE
118+
{
119+
ResourceName = Oxygen
120+
Ratio = 0.001713537562385
121+
DumpExcess = false
122+
}
123+
OUTPUT_RESOURCE
124+
{
125+
ResourceName = Waste
126+
Ratio = 0.000001209166498
127+
DumpExcess = true
128+
}
112129
}
113130
114131
// Standard TAC-LS Water Purifier
@@ -117,23 +134,63 @@
117134
name = TacGenericConverter
118135
converterName = Water Purifier
119136
conversionRate = 8.16
120-
inputResources = WasteWater, 0.000014247685185, ElectricCharge, 0.007123842592593
121-
outputResources = Water, 0.000012822916667, false, Waste, 0.000001994675926, true
137+
INPUT_RESOURCE
138+
{
139+
ResourceName = WasteWater
140+
Ratio = 0.000014247685185
141+
}
142+
INPUT_RESOURCE
143+
{
144+
ResourceName = ElectricCharge
145+
Ratio = 0.007123842592593
146+
}
147+
OUTPUT_RESOURCE
148+
{
149+
ResourceName = Water
150+
Ratio = 0.000012822916667
151+
DumpExcess = false
152+
}
153+
OUTPUT_RESOURCE
154+
{
155+
ResourceName = Waste
156+
Ratio = 0.000001994675926
157+
DumpExcess = true
158+
}
122159
}
123160
}
124161
125162
126163
// Modifies the SDHI Avionics Ring to only have the built-in Carbon Extractors / Water Purifiers
127-
@PART[SDHI_2.5_AvionicsRing]:NEEDS[TacLifeSupport]:FINAL {
128-
164+
@PART[SDHI_2.5_AvionicsRing]:NEEDS[TacLifeSupport]:FOR[zSDHISMS]
165+
{
129166
// Standard TAC-LS Carbon Extractor using the Bosch process
130167
MODULE
131168
{
132169
name = TacGenericConverter
133170
converterName = Carbon Extractor
134171
conversionRate = 8.16
135-
inputResources = CarbonDioxide, 0.001703210064733, ElectricCharge, 0.039783051310155
136-
outputResources = Oxygen, 0.001713537562385, false, Waste, 0.000001209166498, true
172+
INPUT_RESOURCE
173+
{
174+
ResourceName = CarbonDioxide
175+
Ratio = 0.001703210064733
176+
}
177+
INPUT_RESOURCE
178+
{
179+
ResourceName = ElectricCharge
180+
Ratio = 0.039783051310155
181+
}
182+
OUTPUT_RESOURCE
183+
{
184+
ResourceName = Oxygen
185+
Ratio = 0.001713537562385
186+
DumpExcess = false
187+
}
188+
OUTPUT_RESOURCE
189+
{
190+
ResourceName = Waste
191+
Ratio = 0.000001209166498
192+
DumpExcess = true
193+
}
137194
}
138195
139196
// Standard TAC-LS Water Purifier
@@ -142,7 +199,27 @@
142199
name = TacGenericConverter
143200
converterName = Water Purifier
144201
conversionRate = 8.16
145-
inputResources = WasteWater, 0.000014247685185, ElectricCharge, 0.007123842592593
146-
outputResources = Water, 0.000012822916667, false, Waste, 0.000001994675926, true
202+
INPUT_RESOURCE
203+
{
204+
ResourceName = WasteWater
205+
Ratio = 0.000014247685185
206+
}
207+
INPUT_RESOURCE
208+
{
209+
ResourceName = ElectricCharge
210+
Ratio = 0.007123842592593
211+
}
212+
OUTPUT_RESOURCE
213+
{
214+
ResourceName = Water
215+
Ratio = 0.000012822916667
216+
DumpExcess = false
217+
}
218+
OUTPUT_RESOURCE
219+
{
220+
ResourceName = Waste
221+
Ratio = 0.000001994675926
222+
DumpExcess = true
223+
}
147224
}
148-
}
225+
}

0 commit comments

Comments
 (0)