Wiki Navigation

Configuration File
XML Format

Globals.xml Configuration

Server-wide settings controlling cleanup timers, spawn rates, entity limits, and core gameplay mechanics that affect the entire DayZ server experience.

Overview

The globals.xml file contains server-wide variables that control fundamental aspects of your server. This includes entity limits for zombies and animals, cleanup timers for corpses and ruined items, loot spawn settings, and player timing for login/logout sequences.

File Structure

Each <var> element defines a global variable with a name, type (0=integer, 1=float), and value.

<variables>
    <var name="AnimalMaxCount" type="0" value="200"/>
    <var name="ZombieMaxCount" type="0" value="1000"/>
    <var name="CleanupLifetimeDeadPlayer" type="0" value="3600"/>
    <var name="LootDamageMax" type="1" value="0.82"/>
    <var name="TimeLogin" type="0" value="15"/>
</variables>

Entity Limits

AnimalMaxCount integer

Maximum number of animals that can exist on the server simultaneously. Higher values increase hunting opportunities but impact server performance. Default: 200.

ZombieMaxCount integer

Maximum number of infected that can spawn across the entire server. This is a hard cap - the server will not spawn more regardless of player count. Default: 1000.

ZoneSpawnDist integer

Distance in meters between spawn zones. Controls how spread out spawn points are across the map. Lower values create denser spawn areas. Default: 300.

Cleanup Timers

CleanupLifetimeDeadPlayer integer

Time in seconds before dead player bodies are removed from the world. Default 3600 (1 hour) gives players time to recover gear. Shorter times reduce server load.

CleanupLifetimeDeadInfected integer

Time in seconds before zombie corpses despawn. Default 330 (5.5 min). Lower values keep areas cleaner but may feel less immersive.

CleanupLifetimeDeadAnimal integer

Time in seconds before animal carcasses are removed. Default 1200 (20 min) allows time for skinning and meat collection.

CleanupLifetimeRuined integer

Time in seconds before ruined items are cleaned up. Default 330. Ruined items serve no purpose, so shorter times help server performance.

Loot Settings

LootDamageMin / Max float

Range of damage values (0.0-1.0) for spawned loot. Items spawn with random damage between these values. Default: 0.0 min, 0.82 max. Set both to 0 for pristine loot only.

LootSpawnAvoidance integer

Distance in meters to avoid spawning loot near players. Prevents items from appearing directly in front of players. Default: 100.

LootProxyPlacement boolean

Enables (1) or disables (0) the loot proxy placement system. When enabled, items spawn at designated proxy positions within buildings for more realistic placement.

Time Settings

TimeLogin integer

Time in seconds for the login countdown. Players must wait this duration before spawning in. Default: 15. Prevents instant combat logging abuse.

TimeLogout integer

Time in seconds for the logout countdown. Players must wait this duration before disconnecting safely. Default: 15. Prevents combat logging.

TimeHopping integer

Cooldown in seconds between server hops. Prevents players from rapidly switching servers to farm loot or escape danger. Default: 60.

TimePenalty integer

Additional time penalty in seconds applied for various infractions like disconnecting during combat. Default: 20.

Other Settings

FoodDecay boolean

Enables (1) or disables (0) food decay mechanics. When enabled, food items will spoil over time, adding survival challenge.

CleanupAvoidance integer

Distance in meters to avoid cleanup when players are nearby. Prevents items from despawning while players are interacting with them. Default: 100.

SpawnInitial integer

Initial spawn delay in seconds after server start before the economy begins spawning items. Default: 1200 (20 min). Allows server to stabilize.

IdleModeStartup boolean

Start server in idle mode (1) or active mode (0). Idle mode reduces resource usage when no players are connected.

IdleModeCountdown integer

Time in seconds before server enters idle mode after last player disconnects. Default: 60.

WorldWetTempUpdate boolean

Enables (1) or disables (0) world wetness and temperature updates. Affects how weather impacts the environment.

Best Practices

Recommended

  • Scale ZombieMaxCount and AnimalMaxCount based on your server's hardware capabilities
  • Keep CleanupLifetimeDeadPlayer high enough for players to recover their gear
  • Use TimeLogin and TimeLogout values of at least 15 seconds to prevent combat logging

Avoid

  • Setting entity counts too high which can cause server lag and crashes
  • Using 0 for login/logout times which enables combat logging exploits
  • Setting cleanup times too low which can despawn items players are trying to loot

Pro Tips

The type attribute determines the value format: type="0" for integers, type="1" for floats. Monitor your server's performance after adjusting entity limits - high ZombieMaxCount values are the most common cause of server lag. For PvP-focused servers, consider increasing TimeLogout to 30+ seconds to further discourage combat logging.