stationeers.de Mod workshop · Dominik1199
DE Sign in
  1. Home
  2. IC10 academy
  3. Day 198

Day 198 of 365 · Pro · Month 7: Power and energy

Storms and weather

The weather station announces storms. The chip uses the warning time: retract radiators, make an announcement, show the remaining time – and know what really protects.

Lesson 18 min Week 29

What you learn today

  • Read the weather station
  • Retract radiators instead of turning panels
  • Use the warning time

On Mars a dust storm rolls in every few days. It damages whatever stands outside and takes a large part of the sun away from the solar panels. The weather station sees it coming – your chip can react to it.

The weather station

StructureWeatherStation has to stand outside. Inside a room it reports nothing. It delivers:

LogicTypeMeaning
Mode0 = no storm, 1 = storm announced, 2 = storm raging
NextWeatherEventTimeseconds until the announced storm begins (0 if none is announced)
NextWeatherHashidentifier of the weather event

You can only read Mode. The station sets it itself.

How much time is left?

According to the game's world data, a dust storm on Mars begins 120 to 900 seconds after the announcement and lasts 120 to 600 seconds. A solar storm (Moon, Vulcan) arrives after only 30 to 60 seconds but does no damage. During a dust storm only about 30 % of the sun gets through.

That sounds like a collapse, but for normal panels it is not one: the game passes a panel's raw output on undamped only up to a threshold – up to 1.4 times the rated output normally, up to 1.6 times in a storm – and damps everything above. So on Mars a 500 W panel delivers about 512 W under a clear sky and even about 710 W in a dust storm. What really costs output is the damage.

What protects – and what does not

A close look into the game code pays off here, because in many bases a chip turns the solar panels into a “protective position” before the storm. The code shows: whether a panel takes damage depends only on whether it stands outside and the storm reaches its height. The angle does not matter. Turning does not protect a solar panel.

On average a panel outside takes about 6 % damage per minute of storm, and its output drops by the same amount – until you repair it with duct tape or a glass sheet. The heavy panels (prefabs …Reinforced) take no storm damage at all.

The extendable radiator (StructureLargeExtendableRadiator) is different: it only takes damage while it is extended. With Open 0 it retracts – that is the real protective position.

seq open mode CALM
sbn RADIATOR HASH("Kuehler") Open open

Using the warning time

What your chip can do in the minutes before the storm:

  • retract the radiators
  • play an announcement: the klaxon speaker picks the sound with SoundAlert, On plays it
  • get the backup generator ready: not the missing sun but the growing damage makes the panels weaker minute by minute
  • show the remaining time so nobody outside gets surprised
sbn HORN HASH("Durchsage") SoundAlert Sound.StormIncoming   # once, before the loop
sbn HORN HASH("Durchsage") On warn                          # in the loop
Tip

If the weather station is missing, Average returns NaN. seq open mode CALM is then 0 – the radiator stays retracted. That is exactly the safe direction: better protected once too often than a storm missed.

Exercise

Task

The weather station is named “Wetter”. The extendable radiator “Kuehler” is only extended in calm weather (Mode 0). While a storm is announced (Mode 1), the klaxon “Durchsage” plays the sound Sound.StormIncoming and the display “Sturm” shows the seconds until the storm, otherwise 0. If the station is missing: radiator in, announcement off, display −1.

Hints

Hint 1

Radiator: seq open mode CALM – with NaN it automatically gives 0.

Hint 2

Announcement: pick the sound with SoundAlert, switch it with On and seq warn mode COMING.

Hint 3

Remaining time: first select time warn time 0, then select time ok time -1.

Quiz

5 questions. You pass from 60 % – the server does the grading.

Complete the day

  • Passed the simulator exercise
  • Passed the quiz with at least 60 %

Without an account progress is saved in this browser only.

Report a mistake in this lesson

Please sign in to report. Sign in

Esc
↑ ↓ selectEnter open/ opens search anywhere