Skip to content

Commit

Permalink
Merge pull request #17 from Grimmas/systemheat-patch
Browse files Browse the repository at this point in the history
SystemHeat patch for StationScience
  • Loading branch information
linuxgurugamer authored Mar 24, 2023
2 parents f657fa1 + 1aa5dcf commit b490dcc
Showing 1 changed file with 79 additions and 0 deletions.
79 changes: 79 additions & 0 deletions GameData/StationScience/Patches/MM-SystemHeat.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
// System Heat patch for MOAR Station Science
//
// author: Grimmas
//

// parts balance is also affected (only when using SystemHeat):
// required cooling per part increased from 2kw to a more reasonable 200kw, so that the parts cannot be simply cooled with the smallest radiator


@PART[StnSciSpectro,StnSciLab,StnSciCyclo,StnSciZoo]:NEEDS[SystemHeat]:FOR[StationScience]
{
// remove core heat modules
!MODULE[ModuleCoreHeat] {}
!MODULE[ModuleOverheatDisplay] {}
!TemperatureModifier {}

// add system heat main module
MODULE
{
name = ModuleSystemHeat
// Cubic metres
volume = 5.0
moduleID = heat
iconName = Icon_Gears
}
}

// change SampleAnalyzer parts to use system heat
@PART[StnSciSpectro]:NEEDS[SystemHeat]:FOR[StationScience]
{
// FIXME the SampleAnalyzer / Spectrometron in StationScience does not actually generate any heat so we won't generate any here either for now
!MODULE[ModuleSystemHeat] {}
// @MODULE[SampleAnalyzer]
// {
// @GeneratesHeat = False
// @AutoShutdown = False
// }
}
// change StationScienceModule parts to use system heat
@PART[StnSciLab,StnSciCyclo,StnSciZoo]:NEEDS[SystemHeat]:FOR[StationScience]
{
@MODULE[StationScienceModule]
{
@name = ModuleSystemHeatConverter
// must be unique
moduleID = converter1
// ModuleSystemHeat moduleID to link to
systemHeatModuleID = heat
// The shutdown temperature of the part
shutdownTemperature = 354
// The temperature the system contributes to loops
systemOutletTemperature = 320
// Map loop temperature to system efficiency (0-1.0)
systemEfficiency
{
key = 0 0.0
key = 320 1.0
key = 354 0.0
}
// Heat generation (kW)
systemPower = 200
!ThermalEfficiency {}
!TemperatureModifier {}
@GeneratesHeat = False
}
}

0 comments on commit b490dcc

Please sign in to comment.