Skip to content

Console, shifts & watchlist ​

The running of a venue: the control-room screen, the clock-in with wages, and the bans and BOLOs that gates check on every pass.

Security console ​

Open it with /securityconsole (Config.Console.command) or the remappable key (Config.Console.key, unbound by default), or with the Open console option on a gate or pole (np_menu). The caller must be an operator of a venue and inside its area, or next to one of its scanners. OpenConsole() is also a client export.

Console

Part Shows
Posts Every scanner of the venue with its live state (idle, clear, alarm, offline and the reason, such as hacked) and whether it is enabled
Today Screened, alarms, alarm rate, seized weapons, declared weapons and the average waiting time of the day. Counters are kept per venue and day and saved to scanner_kv
X-ray belt The bags of the venue's belts, see X-ray belt
Rules Random secondary screening (1 in N, 0 = off), silent alarm and chime
Live log The newest Config.Console.logLimit (40) rows with names (never identifiers). New rows arrive as they happen. Kinds in hiddenKinds (tray_move, log_export, shift_pay, scan) are left out
Lockers and evidence Lockers in use against lockerCapacity, and the number of open cases
Shift Whether you are clocked in, and how many operators of the venue are online
  • Managers only. Changing the rules needs np_metal-scanner.configure or an operator job of the venue at grade Config.Console.managerGrade (2) or above. The change is logged (configured) and the venue's other consoles refresh. The same people may set permanent bans.
  • Export. Export log returns up to exportLimit (200) rows of the venue's log and writes a log_export entry.
  • Refresh. Open consoles are refreshed at most once a second. A viewer who leaves the venue or loses the operator role is closed.

Calibration ​

Each gate or pole shows its drift. Calibrate sends staff to the gate: within 3 m they walk a test piece through for duration (8 s). The server checks that the time really passed, resets the drift to 0, stores the time and logs calibrated. See Gates & poles.

Shifts ​

Operators clock in at a post (any scanner of the venue) and are paid per interval plus a bonus per screened visitor.

  1. Clock in. Walk up to a post (Config.Shifts.distance, 4 m). The prompt sits just to the right of the post (promptOffset). The player must be in a job of the venue's operatorJobs (or hold override), the post must be enabled and the venue open. With setDuty (default) clocking in also sets the framework duty flag.
  2. Present. Pay only accrues while the operator is within leaveDistance (80 m) of the post, has an operator job and is on duty. Away longer than leaveGrace (120 s) ends the shift.
  3. Pay. Every payInterval (900 s) of presence adds pay ($150). Every visitor screened at the post adds perVisitor ($3) with the next interval. Presence and pay are checked every tickSeconds (30 s) and paid out as soon as something is due.
  4. Clock out. Manually, or the shift ends by itself after maxHours (10). The unfinished interval is paid pro rata (payPartial) when it is at least minPartial (120 s) long.

Wages come from the security society account through np_banking (Config.Shifts.society), into the guard's checking account. Without np_banking the framework account Config.Shifts.account (bank) is credited, and without an economy (standalone) nothing is paid. A balance that cannot be paid because the player is offline is paid at the next login.

Required clock-in. With Config.Shifts.required = true the jobs in Config.Shifts.jobs count as on duty only while clocked in, on top of the framework duty flag. Police and other jobs keep their own duty. The clock-in then is the duty: it does not depend on the framework flag.

Events shiftStarted and shiftEnded, log kinds shift_started, shift_ended and shift_pay. A server restart ends attendance; unpaid balances stay claimable by the same character. The app lists the last 20 shifts, see Checkpoint app.

Watchlist ​

Per-venue bans and BOLOs (be on the lookout). Every gate pass checks the visitor against the list of that venue.

  • A match is quiet. The venue's operators get a warning toast with the name and the reason; the visitor is never told. The event watchlistMatch fires and a watchlist log entry is written. The same person at the same venue is reported again only after matchCooldown (120 s).
  • Adding. Operators of the venue add an entry from a case in the Checkpoint app (Ban from venue, 7 days), or through the watchlist.add RPC (target or identifier, reason, kind, days) from your own front end. defaultDays is 7; operators may set up to maxDays (365). The Checkpoint app lists and removes entries. 0 days is permanent and needs a manager (configure or the manager grade). Removing a permanent ban needs a manager too.
  • Expiry. An entry with a length stops matching when it runs out. The list shows the newest listLimit (100) rows.
  • Marks. With np_tattoos the watchlist rows in the phone carry the person's distinguishing marks.

The watchlist module exposes no export; other resources can react to the watchlistMatch event.