Skip to content

Commit 0360793

Browse files
authored
Merge pull request #119 from RedAV8R/master
TacGenericConverter Fix and move FINAL to zSDHISMS MM pass
2 parents 1c5caa6 + b0ed7c4 commit 0360793

File tree

4 files changed

+111
-33
lines changed

4 files changed

+111
-33
lines changed

GameData/SDHI/Service Module System/Parts/MM_configs/SDHI_SMS_MMPatch_Mk1-2Pod_umbilical.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Module Manager patch to alter the stock Mark 1-2 Pod's texture so that it appears to have an SDHI SMS compatible umbilical receptacle
22
3-
@PART[Mark1-2Pod]:FINAL {
3+
@PART[Mark1-2Pod]:FOR[zSDHISMS]
4+
{
45
MODEL
56
{
67
model = Squad/Parts/Command/Mk1-2Pod/model
@@ -11,7 +12,6 @@
1112
model = SDHI/Service Module System/Parts/SDHI_2.5_ServiceModule/SM_UmbilicalSocket
1213
scale = 1, 1, 1
1314
}
14-
1515
MODULE
1616
{
1717
name = ModuleAnimateGeneric

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

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,22 @@
55
// This adds PEBKAC LES plugin support to the SDHI Launch Escape System and Mk1-2 Pod Boost Protective Cover,
66
// to help automate abort sequences
77

8-
@PART[SDHI_LES]:NEEDS[PebkacLaunchEscape2]:FINAL {
8+
@PART[SDHI_LES]:NEEDS[PebkacLaunchEscape2]:FOR[zSDHISMS]
9+
{
910
MODULE
10-
{
11+
{
1112
name = ModulePebkacLesController2
1213
hasPitchControl = True
13-
stagingEnabled = False
14-
}
14+
stagingEnabled = False
15+
}
1516
}
16-
17-
@PART[SDHI_2.5_Mk1-2AeroShroud]:NEEDS[PebkacLaunchEscape2]:FINAL {
17+
@PART[SDHI_2.5_Mk1-2AeroShroud]:NEEDS[PebkacLaunchEscape2]:FOR[zSDHISMS]
18+
{
1819
MODULE
19-
{
20+
{
2021
name = ModulePebkacLesController2
2122
hasPitchControl = False
2223
stagingEnabled = False
2324
jettisonsToRetro = true
24-
}
25-
}
25+
}
26+
}

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+
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
// Modifies the stock Mark 1-2 Pod to give, for its three-Kerbal crew, a total of:
2020
// - eight Kerbal days of Supplies
2121
// - eight Kerbal days of Mulch storage
22-
@PART[Mark1-2Pod]:NEEDS[USILifeSupport]:FINAL {
23-
22+
@PART[Mark1-2Pod]:NEEDS[USILifeSupport]:FOR[zSDHISMS]
23+
{
2424
// Use replace (%) rather than edit (@), to ensure that the following values are loaded regardless of the presence/absence of any other patches
2525
%RESOURCE[Supplies]
2626
{

0 commit comments

Comments
 (0)