Explainer

DayZ globals.xml explained

globals.xml holds the server-wide numbers for DayZ's Central Economy. It decides how many infected and animals roam the map, what condition loot spawns in, how long bodies and dropped items last, how long players wait to log out, and how often territory flags need raising. It's short, it works on every platform, and small changes here change how the whole server feels.

  • 4 min read
  • Updated
  • PlayStation, Xbox and PC
db/globals.xmlExample
<variables>    <var name="ZombieMaxCount" type="0" value="1000"/>    <var name="LootDamageMax" type="1" value="0.82"/>    <var name="CleanupLifetimeDeadPlayer" type="0" value="3600"/>    <var name="TimeLogout" type="0" value="15"/>    <var name="FlagRefreshFrequency" type="0" value="432000"/></variables>

Where it is and how it's written

globals.xml is in your mission's db folder, next to types.xml and events.xml. Each setting is one line: a var with a name, a type and a value. Type 0 is a whole number and type 1 is a decimal. Times are in seconds unless stated otherwise.

Infected and animals

These set how alive the map feels. More infected is harder and busier, but each one costs server performance.

  • ZombieMaxCount: the most infected alive at once across the map. Vanilla is 1000.
  • AnimalMaxCount: the most animals alive at once. Vanilla is 200.
  • ZoneSpawnDist: how close a player must be before infected in an area spawn. Vanilla is 300 metres.

Loot condition and placement

These shape loot without touching types.xml.

  • LootDamageMin and LootDamageMax: the best and worst condition loot spawns in, from 0 (pristine) to 1 (ruined). Vanilla is 0 to 0.82.
  • LootProxyPlacement: 1 puts loot on shelves and tables, 0 on the floor only.
  • LootSpawnAvoidance: loot won't respawn within this many metres of a player. Vanilla is 100.
  • FoodDecay: 0 stops food rotting.

How long things stay

The cleanup values decide how long things lie in the world once they're dropped, dead or ruined. CleanupLifetimeDeadPlayer is a body and its gear (3600 seconds, one hour, in vanilla). CleanupLifetimeDeadInfected (330) and CleanupLifetimeDeadAnimal (1200) cover infected and carcasses, CleanupLifetimeRuined (330) covers ruined items, and CleanupLifetimeDefault (45) covers anything else without its own value.

CleanupAvoidance stops cleanup within this many metres of a player, so items don't vanish in front of someone, and CleanupLifetimeLimit sets how many items are tidied at once.

Logging in and out

TimeLogout is how long a player stays in the world after pressing log out (vanilla 15 seconds). Longer stops people escaping fights by logging off. TimeLogin is the wait before appearing when joining. TimeHopping and TimePenalty punish server hopping: a player who joins within TimeHopping seconds of leaving another server waits TimePenalty seconds longer. See logout timer settings.

Territory flags and base decay

FlagRefreshFrequency is how often a territory flag needs raising to keep the base around it from decaying. Vanilla is 432000 seconds, five days. FlagRefreshMaxDuration is the longest a fully raised flag protects a base, vanilla 3456000 seconds, 40 days.

Keep the maximum longer than the refresh time, or bases decay even when players raise their flags. Raise both for a casual server where people take breaks.

Advanced economy values

The rest tune the economy's internals: InitialSpawn and SpawnInitial for the first fill of the map, RestartSpawn for respawning loot on restart, RespawnAttempt, RespawnLimit and RespawnTypes for how much respawns per pass, the idle mode values, and WorldWetTempUpdate for item wetness and temperature. Most servers never touch these. If you do, change one at a time and watch server performance.

Sensible values by server style

Starting points that suit common server types. Change a couple, play for a few days, then adjust.

  • Casual PvE: fewer infected (around 700), loot condition up to 0.6, bodies for two hours, flags refreshed every 10 days
  • PvP: bodies for 30 minutes, a 30 second logout timer, and longer server hop penalties
  • Hardcore: more infected (1,500 or so), loot that spawns worn and damaged, a 30 second logout timer
  • Busy 60 player server: keep infected and animal counts at vanilla or lower to protect performance

Change it safely

Download the original first, keep each line's type as it is, and restart after uploading. A value outside what DayZ expects is ignored or causes odd behaviour rather than a clear error, so sense-check numbers before you save.

Tools for this

Common questions

How do I make bodies last longer in DayZ?

Raise CleanupLifetimeDeadPlayer in globals.xml. It's in seconds, so 7200 keeps a body for two hours.

How do I stop food rotting?

Set FoodDecay to 0 in globals.xml and restart.

How long does a territory flag protect a base?

In vanilla, a flag needs raising every five days (FlagRefreshFrequency) and protects for up to 40 days when fully raised (FlagRefreshMaxDuration).

How do I stop players logging out mid-fight?

Raise TimeLogout in globals.xml, for example to 30 seconds. They stay in the world that long after pressing log out.

Will fewer infected improve server performance?

Usually a little. Infected and animals are some of the busiest things the server tracks, so lowering ZombieMaxCount helps on a crowded server.

Does globals.xml work on PS5 and Xbox?

Yes. It's part of the mission files on every platform.

Run your DayZ server from one place

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