Get started

Free trial Try any game free for 3 days. No card needed. Start a free trial Start a free trial

Game servers

All games

Guides / DayZ / Config

DayZ globals.xml: zombie, animal and cleanup values

globals.xml holds DayZ's economy limits: ZombieMaxCount, AnimalMaxCount, cleanup timers, login and logout times, flag refresh. The main values explained.

Updated , checked on DayZ 1.29

globals.xml holds the global limits of DayZ’s economy. It sets how many infected and animals can exist, how long dead things stay, and how long a player’s character lingers after logging out. Each setting is one line.

The file is db/globals.xml inside your map’s folder in mpmissions. For Chernarus: mpmissions/dayzOffline.chernarusplus/db/globals.xml. The Config Editor does not edit it. Use Files. More about the game: DayZ servers.

The format

<var name="ZombieMaxCount" type="0" value="1000"/>

name is the setting. value is what you change. type says what kind of number it is: 0 whole number, 1 decimal, 2 text. Do not change type. Bohemia says types of existing variables should never be modified.

The main values

These are the values in Bohemia’s Chernarus mission, with Bohemia’s descriptions.

SettingValueWhat it does
ZombieMaxCount1000Most infected that can exist across the whole map.
AnimalMaxCount200Most animals (not ambient ones) across the whole map.
ZoneSpawnDist300Distance in metres at which infected spawn in a nearby zone.
TimeLogin15Default login time in seconds. Maximum 65536.
TimeLogout15Default logout time in seconds. Maximum 65536.
TimePenalty20Extra seconds for a player who is still in a play session.
TimeHopping60Penalty seconds for server hoppers.
CleanupAvoidance100Metres a player must be away from an item before it can be deleted.
CleanupLifetimeDeadPlayer3600Seconds a dead player’s body stays.
CleanupLifetimeDeadAnimal1200Seconds a dead animal stays.
CleanupLifetimeDeadInfected330Seconds a dead infected stays.
CleanupLifetimeRuined330Seconds ruined loot stays.
CleanupLifetimeDefault45Seconds for things with no setup of their own that are dead (damage 1.0 or more).
CleanupLifetimeLimit50How many items can be deleted at once in a normal cleanup.
FlagRefreshFrequency432000Seconds between refreshes of item lifetimes near a territory flag. That is 5 days.
FlagRefreshMaxDuration3456000Seconds a flag keeps refreshing items. That is 40 days.
InitialSpawn100Percent of loot spawned at the first start with no storage.
RestartSpawn0Percent of loot respawned at each restart, up to nominal.
IdleModeCountdown60Seconds after the server empties before the economy goes idle.
FoodDecay11 lets food decay. Needs WorldWetTempUpdate set to 1.

Other lines in the file, such as RespawnLimit, RespawnTypes and LootSpawnAvoidance, control how loot respawns. See loot respawn and cleanup.

Change a value

  1. Stop the server.
  2. In Files, open mpmissions/<your map>/db/globals.xml.
  3. Open globals.xml (1) and change the number in value="...". For example, to cap infected at 600, set ZombieMaxCount to 600.
  4. Choose Save File, then start the server.
The db folder in Files, with globals.xml listed between events.xml and types.xml
  1. Open globals.xml

Bohemia does not say that a new value needs any step beyond a restart, but check in game after it starts.

By hand, without editing the original

Bohemia lets a mission add a replacement file. In cfgeconomycore.xml, add a ce folder with <file name="my_globals.xml" type="globals" />. A replacement must define every attribute of a variable it changes.

If it does not work

  • The server fails to start. The XML has a typo. Compare your line with the ones above: every line ends in />.
  • Nothing changes in the game. You may have edited another map’s folder. The Map (mission) row in the Config Editor shows which mission loads.
  • Players log out and their character stays too long. That is TimeLogout. It is the default logout time in seconds.

Sources: Bohemia wiki: Central Economy Configuration, Bohemia wiki: Central Economy setup for custom terrains, Bohemia wiki: Central Economy mission files modding, github.com: DayZ Central Economy

DayZ serversAll DayZ guides