Skip to content

Commit ce8331c

Browse files
author
Robin "sumghai" Chang
committed
Add TAC-LS patch (0.9+ pre-release compatible)
1 parent 1f42a33 commit ce8331c

1 file changed

Lines changed: 149 additions & 0 deletions

File tree

Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
// TAC Life Support patch for SDHI Service Module System
2+
// Author: Robin "sumghai" Chang
3+
// Revision: 2.0
4+
//
5+
// For use with TAC-LS 0.9 pre-release and later versions
6+
7+
// This modifies the Service Module and the stock Mark 1-2 Pod so that the combined Command/Service Module stack provides a total of eight (8) Kerbin days' worth[1]
8+
// of life support crew provisions for its three-Kerbal crew, in contrast to the TAC Life Support default of three (3) Kerbin days.
9+
//
10+
// Eight days' of provisions allow the combined CSM spacecraft to operate indepedently for one week (seven days), plus one extra day as a emergency reserve.
11+
//
12+
// Based on known specifications and features of the real-life NASA Orion MPCV Service Module[2], the SDHI SM will provide an extra five days' worth of Water and Oxygen,
13+
// the equivalent in WasteWater and CarbonDioxide storage, and built-in Carbon Extractors / Water Purifiers. Meanwhile, the Mark 1-2 Pod itself will hold the additional
14+
// five days of Food and Waste storage on top of the default three days, since Food and solid fecal matter can't be transferred to/from the Pod/SM via any realistic
15+
// umbilical system.
16+
//
17+
// The Avionics Ring alternative to the standard SDHI SM will only be equipped with the Carbon Extractor and Water Purifier, as there is no conceivable space to fit
18+
// the added storage capacity for Water/Oxygen/WasteWater/CarbonDioxide.
19+
//
20+
// [1] 1 Kerbin day = 6 Earth hours
21+
// [2] In reality, the baseline NASA Orion Service Module can provide up to 21 human days of provisions for four human astronauts; the SDHI SM is less capable because
22+
// I don't want to make it overpowered :P
23+
//
24+
// NOTE: All numbers have been rounded up to 1 decimal place, as that is the precision of the KSP tweakables system
25+
26+
27+
// Modifies the stock Mark 1-2 Pod to give, for its three-Kerbal crew, a total of:
28+
// - eight Kerbal days of Food
29+
// - three Kerbal days of Water
30+
// - three Kerbal days of Oxygen
31+
// - three Kerbal days of CarbonDioxide storage
32+
// - eight Kerbal days of Waste storage
33+
// - three Kerbal days of WasteWater storage
34+
@PART[Mark1-2Pod]:FINAL {
35+
36+
// Remove MFT support
37+
!MODULE[ModuleFuelTanks] {}
38+
39+
// Use replace (%) rather than edit (@), to ensure that the following values are loaded regardless of the presence/absence of MFT/RealFuels
40+
%RESOURCE[Food]
41+
{
42+
%amount = 5.7
43+
%maxAmount = 5.7
44+
}
45+
%RESOURCE[Water]
46+
{
47+
%amount = 4.1
48+
%maxAmount = 4.1
49+
}
50+
%RESOURCE[Oxygen]
51+
{
52+
%amount = 684.6
53+
%maxAmount = 684.6
54+
}
55+
%RESOURCE[CarbonDioxide]
56+
{
57+
%amount = 0
58+
%maxAmount = 589.1
59+
}
60+
%RESOURCE[Waste]
61+
{
62+
%amount = 0
63+
%maxAmount = 4.1
64+
}
65+
%RESOURCE[WasteWater]
66+
{
67+
%amount = 0
68+
%maxAmount = 4.5
69+
}
70+
}
71+
72+
73+
// 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 / Fuel Cell
74+
@PART[SDHI_2.5_ServiceModule]:FINAL {
75+
76+
// Here, we *don't* apply a MM patch to remove MFT/Real Fuels, since:
77+
// - MFT/Real Fuels is needed to allow users to have reconfigurable fuel tanks or non-stock fuels
78+
// - 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
79+
80+
RESOURCE
81+
{
82+
name = Water
83+
amount = 6.8
84+
maxAmount = 6.8
85+
}
86+
RESOURCE
87+
{
88+
name = Oxygen
89+
amount = 1141
90+
maxAmount = 1141
91+
}
92+
RESOURCE
93+
{
94+
name = WasteWater
95+
amount = 0
96+
maxAmount = 7.5
97+
}
98+
RESOURCE
99+
{
100+
name = CarbonDioxide
101+
amount = 0
102+
maxAmount = 981.7
103+
}
104+
105+
// Standard TAC-LS Carbon Extractor using the Bosch process
106+
MODULE
107+
{
108+
name = TacGenericConverter
109+
converterName = Carbon Extractor
110+
conversionRate = 8.16
111+
inputResources = CarbonDioxide, 0.003500367198368, ElectricCharge, 0.081760489055638
112+
outputResources = Oxygen, 0.003521591846326, false, Waste, 0.000001863771901, true
113+
}
114+
115+
// Standard TAC-LS Water Purifier
116+
MODULE
117+
{
118+
name = TacGenericConverter
119+
converterName = Water Purifier
120+
conversionRate = 8.16
121+
inputResources = WasteWater, 0.000025418346862, ElectricCharge, 0.1
122+
outputResources = Water, 0.000020807576966, false, Waste, 0.000004610769896, true
123+
}
124+
}
125+
126+
127+
// Modifies the SDHI Avionics Ring to only have the built-in Carbon Extractors / Water Purifiers / Fuel Cell
128+
@PART[SDHI_2.5_AvionicsRing]:FINAL {
129+
130+
// Standard TAC-LS Carbon Extractor using the Bosch process
131+
MODULE
132+
{
133+
name = TacGenericConverter
134+
converterName = Carbon Extractor
135+
conversionRate = 8.16
136+
inputResources = CarbonDioxide, 0.003500367198368, ElectricCharge, 0.081760489055638
137+
outputResources = Oxygen, 0.003521591846326, false, Waste, 0.000001863771901, true
138+
}
139+
140+
// Standard TAC-LS Water Purifier
141+
MODULE
142+
{
143+
name = TacGenericConverter
144+
converterName = Water Purifier
145+
conversionRate = 8.16
146+
inputResources = WasteWater, 0.000025418346862, ElectricCharge, 0.1
147+
outputResources = Water, 0.000020807576966, false, Waste, 0.000004610769896, true
148+
}
149+
}

0 commit comments

Comments
 (0)