Skip to main content

Weather

The sky changes on its own: clear, cloudy, fog, rain and storm, and snow in cold places and high up. Weather differs from place to place: the world is divided into weather regions, each with its own climate and its own weather, and outside every region the world is temperate.

Climates​

ClimateWhat it is like
TemperateMostly clear or cloudy; rain about every 2.7 game days, wet about 3.5% of the time. Fog in the mornings.
WetCloud most days, rain or storm about twice a game day, wet 30% of the time.
DryClear; rain about every 11 game days.
ColdAs temperate but cloudier, and what falls is snow.

Above 1,000 m rain turns to sleet, and above 1,100 m it is all snow, in any climate.

Each kind of weather lasts a while (clear 3-6 hours, cloudy 2-5, fog 1-3, rain 1-3, storm ½-1½; an in-game hour is a real one), then the next is picked by the region's climate, and the clouds take 10 minutes to roll from one to the next. Weather is not saved: after a restart each region starts fresh.

What it does​

  • Clouds and light. Cloud cover rises and the sun, sky and clouds dim with it; a storm darkens the day well down.
  • Fog closes in during fog and haze hangs in heavy rain.
  • Morning mist forms in regions that have it: it gathers before dawn, is thickest just after sunrise and burns off by mid-morning (about 4:30 to 10:00 on the sky's 24-hour clock, world hours 6 to 13), half as thick as fog. Rain clears it. Anyxa's Caldera has it.
  • Rain and snow fall around you and stop on roofs and under canopies.
  • Storms bring lightning and thunder: the closer the flash, the sooner and louder the thunder.
  • Wind. Each region has a wind with a heading and a strength.
    • Strength by weather: clear 1 m/s, cloudy 3, fog 0.3, rain 5 and storm 11.
    • Heading: it veers a little when the weather changes, and a lot when a storm comes or goes.
    • Gusts and swings: gusts of up to about 30% come every few seconds, and the heading swings up to 20° either way over 15-40 minutes.
    • What follows it: trees sway with it, rain and snow lean with it, the clouds drift with it, and you hear it.
    • The server knows it too, for sailing (see Sea and sailing). Scent does not follow it yet.
    • Asking about it: @weather tells a GM the wind where they stand.
  • Sound. Rain, wind and thunder, muffled under a roof.
  • Garden beds. Rain waters them (see Farming); snow does not.

Regions​

A region is a circle with a name and a climate. It fades out over its rim (60 m, or half its radius if that is less), so walking from one into the next the sky changes gradually. Regions may overlap: smaller regions lie over bigger ones, so a cold peak can sit inside a wet valley.

GMs place them in game; see GM tools.

RegionWhereClimate
Anyxa's Caldera850 m round spawn (0, 0): the caldera floor to the foot of the rim's hillstemperate, morning mist

How it works​

The game server keeps every region's weather (Weather.cs) and sends the whole table to each client in one ReceiveWeather message: at login, and again only when some region's weather changes or a region is added or removed. It never rides the per-tick state packet. The client (scripts/Weather.gd) works out the blend where the camera stands every frame from that table, so crossing a border sends nothing. Both sides use the same region and snow line rules; the server needs them to know which beds the rain falls on.

The wind​

  • Same numbers, same answer. The wind is worked out the same way on both sides from the same numbers: Weather.CellWind/WindAt on the server, wind_at in Weather.gd on the client. Its constants are pinned in rpc_contract.json.
  • What ReceiveWeather adds. Each cell's heading (wind_from, wind_to, blended like the weather) and a wind_phase that sets its gusts apart, plus the server's wall clock (clock). The client keeps its own copy of that clock, so the gusts line up without any per-tick traffic.
  • Check: scripts/check_weather.py --wind-only compares the server's @weather answer with the client's wind_at at the same moment.