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.

KeyRangeMeaning
loot_refresh_minutes0..525600Minutes between loot refreshes of a map; 0 never refreshes after the first fill.
loot_spawn_radius1..1000Metres around a player in which loot sources are filled.
loot_refresh_safe_distance0..1000A source is not refilled while a player is closer than this.
ai_max0..64Hostile AI cap of the map (the director only caps; it never tops up to a minimum).
nomad_pool_min, nomad_pool_max0..64Range the Nomad pool of the map is re-rolled in.
nomad_active_min, nomad_active_max0..64Range of roaming Nomads alive at once.
ai_respawn_seconds0..86400Delay after a kill before the slot respawns; 0 for none.
ai_spawn_radius1..5000Maximum distance from a player at which AI spawns (raised to min distance + 1 if smaller).
ai_spawn_min_distance0..5000Minimum distance from a player.
ai_spawn_interval_seconds0.5..3600Time 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.