Skip to content

Commit 7c3064a

Browse files
author
Robin Chang
committed
Add MM patches for third-party mod support
Removed stock parachute fallback patch as RealChutes will now be a hard dependency. Also dropped support for the following mods due to age/incompatibility with KSP 1.4.5: - FusTek Station Parts - Kerbal Optical Alignment System (KOAS) - OLDD / KURS Docking Camera - Vens Stock Part Revamp
1 parent 1fae0f8 commit 7c3064a

8 files changed

Lines changed: 255 additions & 1 deletion
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
@PART[SDHI_ParaDock_1_ClampOTron]:HAS[!MODULE[ModuleConnectedLivingSpace]]
2+
{
3+
MODULE
4+
{
5+
name = ModuleConnectedLivingSpace
6+
passable = true
7+
}
8+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
@PART[SDHI_Boost_Protect_Cover|SDHI_LAS|SDHI_Crew_Module_Adapter|SDHI_Service_Module|SDHI_Service_Module_Fairing|SDHI_Spacecraft_Adapter]:FOR[DeadlyReentry]
2+
{
3+
// Parts should burn up on reentry fairly easily, while resilent enough to withstand launch thermal stresses
4+
@maxTemp = 1000
5+
%skinMaxTemp = 1000
6+
%thermalMassModifier = 1.0
7+
%skinThermalMassModifier = 1.4131
8+
%skinMassPerArea = 0.0514
9+
%emissiveConstant = 0.87
10+
%absorptiveConstant = 0.15
11+
12+
MODULE
13+
{
14+
name = ModuleAeroReentry
15+
leaveTemp = true
16+
}
17+
}
18+
19+
@PART[SDHI_2.5_Heatshield]:FOR[DeadlyReentry]
20+
{
21+
// Remove stock ModuleAblator and associated Ablator resource
22+
@MODULE[ModuleAblator]
23+
{
24+
@name = ModuleHeatShield
25+
%depletedMaxTemp = 1200
26+
}
27+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Enables full MechJeb functionality for both the Service Module and Crew Module Adapter
2+
3+
@PART[SDHI_Service_Module|SDHI_Crew_Module_Adapter]:NEEDS[MechJeb2] {
4+
%MODULE[MechJebCore] {
5+
MechJebLocalSettings {
6+
MechJebModuleCustomWindowEditor { unlockTechs = start }
7+
MechJebModuleSmartASS { unlockTechs = start }
8+
MechJebModuleManeuverPlanner { unlockTechs = start }
9+
MechJebModuleNodeEditor { unlockTechs = start }
10+
MechJebModuleTranslatron { unlockTechs = start }
11+
MechJebModuleWarpHelper { unlockTechs = start }
12+
MechJebModuleAttitudeAdjustment { unlockTechs = start }
13+
MechJebModuleThrustWindow { unlockTechs = start }
14+
MechJebModuleRCSBalancerWindow { unlockTechs = start }
15+
MechJebModuleRoverWindow { unlockTechs = start }
16+
MechJebModuleAscentGuidance { unlockTechs = start }
17+
MechJebModuleLandingGuidance { unlockTechs = start }
18+
MechJebModuleSpaceplaneGuidance { unlockTechs = start }
19+
MechJebModuleDockingGuidance { unlockTechs = start }
20+
MechJebModuleRendezvousAutopilotWindow { unlockTechs = start }
21+
MechJebModuleRendezvousGuidance { unlockTechs = start }
22+
}
23+
}
24+
}

GameData/SDHI/Service Module System/MM_configs/SDHI_SMS_MMPatch_Mk1-3_Pod_Umbilical_Interface.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Module Manager patch to add a toggleable Umbilical Interface mesh to the stock Mark 1-3 Pod
1+
// Add a toggleable Umbilical Interface mesh to the stock Mark 1-3 Pod
22

33
@PART[mk1-3pod]:FOR[zSDHISMS]
44
{
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Add PEBKAC LES plugin support to the SDHI Launch Abort System and Mk1-3 Pod Boost Protection Cover,
2+
// to help automate abort sequences
3+
4+
@PART[SDHI_LAS]:NEEDS[PebkacLaunchEscape2]:FOR[zSDHISMS]
5+
{
6+
MODULE
7+
{
8+
name = ModulePebkacLesController2
9+
hasPitchControl = True
10+
stagingEnabled = False
11+
}
12+
}
13+
@PART[SDHI_Boost_Protect_Cover]:NEEDS[PebkacLaunchEscape2]:FOR[zSDHISMS]
14+
{
15+
MODULE
16+
{
17+
name = ModulePebkacLesController2
18+
hasPitchControl = False
19+
stagingEnabled = False
20+
jettisonsToRetro = true
21+
}
22+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// Adds RemoteTech functionality for both the Service Module and Crew Module Adapter
2+
3+
@PART[SDHI_Service_Module|SDHI_Crew_Module_Adapter]:NEEDS[RemoteTech] {
4+
%MODULE[ModuleCommand] {
5+
%minimumCrew = 0
6+
}
7+
%MODULE[ModuleSPU] {}
8+
}
Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
// Modifies the Service Module and the stock Mk1-2/Mk1-3 Pod so that the combined CSM stack provides up to
2+
// eight (8) Kerbin days' worth of provisions for three (3) Kerbals, using real-life specifications for
3+
// NASA's Orion MPCV as reference (1 week + 1 day emergency reserve)
4+
5+
// Food and solid waste need to be directly accessible within the Mk1-2/Mk1-3 Pod
6+
// Fluids (Oxygen, CarbonDioxide, Water, WasteWater) can be divided between the pod and the SM at a 3:5 ratio
7+
8+
@PART[mk1-3pod|Mark1-2Pod]:NEEDS[TacLifeSupport]:FOR[zSDHISMS]
9+
{
10+
// Remove MFT support
11+
!MODULE[ModuleFuelTanks]
12+
{}
13+
%RESOURCE[Food] //
14+
{
15+
%amount = 8.78
16+
%maxAmount = 8.78
17+
}
18+
%RESOURCE[Water]
19+
{
20+
%amount = 2.18
21+
%maxAmount = 2.18
22+
}
23+
%RESOURCE[Oxygen]
24+
{
25+
%amount = 333.11
26+
%maxAmount = 333.11
27+
}
28+
%RESOURCE[CarbonDioxide]
29+
{
30+
%amount = 0
31+
%maxAmount = 287.83
32+
}
33+
%RESOURCE[Waste]
34+
{
35+
%amount = 0
36+
%maxAmount = 0.80
37+
}
38+
%RESOURCE[WasteWater]
39+
{
40+
%amount = 0
41+
%maxAmount = 2.77
42+
}
43+
}
44+
45+
@PART[SDHI_Service_Module]:NEEDS[TacLifeSupport]:FOR[zSDHISMS]
46+
{
47+
// Here, we don't remove MFT/Real Fuels, since:
48+
// - MFT/Real Fuels is needed to allow users to have reconfigurable fuel tanks or non-stock fuels
49+
// - 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
50+
RESOURCE
51+
{
52+
name = Water
53+
amount = 3.625
54+
maxAmount = 3.625
55+
}
56+
RESOURCE
57+
{
58+
name = Oxygen
59+
amount = 555.19
60+
maxAmount = 555.19
61+
}
62+
RESOURCE
63+
{
64+
name = WasteWater
65+
amount = 0
66+
maxAmount = 4.62
67+
}
68+
RESOURCE
69+
{
70+
name = CarbonDioxide
71+
amount = 0
72+
maxAmount = 479.565
73+
}
74+
}
75+
76+
// Add Carbon Extractors and Water Purifiers to both the Service Module and the Crew Module Adapter
77+
@PART[SDHI_Service_Module|SDHI_Crew_Module_Adapter]:NEEDS[TacLifeSupport]:FOR[zSDHISMS]
78+
{
79+
// Standard TAC-LS Carbon Extractor using the Bosch process
80+
MODULE
81+
{
82+
name = TacGenericConverter
83+
converterName = #autoLOC_TACLS_00246 //Carbon Extractor
84+
StartActionName = #autoLOC_TACLS_00247 //Start CarbonExtractor
85+
StopActionName = #autoLOC_TACLS_00248 //Stop CarbonExtractor
86+
tag = Life Support
87+
GeneratesHeat = false
88+
conversionRate = 8.16
89+
INPUT_RESOURCE
90+
{
91+
ResourceName = CarbonDioxide
92+
Ratio = 0.001703210064733
93+
}
94+
INPUT_RESOURCE
95+
{
96+
ResourceName = ElectricCharge
97+
Ratio = 0.039783051310155
98+
}
99+
OUTPUT_RESOURCE
100+
{
101+
ResourceName = Oxygen
102+
Ratio = 0.001713537562385
103+
DumpExcess = false
104+
}
105+
OUTPUT_RESOURCE
106+
{
107+
ResourceName = Waste
108+
Ratio = 0.000001209166498
109+
DumpExcess = true
110+
}
111+
}
112+
113+
// Standard TAC-LS Water Purifier
114+
MODULE
115+
{
116+
name = TacGenericConverter
117+
converterName = #autoLOC_TACLS_00240 //Water Purifier
118+
StartActionName = #autoLOC_TACLS_00241 //Start WaterPurifier
119+
StopActionName = #autoLOC_TACLS_00242 //Stop WaterPurifier
120+
tag = Life Support
121+
GeneratesHeat = false
122+
conversionRate = 8.16
123+
INPUT_RESOURCE
124+
{
125+
ResourceName = WasteWater
126+
Ratio = 0.000014247685185
127+
}
128+
INPUT_RESOURCE
129+
{
130+
ResourceName = ElectricCharge
131+
Ratio = 0.007123842592593
132+
}
133+
OUTPUT_RESOURCE
134+
{
135+
ResourceName = Water
136+
Ratio = 0.000012822916667
137+
DumpExcess = false
138+
}
139+
OUTPUT_RESOURCE
140+
{
141+
ResourceName = Waste
142+
Ratio = 0.000001994675926
143+
DumpExcess = true
144+
}
145+
}
146+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Modifies the stock Mk1-2/Mk1-3 Pod so that the combined CSM stack provides up to eight (8) Kerbin days' worth of provisions
2+
// for three (3) Kerbals, using real-life specifications for NASA's Orion MPCV as reference (1 week + 1 day emergency reserve)
3+
4+
// All USI LS resources are solids, and cannot be transferred between the pod and Service Module / Crew Module Adapter in any way
5+
// No Recyclers, Greenhouses or Fertilizers are needed due to the short mission duration
6+
7+
@PART[mk1-3pod|Mark1-2Pod]:NEEDS[USILifeSupport]:FOR[zSDHISMS]
8+
{
9+
%RESOURCE[Supplies]
10+
{
11+
%amount = 259.2
12+
%maxAmount = 259.2
13+
}
14+
%RESOURCE[Mulch]
15+
{
16+
%amount = 0
17+
%maxAmount = 259.2
18+
}
19+
}

0 commit comments

Comments
 (0)