Repository navigation
Calibration
Every threshold in an anticheat ships as a guess about somebody else's server. A server of 1x1 tunnel miners and a server of open-pit miners do not produce the same camera movement, and a threshold taken from the wrong one is how a real player gets flagged.
Calibration is the answer to that. It watches your own players and tells you what they actually look like.
/xwarden calibrate start 1d # measure for a day
/xwarden calibrate # see what it has found so far
/xwarden calibrate apply # write the suggestions into warden.yml and reload
/xwarden calibrate stop # abandon the run, change nothing
Start it, let people mine normally, and check back. A day is a good first run; an evening on a busy server is usually enough.
status prints one line per baseline:
Calibration: 34 players so far, 6h 12m to go.
timing-variation: 0.25 -> 0.31 (4,180 readings) worth changing
camera-degrees: 2 -> 3.4 (4,180 readings) worth changing
session-minutes: 60 -> 74 (4,180 readings) close enough
apply writes those values into warden.yml and reloads. It touches only the baseline keys —
everything else in the file, including the comments explaining what each one is for, is left exactly
as you have it.
It reads the raw measurement, never the score. A score is already relative to the baseline being calibrated, so calibrating from scores would be circular.
It leaves out anyone exempt. A bypass is usually held by staff and build accounts, whose mining is not what an ordinary player looks like.
It leaves out anyone already scoring above the threshold. Teaching a baseline from the players it exists to catch would widen it until it caught nobody.
It refuses to answer on thin data. Until calibration.min-players different people have
contributed at least calibration.min-samples readings each, status says so and suggests nothing.
A baseline taken from three players is the same guess you started with.
It never applies anything on its own. A person reads the numbers and decides.
| Key | What it measures | Reads as |
|---|---|---|
timing-variation |
how much the gap between breaks wanders | a floor — ordinary players are above it |
timing-spread |
how much of a natural rhythm the gaps cover | a floor |
camera-degrees |
degrees of camera movement per break | a floor |
camera-variety |
how much the turns differ from each other | a floor |
session-minutes |
unbroken mining with no incidental input | a ceiling — the long end is the machine-like end |
movement-blocks |
movement between breaks below which a player counts as still | a floor |
A player at or beyond a floor contributes nothing to their score on that signal. The closer to zero they are, the more machine-like they read.
Calibration puts each floor near the bottom of what your players produce, and the session ceiling near the top, so the great majority of your players contribute nothing to their own score and only genuine outliers begin to register.
- After a big change to mining speed — a new enchant tier, a prestige rework, a mine layout change.
- After adding a new world or mine type that plays differently.
- If a check starts producing findings you keep dismissing.
You are not stuck with what it suggests. Every baseline is an ordinary key in warden.yml and you can
set it by hand at any time — a value you set yourself always wins.