Azrael's Mods

← All RimWorld mods

Stormproof

Hold the grid

RimWorld 1.6 / 1.7Requires Harmony18 buildings

The Rim does not care about your freezer. Stormproof is the Power-tab toolkit that keeps a colony running through flares, lightning, surges, EMP, fallout, heat, cold, eclipses, flashstorms, and droughts.

Eighteen tools for a disaster-hardened colony — plus brownout, storm wear, a weather almanac, and the Stormfront showcase start. Pairs naturally with Homesteader batteries and generators.

Download stormproof-2.0.0.zipSteamNexus

Stormproof preview

What it does

Solar shield

Keeps every electrical device on the map running during a solar flare. Idles cheap; drinks 2,500W while the sky is red. If batteries empty mid-flare, the shield collapses and everything stays dark until the flare ends.

Storm spire

Steals lightning in a wide radius (shown on select and while placing), cannot burn, and snuffs fires at its base. Wired: each strike dumps up to 1,500 Wd into capacitors then batteries, with a small Zzzt risk until Perfect grounding. Unwired: just a safe rod. Every eight strikes fuses fulgurite at the base.

Storm capacitor bank

Lightning-only storage. The grid cannot charge it; Zzzt cannot drain it; it never leaks. Covers deficits up to 2,000W.

Surge protector

Eats one Zzzt, then spends a day recharging. Pairs dangerously well with a grid-connected storm spire.

Armored conduit

Fireproof, tough, and immune to storm wear — the wiring for killboxes and exterior walls.

Load shedder

Automatic breaker between the main grid and a low-priority sub-grid. Battery cutoff still trips first. Add a 24-hour run/shed timetable, a forecast override that sheds before a storm or flare, and Hold Auto / Run / Shed. Old saves keep the old breaker until you set a schedule.

Grid monitor

Live production, consumption, battery time-to-empty, brownout level, and charge warnings. With a forecaster on the same net it projects eight hours of solar/wind vs weather, then a typical sky after it breaks.

v2.0.1

  • GetInspectString error on modded powered buildings — most likely cause (the report had no full stack trace): the brownout postfix on PowerNet.CurrentEnergyGainRate read PowerNet.Map, which throws when no PowerNetManager owns the net. Some mods build such nets for their own buildings, and vanilla's power inspect line asks every net for its gain rate, so each inspect of those buildings threw a NullReferenceException (reported on a modded electric smelter). Stormproof 1.7.x patched CompPowerTrader.PowerOutput instead and never touched the net's map. The map now comes from powerNetManager?.map, and an unowned net gets no brownout.
Older versions (v2.0.0, v1.7.0, v1.6.1, v1.6.0, v1.5.1, v1.5.0, v1.3.1)

