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
| Climate | What it is like |
|---|---|
| Temperate | Mostly clear or cloudy; rain about every 2.7 game days, wet about 3.5% of the time. Fog in the mornings. |
| Wet | Cloud most days, rain or storm about twice a game day, wet 30% of the time. |
| Dry | Clear; rain about every 11 game days. |
| Cold | As 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:
@weathertells 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.
| Region | Where | Climate |
|---|---|---|
| Anyxa's Caldera | 850 m round spawn (0, 0): the caldera floor to the foot of the rim's hills | temperate, 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/WindAton the server,wind_atinWeather.gdon the client. Its constants are pinned inrpc_contract.json. - What
ReceiveWeatheradds. Each cell's heading (wind_from,wind_to, blended like the weather) and awind_phasethat 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-onlycompares the server's@weatheranswer with the client'swind_atat the same moment.