Skip to content

Configuration ​

Three files in config/, all loaded on both sides and kept out of escrow. Each fills in only the keys you did not set, so you can override single values. The comments in the files are in German.

File Contents
config/field.lua Config.Field: parts, tents, limits, AED posts, texts
config/labels.lua Config.Labels: built-in labels, colour bands, icons, word filter
config/templates.lua Config.Templates: limits, build pace, storage

Config.Field ​

Key Default Meaning
enabled true false: no /feld, no AED posts
command "feld" /feld <part>; without an argument it opens the Feldlager tablet
feature "medic.deploy" np_jobs feature to place and pack parts, deploy templates and change a tent's label
planFeature "medic.fieldplan" np_jobs feature to design labels and templates
maxPerPlayer 32 Parts a player has standing (a tent and the parts from a template count)
maxTotal 160 Parts on the whole server
rangeM 8.0 How far from the player a part may be placed
heightM 3.0 How far above or below the player a part may be placed
minGapM 0.4 Two parts of the same type cannot stand closer than this (stacking)
cooldownMs 750 Between two requests of one player
clearOnDrop true A player's parts disappear when they leave the server
clearOnDutyOff true ... or when they lose medic.deploy (off duty), checked every dutyCheckS
dutyCheckS 30 Interval of that check
aedItem "medic_aed" Item an AED post hands out
aedRestockS 1800 An empty post gets a new AED after this many seconds; 0 = only returning one refills it. Every restock puts one more item into circulation, so do not make it too short

Parts: Config.Field.items ​

The key is the /feld argument. Each part has:

Field Meaning
label Name in messages and the tablet
models Candidate models: the custom model first, then base-game fallbacks. The client uses the first one the game knows and sends only its index; the server takes the model from this list
max At most this many per player (on top of maxPerPlayer)
item Optional: this item must be in the inventory (it is not consumed)
spawnDistance np_prophandler streams the part from this distance (default 80)
packDistance Range of the "Abbauen" interaction (default 2.5)
collision false: players walk through it (the triage tarps)
aedSite true: the part is an AED post, like the fixed sites
tent true: a tent (its shape comes from Config.Field.tents)
maxSlope Steepest ground the placement preview allows, in degrees (default 25)

The shipped parts are listed on Field equipment.

Tent shapes: Config.Field.tents ​

Keyed by model, in metres in the tent's frame (x across, +y towards the door, z up, origin = floor centre). A tent placed with a fallback model that has no entry here has no label, no door and no interior.

Field Meaning
sign The sign above the door: centre x, y, z, width w, height h; the label is drawn ahead metres in front of it
interior Box (minX … maxZ) in which another part belongs to the tent (templates, packing)
leaves Door leaves: model and hinge pose x, y, z, h (the leaf's origin is the bottom of its hinge axis)
door label and interaction distance of the door in np_doors / np_prophandler

Shipped: np_med_tent (sign and interior) and np_med_tent_door (sign, interior, two np_med_tent_door_leaf leaves at x ±0.965, y 3.58, and the door "Zelttür", distance 2.0). See Tents & doors.

AED posts ​

Key Default Meaning
aedModels { "np_med_aed_post" } Models for fixed AED sites
aedSites {} Fixed posts placed by the server owner
lua
Config.Field.aedSites = {
  { id = "pillbox", coords = vector3(300.1, -585.2, 43.3), heading = 70.0, routingBucket = 0 },
}

id (letters, digits, _, -) stays the same across restarts.

Texts ​

Config.Field.texts holds every player message in German: prompts (usage, placing, placed, packed), the interaction labels (pack "Abbauen", relabel "Schild wechseln", aedTake, aedReturn), template and label messages, and refused, one text per reason code (no_handler, no_medic, no_feature, no_plan, limit_player, too_far, stacked, cooldown, aed_empty, ...). Translate them here.

Config.Labels ​

Key Default Meaning
maxTitle 18 Characters in a title (UTF-8)
maxSubtitle 44 Characters in a subtitle
maxPerFaction 24 Own labels per faction
drawDistance 60.0 The client draws labels up to this distance (m)
atlasSlots 16 Different labels nearby at the same time (1 to 16)
default "sanitaet" Label of a new tent (a key of builtin)
accents 8 entries Colour bands: { label, colors = { "#rrggbb", ... }, hazard? }. Several colours are drawn as equal fields side by side; hazard = true draws warning stripes
icons 14 entries Font Awesome 6 Free Solid icons: ["name"] = { label, code = 0xf0f9 } (name without fa-, the Unicode code point)
blocked {} Blocked words (lower case; compared without spaces, dots or umlauts)
builtin 6 entries Labels every faction can use: key = { title, subtitle, accent, icon? }

Shipped accents: olive, triage (red, yellow, green, grey fields), teal, orange, white, blue, red, hazard. Shipped built-in labels: sanitaet (SANITÄTSZELT), triage (TRIAGE), op (OP), intensiv (INTENSIV), leitung (EINSATZLEITUNG), isolation (ISOLATION). See Labels.

Config.Templates ​

Key Default Meaning
maxPerFaction 12 Templates per faction
maxItems 24 Parts per template (not counting the tent)
maxName 32 Characters in a template name
buildIntervalMs 900 Time per part while a template builds up
deployCooldownS 20 Between two template deploys of one player
store "kvp" "kvp" (resource KVP, no database) or "oxmysql" (table from sql/install.sql, see Installation)
door { locked = true, minGrade = 0 } Door settings of a template when none are stored: locked, the faction from grade 0

See Templates.