v2.0.0

  • Smart hold on the load shedder — a fourth hold mode after Auto. It works like Auto, but when the charge is back above the reconnect level it runs the grid forecast as if the sub-grid came back now, and stays shed if the supply would fall to the cutoff again within 8 hours. Needs a weather forecaster on the supply grid; without one it acts like Auto. The inspect pane says when and why it is holding. The hold gizmo is tinted per mode.
  • Almanac on the grid monitor — the grid monitor has its own Open almanac gizmo. The charge sparkline shows when a weather forecaster shares its grid.
  • Pylon zaps and EMP bursts in the almanac — each entry and the lifetime totals count static pylon shocks and ion storm EMP bursts.
  • Undefended grid warning — once per map, the first thunderstorm or dry lightning over a powered colony with no storm spire and no surge protector shows a reminder (which research to do, or what to build). Setting, on by default.
  • Storm caller settings — sliders for recharge (1 to 15 days, default 5) and storm length (2 to 24 hours, default 12). The building no longer has cooldownTicks / stormDurationTicks in its def.
  • EMP dampener for mechanoids — with Biotech, an opt-in setting lets the dampener shield your own mechanoids from EMP stuns. Enemy mechanoids are never shielded.
  • Gizmo icons — the almanac, fulgurite, schedule and hold gizmos use Stormproof's own art instead of vanilla's launch report and temperature icons.
  • Compat API v2: new public Stormproof.StormproofCompatApi, ApiVersion = 2. Members: BrownoutFor(Thing), IsEmpProtected(Thing) (live dampener cover), MapHasReadySurgeProtector(Map), DampenerRadius, StormSurgeIntensity(Map) (0 to 1 from rain rate, lightning weather and ion storms), ForecastRemainingTicks(Map), WeatherBringsLightning(Map), IonStormActive(Map), and static IonStormStarted / IonStormEnded events raised from the condition start/end patches (a throwing subscriber is logged once and skipped). The forecaster reads its countdown through the same call. Common/Sibling/StormproofClient.cs is the sister-mod client: it binds delegates once and fails open; Strata, Nemesis and Deep Colony link it.
  • Compatibility matrix: Stormproof/COMPATIBILITY.md, linked from About.xml and the site's compatibility data. Rows for each sister mod, DLC, Harmony and Multiplayer (not supported); columns for 1.6, 1.7, integration point, fail-open behaviour and last tested.
  • Azrael storyteller rate: with the Azrael storyteller loaded, the settings show the combined rate of its pick weights and the incident frequency slider for each Stormproof incident (key Stormproof_Settings_AzraelStack). The Stormfront description already matches its behaviour (Azrael lock only with Homesteader), so it is unchanged.
  • Defender effects: StormproofVisuals draws, per frame and only for the map on screen, a pulsing field over the solar shield, atmospheric barrier, climate stabilizer, sky restorer and drought condenser while each is Protecting; the EMP dampener's field at its real protectRadius while an ion storm leans on it, plus a flash when it stops an EMP stun (CompEmpDampener.Block); a charge glow on each storm capacitor that tracks StoredEnergy / storedEnergyMax; and a jagged arc from the cell a bolt was headed for to the spire that caught it (LightningRedirect). The static pylon's zap uses the same arc instead of vanilla's LineEMP. Coverage rings on placed spires, dampeners, pylons and fire suppressors are coloured by state (off, ready, working). Arcs live in MapComponent_Stormproof.Arcs, are never saved, and clear when the map is off screen.
  • Weather effects: ion storm aurora (world overlay, flares after an EMP burst), heat dome haze, polar front frost vignette (screen overlay), and toxic surge fog (new GameCondition_ToxicSurge, a GameCondition_ToxicFallout subclass; it turns a calmer blue-green while a barrier holds it off). Heat haze and frost fade to 30% while a climate stabilizer counters them. All fade with LerpInOutValue. Built on vanilla shaders (MoteGlow, Transparent) and five new textures in Textures/Stormproof/Effects, so 1.6 and 1.7 look the same; custom 1.7 GLSL shaders and a true heat-distortion pass are not done.
  • Settings: "Show Stormproof effects" (visualEffects, on) removes all of the above, and "Reduced intensity (photosensitivity)" (reducedEffects, off) dims them and stops pulsing, flicker and flashes. Keys Stormproof_Settings_Visuals, _VisualEffects(Tip), _ReducedEffects(Tip) (EN/RU/CN).
  • Two builds, one source — official 1.6 loads 1.6/Assemblies (net472, 1.6 refs). 1.7 loads 1.7/Assemblies, now a.NET 10 build against the 1.7 refs (Krafs.Rimworld.Ref 1.7.4998-unstable, Harmony 3.0.0-rc.4).
  • Weather timer access — on 1.7 WeatherDecider.curWeatherDuration is read with [UnsafeAccessor] instead of reflection. A missing field logs one warning and the forecaster and storm caller degrade quietly, as on 1.6.
  • Hazard defenders — the barrier, stabilizer, sky restorer and condenser share one base class. The heat dome and polar front check the stabilizer in their own TemperatureOffset instead of through two Harmony patches. Def-name strings in code are [DefOf] fields. Ties between spires, protectors and capacitors break by thing id, the same on every load.
  • Code cleanup — one battery-total helper replaces four copies; mod settings are never null, so the 20+ null checks are gone; incident chances use [DefOf] fields instead of def-name strings and are applied once defs exist; simulation code uses System.Math; the fire suppressor and the grid forecast no longer share static scratch lists between calls.
  • ROADMAP — dropped the dead line and the deleted Strata V4 roadmap link.
  • Changed: Dropped unused docs/img/ArmoredConduit.png. Atlas script segment output is opt-in (-OutSegment); default writes atlas + menu icon only. No gameplay change.
  • Brownout off the hot getter — brownout now trims a grid's energy gain in PowerNet.CurrentEnergyGainRate, once per grid, instead of postfixing CompPowerTrader.PowerOutput for every consumer. The.NET 10 JIT can inline that tiny getter, which would have switched brownout off on 1.7 without an error. With brownout disabled, nothing is looked up at all. The grid monitor shows the trimmed consumption so it matches the net gain.
  • Workbench brownout as a stat part — StatPart_Brownout is added to WorkTableWorkSpeedFactor by Patches/Stormproof_Brownout.xml and shows in the stat tooltip. The global StatExtension.GetStatValue patch is gone.
  • Hazard checks — the toxic, plant and temperature patches read one cached answer per map per tick instead of rescanning defenders for every cell or plant. Defender hazard lists are built once, not per call.
  • Ticking — surge protector, EMP dampener and storm caller no longer tick; weather forecaster, fallout scrubber and grid monitor tick rarely (every 250 ticks, as they already acted). The scrubber checks for toxic buildup before the room lookup. Load shedders reuse their flood-fill collections, and grid forecasts on one map share one sun curve per 250 ticks.
  • Load shedder junctions — checked the shed-side split for breakers touching three or more sides: every non-supply side drops off together when the breaker opens, and sides joined elsewhere are counted once. No change; the reasoning is now in a code comment.
  • 1.7 patch safety — Player.log's load line now says how many patch classes applied. A missing Odyssey or Biotech target logs a warning when that DLC is active.
  • Storm caller vs dry lightning — calling a storm during a dry lightning front now ends the front first (logged in the almanac), so the rainy thunderstorm actually arrives. Before, the front's forced dry weather undid the call on the next weather tick.
  • Ion storm sky — the purple tint now shows, fading in and out over 300 ticks. The condition never set a sky lerp factor, so vanilla's 0 hid it.
  • Ion storm underground — can no longer be registered on underground maps, matching every other Stormproof condition.
  • Bolt on the spire — a caught bolt is now drawn on the spire. Only the damage moved before; the bolt was drawn from the event's own cell. Strikes with no cell set pick one up front, so the drawn bolt and the damage always agree.
  • Disabled defenders — a barrier, stabilizer, sky restorer, condenser or fire suppressor switched off in mod settings stays at idle draw during its hazard and says so in its inspect pane.
  • Heater and cooler thermostat — the brownout shift is undone in a Harmony finalizer, so an error inside TickRare can't leave the target changed. A missing heater or cooler target no longer fails the whole patch class.
  • Surge protector — absorbs every Zzzt that has something to short, including forced ones from the ion storm and storm spires. The storyteller's refire check no longer lets them slip past.
  • Missed strikes — strikes on a map with no storm spire are counted as missed in the almanac.
  • Temporary maps — building registries are kept per map and dropped when a map is removed, so quest and ambush maps no longer leave stale entries.
  • Almanac after load — the open weather entry keeps its real start time; loading no longer resets it to the load tick.
  • Weather forecaster after load — keeps the weather it last saw, so a change during the save still warns.
  • Save version — maps save stormproofSaveSchema (2). Saves without it are treated as version 1; every existing stormproof* key is unchanged.
  • Translations — Russian and Chinese now cover the five condition end messages, the research tab's title and description, and the whole Stormfront scenario (name, description, summary, start text). The scenario's start text is addressed by its part's def handle, so the optional Odyssey and Homesteader parts can't shift it.
  • Translation checks — scripts/validate_mods.py (run by CI) now fails when a Stormproof def's label, description, end message, letter, research-tab text or scenario text is missing from a shipped language, and when a Stormproof game condition doesn't say whether it can run underground. Well-formed XML, no BOM and Keyed parity were already checked for every folder.

