Surviving Mars

Surviving Mars

173 ratings
Martian Thermostat
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
685.064 KB
26 Jun, 2018 @ 9:27pm
27 Oct, 2021 @ 10:59pm
31 Change Notes ( view )

Subscribe to download
Martian Thermostat

In 1 collection by SkiRich
SkiRich's Mods
55 items
Description
Martian Thermostat
v3.3.2 Oct 28th, 2021

Picard Patch Compatible

Martian Thermostat is an automation to your Subsurface Heaters and Advanced Stirling Generators.
Martian Thermostat automatically controls some or all of your Subsurface Heater and Advanced Stirling Generators operations.

When a cold wave starts or is predicted, Martian Thermostat automatically turns all controlled Subsurface Heaters On.
When the Cold Wave ends, Martian Thermostat automatically turns all controlled Subsurface Heaters off.

Optionally team this mod with Martian Ice Melt

Features
  • Automatic control of all heaters
  • Control of heat emanating Advanced Stirling Generators
  • Works in tandem with Sensor Towers
  • Manual controls for selected heaters
  • New Info Panel Button in Surface Heater panel
  • Automatically controls all newly built heaters
  • Automatic priority control
  • Settable heater engagement delay
  • Notifications for operation
  • Notifications cycle through all your automated heaters
  • Notification for forecasted temperature of coldwave
  • Hide or Show operational status Icons
  • Restores full power heat to Advanced Stirling Generator

Features Explained
Automatic/Manual Control
By default Martian Thermostat finds and controls all your Subsurface heaters.
If you build new heaters they are automatically controlled. They will be turned off instantly if built when there is no cold wave predicted or active.
The icon in a heater's Info Panel shows a thermostat when automatically controlled.
To not have a heater controlled by the thermostat, click the icon. It will turn red showing no thermostat.
The heater will now be in manual mode, you can control it however you want. The Martian Thermostat will leave them alone and all work/not work status icons restored.
This is handy for zones on maps that are always frozen and you never want to turn off heaters located there.
Note: If your heaters are set for automatic control you can still cycle the power on or off. Automatic control will be retaken and resume on the next cold wave prediction, start or end.

Sensor Tower Integration
The Martian Thermostat works with your Sensor towers ability to predict Cold Waves.
When you get a notification that a Cold Wave is approaching the Subsurface Heaters are turned on right away before the cold wave hits and their priority is set to High.
This will allow for your drones to perform needed maintenance since they have been offline for a long time and the high priority will cause the maintenance to be first, plus if you didnt plan properly for electric and water the Subsurface Heaters will get priority on electric and water supply. (You should make sure you have enough)
If you don't have Sensor Towers the Martian Thermostat will turn on and prioritize the Heaters when the cold wave starts, but you run the risk of having them freeze if your drones dont perform maintenance fast enough.
Sensor Towers give you about 12 hours of advance notice of a coldwave per sensor tower up to about 3 Sols (Six Towers), so build a few. The more advanced notice you have the more of a chance your drones will maintain the heater before the Cold Wave starts.

Settable heater engagement delay
You can set the delay for heater engagement when a prediction for Cold Wave is forecast.
Without mod config, there is no delay, heaters are turned on immediately when a cold wave is predicted.
With mod config you can set the delay from zero (immediate), up to 75% of the prediction time.
Changes to the delay only take effect when there is no prediction present.
Prediction time varies with every cold wave, so take care not to be too aggressive if you dont have a full set of sensor towers.
If you have no sensor towers (or they are busted/not working) then this setting is ignored and heaters are turned on immediately once the thermostat learns a coldwave is forecast or active.
When should I use this? If you have six or more towers and if you have an abundance of drones and dont need or want to turn on heaters so early in the forecast.

