Switch the file on
Open cfgweather.xml in your mission folder. The weather line at the top has enable. If it's 0, the server ignores the file. Set it to 1.
Set each kind of weather
The file has a section for each:
- Overcast: how cloudy it gets, which also controls when rain can start
- Rain and snow: thresholds that say how cloudy it must be before they start
- Fog: how thick it gets and how fast it changes
- Wind and storms: wind strength and lightning
Make clear skies or proper storms
For no rain, raise the rain threshold above the most overcast your sky ever gets. For less fog, lower fog's maximum. For a winter server, allow snow.
Upload and restart
Check the file with the XML validator, upload it and restart. If reset is 1, the weather starts fresh after each restart.
Why changes seem to do nothing
The most common reasons, in order:
- enable is 0 at the top of
cfgweather.xml, so the file is ignored - The server hasn't been restarted since the upload
- reset is 0 and the old weather was saved, so it carries on until it changes naturally
- The thresholds still allow the weather you were trying to remove
Popular weather setups
What owners tend to go for:
- Mostly clear: little fog, rain only when it's very overcast, good for PvE and new players
- Moody: regular overcast and light rain, keeps the classic DayZ feel
- Stormy: frequent heavy rain, wind and lightning, for hardcore servers
- Winter: snow allowed and colder conditions, which pairs well with Sakhal
Weather and the day and night cycle
Weather changes over in-game time, so a server with fast time acceleration sees weather move faster too. If your days are short, slow the weather changes down a little so it doesn't flick between sun and storms. The day and night cycle guide explains time acceleration.
Test before you settle
Weather takes a while to change, so judge a new setup over a few hours rather than straight after a restart. If it isn't right, change one kind of weather at a time. Moving the overcast, rain and fog values all at once makes it hard to tell which one did what.