v1.7.0Download v1.7.0

  • Workshop preview — new About/Preview.png (grid under a flare and lightning). Docs card synced.
  • Changed: Declared RimWorld 1.7 in supportedVersions alongside 1.6. Existing 1.6 DLL; no gameplay change.
  • Changed: Dropped the unused ArmoredConduit.png texture (defs use _Atlas and _MenuIcon only). Atlas script writes the segment preview to docs/img instead of Textures/ and no longer copies the unused atlas PNG into docs/img. No gameplay change.
  • Changed: Dropped flavor-text class headers on atmospheric barrier, climate stabilizer, sky restorer, drought condenser, fire suppressor, and natural-hazard game conditions. No gameplay change.

v1.6.1

  • Changed: Declared RimWorld 1.7 in supportedVersions alongside 1.6. Existing 1.6 DLL; no gameplay change.

v1.6.0Download v1.6.0

  • Load schedule forecast (forecast-schedule-v1) — with a weather forecaster on the supply grid, each hour in the schedule shows a bottom bar where the forecast dips: amber for brownout, orange where the cutoff would trip. Hover an hour for its lowest predicted charge.
  • Forecast sparkline — the weather almanac opened from a forecaster draws the next 8 hours of predicted battery charge for its grid.
  • Longest clean stretch — the almanac shows the longest run without a missed strike or a suffered Zzzt, plus the current one.
  • Almanac lifetime totals — totals are kept as running counts and no longer shrink when old almanac entries roll off. Existing saves start from the entries still in the almanac.
  • Brownout per grid — brownout strength is tracked per power grid object, so one grid's brownout can never land on another.
  • Grid monitor — "empty in" / "full in" on a nearly balanced grid no longer shows a garbled or negative time.
  • Weather forecaster and storm caller — if a RimWorld update changes the weather timer they rely on, the forecast lines go quiet instead of throwing errors.
  • Grid forecast — the monitor's forecast now follows load shedders on the grid: scheduled shed hours, holds, and the battery cutoff drop or restore the sub-grid's draw over the 8-hour window.
  • Code cleanup — dropped the unused fire-suppressor registry, unused incident-enabled helper, unread weather-decider Available flag, and flavor-text class headers that restated building copy.

