Globals — Server Economy Settings Guide
Complete guide to globals.xml server economy settings — AI & spawn limits, cleanup, loot control, respawn, player timers, and the item condition scale with a working example.
Overview
globals.xml controls the server-wide economy and spawn settings. These variables are located in DB > globals.xml and govern everything from animal and zombie caps to loot respawn, cleanup, and food decay.
Part 1 — AI & Spawn / Cleanup / Flags / Food
AI & Spawn Limits
AnimalMaxCount— Max number of animals across the mapZombieMaxCount— Max number of infected across all zonesZoneSpawnDist— Distance required to trigger infected spawns
Cleanup Settings
CleanupAvoidance— Distance a player must be from an item for it to despawnCleanupLifetimeDeadAnimal— Lifetime of dead animalsCleanupLifetimeDeadInfected— Lifetime of dead zombiesCleanupLifetimeDeadPlayer— Lifetime of dead playersCleanupLifetimeDefault— Lifetime for dead entities without custom settingsCleanupLifetimeRuined— Lifetime of ruined itemsCleanupLifetimeLimit— Max items deleted per cleanup cycle
Flag Settings
FlagRefreshFrequency— How often item lifetime refreshesFlagRefreshMaxDuration— How long flags keep refreshing items
Food & World Settings
FoodDecay— Enables/disables food decay (requiresWorldWetTempUpdate = 1)WorldWetTempUpdate— Controls wetness & temperature system
Part 2 — Loot Control / Damage / Respawn / Player Timers
Loot Control
InitialSpawn— Amount of loot spawned on first startRestartSpawn— Loot respawned on server restartSpawnInitial— Number of attempts for initial item spawnLootSpawnAvoidance— Distance from players required for loot spawnLootProxyPlacement— Allows containers to receive loot
Loot Damage Settings
LootDamageMin— Minimum damage on spawnLootDamageMax— Maximum damage on spawn
Set both to
0.0to force all loot to spawn pristine.
Respawn Settings
RespawnAttempt— Attempts per item respawnRespawnLimit— Max of one item type spawning at onceRespawnTypes— Number of item types spawning at once
Player Timers
TimeLogin— Login timerTimeLogout— Logout timerTimePenalty— Penalty for active sessionTimeHopping— Penalty for server hopping
Item Condition Scale
| Condition | Value Range | |---|---| | Pristine | 0.00 – 0.29 | | Worn | 0.30 – 0.59 | | Damaged | 0.60 – 0.79 | | Badly Damaged | 0.80 – 0.99 | | Ruined | 1.00 |
Example (globals.xml)
<var name="AnimalMaxCount" type="0" value="200"/>
<var name="ZombieMaxCount" type="0" value="1000"/>
<var name="ZoneSpawnDist" type="0" value="300"/>
<var name="InitialSpawn" type="0" value="100"/>
<var name="RestartSpawn" type="0" value="50"/>
<var name="LootDamageMin" type="1" value="0.0"/>
<var name="LootDamageMax" type="1" value="0.0"/>
<var name="RespawnAttempt" type="0" value="2"/>
<var name="RespawnLimit" type="0" value="10"/>
<var name="RespawnTypes" type="0" value="5"/>
<var name="TimeLogin" type="0" value="15"/>
<var name="TimeLogout" type="0" value="15"/>
<var name="TimeHopping" type="0" value="30"/>
Need help tuning your economy? Open a ticket — we've got you.
0 Comments
You need to be logged in to comment
No comments yet. Be the first to comment!
