Docs/JSON
Global settings
Configure server-wide gameplay limits and rules with globals.json.
API version 1Lua 5.1Updated 2026-11-07
Per-map loot refresh, AI caps and Nomad counts. Applies live: /scenario reload rewrites the rules of every loaded map between ticks.
{
"defaults": {
"loot_refresh_minutes": 30,
"loot_spawn_radius": 80,
"loot_refresh_safe_distance": 15,
"ai_max": 0,
"nomad_pool_min": 0,
"nomad_pool_max": 0,
"nomad_active_min": 0,
"nomad_active_max": 0,
"ai_respawn_seconds": 60,
"ai_spawn_radius": 250,
"ai_spawn_min_distance": 60,
"ai_spawn_interval_seconds": 4
},
"maps": {
"Village": {
"ai_max": 3,
"nomad_pool_min": 0,
"nomad_pool_max": 5,
"nomad_active_min": 1,
"nomad_active_max": 3
}
}
}
maps.<Map> may set any subset of the keys; everything else comes from defaults. Map names are exact (Village, Highway, ...) and must be in scenario.json maps. Layering: defaults and each map merge key by key; null removes an inherited map entry.
| Key | Range | Meaning |
|---|---|---|
loot_refresh_minutes | 0..525600 | Minutes between loot refreshes of a map; 0 never refreshes after the first fill. |
loot_spawn_radius | 1..1000 | Metres around a player in which loot sources are filled. |
loot_refresh_safe_distance | 0..1000 | A source is not refilled while a player is closer than this. |
ai_max | 0..64 | Hostile AI cap of the map (the director only caps; it never tops up to a minimum). |
nomad_pool_min, nomad_pool_max | 0..64 | Range the Nomad pool of the map is re-rolled in. |
nomad_active_min, nomad_active_max | 0..64 | Range of roaming Nomads alive at once. |
ai_respawn_seconds | 0..86400 | Delay after a kill before the slot respawns; 0 for none. |
ai_spawn_radius | 1..5000 | Maximum distance from a player at which AI spawns (raised to min distance + 1 if smaller). |
ai_spawn_min_distance | 0..5000 | Minimum distance from a player. |
ai_spawn_interval_seconds | 0.5..3600 | Time between spawn attempts. |
Maximums are not allowed below minimums (they are raised), and hideouts always have no AI and no Nomads. AI timing details that are not per map are in ai.md.
Found a mistake or missing detail? Tell us in the Discord.
rtv-mp