v1.5.1Download v1.5.1

  • Grid forecast (forecast-ramp-v1) — solar shield, fire suppressor, atmospheric barrier, climate stabilizer, sky restorer, and drought condenser are counted at their hazard draw, not the idle nameplate.
  • Short-circuit absorb — the handoff uses Harmony __state instead of a static flag.
  • Settings — the window writes to disk only when a value changes.
  • Registries — comp lists clear when a new game starts, so a previous session's buildings are not kept.
  • Compat hooks — StormproofCompatApi exposes ion storm, grid surge, and drought for other mods. Missing Stormproof stays a no-op for the caller.
  • Grid monitor — inspect shows the predicted brownout at the forecast low point.
  • Almanac — lifetime totals across recorded storms.

v1.5.0Download v1.5.0

  • Version baseline — minor bump to start the next ship cycle above current Steam / Nexus / GitHub releases. No Workshop/Nexus upload in this change.

v1.3.1

  • Storm caller tick (storm-call-tick-v1) — weather TransitionTo runs on MapComponentTick, not the gizmo click.

Good to know

  • Stockpile battery charge before the sky goes red — if the grid runs dry mid-flare, the solar shield collapses until the flare ends.
  • A grid-connected storm spire has a small Zzzt chance per caught strike until Perfect grounding; Soft / Default / Hard change that factor.
  • Storm capacitor banks are lightning-only — the grid cannot charge them, and spires fill capacitors before regular batteries.
  • Spire vs shield: the spire is lightning and fire. The shield is flares. You usually want both.
  • Chinese Simplified and Russian are included. Odyssey is optional (drought condenser).
  • Safe to add mid-save. Deconstruct all Stormproof buildings before removing the mod.

Alongside other mods

Works with

  • StrataBrownout slows the freight lift; storm surge grows seep floods on levels without a running sump pump; the seismograph shows the surface forecast
  • HomesteaderPairs naturally with Homesteader batteries and generators; with Homesteader, the Stormfront scenario locks the Azrael storyteller
  • NemesisNemesis EMP sabotage respects EMP dampeners; surge protectors blunt its grid sabotage
  • Deep ColonyColonists downed during an ion storm get the ion-storm trauma
  • AzraelThe Azrael storyteller weights Stormproof incidents on top of the frequency slider; settings show the combined rate

Leave these off

  • MultiplayerNot supported

Full compatibility matrix (1.6 and 1.7, integration points, fail-open behaviour): https://github.com/AzraelGodKing/rimworld_mods/blob/main/Stormproof/COMPATIBILITY.md

Report a problem

This report is for Stormproof on RimWorld.