Skip to main content

Weather

Status: being built since 2026-11-20. The world-wide weathers, their blends, the mist rules, the game's storm, wind, rain and fog driven from them, the weather map's drifting cells and the rain in the air, rain on the ground, lightning and thunder and the rainbow after rain are built; storm towers were dropped. The weather system belongs to mods/sky-overhaul (issue #71); its controls go in DevTools' Weather tab. Marked (proposed) are choices not yet agreed; every number is a first draft.

The goal​

  • Weathers that read as weather, each with its sub-weathers, all made from one set of levers. A new weather is a new row of lever values, not new code.
  • Realistic for the region: the jungle rains most, the savannah has long dry stretches, the desert almost never rains, and storms are seen from far off.
  • Weather follows rules: morning fog only on a calm morning after a clear night; a dark cirrus sheet with a few dark cumulus always ends in a storm.

Decisions​

  • A weather map (2026-11-19). Shower and storm cells a few kilometres across drift with the wind through an air mass that covers the whole world, which is about 5 km across. What is overhead is the player's weather, what is far off is seen in the sky, a storm can be watched coming, and rain falls under its cell only. Cells form by the zone beneath them, so the jungle is wetter. The cloud shader reads a coverage map instead of one number; the clouds are already a noise field in world space.
  • No seasons (2026-11-19). The zone shares below hold all game.
  • Visuals only (2026-11-19). Weather does not change what guards see or hear, or how cars grip.
  • Wet ground later (2026-11-19), once rain itself has been seen in play.
  • The sandstorm stays the missions' (2026-11-19): the retail SandStorm presets play only where a mission calls them, never in the rotation.
  • The draft rows, numbers and shares stand (2026-11-19) and are changed in play where they feel wrong.
  • The weather is worked out, not saved (2026-11-19, keyed 2026-11-20). Every cell's sub-weather, and how far a blend has gone, is a function of game time and a fixed seed, so a loaded save comes back with the weather it was made in. Game time is the days the game has counted plus the clock, both saved; it never loops, and sleeping runs the clock fast, so the weather passes through the night slept rather than jumping.
  • Fog in layers (2026-11-20): rain fog from the rain's strength and dust fog on dusty days, over each weather's own fog (rule 11).
  • The weather's own numbers, not the game's fog presets (2026-11-20). The fog and light the weathers set are the mod's own; of the game's authored presets only Storm's light is used.
  • Rain in the air is the mod's own (2026-11-20), before the storm towers. Thousands of drops round the player in place of the game's dozen, and curtains of rain in gust bands from about 16 m out to 190 m, coloured as the rain fog and laid over it. The game's drops get no strength; its splashes stay until the rain on the ground. Roofs keep the rain off through the engine's own rain cover map. Drops are lit by the sky, sun and moon only.
  • The Clouds tab edits the weather on screen (2026-11-20). With the weather on, the existing cumulus and cirrus sliders edit the row showing, or the one held on DevTools' Weather tab, and each row's tuned values are saved in bin\sky-overhaul.ini.
  • No storm towers (2026-11-20). Storms keep their cumulus under today's height cap; user: "I dont think we need tall storm clouds".
  • A rainbow as the rain here clears (2026-11-20). When the weather where the player stands clears with the sun out, a storm's Clearing or rain stopping, a bow stands opposite the sun at 42°; only with the sun under 42°, so mornings and late afternoons. From the pictures the user dropped the second bow and wanted one faint bow cut from one end only, never both, and then simpler: always 130 of its 180 degrees, from the left or the right foot.
  • Clouded nights are dark (2026-11-21). The night's light follows each weather's cloud amount, steady through the weather rather than flickering as single clouds cross the moon: under full cloud the moonlight is gone and the night's ambient light is a third. A just-risen moon keeps its faint, grazing light, which the user judged the realistic one over a lifted or brightened low moon.
  • No rain curtains (2026-11-21). The curtains of rain from 16 m out read as a mist standing round the player; user: "it looks weird". Rain in the air is the drops alone, with the rain fog beyond.
  • A clear night at 70%, and no more (2026-11-21). The user's ceiling on the brightest night: a clear night's moonlight and ambient are cut to 70%; cloudier nights, already under it, stay.
  • The sun is a disc through dusk (2026-11-21). The user took the sun at 21:28, about five degrees up, as the most light wanted, and earlier in the dusk the haze round the sun washed it into a white glow. Between ten and twenty-five degrees the sky carries 30% of its haze and the glare holds at a setting sun's strength, both back to the day's by forty; storms keep theirs.
  • Only a puddle is a mirror (2026-11-21). The screen-space pass reads its normals from the depth, flat across each triangle, so a sky sheen on wet ground, rocks and walls showed every triangle and rang round the player where the normal's reach stepped up. Wet ground, walls and objects only darken; the materials' own shine, raised by day, carries the wet look on their own smooth normals. At night that raised shine lit trunks from the engine's night ambient, so it fades with the night.
  • No splashes (2026-11-21). The mod's splashes read as white discs; user: "at least that was realistic". The game's splashes came back, then more of them and smaller; user: "let's just remove the splashes altogether". Under the mod's drops nothing splashes; the Rain switch's game drops keep theirs.
  • Stars fade low down (2026-11-21). The air near the horizon hides the stars: faint at fifteen degrees, gone below five, all of them from thirty-five.
  • No night brighter than C6's (2026-11-22). The 70% ceiling was still too bright; user: "what I see during C6 night light should be the most lit night light level". Every night is lit as if at least C6's cumulus covered the sky: 45% of the presets' moonlight and about two thirds of their ambient.
  • The moon's face shows (2026-11-22). User: "the moon craters should always be visible, never faded by the glow", "only a slight corona". The air's glow was laid over the disc itself; it now starts at the disc's edge and hugs it, and the disc is held at half of saturation.
  • The engine's depth in half floats (2026-11-22). Lines ran across wet grass at fixed distances from the player: the engine's eight-bit linear depth steps by centimetres there, and the wet pass tells grass from ground by it. Sky Overhaul stores it in half floats for about 40 MB more video memory, and Third Person reads that format too; user on the build: "It seem to be working now".
  • Bolts like trees, flashes like strobes (2026-11-22). From the stills, the user: the top of a bolt is hidden in the cloud, so it fades in; a bolt "doesn't change thickness, only if it branches out", and a branch that stops in the air is so thin its end is not cut flat; the screen lights "way more, based on how far the lightning was". A bolt fades in over 400 m below the cloud base, keeps its width to the ground and loses a fifth at each branch; a branch starts at half the width and tapers to nothing. The flash brightens the world by the strike's nearest point, up to thirteen times at night, drawn under the bolts so they stay thin. Then, from the user's picks: the bolt's turns rounded twice by corner cutting ("smoother edges"), half the strikes bolts instead of a third, and the flash a quarter as strong where the rain cover map says a roof stands over, since it comes from the sky. The daytime cloud glow stays as it is. Then the flash left the picture for the world's light; user: "it looks like you just cranked up the screen-space brightness. I wanted the increased night light that we suppressed for the cloudy nights". The strike raises the engine's ambient, and at night its moonlight, by as many times over as it adds to the ambient there, up to thirty-one; the cover dimming went with the screen flash. At full speed the land then lit for only a tenth of a second, a frame or two behind the bolt (user: "it doesnt seem to be lit up at all"), so the land's light fades over 0.05 s a pulse while the bolt keeps a quicker one, and a strike brightens it up to eighty-one times: a strike 200 m off strobes the land with each of its pulses (0.15 s and thirty-one times first; user: "make the bright time shorter, like in real life", then "make it even brighter and shorter").
  • Stars from fifteen degrees, all night (2026-11-22). User: the stars "should be hidden and only visible from 15° and up, faded of course". They fade in from fifteen degrees to forty. Once the night is full the engine draws no dome, so the mod's sky, drawn in its place, was missing for those hours and every star showed to the horizon; the sky is now drawn over the stars at the sky pass's end then, which keeps the far land on the horizon at night too.
  • Storms overhead strike often, far ones seldom (2026-11-22). User: "distant strikes shouldnt be that frequent ... 1 every 15 seconds at most is enough, but when the storm is over my head, I want it more frequent than it was before". An air mass's storm strikes every eight seconds in a downpour and every fifteen in steady rain, from half a kilometre to six, most within three; a cell overhead strikes at its own rate, and every cell off in the distance shares one strike in fifteen seconds.
  • Leaves let the rain through (2026-11-22). Tree crowns kept the ground below them dry in their own shape, which cut the puddles like a shadow; user: "it should not do that". Leaves are left out of the engine's cover map, so the rain also falls through trees; roofs and trunks still cover.
  • No shadows on a pitch-dark night (2026-11-22). The long sun-shadow ranges cost 1.6 ms a frame at night in a storm, where nothing shows a shadow. User: "if its pitch dark then we can turn off shadows of course. but during moonlight, we should use the one we have during daylight". At full night the scene light casts no shadows while the moon gives under 15% of the light, ambient included: before moonrise and under overcast or a storm. Clear and cumulus nights keep their moon shadows at the daytime ranges, and a lightning flash does not switch them.

What the game does now​

One axis, the storm factor (0–1), read from a looping curve that is calm 94% of the time; it blends the Storm presets (light, fog, cloud, sky, wind) over the zone's Clear, Jungle or Desert base, and the desert holds it at zero. Rain is a roll on cloud coverage that has never been seen in play. Wind is the preset's force times a random 0.8–1.5. Sky Overhaul's storm is thicker clouds, cirrus over the whole sky and grey light, with the clear fog kept.

What ships unused or barely used: the Cloudy light and cloud presets, the SandStorm fog, cloud and wind (Act 2's Border Storm mission only), the rain particles and splashes on the player, and rain ambience loops per zone (jungle, wetland, savannah). Nothing ships for lightning, thunder or wet surfaces. Details: storm, rain and wind, rain and storms, environment presets.

The game's clock runs at time scale 6: a game hour is 10 real minutes, a game day 4 real hours.

The levers​

#LeverRangeWhere it livesState
L1Cumulus coverage0–1 (today 0.44)Sky Overhaul cloud layerexists
L2Cumulus water: how solid and dark0.005–0.3 (today 0.021, storm 0.09)cloud layerexists
L3Cumulus height: base and thicknessbase 100–4000 m, thickness to 3000 mcloud layerexists; storm towers past it were dropped
L4Cumulus size500–12000 mcloud layerexists
L5Underside shade0–1 (storm 0.8)cloud layerexists, storm only
L6Cirrus reach0–1 (today 0.41)high sheetexists
L7Cirrus opacity0–1 (today 0.04, storm 0.8)high sheetexists
L8Contrails0–1high sheetexists
L9Air hazecrisp 0.5 – thick 1.8 (today 0.75)sky modelexists, storm only
L10Sunlight share1–0.2 (storm 0.3)sky modelexists, storm only
L11Sky grey0–0.85sky modelexists, storm only
L12Engine storm factor: grey world light, storm bloom and god rays0–1engine; the plugin writes it (the script override sticks at 0.1–0.2)exists
L13Cloud shadows, glare cover, light shaftsfollow L1 and L7Sky Overhaulexists
L14Fog distance and amountend 30–500 mengine fog setters, written each frameexists
L15Fog height: fog lying low in valleysengine fog's height curvesengineexists, untested
L16Fog colouranyengine; Sky Overhaul retints it alreadyexists
L17Heat haze and mirage0–1Sky Overhaulexists, gated by sun and storm
L18Rain on or offflagengine CRainComponent, the plugin forces itexists
L19Rain strength: drizzle to downpour0–1engine blends 0 to 1; whether a fraction thins the drops needs RERE
L20Rain soundper zoneengine ambience, follows L18exists
L21Wind force0–250engine; SetWindOverride works in gameexists
L22Gustsmultiplierengine fluctuation; a gust front ahead of a storm is newpartly
L23Wind directionheadingengine drift; override worksexists
L24Lightning inside cloudflashcloud shaderbuilt
L25Lightning boltdrawn linesky pass, drawn procedurally (no asset)built
L26Flash on the worlda few framesa pass over the picture, weighed against the ambient lightbuilt
L27Thundersoundpublic-domain recordings in three distance banks in the data layer, played the way Flashlight plays its click; after the flash at the speed of soundbuilt
L28Sun halo: a 22° ring in a thick cirrus sheet, the classic sign of a coming front (proposed)0–1sky shadernew
L29One faint rainbow opposite a low sun as the rain here clears, 130 of its 180 degrees from the left or the right foot0–1a pass over the sky after the clouds, lit by the sun the clouds let through to the eyebuilt
L30Wet ground: darker, with mirroring puddles on level ground, in and after rain; the materials' own shine raised by day0–1a screen-space pass, and the materials' shine registersbuilt
L31Dust in the air—postponed with the distant dustpostponed

The weathers​

Cumulus is L1 coverage · L2 water · L3 height. Cirrus is L6 reach · L7 opacity. Fog is L14 end and L16 colour; "game" means the clear fog as the presets give it (about 400–500 m by day). Rain, dust and mist lay fogs of their own over any row (rule 11).

IDSub-weatherCumulusShadeCirrusAirSunFogHeat hazeRainWindLightningLasts
CClear
C1Clear sky000normal1gamefull–calm–breeze–hours
C2Light cirrus000.3 · 0.04normal1gamefull–calm–breeze–hours
C3Strong cirrus000.9 · 0.15normal0.95gamefull–calm–breeze–hours
C4A few cumulus0.2 · 0.015 · flat00–0.2 · 0.04normal1gamefull–breeze–hours
C5Lots of cumulus and cirrus (today's sky)0.44 · 0.021 · normal00.41 · 0.04normal1gamefull–breeze–hours
C6Thick but light cumulus, no cirrus0.55 · 0.012 · tall00normal1gamemost–breeze–hours
C7Hazy and dry (proposed)0–0.1 · 0.015 · flat00.2 · 0.04milky 1.20.9dry-season haze through the whole air, milky skystrong–breeze–a day or more
FFoggy
F1Fog under full cirrus001 · 0.3, halomilky 1.20.7150 m, white-greyoff–calm–hours
F2Fog, cumulus and full cirrus0.4 · 0.021 · normal0.21 · 0.3milky 1.20.7150 m, white-greyoff–calm–hours
F3Storm warning: full dark cirrus, a few dark cumulus0.2 · 0.05 · tall0.51 · 0.6, halomilky 1.40.5150–250 m, greyoff–calm, rising–1–3 h, then always S2 or S3
MMist, over any calm weather
M1Morning fogas the weather–as the weather––60–100 m, white, lowoff–calm only–dawn until the sun is ~15° up
M2Mist after rain (proposed)as the weather–as the weather––200 m, whiteoff–calm–~1 h after rain
OOvercast and rain (proposed)
O1Overcast0.85 · 0.05 · flat0.5hiddenmilky 1.40.4gameoff–breeze–hours
O2Drizzle0.9 · 0.06 · flat0.6hiddenmilky 1.40.35the rain'soffdrizzlebreeze–1–4 h
O3Steady rain0.95 · 0.08 · flat0.7hiddenthick 1.60.3the rain'soffrainwindy–2–6 h
SStorm
S0Distant stormyour sky as C4–C6, plus one dark tower on the horizon––––gameas the weather–as the weatherfar flashes, low rumble1–2 h
S1Gathering: cumulus growing tall and dark0.5 · 0.06 · towering0.60.8 · 0.41.40.6gameoff–gust frontfirst strikes20–40 min
S2Thunderstorm0.65 · 0.09 · towering0.81 · 0.8thick 1.80.3the rain'soffshowergustysome30–90 min
S3Heavy storm0.9 · 0.12 · towering0.91 · 0.8thick 1.80.2the rain'soffdownpourgalefrequent15–45 min
S4Clearing0.3 · 0.03 · normal, broken0.20.5 · 0.1crisp 0.51game, then M2off until dry–easing–1–2 h
WWind and dust (proposed)
W1Breezyany C row, faster drift–windy–hours
W2Windy and hazy0–0.100.2milky 1.3, warm0.85thick dust at leastweak–windy–gale–hours
W3Sandstorm, missions onlythe retail SandStorm presets30 m, ochreoff–gale–as the mission holds it

Every weather also runs at night: the clouds take the moon's light as they do now, and lightning reads best in the dark.

The rules​

  1. Blends, not cuts. Moving between rows eases every lever over 20–60 game minutes (3–6 real minutes); a storm front comes faster, 10–15 game minutes.
  2. Two roads to a storm (proposed).
    • Afternoon storm, the tropical one and the most common: a clear morning (C1–C4), cumulus building through the day (C4, C5, C6, S1), a thunderstorm between 14:00 and 18:00 (S2, sometimes S3), clearing by evening (S4), a clear night, morning fog at dawn if it stays calm.
    • Front, at any hour: the warning sky F3 always leads to S2 or S3 within 1–3 game hours, and F3 never shows without a storm after it. The full dark cirrus is the storm's own anvil spreading ahead of it.
  3. Morning fog forms only after a clear or clearing night with calm wind, is thickest at dawn and burns off as the sun climbs. Wind above a breeze stops it. Common in the jungle and by water, rare on the savannah, never in the desert.
  4. Wet after rain: no heat haze or mirage until the ground has had 1–2 game hours of sun; the air is crisp; the jungle steams (M2).
  5. Heat haze follows the sun, less what cloud stands in front of it, and only on dry ground.
  6. Rain only under heavy cumulus or overcast. None in the desert (the engine already blocks rain at desert 0.6 and above).
  7. Lightning only in S0–S3. Thunder comes after its flash by distance.
  8. Wind: calm before the storm (F3), a gust front as it breaks (S1 to S2), strongest in S3, easing in S4.
  9. Storm fog stays clear until it rains: the gathering storm (S1) keeps the game's fog, and the shower that follows brings the rain's own (rule 11).
  10. Missions win. While a retail script holds a weather override (Border Storm's sandstorm, a3sm15's storm), the system follows it and resumes after.
  11. Fog in layers. Over the weather's own fog lie rain fog, dust fog and the mist, the nearest end winning. Rain fog comes with any rain: 200 m in drizzle, 110 m in steady rain, 60 m in a downpour, a light grey spray through the whole air, bluer in a downpour. Dust fog comes on dry ground with the sun up: each day rolls how dusty it is (about two days in five have none), more with wind, ochre-beige, from 200 m light to 80 m thick, the desert most, the savannah six tenths of it, never the jungle; rain clears it out of the air within about a game minute. In still air dust is haze through the whole air and turns the sky milky; as the wind rises from a breeze it lifts off the ground and lies there. Lying fog is full strength over the player's ground and pools in lower ground. Mist thins to an eighth by 35 m up, a shallow layer hilltops stand out of; lifted dust only by 150 m, deep enough that the far hills Flatten draws low stay inside it rather than peeking out as small bumps. Hazy and dry keeps at least half the dust and a milky sky, windy and hazy thick dust. Where the weather lays a fog, the game's own thinning with height, about half strength at the ground, is not kept; the clouds keep the game's.
  12. A milky sky. Haze through the whole air pales the sky toward its own horizon's brightness in the haze's hue, all the way at the horizon and about a third at the zenith: hazy and dry, windy and hazy, the fog weathers, and any still day's dust.
  13. Cells. A cell reaches 1.5–3.5 km, lives 1.5–3 game hours and drifts at the speed the weather under the clouds does, about 1.6 km a game hour. It gathers for its first quarter (S1), turns to rain over the next fifth (S2, a heavy heart S3 in about a third of them, more over jungle) and dies away from seven tenths of its life. Cells start in 15-minute slots anywhere over a 40 km square round the world, most around 15:00 and a fifth as many at night, fewer under foggy, grey, front or windy air and under dusty dry air; on the map the jungle feeds twice what savannah does and the desert almost nothing. At the player a cell's core holds the weather within about seven tenths of its reach; ahead along its track, only as far as it will still arrive at its full and only as wide as its core sweeps, lies the warning sky F3, so a warning always ends under the core; behind, over ground it has rained on for up to 1.5 game hours, the clearing S4. The savannah keeps six tenths of a cell's hold and the desert a fifth, and a front's own warning and storm outweigh a cell's warning and clearing. In the sky a cell's cloud spreads half as far again as its rain, a crowd of cumulus round a closed raining heart, darker and wetter at the base, with a torn anvil of ice ahead of it.

How often: the zones​

Shares of game time per weather family, a first draft, the same all game. The zone is the engine's own savannah, jungle and desert weighting under each cell of the map. The air mass takes about a third of each zone's storms as fronts and the cells bring the rest; in world 1 the deepest savannah, jungle and desert points get storms about 17%, 24% and 6% of the time, the desert's from fronts.

JungleSavannahDesert
Clear (C)35%55%65%
Foggy (F1, F2)10%5%0
Overcast and rain (O)25%10%2%, overcast only
Storm (F3, S1–S4)25%15%3%, seen from afar (S0)
Wind and dust (W)5%15%30%
A calm morning has fog (M1)70%30%0
A day has an afternoon storm~50%~25%under 5%

What is new to build​

  • Rewired: every sky lever that follows the storm factor today follows the weather instead.
  • Engine, from the plugin: the storm factor, the fog setters, the wind override and the rain flag; the engine's own storm curve and rain roll kept quiet. Needs RE: whether a rain strength below 1 thins the drops, and what the fog's height curves do.
  • New: the weather map and its scheduler; lightning in cloud, bolts and the flash on the world; thunder recordings and their playback; the DevTools Weather tab holding a weather and showing what comes next.