/
Kerb_PlanetaryBaseSystems.cfg
425 lines (349 loc) · 13.3 KB
/
Kerb_PlanetaryBaseSystems.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
//=============================================================================
//= Patch Planetary Base Systems For Kerbalism Realism Profile =
//=============================================================================
//=============================================================================
//= KSP 1.1.3 =
//= Kerbalism 1.1.0 =
//= Version 0.114.6 =
//= =
//= Placement: =
//= \GameData\Kerbalism\Patches\contribs\Kerb_PlanetaryBaseSystems.cfg =
//= =
//= NOTE: =
//= All values here were taken from the standard KPBS configuration for the =
//= default Kerbalism profile then converted to an equivalent realism profile =
//= standard according to the VAB planner(rounding up). Other values are pure =
//= guesswork. =
//= =
//= Using this config may damage and/or destroy current save games. Backup =
//= the most recent game before installing. =
//= =
//= Recommend removing PartDatabase.cfg and all MM created files except the =
//= Dll. =
//=============================================================================
// *TODO*: Mass/Density/Cost values
//=============================================================================
// ,--------
// | * Lower Realism Profile CO2 Waste Buffer. Maybe just flush to space
// | unless a container is available?
// `--------
@Rule[Oxygen]:NEEDS[RealismProfile&PlanetarySurfaceStructures]:AFTER[Kerbalism]
{
@waste_buffer = 2
}
//=============================================================================
//= Patch PBS Greenhouse (Small and Large) =
//=============================================================================
@PART[KKAOSS_LS_container_greenhouse]:NEEDS[RealismProfile&PlanetarySurfaceStructures]:AFTER[PlanetarySurfaceStructures]
{
@MODULE[Greenhouse]
{
@waste_name = Waste
@ec_rate = 0.3 // Smaller greenhouse less EC needed
@waste_rate = 0.00002 // requires less than waste
@harvest_size = 120.0 // food consumed for 3 crew for 40 days at 1 food per day == 120 food
@growth_rate = 0.0000005787 // 80 days to harvest
}
!RESOURCE[Crap]{}
RESOURCE
{
name = Waste
isTweakable = true
isVisible = true
amount = 0.0
maxAmount = 7.5 // ??? Smaller Greenhouse less storage
}
}
@PART[KKAOSS_Greenhouse_g]:NEEDS[RealismProfile&PlanetarySurfaceStructures]:AFTER[PlanetarySurfaceStructures]
{
@MODULE[Greenhouse]
{
@waste_name = Waste
@waste_rate = 0.00004 // requires slightly less than waste/s for crew of 3
@harvest_size = 270.0 // food consumed for 3 crew over 90 days at 1 food per day == 240 food
@growth_rate = 0.0000005787 // 80 days to harvest -> Same grow time just more to harvest
}
!RESOURCE[Crap]{}
RESOURCE
{
name = Waste
isTweakable = true
isVisible = true
amount = 0.0
maxAmount = 15.0 // ??? Large enough to store ~2 weeks of waste for a 3 man crew
}
}
//=============================================================================
//= Patch PBS Waste Container (Tweakable or not?) =
//=============================================================================
@PART[KKAOSS_LS_container_waste_small]:NEEDS[RealismProfile&PlanetarySurfaceStructures]:AFTER[PlanetarySurfaceStructures]
{
!RESOURCE[Crap]{}
RESOURCE
{
name = Waste
isTweakable = false
isVisible = true
amount = 0.0
maxAmount = 48.5 // 45 days for 3 crew ??? (0.358453746438747 * 3) * 45
}
RESOURCE
{
name = WasteWater
isTweakable = false
isVisible = true
amount = 0.00
maxAmount = 135.0 // 45 days for 3 crew (1 * 3) * 45
}
}
//=============================================================================
//= Patch PBS Air Filter =
//=============================================================================
// ,--------
// | [WIP] Industrial sized air filter/Scrubber. Should comfortably support
// | 5/6? kerbals. For now, set this up as per scrubber defined for command
// | pods.
// `--------
@PART[KKAOSS_LS_container_airfilter]:NEEDS[RealismProfile&PlanetarySurfaceStructures]:AFTER[PlanetarySurfaceStructures]
{
!RESOURCE[CO2]{}
RESOURCE
{
name = CarbonDioxide
amount = 0.0
maxAmount = 912.0 // Store 3 days for 3 crew (101.25 * 3) * 3 ???
}
// Scrubber module here probably needs fixing... perhaps use the recycler module instead?
// Considering recent config changes in kerbalism, maybe check for enabled scrubber and use it.
// Failing that, use an equivalent recycler setup instead. This way, the airfilter shows up regardless. That
// should work right?
!MODULE[Scrubber]{} // <- Hah! that's why I killed the scrubber. I knew I'd... Nah, just did it cuz it was easy.
MODULE
{
name = Scrubber
resource_name = Oxygen
waste_name = CarbonDioxide
ec_rate = 0.05 // (0.01 * 5)
co2_rate = 0.0367 // (0.006 * 6)
co2_ratio = 1.03
//@ec_rate *= 5.0 // Set for crew of 5. WIP
//@co2_rate *= 5.5
}
}
//=============================================================================
//= Patch The Various PBS Food Containers =
//=============================================================================
@PART[KKAOSS_LS_container_food_small]:NEEDS[RealismProfile&PlanetarySurfaceStructures]:AFTER[PlanetarySurfaceStructures]
{
@RESOURCE[Food]
{
@amount = 252 // Default profile for 3 crew is 83d 1h in VAB planner rounded up -> (1 * 3) * 84
@maxAmount = 252
}
}
@PART[KKAOSS_LS_container_food_big]:NEEDS[RealismProfile&PlanetarySurfaceStructures]:AFTER[PlanetarySurfaceStructures]
{
@RESOURCE[Food]
{
@amount = 504 // Double it here
@maxAmount = 504
}
}
@PART[KKAOSS_LS_container_kerbalism_small]:NEEDS[RealismProfile&PlanetarySurfaceStructures]:AFTER[PlanetarySurfaceStructures]
{
@mass = 0.12
@RESOURCE[Food]
{
@amount = 126 // Default profile for 3 crew is 41d 3h in VAB planner rounded up -> (1 * 3) * 42
@maxAmount = 126
}
@RESOURCE[Oxygen]
{
@amount = 20250 // Default profile for 3 crew is 49d 5h in VAB planner without scrubber rounded up -> (3 * 135) * 50
@maxAmount = 20250
}
RESOURCE
{
name = FiltrationMaterial // Filter for 45d for 3 crew (Round up) -> (45 / 4) * 3
amount = 34
maxAmount = 34
}
}
@PART[KKAOSS_LS_container_kerbalism_big]:NEEDS[RealismProfile&PlanetarySurfaceStructures]:AFTER[PlanetarySurfaceStructures]
{
@mass = 0.24
@RESOURCE[Food]
{
@amount = 252 // Double it here
@maxAmount = 252
}
@RESOURCE[Oxygen]
{
@amount = 40500 // Default profile for 3 crew is 99d 5h in VAB planner without scrubber rounded up -> (3 * 135) * 100
@maxAmount = 40500
}
RESOURCE
{
name = FiltrationMaterial // Filter for 90d for 3 crew (Round up) -> (90 / 4) * 3
amount = 68
maxAmount = 68
}
}
//=============================================================================
//= Patch the various PBS Oxygen Containers =
//=============================================================================
@PART[KKAOSS_LS_container_oxygen_small]:NEEDS[RealismProfile&PlanetarySurfaceStructures]:AFTER[PlanetarySurfaceStructures]
{
@RESOURCE[Oxygen]
{
@amount = 40500 // Default profile for 3 crew is 99d 5h without scrubber -> (3 * 135) * 100
@maxAmount = 40500
}
}
@PART[KKAOSS_LS_container_oxygen_big]:NEEDS[RealismProfile&PlanetarySurfaceStructures]:AFTER[PlanetarySurfaceStructures]
{
@RESOURCE[Oxygen]
{
@amount = 81000 // // Double it here
@maxAmount = 81000
}
}
//=============================================================================
//= Patch the various PBS CO2 Containers =
//=============================================================================
@PART[KKAOSS_LS_container_co2_small]:NEEDS[RealismProfile&PlanetarySurfaceStructures]:AFTER[PlanetarySurfaceStructures]
{
@RESOURCE[CarbonDioxide]
{
%isTweakable = false
%isVisible = true
@amount = 0
@maxAmount = 3037.5 // Store 10 days for 3 crew (101.25 * 3) * 7 ???
}
}
//=============================================================================
//= Miscellaneous Parts Patching =
//=============================================================================
// ,--------
// | Recreate the small water tank. KPBS only uses this tank with TACLS.
// | Force it into Kerbalism.
// `--------
PART:NEEDS[RealismProfile&PlanetarySurfaceStructures]
{
// Kerbal Space Program - Part Config
// A small container to store water
MODEL
{
model = PlanetaryBaseInc/ModSupport/Parts/LifeSupport/Container_Water_small
}
// --- general parameters ---
name = KKAOSS_LS_container_water_small
module = Part
author = Nils277
// --- asset parameters ---
scale = 1
rescaleFactor = 1
CoMOffset = -0.45, 0, 0
// --- node definitions ---
node_stack_top = 0, 0, 0, 1, 0, 0, 1
// --- editor parameters ---
TechRequired = spaceExploration
entryCost = 9000
cost = 1201
category = Utility
subcategory = 0
title = K&K Water Small Container
manufacturer = K&K Life-Support Devision
description = A small container for water. It can be used to shower, drink, wash or for a water slide.
// --- attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision ---
attachRules = 1,0,1,1,0
// --- standard part parameters ---
mass = 0.2
dragModelType = default
maximum_drag = 0.2
minimum_drag = 0.2
angularDrag = 2
crashTolerance = 15
maxTemp = 2000 // = 3000
RESOURCE
{
name = Water
amount = 90 // 30 days for 3 crew -> ((0.25 * 4) * 3) * 30
maxAmount = 90
}
}
// ,--------
// | Recreate the Water Purifier. KPBS only uses this with TACLS. Force it
// | into Kerbalism. Industrial sized water filter that should comfortably
// | support 5/6? kerbals. For now, set this up as per water recycler
// | defined for command pods.
// `--------
PART:NEEDS[RealismProfile&PlanetarySurfaceStructures]
{
// Kerbal Space Program - Part Config
// A container that can be used as an air filter for the LS mods
MODEL
{
model = PlanetaryBaseInc/ModSupport/Parts/LifeSupport/Container_WaterPurifier
}
// --- general parameters ---
name = KKAOSS_LS_container_waterpurifier
module = Part
author = Nils277
// --- asset parameters ---
scale = 1
rescaleFactor = 1
CoMOffset = -0.45, 0, 0
// --- node definitions ---
node_stack_top = 0, 0, 0, 1, 0, 0, 1
// --- editor parameters ---
TechRequired = advElectrics
entryCost = 14000
cost = 5200
category = Utility
subcategory = 0
title = K&K Water Purifier Container
manufacturer = K&K Life-Support Devision
description = With the help of two activated carbon filters, centrifuge and other highly secret parts this containers able to purify the dirty water into nearly clean water. Only suited for Kerbonauts!
// --- attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision ---
attachRules = 1,0,1,0,0
// --- standard part parameters ---
mass = 0.7
dragModelType = default
maximum_drag = 0.2
minimum_drag = 0.2
angularDrag = 2
crashTolerance = 15
maxTemp = 2000 // = 3000
tag = Water Purifier
MODULE
{
name = Recycler
display_name = Water Filtration
resource_name = Water // resource produced
waste_name = WasteWater // waste resource recycled
filter_name = FiltrationMaterial // filtration material used up in the process
//Each unit of filtration material can clean 4 units of waste water at the total cost of 400 EC
//1 unit of water per day per kerbonaut, so total cost of 100 EC per kerbonaut each day
ec_rate = 0.03125 // (0.00625 * 5)
waste_rate = 0.0003125 // (0.0000625 * 5)
//waste_ratio = 1.1
filter_rate = 0.000078125 // (0.000015625 * 5)
//@ec_rate *= 5.0 // Set for crew of 5. WIP
//@waste_rate *= 5.0
//@filter_rate *= 5.0
// disabled by default when added to a vessel
// is_enabled = false
}
RESOURCE
{
name = FiltrationMaterial
// Command pods come with enough FM to filter +12 days worth of water.
// This gives basic vessels a total of 16 days worth of supply.
// For longer missions, you'll need a supply canister.
amount = 20.0 // Set for 15 days for crew of 5? -> (15 / 4) * 5
maxAmount = 20.0
//@amount *= 5 // Set for crew of 5
//@maxAmount *= 5
}
}