Advanced Stirling Generator Control
By default Martian Thermostat finds and adds a thermostat to all Advanced Stirling Generators(ASG's).
ASG's give off plenty of heat in their immediate area when opened.
If you build new ASG's they are NOT automatically controlled since ASG's are always on and can be used as just power sources.
You must elect to turn the Martian Thermostat controls on in any ASG you want automatically opened.
Martian Thermostat does not shut off generators, it open opens or closes them for heat.
The icon in a ASG's Info Panel shows a thermostat when automatically controlled.
To not have a ASG controlled by the thermostat, click the icon. It will turn red showing no thermostat.
The ASG will now be in manual mode (the default), you can control it however you want.
If your ASG's are set for automatic control you can still open and close them manually. Automatic control will be retaken and resume on the next cold wave prediction, start or end.
ASG's do not participate in the Heater Delay functions. They open or close when the actual coldwave starts or ends. They are not taken offline by Martian Thermostat.
Note: You must have at least one regular Subsurface Heater controlled by Martian Thermostat in order for Martian Thermostat to control any Advanced Stirling Generators

Notifications
A notification is broadcast when the Martian Thermostat turns on or off any automatically controlled Heaters and ASG's.
The notification will automatically be dismissed after 5 seconds, duration settable in Mod Config.
Duration of Zero will cause the notification to stay on screen until manually dismissed.
You can click on the notification and it will cycle through all your automatically controlled heaters on screen.
If you have turned up (anything other than zero) the engagement delay in Settable Heater Engagement you will have a separate notification showing you the engagement delay start time.
You can click on the notification and it will cycle through all your heaters (even manual ones) on screen so you can check to make sure they are set for automatic or not. You cannot dismiss this notification while the heaters have a delay. It will automatically dismiss when the heaters turn on.
There is also a notification for Forecasted temperature when the cold wave hits showing you the temperture outside. The colder the climate the more power is needed for all operations of your colony. This notification will appear when the coldwave starts and disappear when it ends. It is also dismissable manually.

Subsurface Heater Icon Operation Status
By default all Subsurface Heaters show the "Not Working" status icon overhead when they are turned off.
You can shut this off in Mod Config so you are not annoyed by the icons.
This only shuts off Icons of automatically controlled heaters.

This mod uses the new Mod Config Reborn giving you the ability to change some parameters.
Mod Config Reborn is here > Mod Config Reborn
Mod Config settings are global for all games and are not saved per save for this mod.

Localizations Available
Bulgarian, German, Spanish, French, Japanese, Polish, Russian, Chinese (Simplified)

If you find this Mod Handy, please vote up!

Please check out some of my other work:
SkiRich's Mod Collection
Popular Discussions View All (1)
0
28 Jun, 2018 @ 5:39pm
PINNED: Bug Reports
SkiRich
41 Comments
SkiRich  [author] 20 Feb, 2023 @ 10:23pm 
Should be good there as well.
pepoluan 8 Feb, 2023 @ 9:48pm 
Oh I didn't mean the map-wide cold snap. But the localized freezing when that mystery's antagonist start freezing areas randomly.
SkiRich  [author] 7 Feb, 2023 @ 9:11pm 
It works with all mysteries.
pepoluan 7 Feb, 2023 @ 9:03pm 
Does this works with 'that mystery' that freezes my buildings?
Vinterix 8 Sep, 2021 @ 7:37am 
Update! :-)
Kateye 13 Jun, 2020 @ 9:04pm 
When terraforming Mars and hitting 50% heat, cold waves end. Thermostat decides to turn on all subsurface heaters. I'd rather leave them turned off. Then I know which ones I don't need and can demolish them if I want.
SkiRich  [author] 13 Jul, 2019 @ 6:12pm 
Requesting maintenance on an entity that is turned off wont work. Drones will wait until its operational.
mrudat 13 Jul, 2019 @ 4:54pm 
Perhaps something like the following:

-- based on https://github.com/HaemimontGames/SurvivingMars/blob/master/Lua/RequiresMaintenance.lua#L180
function DoMaintenanceIfNeeded(maybe_broken)
if maybe_broken.accumulated_maintenance_points < maybe_broken.maintenance_threshold_current then return end
if maybe_broken.maintenance_phase then return end
maybe_broken:RequestMaintenance()
end

function MaintainHeaters()
for _, heater in pairs(UICity.labels.BaseHeater)
DoMaintenanceIfNeeded(heater)
end
end
SkiRich  [author] 12 Jul, 2019 @ 11:49am 
Not at the moment. Unless the unit is turned on the maintenance is not performed. Thats how the games' code works. To alter that would require me to change drone behavior not heater behavior. Thats a bit outside the scope of this mod and I dont want to introduce that variable here. What I'll explore is stopping the maintenance tick when powered off. On a different note, you can place a tribo scrubber next to it and never worry about maintenance at all.