Step-by-step guide · 8 steps

How to change the weather on a DayZ server

Endless rain and fog are some of the most common complaints on DayZ servers. The weather is controlled by cfgweather.xml, but many servers ship with that file switched off, so changes seem to do nothing.

  • 3 min read
  • Updated
  • PlayStation, Xbox and PC
cfgweather.xmlExample
<weather reset="0" enable="1">    <rain>        <thresholds min="0.9" max="1.0" end="60"/>    </rain></weather>
Step 1

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.

Step 2

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
Step 3

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.

Step 4

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.

Step 5

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
Step 7

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.

Step 8

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.

Tools for this

Common questions

How do I turn off rain on my DayZ server?

Make sure cfgweather.xml has enable="1", then raise the rain threshold so the sky never gets cloudy enough to rain. Restart.

Why doesn't my weather change work?

The file is probably switched off (enable="0"). Turn it on and restart.

Can I have snow on Chernarus?

Yes. Allow snow in cfgweather.xml. Sakhal has snow by default.

How do I get rid of fog in DayZ?

Lower fog's maximum in cfgweather.xml, with the file enabled, and restart.

Does weather change work on PS5 and Xbox?

Yes. cfgweather.xml is part of every DayZ mission, so it works on console servers without mods.

Can I make it rain more often?

Yes. Lower the rain threshold, so rain starts at a lower overcast level, and let overcast reach higher values.

Can I keep the weather the same all the time?

Close to it. Set a narrow range for overcast, rain and fog, so the sky can only move a little, and the weather stays roughly the same through the day.

Does weather affect players?

Yes. Rain makes players wet and cold, so heavy weather makes clothing, shelter and fires more important.

Run your DayZ server from one place

Free editors for every config file, plus a live dashboard and Discord feeds when you're ready.