Skip to main content
Glama

dayz-agentic-modding-mcp

Ein MCP-Server, der es einem Agenten ermöglicht, einen DayZ-Mod zu bauen, zu prüfen, dass der Client kompiliert, einen Testserver zu starten und ein strukturiertes Urteil statt eines Logs zu erhalten.

Der Server erledigt die Arbeit selbst: Er ruft FileBank, das Signierungswerkzeug und die Diagnose-Executable direkt auf. Ein Projekt benötigt kein eigenes Build-Skript.

Warum ein Profil

Der Server weiß nichts über einen bestimmten Mod. Alles Spezifische lebt in einem zweiteiligen Profil:

  • dayz-mcp.toml — portabel, im Mod-Repository eingecheckt: welche Mods gepackt werden sollen, wie ein gesunder Boot aussieht.

  • dayz-mcp.local.toml — maschinenspezifisch, niemals eingecheckt: wo das Spiel, die Werkzeuge und der Teststand leben.

Das Mischen der Hälften wird beim Laden abgelehnt: So hört ein Repository auf, auf der Maschine eines anderen zu bauen. Beginnen Sie mit dayz-mcp.example.toml.

Ein Mod wird einmal deklariert, per Name: Quellen standardmäßig in <root>/Name, Ausgabe @Name/addons/Name.pbo. build.sources kann die Quelle eines Mods woandershin umleiten (z. B. "." für einen Mod, dessen config.cpp direkt im Repository-Root liegt).

Die portable Hälfte — dayz-mcp.toml

Key

Bedeutung

project.name

wie dieses Projekt genannt werden soll

build.mods

ein Eintrag pro Mod, per Name; Quelle, PBO und @folder folgen daraus

build.sources

wo die Quelle eines Mods tatsächlich liegt, relativ zum Profil ("." = das Repository-Root selbst)

build.exclude

was niemals gepackt werden darf. Das Auflisten ersetzt die Standardliste vollständig; die Standardliste ist .git, *.blend, *.blend1, .gitignore, .gitattributes, README.md, *.ps1

build.stage

eine gefilterte Kopie packen, anstatt zu verweigern, wenn etwas Ausgeschlossenes vorhanden ist — das Layout, das ein Root-Layout-Mod benötigt

build.project_root

das Verzeichnis, gegen das jeder Modellpfad aufgelöst wird, relativ zu dieser Datei. Es muss den Präfix-Ordner des Mods enthalten. Wird von den Modellwerkzeugen benötigt und von sonst nichts — siehe „Die Asset-Pipeline“

build.pre_script

ein PowerShell-Skript, das vor dem Packen ausgeführt wird, für Projekte, die zuerst Code generieren

expect.ready_line

die Zeile, die der Mod ausgibt, wenn er das Laden abgeschlossen hat — siehe unten

expect.counters

key = value-Paare, die von dieser Zeile getragen werden, numerisch verglichen

expect.max_warnings

Warnungsbudget; den Schlüssel weglassen, um die Prüfung zu deaktivieren

expect.forbid

Teilzeichenfolgen, die einen Lauf unabhängig von allem anderen schlecht machen

expect.error_regex

reguläre Ausdrücke, die Skriptfehler markieren, die zu Ihnen gehören, verwendet von der Client-Kompilierungsprüfung

expect.noise

zusätzliches Engine-Rauschen, das ignoriert werden soll, zusätzlich zur eingebauten Liste

Die Maschinenhälfte — dayz-mcp.local.toml, niemals eingecheckt

Key

Bedeutung

machine.game

die Spielinstallation; wird automatisch erkannt, wenn nicht vorhanden

machine.tools

DayZ Tools; werden automatisch erkannt, wenn nicht vorhanden

machine.blender

die Blender-Executable, nur für asset_export; wird automatisch erkannt, wenn nicht vorhanden, und wird von nichts anderem benötigt

machine.stand_root

der vorbereitete Teststand. Der Server bootet dagegen und seine Logs werden aus <stand_root>/profiles gelesen. Standardmäßig <root>/testenv

machine.config

der Dateiname der Serverkonfiguration im Stand (Standard serverDZ.cfg). Es ist eine Einstellung, weil ein Stand eine Konfiguration enthalten kann, die nach der Weltkompilierung für immer hängt, und eine funktionierende unter einem anderen Namen; sie muss innerhalb von stand_root aufgelöst werden

machine.port

der Port, den server_start an den Server übergibt (Standard 2302)

mods.required

Mod-Ordnernamen, aufgelöst unter dem eigenen !Workshop-Ordner des Spiels — required = ["@CF"] bedeutet <game>/!Workshop/@CF

mods.extra

vollständige Pfade zu allem anderen, das geladen werden soll, für Mods, die nicht in !Workshop leben

mods.server_only

Ordnernamen, die an -serverMod statt an -mod weitergeleitet werden. Die Zuordnung erfolgt per Ordnernamen gegen jeden geladenen Mod, egal woher er stammt — mods.required, mods.extra oder die eigenen @Name-Ordner des Projekts; alles, was nicht aufgeführt ist, geht an -mod. Der Diagnose-Client lädt niemals Server-only-Mods, daher lässt die Client-Kompilierungsprüfung sie weg

Die Bereitschaftszeile

server_start endet, wenn expect.ready_line in einem Log erscheint, das nach diesem Boot-Beginn geschrieben wurde. Es ist das Einzige, das der Server nicht selbst herausfinden kann, und ohne es ändern sich zwei Dinge: Es kann nichts abgewartet werden, also startet der Boot-Job den Server, bestätigt einen Moment später, dass er noch lebt, und endet mit dieser Aussage; und log_verdict hat keine Zeile, von der Zähler abgelesen werden können, also passt expect.counters nie auf etwas. Fehler, Abstürze und das Warnungsbudget werden weiterhin beurteilt. Ein Profil ohne Bereitschaftszeile wird unterstützt, ist nicht kaputt — project_open sagt das in seinen Notizen.

Related MCP server: DayZ API MCP Server

Werkzeuge

Tool

Was es tut

project_open(path)

das Profil lesen, das Spiel und die Werkzeuge erkennen, melden, was fehlt

project_status()

aktuelles Projekt, laufender Server, letzte Aufträge

mod_build()

jedes deklarierte Mod packen und signieren; gibt eine Auftrags-ID zurück. Verweigert einen zweiten Build desselben Projekts, solange noch einer läuft

server_start(timeout)

den Testserver starten, fertig sein, wenn er bereit ist. Verweigert, wenn die Mission, die die Konfiguration nennt, nicht unter <game>/mpmissions liegt — die Engine sucht Missionen neben der ausgeführten ausführbaren Datei, nicht neben der -config. Gibt die pid sofort zurück — der Prozess wird gestartet, bevor der Aufruf zurückkehrt, sodass das nächste Tool bereits einen laufenden Server sieht. Verweigert, wenn der Spielport bereits von jemand anderem belegt ist, und verweigert sofort, wenn das Image nicht gestartet werden kann. Die Bereitschaft kommt von expect.ready_line, wenn deklariert, sonst von zwei Engine-Signalen zusammen — der gebundene Port UND das kompilierte Missionsmodul. Der Port bindet etwa 17 s bevor die Skripte es tun, und ein Boot, das dazwischen als bereit bezeichnet wird, lauscht ohne Mission: Es beantwortet Abfragen und verweigert jeden Spieler. Die Auftragszusammenfassung nennt, welche

server_status(pulse_seconds)

pid, ob der Prozess lebt, ob das Protokoll wächst (im Abstand von pulse_seconds abgetastet) und wie lange es gestockt hat

server_stop(pid)

den Server stoppen, den diese Sitzung gestartet hat (optionale pid für verwaiste Server)

server_signatures(value)

das verifySignatures des Stands lesen — oder absichtlich ändern. Ohne Argument meldet es nur. Es bearbeitet nur die Konfiguration, die das Profil als die dieses Stands benennt, verweigert eine, die außerhalb von machine.stand_root aufgelöst wird, verweigert, während ein Server dagegen läuft, behält die Kommentare und Zeilenenden der Datei bei und liest den Wert danach wieder aus der Datei

client_compile_check(extra_mods, wait_seconds)

den Diagnose-Client ausführen und seine Protokolle lesen

log_verdict(source, since)

bestanden/nicht bestanden mit Gründen: Zähler, verbotene Zeichenfolgen, Warnbudget. source ist "server" (das neueste Protokoll im Stand) oder "client" (das Protokoll, das der letzte client_compile_check erzeugt hat). since (ein Epochen-Zeitstempel, z. B. das since, das server_start zurückgibt) verweigert ein Protokoll, das vor dem zu bewertenden Lauf geschrieben wurde, sodass ein veraltetes Protokoll von einem früheren Boot nicht mit dem Ergebnis dieses Laufs verwechselt werden kann

log_tail(source, pattern, n)

letzte Zeilen, optional gefiltert; dieselben zwei Quellen

job_status(job_id)

Status eines lang laufenden Auftrags

job_wait(job_id, timeout)

auf das Ende eines Auftrags warten

job_artifacts(job_id)

Ausgaben eines abgeschlossenen Auftrags abrufen

bridge_build()

das Bridge-Mod packen, dessen Quellen mit diesem Server (bridge/) geliefert werden, nicht mit Ihrem Projekt; gibt eine Auftrags-ID zurück. Unsigned gebaut — siehe unten

bridge_status(window)

tickt die Bridge im laufenden Spiel noch: meldet die Tick-Nummer und ob sie sich über window Sekunden weiterbewegt hat. Erfolgreich nur bei einem Tick, der sich tatsächlich bewegt hat, oder bei einem Stand, der mitten in der Abtastung neu gestartet wurde

bridge_clear(force, probe_window)

den im Postfach feststeckenden Befehl verwerfen und benennen, was verworfen wurde. Verweigert, solange die Bridge lebendig aussieht, außer force=True

world_ready(timeout)

warten, bis die Bridge im Spiel tatsächlich Befehle beansprucht. Einmal aufrufen, nachdem der Boot-Auftrag abgeschlossen ist, vor dem ersten Weltbefehl — siehe „Server bereit ist nicht Bridge bereit" unten

world_state(class_name, radius, pos)

Momentaufnahme der Welt aus der einmal-pro-Sekunde-Veröffentlichung der Bridge: Spieler, Position, Gesundheit, Hände. Ohne Argumente kostenlos; mit class_name zählt es auch Objekte dieser Klasse in der Nähe (ein Befehls-Roundtrip)

world_spawn(class_name, where, pos, quantity)

ein Objekt auf dem Boden erzeugen (ohne Lebensdauer, sodass es mitten in der Prüfung nicht verschwinden kann), in den Händen des Spielers oder in seinem Inventar

world_teleport(pos)

den Spieler zu "x y z" bewegen — dasselbe Format, das world_state meldet, sodass eine gelesene Position direkt zurückgegeben werden kann

world_set(what, value, target)

health (Spieler oder gehaltenes Objekt) oder quantity (gehaltenes Objekt) setzen

world_delete(class_name, radius, pos)

Objekte einer Klasse in der Nähe löschen. Erfordert die Klasse; löscht nie einen echten Spieler

world_entities(class_name, radius, pos, limit)

welche Objekte in der Nähe sind, nicht wie viele: Klasse, Position, Entfernung und Gesundheit für jedes. Eine Seite, und es sagt es — die wahre Gesamtzahl kommt neben der Liste zurück

world_time_set(hour, minute, day, month, year)

die Weltuhr bewegen. Jedes Feld, das auf -1 bleibt, behält seinen aktuellen Wert, der zuerst von der Engine zurückgelesen wird, weil die Engine ein Datum als fünf Zahlen auf einmal setzt

world_weather_set(what, value, seconds, duration)

Bewölkung, Regen, Nebel, Schneefall oder Wind bewegen. Ein Anstoß, keine Sperre: Die Engine simuliert das Wetter danach weiter, und sowohl das Tool als auch das Mod sagen das

world_action(action_class, target_class, subject, radius, pos)

eine eigene Aktion eines Mods durch das Tor der Engine ausführen — siehe unten

world_exec(verb, args)

die Notluke: ein beliebiges Verb über denselben Transport, in jeder Antwort als nicht standardmäßig markiert

client_start(timeout, extra_args)

den Spiel-Client starten und mit dem Stand verbinden; gibt eine Auftrags-ID zurück. Immer im Fenstermodus. Endet, wenn die Bridge players >= 1 meldet — eine Zählung, kein Timer

| client_status() | PID, Fenstergeometrie, ob das Fenster minimiert oder im Vordergrund ist, die Hintergrundeinstellung, die Spieleranzahl und ob ein virtueller Controller angeschlossen ist | | client_stop() | den Client stoppen, den diese Session gestartet hat, und den virtuellen Controller abziehen | | client_shot(path) | das Fenster des Clients als PNG erfassen, mit lit_fraction — der Zahl, die ein echtes Bild von einem komplett schwarzen unterscheidet. Kein Fokus nötig | | client_move(x, y, seconds) | die Spielfigur mit dem linken Stick laufen lassen. Analog, und der einzige Weg, der die Figur überhaupt bewegt. Kein Fokus nötig | | client_look(x, y, seconds) | die Kamera mit dem rechten Stick drehen. Kein Fokus nötig | | client_press(button, seconds) | eine Gamepad-Taste, aus einer geschlossenen Tabelle von vierzehn Namen. Kein Fokus nötig | | client_chat(text, color) | eine Zeile in den Chat schreiben — serverseitig von der Bridge zugestellt, also keine Tastatur, kein Fenster, kein Fokus | | client_type(text, submit) | in ein clientseitiges Eingabefeld mit echten Tastendrücken tippen. Das einzige Werkzeug hier, das in den Vordergrund tritt, und das sagt es auch in seiner Antwort | | client_verdict(since) | den laufenden Client anhand seiner eigenen .RPT beurteilen — ein Urteil über Fehler und Abstürze; siehe unten | | ui_menu() | was die Benutzeroberfläche des Clients gerade macht: offene Menüklasse, Cursor, Dialog. Kostenlos — wird bei jedem Tick neu veröffentlicht | | ui_tree(root, depth, limit) | der Widget-Baum des Clients: Pfad, Klasse, Name, Sichtbarkeit, Bildschirmrechteck, Tiefe und Text. Eine Seite, und das sagt es auch | | ui_find(name, class_name, text, root) | derselbe Durchlauf, im Client gefiltert, sodass der ganze Baum nie reisen muss | | ui_click(path, expect_name, expect_class, via) | ein Widget drücken. via="script" geht ohne Fokus durch den Handler des geöffneten Menüs; via="cursor" setzt die echte Maus auf zugehörige Rechteck | | ui_text(path, text, expect_name) | in ein Eingabefeld schreiben und den Wert aus dem Widget zurücklesen | | mod_lint(mod, strict) | das Enforce-Skript beurteilen, ohne irgendetwas zu packen oder zu starten. mod_build führt es zuerst aus und lehnt das ab, was es ablehnt | | knowledge_build(layer, full, only) | eine Ebene des API-Index bauen oder aktualisieren; gibt eine Job-ID zurück. only=[path] liest genau die Dateien erneut, die du nennst | | knowledge_status() | Übe, was jede Ebene enthält, wie alt sie ist und ob sie noch dem entspricht, was auf der Platte liegt | | knowledge_find(name, kind, owner, layer, prefix, limit) | eine Klasse, Methode, Konstante, Enum oder Konfigurationsklasse anhand eines Namens finden | | knowledge_show(name, ..., body) | eine Deklaration vollständig: Signatur, Mitglieder, Vererbungskette und der Quelltext selbst — direkt aus einem Archiv gelesen, falls es darin lebt | | knowledge_overrides(name, owner, layer) | wer diese Klasse oder Methode überschreibt | | knowledge_callers(name, kind, owner, layer) | wer diese Methode au (ruft oder diese Klasse baut — jede Aufrufstelle, samt Klasse und Methode, die den Aufruf ausgeführt hat | | asset_export(blend, mod, source, name) | ein Modell aus einer .blend in build.headless exportieren, ohne Benutzeroberfläche; gibt eine Job-ID zurück. Die optional erste Schritt — siehe unten | | asset_build(mod, source, deploy) | die Modelle eines Mods aus ihren MLOD-Quellen binarisieren, prüfen, was das herausgekommen, und erst dann in den Mod geben; gibt eine Job-ID zurück | | asset_check(mod, model) | die Modelle und Texturen beurteilen, die ein Mod bereits mitliefert. Baut nichts, braucht keine DayZ-Tools, antwortet in Millisekunden | | asset_convert(source, output) | eine Textur zwischen .png und .paa konvertieren und das Ergebnis beurteilen |

Signaturen – und warum die eigene Meldung der Engine auf die falsche Fährte führt. Unter verifySignatures = 2 lehnt eine Instanz jede Client, bei Code 118 und *"missing dta bin.pbo"* ab — ein Vanilla-Dateiname, ganz ohne Erwähnung von Signaturen. Die Ursache ist normalerweise der Schlüsselbund: Dieses Tool startet die Diagnose-Programmdatei aus der CLIENT-Installation, also liest die Engine die keysneben *dieser* ausführbaren Datei, währenddayz.bikey— der Schlüssel, der die eigenen Pbos des Spiels signiert — mit der separaten DayZServer-Installation geliefert wird. Einkeys-Ordner, der fehlt oder nur einen eigenen Mod-Schlüssel enthält, lässt den Server nichts mehr verifizieren, Vanilla eingeschlossen. client_startweigert sich und nennt dafür, welche der drei Fälle vorliegt;server_startbir warnt nur, weil eine Headless-Instanz bootst auch ohne Client noch nützlich ist. Eine unsignierte Pbo in der-mod`-Zeile des Clients wird auf eigene Weise benannt — einschließlich der Bridge dieses Servers, die absichtlich unsigniert gebaut ist.

Drei Grenzen, die die Engine den UI-Werkzeugen auferlegt, keine davon umgangen: eine schlichte TextWidget hat SetText und kein GetText in enwidgets.c, also eine BEDEMMA label überhaupt nicht gelesen werden kann — was die Bedeutung einer Mod-Oberfläche ist, bleibt eine Frage an die serverseitige, bei der die Daten real sind. Ein Klick auf Skriptebene erreicht nur das offene Skriptmenü, denn Widget hat SetHandler und kein GetHandler; viakurzur ist für alles andere da. Und der Client muss die Bridge laden: eine pbo trägt beide Hälften, wobei ein Profil, das sie unter mods.server_only führt, sie von der -mod-Zeile des Clients fernhält — diese Fall wird vor allem anderen mit Namen benannt, und nicht mit einem leeren Baum beantwortet.

job_wait ist das Werkzeug zum Warten, und sein timeout ist bei 600 Sekunden gedeckelt, egal wie groß der übergebene Wert ist. Zwei andere Werkzeuge schlafen: server_statusden Log zweimal abtastet,pulse_secondsAbstand, gedeckelt auf 10 Sekunden — diese Pause ist zu unterscheiden, das langsames oder hängendes Booten ist — undbridge_statuszweimal den tickt der Bridge ab mitwindow` Abstand, gedeckelt auf den gleichen 10 Sekunden, aus demselben Grund. Alles andere kehrt sofort zurück; Arbeit, die Minuten dauert, dass diese hinter einer Job-ID passiert.

Die Bridge-Mod

bridge_build packt das bridge/ aus dem eigenen Repository dieses Servers in das danebenliegende distance_Distribution-Bridge. Es ist der Mod dieses Servers, nicht deiner: Eine Kopie dient allen Projekten, nichts wird in dein Repository geschrieben außer dem Job-Protokoll, und auch kein Unterschlüssel eines Projekts benutzt — eine -serverMod pbo wird nie einem Client zu Prüfung übergeben, deshalb ist sie unsigniert gebaut, und das Ordner bleibt frei von Signaturen und SchlKennen.

Das Build lädt sie nicht. Das bleibt beweg deines Profils, denn die Bridge ist eine Extra-P0 in der Instanz, und ein Lauf ohne sie bleibt mögliche. Zum Ankoppeln fügst du data-plugins-local. das sind die Zeilen, die bridge_lint auch in der Job-Zusammenfassung druckt:

[mods]
extra       = ["<path printed by bridge_build>/@DZMCP_Bridge"]
server_only = ["@DZMCP_Bridge"]

server_only ist Hairbei das, was sie zu lowerServerMod leitet statt zu -mod. Ohne das boot die Instanz ganz normal, und bridge_status meldet, dass die Bridge keinerlei Zustand geschrieben hat – ehrliches true, das leicht broken nur verwege für eine kaputte Bridge gehalten wird.

bridge_status meldet auch die command-Mailbox. In der Spielumgebung verlässt sie nur der Mod, indem er sich das Kommando geht; auf dieser Seite machen das bridge_clear und das Vorway- -putzen von server_start. Eine Kommando also, die geschickt wurde, während die Instanz unten war, wird nicht demandelt und verfällt nicht von selbst – es blockiert weiterhin den nächsten send, und eine shop, dieser Tools gebootete wird es aufgreifen. server_start räumt vor jedem Neustart beide Transferdateien ab, sodass ein über diesem Tool gestalteter Server or kein Kommando von einer vorherigen Session ausführt; das dient der Hygiene, nicht als Ersatz für das Wissen, dass das Kommando noch da ist. Der Zustand kommt als stale_command zurück, und bridge_clear() ist der Weg raus. Das Leeren ist vorsätzlich eigener Tool: Ein wartendes Kommando wegzuwerfen ist eine Entscheidung, keine Sache, die eine Statusabfrage überhinweg erledigen sollte. Es lehnt ab, so lange die Brücke lebendig aussieht, varias force=True übergibst, und meldet in jedem Fall die ID des Verw% discarded.

Was bridge_status mit einschwachen auseinanderhalten kann

Der Tick alleine reicht nicht aus, um eine Bridge zu beurteilen, denn er startet bei jedem Boot bei 0 neu, mentre die Zustandsdatei im Profilverzeichnis weiterlebt. Jede Antwort trägt das eigene Urteil des Kanals in heartbeat, und die vier sind tatsächlich _:

state

heartbeat

Bedeutung

alive

growing

Der Tick zeigte sich innerhalb einer Session — die einzige ok: true-Lebensantwort

restarted

restarted

Eine neue Welt kam zwischen den beiden Proben auf: lebendig, nicht eingefroren, und alles, was an die alte Session gesendet wurde, ist weg

frozen

stalled

dieselbe Welt zweimal gesehen, nicht bewegend — ein Problem auf Skript-Seite, also ist log_verdict der nächste Schritt

unknown

unmeasurable

MessSample konnte nicht gelesen werden (oder window=0): kein Vergleich wurde gemacht. Keine Diagnose — erneut versuchen

Jede Antwort, die eine Probe gelesen hat, trägt auch session_id — Die Id der gelebten Welt — und eine restarted Antwort trägt zusätzlich previous_session_id, damit der Aufrufer sagen kann, welche Welt verschwand.

no_server stale_command no_state_file invalid_state unreadable_state und outdated_bridge kommen all diesen vorweg: Nichts läuft, ein Kommando hängt fest, der Mod nicht geladen ist, das Zustandsdokument ist gültiges JSON mit einem falsch benannten Feld (das Tool hat das Feld genannt und prüft zweimal, bevor es es sagt), die Datei parst sie komplett nicht, oder sie parst, aber stammt aus einer Zeit zuvor als das Protokoll dieses Servers (dann mit bridge_build neu bauen).

Die Weltkommandos

Die Weltwerkzeuge sprechen mit der Bridge über zwei JSON-Dateien im -profiles-Verzeichnis des Servers: eine Kommando-Mailbox (von hier aus atomar geschrieben, von der Mod als Anspruch entfernt) und eine Zustandsdatei, die der Mod jeder Sekunde überschreibt. Enforce Script hat kein "rename", also kann der Mod nicht atomar schreiben – der Leser toleriert stattdessen anrissene Geschreibungen, eine fehlgeschlagene lesung ist nie Neu. Vier → Tatsachen, alle an einem Live-Server gemessen, legen fest:

Server-Bereit ist nicht Bridge-Bereit. Die Brücke beginnt Kommandos zig Sekunden, nachdem der Server reif gemeldet hat — die bisherige Spanne liegt bei 18 und 38 Sekunden und ändert sich Boot zu Boot. Ein in dieses Fenster gesendet Kommando wird nicht abgelehnt — es wird spät geholt und ausgeführt nachdem der Aufrufer längst aufgegeben hat. Also: server_start, warte auf Boot-Job, dann world_ready(), dann die richtigen Kommandos. Jedes Weltwerkzeug lehnt au Achtung sofort ab, wenn der Tick sich nicht bewegt, und nennt world_ready.

**Jeder Argumentwert reist als String über die Leitung. Der Parser des Linns ist strikt: eine JSON-Zahl irgendwo in args lehnt den ganzen args-Block ab. Die Tools erstellen Zahlen und boolesche Werte selbst und lehnen Werte ohne echt String-Darstellung ab (Listen, dicts, None). Positionen gehen als ein einziger String "x: y: z".

Weigerung ist ein Ergebnis. Die natives Satz des Mods kommen unverändert als Fehler aus („no player is on the server", „the class is Next", „the action's own Can() said no"). Niemand mit verbunden, ist der Normalfall einer Headless-Instanz, und jedes Verb, das eine gebrauchliche Spieler sagt das auch, statt still nichts zu tun.

Die SessionId schützt vor den Kommando von gestern. Jedes Kommando trägt die WorldMost – die Session, die die Brücke zuletzt veröffentlicht hat; der Mod lehnt jedes an eine andere Session gerichtete Kommando (oder ohne Session) ab, ohne es auszuführen. Ein Kommando, das geschrieben wurde, während die Instanz unten war, kann also nie in eine frisches gebootete Welt ausgelöst werden. Die Tools stempeln die Session automatisch — wichtig ist sie nur, wenn du das Maildrohnen von Hand belegst.

Ein semantisches Verb wie "die Probe abgeben" täuscht: In einer echten Mod bedeuten dieselben Wörter je nachdem, welches Gerät in der Nähe ist, welche Fraktion der Spieler hat und was bereits freigeschaltet ist, verschiedene Dinge. Dieser Kontext ist nicht aufzählbar, also versucht es die Bridge nicht. world_action nimmt den Klassennamen einer Aktion, ein Ziel und das gehaltene Item und bittet die Engine, es durch ihr eigenes Tor zu schicken — dasselbe, durch das ein Tastendruck geht. Die Anwendbarkeit entscheidet das eigene Can() der Aktion, und seine Ablehnung ist ein aussagekräftiges Testergebnis, kein Werkzeugfehler. Die unterscheidbaren Antworten: Manager beschäftigt, Spieler handelt bereits, Spieler sprintet, unbekannte Aktionsklasse und "das eigene Can() der Aktion sagte nein". "Akzeptiert" ist ebenfalls kein Erfolg — der Befehl läuft weiter, bis die Engine die Aktion tatsächlich freigibt, und jeder Fehlerpfad gibt den Manager frei, damit der Spieler danach weiter handeln kann.

world_exec ist der Notausstieg

Alles, was eine Mod offenlegt, das keine Aktion ist — "wie viele Punkte im Fraktionspool" — geht durch world_exec(verb, args): ein beliebiges Verb über denselben Transport. Jede Antwort ist als non_standard markiert: Dieser Server kennt das Verb nicht, validiert es nicht und steht nicht dafür ein, was die Mod damit tut. Ein Verb, das der Bridge-Build nicht kennt, kommt zurück und listet die Verben, die er kennt. Ein Projekt, das ein eigenes Verb braucht, bearbeitet seine eigene Kopie des Dispatchers der Bridge (der Kommentar über KnownVerbs() in bridge/scripts/5_Mission sagt genau, wo); es gibt bewusst keine Registrierungsmechanik — ein Verb, das dieser Server typisiert und validiert hat, wäre ein Verb, für das dieser Server einsteht.

Der Client: drei Eingabeebenen, und warum es drei sind

Die Bridge erreicht den Server. Was sie nicht kann, ist auf den Bildschirm des Clients zu schauen oder durch den Client zu handeln — eine Figur über den Boden laufen lassen, ein Menü öffnen, ein Feld ausfüllen, das eine Mod gezeichnet hat. Die client_*-Werkzeuge sind das, und sie nutzen drei verschiedene Wege, weil keiner von ihnen die Arbeit der anderen beiden erledigen kann. Jede Zeile unten ist eine Messung an einem laufenden Client, keine Designabsicht.

Weg

Was er tut

Braucht den Vordergrund

die Bridge (world_*, client_chat)

die Welt, und Text in den Chat

nein

ein virtuelles Gamepad, ViGEmBus (client_move / look / press)

Bewegung, Kamera und Teile der Oberfläche

nein

echte Tastendrücke, SendInput (client_type)

Text in ein Feld, das nur auf dem Client existiert

ja, und es nimmt ihn

Tastaturemulation bewegt die Figur nicht, und Fensternachrichten bewirken gar nichts. SendInput-Scancodes mit verifiziertem Vordergrund: 25 s vorwärts, 0 m. PostMessage/SendMessage WM_KEYDOWN in das Hauptfenster und seine Kinder: 0 m, und auch keine Reaktion von den Menüs. Die Engine liest Bewegung aus Raw Input und ignoriert emulierte Tasten, weshalb hier kein Werkzeug eine Fensternachricht anbietet.

Das virtuelle Gamepad bewegt sie, ohne Fokus, und es ist ANALOG — der Grund, warum es bleibt, selbst wo eine Taste genügen würde. Gemessen in einem Lauf, bei dem eine Drittanbieteranwendung durchgehend den Vordergrund hielt:

stick fully forward,   10.0 s  ->  38.40 m   (3.84 m/s)
stick at 0.3 forward,   8.0 s  ->  11.34 m   (1.42 m/s)

Gleicher Weg, gleiche Figur, die 2,7-fache Geschwindigkeit allein durch Stick-Ausschlag. "Die Figur geht, nicht rennt" lässt sich mit einer Taste nicht ausdrücken, die nur an und aus kennt. Im selben Lauf lief die Figur etwa 141 m von selbst, und die eigene Zählung der Mod von Objekten in ihrem 10-m-Umkreis ging von 1 → 0 → 1, als sie den Ort verließ und zurückkam — eine Zustandsänderung, die durch Präsenz verursacht wird, die ein Teleport nicht erzeugen kann.

Ein Teil der Oberfläche reagiert auf das Pad, ein Teil nicht. Gemessen, während das Spielfenster die ganze Zeit hinter einer anderen Anwendung lag: back öffnet und schließt das Inventar, start öffnet das Pausemenü, b schließt es — alle bei einem Standard-Tap von 0,1 s, ein Tap also lang genug ist, damit die Engine es erfasst. Aber a bewegte nichts, weder bei 0,1 s noch bei 0,5 s, und das Steuerkreuz in diesen Bildschirmen auch nicht: Der Client wechselte nicht in den Controller-Navigationsmodus, es gab also kein fokussiertes Element, auf das eine Bestätigung wirken konnte. Behandle das Schließen von Menüs als Gamepad-Aufgabe und die Bestätigung von Menüs als unbewiesen.

Die Augen brauchen ebenfalls keinen Fokus. Eine Aufnahme ist ein Live-Frame mit dem Fenster ganz unten in der Z-Reihenfolge (lit_fraction 0,9997 ohne Fokus, 0,9997 mit Fokus in derselben Sitzung). Der eine Zustand, der sie besiegt, ist ein minimiertes Fenster, dessen Clientbereich auf 0×0 kollabiert — mit einem Grund abgelehnt, statt als gültig aussehendes leeres Bild gespeichert.

All dieses Hintergrundverhalten beruht auf einer Client-Einstellung, pauseMode (GAME → UPDATE IN BACKGROUND). Bei dem hier gemessenen Wert zeichnet und simuliert der Client weiter, während er keinen Fokus hat, weshalb der Frame live ist und der Stick die Figur weiter bewegt. Bei "keine Grafik" würden beide still stoppen — ein eingefrorener Frame sieht genauso aus wie ein lebendiger. Also LESEN client_start und client_status diese Einstellung und warnen; sie schreiben sie nie, weil sie dem gehört, dem die Maschine gehört.

client_type ist das einzige Werkzeug, das den Bildschirm übernimmt, und es ist ehrlich dabei: Die Antwort trägt foreground_taken und einen Satz, der besagt, dass die Person an der Maschine während des Laufs nicht in ihr eigenes Fenster tippen konnte. Es verifiziert den Vordergrund mit GetForegroundWindow, nachdem es darum gebeten hat, weil SetForegroundWindow Erfolg zurückgibt, ohne etwas getan zu haben, wenn Windows sich weigert — und blindes Tippen sendet die Tastendrücke in das Fenster, das die Person tatsächlich verwendet. Wenn der Vordergrund nicht erlangt werden kann, wird nichts getippt, und die Ablehnung nennt den Prozess, der ihn hält.

ViGEm ist die Emulation eines echten Geräts, und dies ist ein Prüfstand. Der Treiber ist signiert und installiert ohne Neustart, und das Gamepad ist ein neues Gerät, kein Filter über der eigenen Tastatur und Maus der Maschine — ein Filtertreiber wurde hier einmal ausprobiert und kostete den Besitzer der Maschine die gesamte Tastatur- und Mauseingabe, bis er von Hand rückgängig gemacht wurde. Nichts davon ist ein Versprechen bezüglich Anticheat auf einem Live-Server, und nichts in dieser Phase macht eines.

Der Wissensindex

Ein Agent, der eine Mod schreibt, stellt dem Spiel immer wieder dieselben Fragen: Gibt es eine solche API, wie heißt sie, wo ist sie deklariert, wer überschreibt sie. Sie zu beantworten bedeutete, scripts.pbo zu entpacken und den Text zu durchsuchen — und jede Sitzung zahlte erneut. knowledge_* verwandelt diese Arbeit in eine Frage.

Es ist eine einfache SQLite-Datei im eigenen .dayz-mcp/ des Projekts, gebaut von diesem Server aus dem Spiel, den Mods, die ein Projekt deklariert, und den eigenen Quellen des Projekts. Keine Einbettungen, kein externer Dienst, kein Schlüssel.

Drei Ebenen, und warum ihre Rhythmen sich unterscheiden

Ebene

Quelle

Wird veraltet, wenn

core

das Spiel: dta/scripts.pbo für die API, Addons/*.pbo für die Item-Klassen

das Spiel aktualisiert wird

deps

die Archive der Mods, die das Profil deklariert, gelesen ohne sie zu entpacken

eine Abhängigkeit aktualisiert wird oder sich die deklarierte Menge ändert

project

die eigenen Quellen der Mod, gelesen, wo sie liegen

jede Bearbeitung

Ein Index, der in einem Zug gebaut wird, wäre innerhalb einer Minute nach dem Richtigsein falsch: Das Spiel bewegt sich ein paar Mal im Jahr, eine Abhängigkeit ein paar Mal im Monat und das Projekt zwischen einem Agentenzug und dem nächsten. Also wird jede Ebene separat gebaut, gealtert und gemessen, und jeder Build ist inkrementell — unveränderte Quellen werden nach Größe und Änderungszeit übersprungen, und only=[path] überspringt sogar den Durchlauf, der sie entdeckt.

Eine Antwort trägt das Alter der Ebene, aus der sie stammt

Veraltung wird gemessen, nicht geraten: Eine Ebene erfasst Größe und Änderungszeit jeder Quelle, die sie gelesen hat, und das wird mit den Dateien verglichen, wie sie jetzt sind.

  • Jede Antwort nennt die Ebenen, die sie verwendet hat, und wie alt jede ist. Eine Antwort mit keinen Ergebnissen nennt jede Ebene, die sie durchsucht hat — "nicht gefunden" ist genau so viel wert, wie die Ebenen dahinter aktuell sind.

  • Die Aktualität der Projekt-Ebene wird bei jeder Suche gemessen, ob sie beigetragen hat oder nicht. Das ist der gefährliche Fall: Ein Agent fügt eine Klasse hinzu, fragt danach, und eine vor einer Minute gebaute Ebene sagt "nicht gefunden" — eine selbstbewusste Aussage über Code, der existiert.

  • Eine Suche über eine Ebene, die nie gebaut wurde, wird abgelehnt, und die Ablehnung nennt den Aufruf, der sie baut. "Nicht gefunden" und "nicht gesucht" sind verschiedene Tatsachen, und nur auf eine davon ist es sicher zu handeln.

  • Eingrenzung trägt dieselbe Falle eine Ebene tiefer, also meldet eine leere eingegrenzte Antwort, wo der Name tatsächlich existiert: Wenn man kind='class' nach einem Namen fragt, den das Spiel nur in einer Konfiguration deklariert, erhält man ein echtes "Nein", das sich liest als "das Spiel hat keine solche Klasse".

Konfigurationsklassen liegen unter kind='config', nicht unter kind='class'. Gezählt im eigenen Index dieser Maschine des Spiels: 88 102 Konfigurationsklassen gegen 43 595 Skriptdeklarationen aller Art zusammen, in eine Art gemischt, begraben sie also jede Skriptantwort. Getrennt ist "hat das Spiel eine Item-Klasse namens X" eine Frage, die man genau stellen kann.

Was er nicht beantwortet

Der Index beantwortet, was existiert: Klasse, Methode, Signatur, wo deklariert, wer überschreibt. Er beantwortet nicht, was richtig ist — dass modded class X extends X kompiliert und still nicht angewendet wird, dass _co den Alphakanal kostet, dass binarize Verzeichnisse statt Dateien nimmt. Nichts davon ist aus den Quellen ableitbar; es wurde auf die harte Tour gelernt und lebt in der Modding-Skill und in der Mod selbst. Der Index versucht nicht, eines von beiden zu ersetzen, und er versucht nicht zu verstehen, was ein Feld bedeutet oder warum eine Klasse da ist.

Semantische Suche ist bewusst nicht hier

Die Entscheidung wurde durch Messung getroffen, nicht durch Vorsicht: Jede Suche, die die früheren Phasen dieses Servers geprägt hat, war eine Suche nach Namen. Und ein Einbettungsindex würde die Regel brechen, die der Rest dieses Servers einhält — installieren und es funktioniert, ohne externen Dienst und ohne Schlüssel. Das Vorgängerprojekt, auf dem dieses bewusst nicht aufbaut, dokumentiert seine Wissensebene als lokal und kostenlos, während sein Code einen kostenpflichtigen Einbettungs-Client importiert, ohne Schlüssel scheitert und fest verdrahtete Preise trägt. Seine beiden Suchwerkzeuge hängen auch für immer, weil der Client dahinter ohne Timeout erstellt wurde; daher die Obergrenze, unter der jede Suche hier läuft. Wenn sich exakte Suche als nicht ausreichend erweist, ist semantische Suche eine separate Phase mit einer Bedingung: Das Modell wird innerhalb der Auslieferung mitgeliefert.

Die gemessenen Zahlen

Auf dieser Maschine — das Spiel mit 2810 Skriptdateien, 35 installierten Mods, einem echten Projekt mit 41 Quellen — durch die Werkzeuge, nicht durch deren Interna:

Build

Ergebnis

Zeit

core

2927 Quellen, 131 697 Deklarationen (41 ergaben nichts)

70,2 s

deps, vier deklarierte Mods

8 Archive, 10 925 Deklarationen

0,9 s

deps, jede hier installierte Mod

523 Archive, 204 768 Deklarationen, 3 Archive nicht lesbar und benannt

139–147 s

project

41 Quellen, 1196 Deklarationen

0,12 s

Der Index auf der Platte: 74,7 MB für die drei Ebenen eines echten Projekts; 110 MB für die 523 Abhängigkeitsarchive allein. Diese Archive sind 92 GB, und keines davon ist entpackt.

Aufrufstellen sind das, wofür der Index bezahlt. Die eigenen Skripte des Spiels enthalten 43 579 Deklarationen und 113 703 Aufrufstellen, und das Aufzeichnen der zweiten Menge verdoppelt den Index grob: allein auf der Spiel-Ebene gemessen 23,8 MB und 3,7 s zum Bauen ohne sie, 49,6 MB und 4,5 s mit. Das ist der Preis dafür, beantworten zu können, „wer ruft das auf“, und er wird hier genannt, statt später auf einer vollen Festplatte entdeckt zu werden.

Antwort

Zeit

knowledge_find, exakter Name

4,2 ms Ende zu Ende, davon 3,0 ms für den Projekt-Durchlauf

knowledge_find, Präfix, Limit 500

3,2 ms Abfragezeit

knowledge_overrides

4,2 ms

knowledge_callers, 23 Aufrufstellen von 113 703

0,38 ms Abfragezeit

mod_lint bei einem 76-Dateien-Mod

277 ms Textprüfungen, 7 ms Indexprüfungen

Gemessen an einem Live-Stand, drei Bootvorgänge: world_time_set(hour=3, minute=7) setzte die Uhr auf 2026-09-20 03:07 und ließ das Datum unverändert; world_weather_set("fog", 0.9, seconds=2) änderte den veröffentlichten Nebel von 0,085 auf 0,900 und hielt ihn; world_entities(pos="7500 0 7500", radius=150, limit=5) listete 5 von 171 Objekten mit truncated: true. Die Entfernungen kamen bei einem Radius von 150 m als 320 m zurück, bis sie horizontal gemacht wurden, was der eigene Radiustest der Engine misst.

| knowledge_show, eine Klasse mit 400 Mitgliedern und ihrer Vererbungshierarchie | 6,8 ms | | knowledge_status, alle drei Ebenen gemessen | 41 ms (110 ms beim ersten Aufruf nach einem Build) |

Inkrementalität, im echten Projekt: ein vollständiger Rebuild 136 ms; eine bearbeitete Datei, die durch den Durchlauf gefunden wurde, 8,8 ms (15×); dieselbe Datei, die über only= benannt wurde, 5,8 ms (23×). Bei einem Baum mit 2810 Dateien dominiert der Durchlauf, und only= ist weit mehr wert — aber bei einem Projekt dieser Größe ist 15× das, was ein gewöhnlicher Rebuild tatsächlich einbringt.

Die Obergrenze schlägt tatsächlich zu: Eine Abfrage, die mit 77 ms gemessen wurde, wurde unter einer Obergrenze von 19,3 ms bei 19,9 ms gestoppt, und die Verbindung antwortete weiterhin.

Die Asset-Pipeline

Ein Modell aus Blender in einen Mod zu bringen, sind zehn Schritte, und bis zu dieser Phase wurden alle von Hand ausgeführt. Der Wert liegt nicht darin, die Werkzeuge zu starten. Er liegt darin, dass jedes Werkzeug in dieser Kette strukturell nicht in der Lage ist, einen Fehler zu melden, und jedes dieser Schweigen hatte bereits Tage gekostet.

Gemessen an den echten Binärdateien, nicht angenommen:

Was geschah

Was das Werkzeug zurückgab

binarize wurde eine Datei übergeben, wo es ein Verzeichnis erwartete

0, ein leeres Ausgabeverzeichnis, keine einzige Textzeile

binarize mit einem Material, das nicht geladen werden konnte

0, ein ODOL von 46.190 Bytes, wo ein korrekter Build 58.644 Bytes umfasst

binarize wurde ein bereits binarisiertes Modell übergeben

0xC0000005 und eine Datei der Länge null im Ausgabeverzeichnis, zusätzlich zu dem, was bereits dort war

der Blender-Exporter mit seinen eigenen Standardargumenten

FINISHED, Exit 0, ein gültiges MLOD mit 2 der 5 LODs des Modells und keine Erwähnung davon in 169 Logzeilen

Also lautet die Regel, auf der dieser gesamte Namensraum aufbaut: Das Urteil wird vom Artefakt abgelesen, niemals vom Bericht des Werkzeugs. Der Exit-Code wird aufgezeichnet, aber weder als Erfolg noch als Fehler gewertet.

Die Wurzel wird deklariert, nicht angenommen

binarize hat überhaupt keine Projektwurzel-Option — die vollständige Schalterliste wurde anhand der echten Binärdatei ermittelt. Die Wurzel ist das Arbeitsverzeichnis des Prozesses. Derselbe Befehl, dieselbe Eingabe, ein anderes Verzeichnis, und heraus kommt ein gültiges ODOL mit plausiblen Texturpfaden, das die Engine untexturiert rendert, mit einem Erfolgscode und ohne Beschwerde. Das exportierende Blender-Add-on hat dieselbe Wurzel in einer eigenen Einstellung, die von dem zuletzt geöffneten Projekt gespeichert ist: Auf dem Rechner, auf dem dies entwickelt wurde, zeigte sie auf ein Verzeichnis aus einer nicht zusammenhängenden Sitzung, und bei einer falschen Wurzel schlägt auch das Add-on nicht fehl — es entfernt den Laufwerksbuchstaben, behält den Rest und schreibt Pfade, die wie Pfade aussehen.

build.project_root ist dieses Verzeichnis, einmal im portablen Teil des Profils angegeben. Der Server setzt es als Arbeitsverzeichnis des Binarizers und schiebt es für die Dauer des Laufs in das Add-on, sodass das, was das Add-on gespeichert hat, nichts entscheidet (es wird berichtet, damit du es beheben kannst). Genau das macht eine falsche Wurzel unmöglich statt nur erkennbar, und deshalb ist der Schlüssel erforderlich, bevor überhaupt etwas Modellbezogenes läuft.

Die Ablehnungen, die es erzeugt, geschehen, bevor ein Prozess existiert — gemessen bei 0,0003 s — und ein abgelehnter Build lässt das Modell, das der Mod bereits ausliefert, byte für byte unberührt.

Zwölf Prüfungen am Artefakt, und vier davon verweigern

asset_check führt sie aus, ohne etwas zu bauen und ohne DayZ Tools, denn ein frischer Klon muss in der Lage sein zu fragen, ob das, was er ausliefert, gesund ist. Vier verweigern: Ein gebautes Modell ist vorhanden und ist ein ODOL (C1), keine Referenz verlässt den Mod (C3), ein Material wurde tatsächlich eingebettet (C4), und nichts bereits Binarisiertes wird binarize erneut angeboten (C10). Der Rest warnt: verwaiste Referenzen, ein rvmat, das in einen anderen Mod zeigt, eine durch DXT1 verlorene Transparenz (C7), eine Animation, die das Artefakt nie erreicht hat, eine model.cfg, die nicht diejenige ist, aus der das Artefakt gebaut wurde, ein struktureller Fingerabdruck, der nicht mehr dem entspricht, was der letzte Build bereitgestellt hat. Jeder Befund sagt, was zu tun ist.

C4 ist diejenige, über die man Bescheid wissen sollte. Wenn binarize ein rvmat auflöst, kopiert es die eigenen Stufentexturen dieses Materials in das Modell — fresnel, #(argb,8,8,3), env_land_co.paa, _nohq, _smdi — Zeichenketten, die kein MLOD enthält. Sechs von sechs Artefakten wurden durch diesen einen Test korrekt unterschieden, und er fand auf diesem Rechner ein defektes Modell, von dem niemand wusste.

Der Blender-Schritt ist optional

asset_export ist das einzige Werkzeug hier, das Blender benötigt, und alles nachgelagerte funktioniert mit einer .p3d von überall her — einem Hand-Export, einer Datei von einem Partner, einem vor Jahren eingecheckten Modell. Ein Rechner ohne Blender baut und liefert einen Mod einwandfrei; die Verweigerung sagt genau das, statt sie als kaputte Installation darzustellen. Es erfordert jedoch, dass das Export-Add-on im gefundenen Blender aktiviert ist, und es schreibt niemals Blender-Benutzereinstellungen zurück (verifiziert: Die Einstellungsdatei war nach jedem Lauf byte-identisch).

Export und Build sind zwei Aufrufe statt einem, weil jede Hälfte ihr eigenes Urteil hat, und ein Build, der von der einen verweigert und von der anderen erlaubt wird, ist keine Entscheidung.

Byte-Gleichheit wird nie versprochen

Keine Hälfte dieser Pipeline ist reproduzierbar, und das Design sagt genau das, statt etwas anderes vorzugeben:

  • Der Export. Sieben Exporte derselben unveränderten Quelldatei — drei aus einer Sitzung, drei aus einer anderen und einer, der Monate zuvor von Hand in der GUI erstellt wurde — ergaben sieben verschiedene SHA-256-Hashes bei konstanten 334.032 Bytes. Der Unterschied ist die Reihenfolge eines internen Blocks.

  • binarize. Vier Läufe mit einer unveränderten Eingabe ergaben drei verschiedene Ergebnisse: Die Größe änderte sich um 5 Bytes, und zwei 8-Byte-Fragmente entkamen komprimierten Bereichen.

Ein Modell wird also nie über einen Inhalts-Hash gecacht oder verglichen. Was verglichen wird, ist ein struktureller Fingerabdruck — die Art der Datei, ihre LOD-Anzahl und ihre Menge an Namen. Über alle sieben dieser Exporte hinweg war dieser Fingerabdruck ein einziger Wert.

Die gemessenen Werte

Ein kleines Modell, auf diesem Rechner, durch die Werkzeuge:

Schritt

Ergebnis

Zeit

asset_export

MLOD, 334.032 B, 5 LODs, sauber

2,1 s (etwa 8 s bei einem Kaltstart)

asset_build

ODOL v55, 58.646 B, 4 LODs, alle fünf C4-Marker

43,8 s (75,6–78,7 s, gemessen bei vier früheren Läufen)

asset_check

1 Modell und 10 Texturpaare bewertet

Millisekunden

asset_convert

ein PNG zu DXT1, 50.764 B

0,52 s

eine Ablehnung bei falscher Wurzel

bevor irgendein Prozess gestartet ist

0,0003 s

Beide Logs sind fast vollständig Standardtext, und was stummgeschaltet ist, wird gezählt statt verworfen: Blenders 169 Zeilen wurden auf 4 reduziert und binarizes 91 auf 6 — eine dieser sechs war die einzige echte Beschwerde des Modells.

Ende an Ende verkettet reproduzierten der Export und der Build ein Modell, das Monate zuvor von Hand erstellt worden war: gleiche Art, gleiche 4 LODs, dieselben 50 Strings und eine Größe, die ein Byte auseinanderlag.

Was nichts davon beantwortet

Ob das Modell richtig aussieht, richtig skaliert ist, richtig gewickelt ist, eine Kollision hat. Nichts außerhalb des Spiels beantwortet das. C1–C12 verkürzen den Weg dorthin; sie ersetzen ihn nicht.

Bekannte Einschränkungen

  • Stale-pbo-Erkennung basiert auf der mtime, nicht auf dem Inhalt. mod_build lehnt ein frisch gebautes pbo ab, das älter ist als seine Quellen – die übliche Ursache ist ein laufender Server, der die alte Datei noch offen hält, sodass das Packen stillschweigend nichts erzeugt hat. Aber git checkout ändert die Änderungszeit einer Datei, ohne den Inhalt zu ändern; ein einwandfreies pbo, das direkt nach dem Branchwechsel gebaut wurde, kann diese Prüfung daher ebenfalls auslösen. Wenn mod_build unmittelbar nach einem Branchwechsel „stale pbo“ meldet, ist das der wahrscheinliche Grund, kein echter Packungsfehler – neu bauen, dann besteht die Prüfung. Ein ausgereiftes Werkzeug in diesem Bereich ist genau aus diesem Grund auf einen Inhalts-Hash umgestiegen; das ist hier künftige Arbeit, nicht in dieser Phase erledigt (siehe packer.py, pack_one).

  • Ein Mod-Quellordner wird als Ganzes gepackt. mod_build weigert sich, einen Mod zu packen, dessen Quellordner etwas enthält, das auf build.exclude passt (die Standardliste mit sieben Mustern ist oben aufgeführt), anstatt es stillschweigend in das veröffentlichte pbo zu packen. Es verweigert das Packen unabhängig von build.exclude, wenn die Quelle die eigenen Artefakte dieses Servers enthält – die Signatsschlüssel, die eine oder andere Hälfte des Profils, den Job-Speicher, den vorherigen Build des Mods –, denn sich diese Dateien zu packen veröffentlicht den privaten Signatsschlüssel, und kein Projekt sollte das erst wegkonfigurieren müssen. Standardmäßig wird nicht zuerst eine gefilterte Kopie angelegt: Eine Kopie ist immer neuer als die Quellen und würde die Stale-pbo-Prüfung oben dauerhaft deaktivieren, wenn diese Prüfung die Kopie messen würde. build.stage = true wählt das Kopieren trotzdem – das ist nur sicher, weil der Stale-pbo-Vergleich immer den Original-Quellbaum misst und nie die Kopie. Das ist die Struktur, die ein Mod braucht, dessen Quelle das Repository-Wurzelverzeichnis ist (es enthält immer mindestens .git).

  • Ein Valeur 1 beurteilt das gesamte Log, nicht nur die Zeilen deines Mods.** log_verdict liest das Log der Instanz, auf die es gerichtet ist. Wenn sich eine Instanz mit anderen Mods geteilt wird, werden deren Warnungen gegen dein expect.max_warnings-Budget gerechnet und ihre Fehler als Ablehnungsgründe gezählt. Zwei Projekte, die sich einen machine.stand_root teilen, sehen die Baseline des jeweils anderen. Entweder bekommt jedes Projekt eine eigene Instanz, oder du setzt das Budget in dem Wissen, was sonst noch geladen ist. Eine projektbezogene Filter, die symmetrisch zu expect.error_regex ist, wäre die offensichtliche Weiterentwicklung eine Filterung, ist aber nicht implementiert.

  • expect.noise kann eine Zeile, die bereits als Fehler zählt, nicht retten. Die Klassifizierung ist geordnet forbid → crash → error → noise → warning; eine Zeile, die ERROR oder FATAL (oder einen deiner forbid-Strings) enthält, wird also entschieden, bevor noise überhaupt herangezogen wird. Diese Reihenfolge ist absichtlich so – würde zuerst Noise passen, könnte eine harmlose Teilzeichenkette eine fatale Zeile schlucken – aber sie bedeutet, dass noise nur Warnungen und harmlose Zeilen unterdrücken kann, niemals eine Fehlerklassierung bestzur:

  • client_verdict ist ein Fehler-und-Absturz-Verdikt, kein Bereitschafts-Verdikt. [expect] beschreibt das Log des Servers: Dessen Bereitschaftszeile und die Zähler stammen von der serverseitigen Initialisierung eines Mods, und max_warnings is a Budget, das über dieses selbe Log verklärt. Ein Client-.RPT enthält davon nichts. Diese drei Schlüssel werden hier deshalb bewusst nicht angewandt, und die Antwort listet sie in not_applied auf. forbid, error_regex und noise betreffen den Text einer Logzeile und gelten weiterhin. Es gibt keine client-seitige Bereitschaftszeile zu melden; ob der Client es ins Spiel geschafft hat, wird durch die Spielerzahl beantwortet, auf die client_start wartet, nicht durch sein Log.

  • Chat ist vom Gamepad aus nicht erreichbar – und eine Menü-Bestätigung auch nicht. Das Spiel bindet seine Chatzeile ausschließlich an Enter, es gibt keine Bildschirmtastatur; Text ist also entweder eine Bridge-Nachricht (client_chat, kostenlos) oder echte Tastenanschläge (client_type, kostet den Vordergrund). client_type("", submit=True) sendet allein Enter; so wird die Chatzeile geöffnet – das ist, nach dem obigen Beleg, die einzige Bestätigung, die das Toolset hatgot get.

  • Jede Wissenssuche bezahlt einen Durchlauf durch den Projektbaum. Mit diesem Durchlauf wird bei jeder Antwort die Veraltung der Projektebene gemessen; das ist die eine Eigenschaft, für die der Index überhaupt existiert. Er kostet 3,0 ms bei einem echten 41-Quellen-Mod (der Baum hat etwa 1800 Einträge) und 21 ms auf einem Baum mit 2810 Dateien. Wer das für ein bis zwei Sekunden, entfallen auf den Kosten und stellen genau das Fenster der Stille wieder her, das das Design nicht zulässt; wenn es irgendwann zu teuer wird, muss dieser Kompromiss bewusst eingegangen werden, nicht versehentlich.

  • Ein Build läuft immer über einen Job, und der Job kostet mehr als ein kleiner Build. Gemessene Durchlaufzeit: 70 – 95 ms bei einem Projekt-Rebuild von 6 ms: job_wait pollt alle 100 ms. Diese eine Form ist beabsichtigt – ein Aufrufer muss nicht wissen, welcher Build blockiert – und niemand zwingt ihn zu warten, denn die nächste Suche misst die Ebene selbst.

  • Die Abhängigkeitsebene wird gegen das Profil in dessen aktuellen Zustand gemessen. Fügst du einen Mod zu mods.required hinzu, kommen dessen Archive als added; entfernst du einen, lauten seine Archive missing. Das ist die Anforderung (die deklariert Menge gehört zum Aufbau der Ebene), aber es wirkt so, als wäre der Index veraltet, wenn sich in Wirklichkeit das Profil geändert hat.

  • core enthält immer die Konfigurationen des Spiels, und das ist der größte Teil seiner Kosten. 70 s mit ihnen, gegen circa 4 s für die Scripts allein. Es gibt keinen Schalter: Ohne die Configs lässt sich die Frage „Gibt es eine Item-Klasse X?“ nicht beantworten, und ein zweite Achse würde die Alterungsmessung mehrdeutig machen – der Durchlauf wüsste nicht, ob die Addons-Archive zu erwarten sind.

  • knowledge_show antwortet die nächste Ebene zuerst. Bei einer Klasse, die eine Abhängigkeit mit modded class wiedereröffnet, kommt die Deklaration des Mods vor der des eigentlichen Spiels. Das ist die richtige Reihenfolge, aber auch eine überraschende; für die eigene des Spiels übergibt man layer='core'.

  • Bedingte Kompilierung wird indexiert, nicht aufgelöst. 4,9 % der Scripteilzeichen des Spiels liegen in #ifdef-Blöcken, darunter auch etwa hundert Klassen-Deklarationen. Dieser Server Treibserver-, Client- und Diagnose-Builds, also gibt es keine einzige korrekte Defines-Menge: Es wird alles indexiert und die Guard-Bedingung an der Deklaration vermerkt. Ein Name kann also gemeldet werden, den ein bestimmter Build ausschließt – die Alternative, nach einer einzigen Schätzung der Defines zu filtern, würde die Existenz von Methoden verleugnen, die im tatsächlichen Build vorhanden sind.

  • Der Fingerabdruck von C12 enthält die Größe, und die Größe von binarize ist nicht stabil. Das Neubauen eines Modells, das niemand verändert hat, erzeugte ein Artefakt, das ein Byte größer war als das ausgelieferte, mit demselben Typ, der gleichen LOD-Zahl und den gleichen fünfzig Linux-Strings – und a different digest, because size is part of it. Darum kann C12 vor einem Rebuild wahrnehmen das nichts gab. C12 warnt und verweigert nicht – genau aus diesem Grund – und the parts of which it is made are reported last, so can compare be done by hand. The obvious refinement, to then the digest into a stable half and a size, is not done.

  • A partial export warns, not refuses. With the exporter's own default arguments, a model came out with 2 of its 5 LODs and passed every other check. This server does not pass those arguments, so should it actually not happen; but if an object as a LOD is marked and not in the scene is integrated, it counters on one side of the comparison and not on the other, for an which there is a legitimate reason, quindi eine Verweigerung hätte falsche Positive. Sieh dir E3 an.

  • Die Containment-Regel kann nicht jede falsch Wurzel erkennen. It refuses roots that does not have the mod's prefix folder; that is the failure that is measured. A root however, which does contain a folder with this name — for example a repository whose own mod directory is named like the prefix – passes it, and then is that case by C10 or C3/C4 a layer deeper. Measured: With such a root the build refused, then nothing was deployed and the shipped artifact remained, but the refusal came from the job rather than the call.

  • asset_export needs the exporting add-on is enabled in Blender, and cannot install it. Blender is launched with the real settings of the machine owner, because a launch with --withfactory-startup would cause the add-on disappearing. Its root is kicked other add-ons from the search path for this run (two of the ones installed should reach the network at startup and are supposed to be or the crashes called), which Blender as "Add-on not loaded" into the log – that line is the server's own doing, not a fault.

  • A binarized config has no body to show. knowledge_show(body=True) reads a declaration back out of the file or archive which is the one index came, but a config.bin contains the binary form while the index exists what CfgConvert has made. The answer says instead of returning nothing.

Install

python -m pip install -e ".[dev]"
python -m pytest

Register it in your MCP client:

{ "mcpServers": { "dayz": { "command": "dayz-mcp" } } }

Licence

mit GPL-3.0-or-later. In NOTICE.md see.

Available Tools

55 tools
asset_buildA

Build a mod's models from their MLOD sources and put them in the mod.

Returns a job_id immediately: ONE small model measured 75.6 to 78.7 seconds across four runs, so this can never be a blocking call. Wait for it with job_wait(job_id, timeout=...) -- give it minutes, not seconds -- and read the numbers in the job's summary and its asset-build.json artifact.

What it does, in order: run binarize with its working directory set to the project root declared as build.project_root, judge the ARTIFACT that came out (never the tool's exit code -- three separate broken outcomes were measured exiting 0, one of them leaving a zero-length file), and only then copy the models into the mod. A refused build deploys nothing and leaves the artifact the mod already ships exactly as it was.

mod names one of build.mods; with a single declared mod it can be omitted. source is the model directory relative to the mod's own folder under the root (e.g. "data/models"); left out, the only directory holding .p3d files is used and two candidates are a refusal rather than a guess. deploy=False builds and judges without writing into the mod.

The source is the MLOD export and the ODOL is the build's output (decision D3). Handed an ODOL, binarize dies with 0xC0000005 and leaves a zero-length file behind, so that is refused before the process starts.

Model.cfg is never copied for you: it is what the artifact was built from, and a mismatch between the copy under the root and the copy in the mod is reported by C11 with what to do about it. Rebuilds are not byte-stable and are not expected to be -- what a rebuild is compared against is structural.

Inputs: mod, deploy, source. Returns: ok, data, hint, error

asset_checkA

Judge the models and textures a mod already ships. Builds nothing.

Needs no DayZ Tools and no build: every check reads a file that is already on the disk, because the tools that produce these files are structurally unable to report failure. Answers in milliseconds.

Twelve checks (C1-C12). Four of them refuse, and this call fails when one does: a built model is there and is an ODOL, no reference escapes the mod, a material was actually inlined, and nothing already binarized is offered back to binarize. The rest warn -- dangling references, an rvmat pointing into another mod, a transparency lost to DXT1 (C7), an animation that never reached the artifact, a model.cfg that is not the one the artifact was built from, and a structural fingerprint that no longer matches what the last build deployed. Every finding says what to DO about it.

model narrows it to one file, relative to the mod's directory. Files the packer will drop (build.exclude) are not judged: a refusal about a file that never enters the pbo is a refusal about nothing.

A texture is judged against the PNG it came from -- beside it or at the same place under build.project_root -- because a legitimately opaque texture and one whose transparency was destroyed are identical in the output alone.

Inputs: mod, model. Returns: ok, data, hint, error

asset_convertA

Convert one texture between .png and .paa, and judge the result.

Which compression ImageToPAA writes is decided by the SOURCE FILE'S NAME, and nothing says so at the time: a name ending in _co produces DXT1, which keeps ONE BIT of alpha. A source measured 6 distinct alpha levels going in and 2 coming out. So this measures the source's alpha before converting, warns before the loss and again after it (C7), and says what to do -- rename the source to end in _ca, because the output itself cannot be repaired once the levels are gone.

source is absolute, or relative to the repository, or relative to build.project_root. output defaults to the same name with the other extension, beside the source; a relative output also lands beside it.

The verdict is read off the file that was written, never off the exit code.

Inputs: source (required), output. Returns: ok, data, hint, error

asset_exportA

Export a model out of a .blend into the project's model root.

Returns a job_id; wait for it with job_wait(job_id, timeout=...). One five-LOD model measured 2.1 s warm and about 8 s cold, but the ceiling is minutes, because how long an export takes is a property of the model.

This is the pipeline's OPTIONAL first step. It produces the MLOD; the binarized model that the game loads is what asset_build makes from it, and that is a separate call on purpose -- each half has its own verdict, and a mod whose .p3d came from somewhere else skips this entirely.

The project root declared as build.project_root is pushed into the exporting add-on for the duration of the run, so what the add-on has stored decides nothing. That matters: an add-on preference is remembered from whatever was open last, and against the wrong root every texture path comes out with the drive letter stripped and the rest kept -- valid-looking, resolving to nothing, reported as a success.

The verdict is read off the file: it must be an MLOD, this run must be what wrote it, all of the source's LODs must have reached it, and none of its references may leave the mod. Measured on a real model: with the exporter's own default arguments, 2 LODs of 5 came out as a valid MLOD with correct paths, FINISHED, exit 0, and no mention of it in 169 lines of log.

blend is absolute, or relative to the repository, or relative to build.project_root. source is the directory the model should land in, relative to the mod's own folder under that root (e.g. "data/models"); with exactly one such directory already holding models it can be omitted. name is the file to write, defaulting to the source file's own name with a .p3d extension.

Nothing else is touched: an export that produces nothing leaves the model that is already there exactly as it was, and Blender's user preferences are never written back.

Inputs: blend (required), mod, name, source. Returns: ok, data, hint, error

bridge_buildA

Pack the bridge mod from this repository's own sources.

The bridge is the server's own mod, not the project's: one copy serves every project, and it is built UNSIGNED -- no project's signing key is used, and the output folder is kept free of signatures and keys.

Building it does not load it. Attaching it stays a profile decision (the job summary prints the two lines to add), because the bridge is an extra pbo in the stand and a run without it has to remain possible.

Inputs: no named parameters. Returns: ok, data, hint, error

bridge_clearA

Discard whatever command is sitting in the mailbox.

The remedy for bridge_status's stale_command. Inside the game, claiming a command IS deleting the file, so a command sent while the stand was down, or before the bridge was wired into -serverMod, is never claimed and never expires on its own: it blocks every later send until something removes it. Two things on this side do -- this tool, and server_start, which clears the transport before every boot. A stand booted outside these tools would run the command instead.

Its own tool, and never a side effect of asking for status: throwing away a queued command is a decision, and bridge_status reporting the wedge must not be the thing that silently resolves it.

Refuses when anything suggests the bridge is alive, because a running mod could claim that command at any moment and destroying live in-flight work is worse than leaving the wedge. FIRST on the plain fact that a server this session started is running -- whatever its bridge is or is not publishing, which matters most for a mod that has not started writing state yet -- and that refusal costs no probe at all. Otherwise the channel probes for probe_window seconds and refuses on a tick that moved, on a world that restarted, AND on a readable first sample followed by an unreadable second one -- that last is proof something was alive moments ago, which a downed stand never produces. force=True overrides all of it, and what it overrode is reported either way.

Inputs: force, probe_window. Returns: ok, data, hint, error

bridge_statusA

Is the bridge inside the running game still ticking?

Blocks for up to window seconds (default 2, clamped to STATUS_WINDOW_MAX) because that is what it costs to see a tick MOVE. window=0 returns at once and then usually cannot tell -- it reports "unknown", never "frozen".

A stand with no state file at all now costs the FULL window too (measured: 2.07s at the default, 10.05s at the cap), because the reader retries to the deadline rather than giving up on the first miss. If the question is only "is the bridge publishing anything yet" -- the usual one while wiring it up -- pass window=0 and get the same answer in a tenth of a second; a window buys movement, and nothing else.

The answers, told apart in this order:

no_server nothing is running, so there is nothing to ask. Checked FIRST and on the process, not on the file: the state file outlives the server that wrote it, and reading a leftover snapshot as a live bridge is precisely the lie this ordering prevents. stale_command the same, but with a command still sitting in the mailbox. Its own answer because the remedy is its own: the command does not expire, it blocks every send, and a stand booted OUTSIDE these tools would pick it up. (server_start clears the transport before every boot, so a server started through these tools will not.) no_state_file / the server is up but nothing readable came back. Four outdated_bridge / fixes, so four answers: the mod is not loaded; the mod invalid_state / predates this server's protocol (no session_id at all); unreadable_state the document is valid JSON but a named field is wrong (the answer says which field, what was expected and what was seen, and it is checked twice a publish interval apart so a mangled write is never reported as a schema bug); or it does not parse at all. alive / restarted a comparison was made. alive means the tick moved; / frozen / restarted means a new world came up mid-sample (also unknown alive, and NOT frozen); frozen means the same world was seen twice without moving; unknown means no comparison could be made. Only the first two return ok.

Inputs: window. Returns: ok, data, hint, error

client_chatA

Put a line in the connected player's chat. FOCUS IS NOT NEEDED.

Said plainly because the general rule about typing does not apply here. Chat is a SERVER-SIDE MESSAGE: the engine hands the mod a call that delivers text to a player, so the bridge sends it as data -- no keyboard, no window, no foreground, and nothing taken away from whoever is at the machine. It is also more trustworthy than real typing, because the command carries an id and comes back with the mod's own confirmation instead of "typed it and hoped".

This is NOT the tool for a mod's own input field -- a PDA, a terminal, a form. Those exist only on the client and are filled by client_type, which does need the foreground.

The line goes to EVERY connected player, and the answer says how many got it: the engine's call names one recipient, so a verb that quietly took the first player would put the line on one screen and leave it missing from the one the caller was watching.

color is one of colorStatusChannel (the default), colorAction, colorFriendly or colorImportant. Anything else is refused BY THE MOD rather than passed on, because the client turns a colour class it does not know into plain white and says nothing about it. Long lines are refused too, rather than cut somewhere the caller cannot see.

What success promises is that the engine accepted the call for each named recipient -- not that the line was visible. A client drops whole chat channels according to the player's own profile options, so an accepted line that nobody can see is a client setting, not a fault in the bridge.

Requires the bridge to be loaded and ticking, like every other world command, and requires the stand to be running a bridge build that knows the verb; if it is not, the mod says so and the hint says what to do.

Inputs: text (required), color, timeout. Returns: ok, data, hint, error

client_compile_checkA

Compile the CLIENT half of the scripts and judge the result. Returns a job id.

A server boot never compiles anything behind the client-only guard, so a broken menu, a broken widget or a broken client-side action passes every server check and then breaks in front of a player. This runs the diagnostic client for wait_seconds, stops it, and judges what it wrote -- and the verdict does not accept a clean log on its own: the game's own "Module: Mission" line has to appear, otherwise "no errors" only means "not that far yet" and the job says so.

The client runs against a THROWAWAY -profiles directory inside this job's artifacts, so it never reads or writes the test stand. It also joins nothing: this is a compile pass, not a session. For the live client that connects to the stand -- and for looking at it, acting through it, and judging its .RPT -- the tools are client_start and its siblings, and log_verdict(source="client") reads THIS job's log while client_verdict reads the live client's.

extra_mods appends to the -mod list for this run only, for checking that a mod still compiles alongside another one.

Inputs: extra_mods, wait_seconds. Returns: ok, data, hint, error

client_lookA

Turn the camera with the right stick. NO FOCUS NEEDED.

Same units and the same guarantees as client_move: x positive right, y positive up, clamped to [-1, 1], released on every exit path.

Inputs: x (required), y (required), seconds (required). Returns: ok, data, hint, error

client_moveA

Walk the character with the left stick. NO FOCUS NEEDED.

x is positive to the right, y positive forward, both in [-1, 1] and clamped (and reported as clamped) beyond that. client_move(0, 1, 6) is the measured 24 m walk. The stick is back at rest when this returns, on every path including a failure -- a stick left engaged is a character running forever with nobody watching.

This is the only tract that moves the character at all: keyboard emulation was measured at 0 m over 25 s with the foreground verified. It is also the only one that is ANALOG, so "walking rather than sprinting" is testable here and nowhere else.

The first call attaches a virtual controller to this machine, which the game can see -- DayZ switches its on-screen hints to controller mode -- and the answer says so. client_stop unplugs it.

Inputs: x (required), y (required), seconds (required). Returns: ok, data, hint, error

client_pressA

Press one gamepad button. NO FOCUS NEEDED -- this drives the INTERFACE too.

Measured with a third-party application holding the foreground the whole time: right_shoulder moved between options tabs, back opened and closed the inventory, b left the menu. So menus and inventory are reachable without ever taking the screen from the person at the machine, and that is why this module offers no window messages and no mouse: window messages were measured to do nothing at all.

What a pad cannot do is type -- DayZ has no on-screen keyboard. Text in chat goes through client_chat (server-side, no focus); text in a mod's own input field goes through client_type (real input, foreground).

Buttons: a b x y back start left_shoulder right_shoulder left_thumb right_thumb dpad_up dpad_down dpad_left dpad_right.

Inputs: button (required), seconds. Returns: ok, data, hint, error

client_shotA

Capture the client's window to a PNG. NO FOCUS NEEDED.

Measured rather than assumed: the frame is live with the client at the very bottom of the z-order and live when it is in front. The one state it cannot survive is MINIMIZED -- the client area collapses to 0x0 and there is nothing to copy -- and that is refused with a hint saying to restore the window, not reported as an empty picture.

lit_fraction in the answer is the honest half: a black capture is exactly the failure that otherwise reports success, so the fraction of non-black pixels comes back with every shot. A dark frame is never failed -- night is dark -- but a caller reading 0.0 knows the eyes were shut.

With no path the file lands in this project's own .dayz-mcp/shots.

Inputs: path. Returns: ok, data, hint, error

client_startA

Start the game client and connect it to the test stand. Returns a job id.

Three things worth knowing before calling, all of them observable:

IT LAUNCHES WINDOWED, always. A fullscreen D3D window does not yield the foreground -- an attempt to cover one simply hung -- so a fullscreen client can be neither typed into nor left behind while the owner works. The window size itself is the client profile's business (DayZ.cfg), not this server's.

IT REFUSES WHEN THERE IS NO STAND TO JOIN. The client connects, it does not listen, so there is no port of its own to pre-flight; what there must be is something already on the stand's port. Without that the client sits at the server browser forever and every later tool answers about a client that never joined anything.

IT READS pauseMode AND WARNS. That setting (GAME -> UPDATE IN BACKGROUND, stored in the client's own profile) is why the screenshot is a live frame and why the gamepad moves the character while another window has the foreground. At another value both stop working with nothing said anywhere, so the value is reported on every start and a warning is attached when it is not the one measured here. It is never rewritten: it belongs to the person who owns this machine and is changed from inside the game.

READINESS IS THE PLAYER COUNT IN THE BRIDGE STATE, NOT A TIMER. Connecting took about 50 s when it was measured and it varies; a timer would call a still-loading client ready and a never-connecting client a success. The job finishes when the bridge publishes players >= 1, and if that never happens the failure says which of the two things went wrong -- the bridge was never readable (the signal was unavailable) or it was readable and nobody joined (the client itself did not get in).

extra_args appends launch arguments after the fixed ones, an explicit one-run opt-in. Arguments this tool computes (-connect, -port, -mod, -profiles, -window, -nolauncher) are refused rather than allowed to displace its own.

Inputs: timeout, extra_args. Returns: ok, data, hint, error

client_statusD

Everything about the client that decides whether the other tools can work.

Four questions in one answer, because each of them has silently broken a run before: is the process alive; is its window in a state the eyes can capture (a MINIMIZED window cannot be captured at all -- its client area is 0x0); is UPDATE IN BACKGROUND still at the value that keeps the frame live and the gamepad effective while unfocused; and has the client actually joined the stand (the player count the bridge publishes).

Inputs: no named parameters. Returns: ok, data, hint, error

client_stopA

Stop the client this session started, and unplug the virtual controller.

The pad goes with it deliberately. Nothing else in this tool set closes it, and a controller left attached is visible inside any game running on this machine -- DayZ switches its on-screen hints to controller mode as soon as one appears. Stopping the client is the end of the input session, so it is where the device is given back.

Takes no pid on purpose: the client runs the same executable as the server, so a pid argument could not be checked against the image the way server_stop's is, and "stop this pid" would become a general process killer.

Inputs: no named parameters. Returns: ok, data, hint, error

client_typeA

Type into a CLIENT-SIDE INPUT FIELD -- a mod's PDA, terminal or form. REQUIRES THE ACTIVE WINDOW, and takes it.

This is not chat. Chat is a server-side message and client_chat delivers it with no focus at all; use that unless the point of the test IS the typing. What this tool is for is the case the bridge cannot reach: a field that exists only on the client, which can only be filled the way a person fills it -- the input line opening, the characters landing in the field, the keyboard layout behaving.

So it brings the client window to the front and VERIFIES that it got there before sending a single keystroke. If Windows refuses -- which it does to a background process -- nothing is typed and the refusal says so, rather than keystrokes going into whatever window the person at the machine is using. That accident happened here once and is why the verification is not optional.

A successful call reports that the foreground was taken, because that is a side effect on a human, not an implementation detail.

The text is typed as US-layout scancodes, because the client starts on another layout and a virtual-key code would produce different characters. Anything with no scancode is refused by name BEFORE the screen is taken -- an underscore that arrived as a hyphen once failed a run as if the mod were at fault.

submit presses Enter afterwards, so filling a field and confirming it does not need a second tool that takes the foreground all over again. With submit=True and EMPTY text it sends Enter and nothing else, which is the only way anything in this tool set can confirm or open something. Measured on a live client: the game binds its chat line to Enter alone, and the virtual gamepad's A button -- the obvious candidate for a confirm -- moved nothing in the pause menu at 0.1 s or 0.5 s, while B (back) dismissed it at the default. So dismissing is a gamepad job and confirming is this one. Empty text WITHOUT submit is still refused: it would take the foreground to do nothing at all.

Inputs: text (required), submit. Returns: ok, data, hint, error

client_verdictA

Judge the running (or last) client by its own .RPT.

The .RPT and not a script log, and that is a finding rather than a preference: in the Steam DIAG build the script log receivers are compiled out, so -logToFile / -logToScript / -logToRpt inject nothing and no script_*.log is produced for a client at all. Whatever the mod printed to the RPT is here; whatever it wrote only to the script log does not exist, and this says so instead of returning a clean verdict over an empty file.

Not to be confused with log_verdict(source="client"), which judges the throwaway profile a client_compile_check job produced. This one judges the LIVE client -- the one client_start launched, against the stand.

since ties the verdict to a run (pass the value client_start returned): a report last modified before it belongs to an earlier client and is refused as a reason rather than silently judged.

Inputs: since. Returns: ok, data, hint, error

job_artifactsD

Inputs: job_id (required). Returns: ok, data, hint, error

job_statusD

Inputs: job_id (required). Returns: ok, data, hint, error

job_waitA

Wait for a job to finish, or until timeout seconds pass.

timeout is clamped to at most MAX_WAIT_SECONDS (600s) regardless of what is requested.

Inputs: job_id (required), timeout. Returns: ok, data, hint, error

knowledge_buildA

Build or refresh a knowledge layer. Returns a job_id immediately.

Layers, and how often each one needs this:

project the mod's own sources, read where they lie. Goes stale on every edit -- rebuild it whenever you want to ask about code you just wrote. Measured: 0.11 s for 41 files. deps the archives of the mods this project declares as dependencies, read without unpacking them. Stale when a dependency is updated or the declared set changes. Measured: 150 s for 36 mods. core the game itself: scripts.pbo for the API, Addons/*.pbo for the item classes. Stale when the game updates. Measured: 3.9 s for the scripts alone, 69 s with the configs. all (the default) every layer that applies to this project. Layers that cannot be built here -- no game installed, no dependencies declared -- are named with the reason instead of failing the call.

Nothing here blocks: wait with job_wait(job_id, timeout=...) and read the per-layer numbers in the job's summary and its knowledge-build.json artifact.

only=[path, ...] is the fast route for the project layer when you already know what changed. It re-reads exactly those files and skips the directory walk entirely -- and it therefore does NOT notice a file created or deleted anywhere else. A named path that no longer exists is dropped from the index, so a delete you name is handled; one you do not name is not. Without only, every build is incremental anyway: unchanged sources are skipped by size and modification time, and full=True forces the whole layer to be re-read.

Inputs: full, only, layer. Returns: ok, data, hint, error

knowledge_callersA

Who CALLS this -- every place a method is invoked or a class is built.

A different question from knowledge_overrides, and one no search over declarations can answer: an override is a declaration, a call is not. This is the question asked before changing a signature, before removing something, and when working out how a piece of the game is actually used.

kind narrows to call or new. owner narrows to calls made from one class. Each hit names the class and method it was made from, the file and line, and the layer -- with that layer's age, like every other answer here.

What it does NOT see, so that an empty answer is not read as proof: a call reached through a variable whose type the index does not track is recorded under the method's own name, not the variable's, and new array<string>() has no identifier before its parenthesis to record at all.

Inputs: name (required), kind, layer, limit, +1 more. Returns: ok, data, hint, error

knowledge_findA

Find declarations by name: classes, methods, constants, enums, configs.

Matching is case-insensitive and exact unless prefix=True. Answers come nearest-layer-first -- the project's own declaration before its dependencies', and those before the game's.

kind separates two namespaces that share a name space:

'class' a class declared in Enforce Script 'method' a function, with its owning class and full signature 'constant' / 'enum' what flags like ECE_* are found through 'config' a class declared in a config.cpp or a binarised config.bin -- this is how you ask "does the game have an item class called X". Kept apart because the game alone holds 88 102 of them against 43 595 script declarations, and mixed together they bury every script answer.

Every answer names the layers it used and how old each one is -- and an answer with no results names every layer it searched, because "not found" is worth exactly as much as the layers behind it are current. The project layer's staleness is measured on every call, so an answer taken from an index built before your last edit says so instead of describing code that no longer exists. A search that finds nothing while a layer that could have held it was never built is refused, not answered: "not found" and "not looked" are different facts.

Narrowing has the same trap one level down, so an empty narrowed answer checks whether the name exists outside the narrowing and says where in elsewhere -- asking for kind='class' about a name the game declares only in a config gets a true "no" that reads as "the game has no such class".

Every search runs under a hard time ceiling and a result limit; neither can be removed.

Inputs: name (required), kind, layer, limit, +2 more. Returns: ok, data, hint, error

knowledge_overridesA

Who overrides this class or this method -- the question a text sweep answers worst.

For a method: every declaration of it marked override, and every one declared inside a modded class, which routinely replaces a method without writing override at all. The original declaration is not an answer.

For a class: everyone who extends it, and every modded class that reopens it.

Both readings are answered at once, because a caller asking "who overrides X" usually does not yet know which X it is. The answer names the layer each hit came from and how old that layer is; a search over a layer that was never built is refused rather than answered emptily.

Inputs: name (required), layer, limit, owner. Returns: ok, data, hint, error

knowledge_scopeA

Declare, inspect or clear the active mod set.

With no arguments it reports the set in force and every mod folder the dependency layer holds, so a caller can see what there is to choose from.

mods=[...] narrows every knowledge answer to those mod folders. The game and the project's own code always answer -- the game is the substrate a DayZ mod is written against, and the project layer is the code being written, so narrowing either would report "no such class" about code you are looking at.

Nothing is hidden by the narrowing. A search whose answer lies in a mod outside the set does not come back empty: it comes back naming the mod that holds it, and it comes back as a refusal, so it cannot be read as "no such thing". That is the whole point of the feature -- an invisible narrowing is the same silent lie as an answer from a stale layer.

source is free text saying where the set came from ("the server at

clear=True returns the index to answering from every mod it holds. An empty mods=[] is refused rather than read as "narrow to nothing": those are different requests and only one of them is ever meant.

The set is stored beside the index and survives a restart. It is NOT changed by server_mods, which only proposes one.

Inputs: mods, note, clear, source. Returns: ok, data, hint, error

knowledge_showA

Everything the index holds about one declaration.

Where knowledge_find lists matches, this expands them: the full signature, the file and line, what the declaration inherits from all the way up, and -- for a class -- what is declared inside it.

body=True reads the declaration back out of the source it was indexed from, up to max_lines lines, including out of an archive that was never unpacked. A binarised config has no readable source to return and says so rather than returning nothing.

Matches come nearest-layer-first, so a class a dependency reopens with modded class is shown before the game's own declaration of it: pass layer='core' to ask the game specifically.

Like every answer here, it names the layer each declaration came from and how old that layer is -- and when it finds nothing, every layer it looked in.

Inputs: name (required), body, kind, layer, +3 more. Returns: ok, data, hint, error

knowledge_statusA

What each knowledge layer holds, how old it is, and whether it still matches what is on disk.

Staleness is a measurement, never a guess: each layer records the size and modification time of every source it read, and this compares them against the files as they are now. A layer reports what changed, what appeared and what is gone -- so "the project was edited" is a different fact from "the game was updated", which is the whole reason there are three layers.

Two counts that must not be confused, and both are here: sources is everything the build walked, and empty_sources is how many of those gave no declarations at all -- an archive that could not be read, or a file that genuinely declares nothing. Which of the two is in last_build: skipped is what the LAST build could not read, and outstanding is every source the layer still holds nothing from, including ones an earlier build found. The second exists because the first is correctly empty after an incremental build that re-read nothing, which left empty_sources standing with no explanation at all.

Inputs: no named parameters. Returns: ok, data, hint, error

log_tailD

Inputs: n, source, pattern. Returns: ok, data, hint, error

log_verdictA

Judge the newest log for source.

since ties the verdict to a specific run (typically the value server_start returned): a log last modified before since cannot belong to the run being judged -- it is a leftover from an earlier boot (possibly one still holding the file open on Windows) -- so it is refused as a reason, not silently judged.

Inputs: since, source. Returns: ok, data, hint, error

mod_buildA

Pack this project's mods. Returns a job_id.

Runs mod_lint first and refuses on what it refuses. That check costs milliseconds and the boot it replaces costs a minute -- and two of the defects it names would not appear in that boot's log at all, because a modded class that modifies nothing loads and reports success.

skip_lint=True packs anyway. It exists because a refusal that cannot be overridden is a refusal that gets worked around by not using the tool.

Inputs: skip_lint. Returns: ok, data, hint, error

mod_lintA

Check a mod's Enforce Script without packing or booting anything.

mod limits the check to one of the project's mods; empty checks them all. strict makes warnings count as failure too -- off by default, because a warning is something to read, not something to stop for.

Refusals: a class that extends itself (modded class X extends X loads and applies nothing), an exception statement (try/catch/finally are not Enforce), and a modded class whose target nothing declares.

Warnings: a statement continued onto the next line with a leading +, which Enforce drops silently.

The modded class check needs the knowledge index, and says so when the index cannot answer: an unbuilt layer makes it warn rather than accuse, because "no such class" and "I have not read the game yet" are different answers and only one of them is the mod's fault.

Inputs: mod, strict. Returns: ok, data, hint, error

project_openD

Inputs: path (required). Returns: ok, data, hint, error

project_statusD

Inputs: no named parameters. Returns: ok, data, hint, error

server_modsA

Ask a running server which mods it runs, and PROPOSE an active set.

address is "host" or "host:port"; query_port overrides an embedded one. It must be the QUERY port, not the game port. The game port never answers a Source query -- measured on six live servers, silent on all six, while the query port answered on all six. The two are not related by a fixed offset (252 distinct offsets in a live sample): a server browser shows it, and for a local stand it is steamQueryPort in the server config.

The answer is three buckets, matched by Workshop id and never by name:

matched the server runs it and it is installed here on_server_not_installed the server runs it and this machine has not installed_not_on_server installed here, the server does not run it

Nothing is applied. proposed_scope and apply are a suggestion and the exact call that would take it; running that call is a separate, deliberate act. A query that silently rescoped the index would make a mismatch an invisible action rather than something the caller read.

Three things this cannot see, and it says so in notes rather than letting the answer read as complete: server-only mods (reasoned, not tested), the BUILD of a mod behind an id, and mods downloaded but not linked into the modpack.

Inputs: address, timeout, query_port. Returns: ok, data, hint, error

server_signaturesA

Read -- or deliberately change -- the stand's signature policy.

With no argument this only reports. With value it writes verifySignatures into the config the profile names as this stand's, and reads it back.

WHY THIS IS ITS OWN TOOL. verifySignatures = 2 makes a stand refuse every client with code 118 and "missing dtain.pbo" -- a vanilla file name that says nothing about signatures, and that has already cost one session a long hunt through byte-identical files. On a local stand the honest fix is usually to turn the check off rather than to sign a throwaway bridge mod, and doing that by hand in somebody's config is worse than doing it here, where the previous value is reported, the file is read back, and nothing else in it is touched.

WHAT KEEPS IT SAFE. It edits exactly one file: machine.stand_root / machine.config, the stand this project already boots, and it refuses a path that resolves outside that root. It refuses while a server is running against that config, because a change the running server will never read is a success message about nothing. And it says which way the setting moved: 0 is off, and the answer says so in words rather than leaving a number.

Inputs: value. Returns: ok, data, hint, error

server_startA

Start the test server and wait for it to be ready. Returns a job id.

Two things worth knowing before calling, both observable:

It CLEARS THE BRIDGE TRANSPORT first -- the command mailbox and the state file in the -profiles directory are removed before the server is spawned, so no world ever starts against a command or a state document left by an earlier one. Script logs are deliberately left alone; see clear_bridge_transport for why the two are treated differently. A file that could not be removed is reported in bridge_transport_left and on the job, and never fails the boot.

It REFUSES if the game port is already held, naming the pids holding it. A stand is shared -- one machine, one port, one profile directory -- and booting into a held port produces a server that dies during world load with nothing in its own log to say why. If the holder is a server this session started, the hint says to stop it with server_stop. If it is anyone else's, the refusal identifies it (pid and -mod= tail) and offers stopping it as the caller's own act -- the owner authorised stopping a neighbouring stand that blocks a live run -- but this tool never auto-stops a process it did not start.

extra_args appends launch arguments after the fixed ones -- an explicit one-run opt-in, the same pattern as attaching the bridge, not profile surgery. A list of strings, never one string to re-split. Arguments the tool itself owns (-config, -profiles, -port, -mod, -serverMod) are refused: the profile is where those are decided. The extras are recorded in the boot job's summary, so a later reader can see the boot was non-standard. The known use is the engine's action log (-doScriptLogs=1 -logToFile=1), which writes to scriptExt.log -- a file log_verdict never reads, so these flags cannot poison a verdict.

Readiness has two independent signals, and the summary always names which one answered. expect.ready_line appearing in a log written by THIS run says the MOD finished loading. The game port being bound by the pid we spawned says the ENGINE is up and listening -- which needs neither a mod nor a declared line, and is the readiness verdict for a project that declares none (measured on a real stand: bound 16.9s after spawn). With a ready line declared it remains the verdict, since a bound port cannot say a mod loaded; the port is then what tells "the boot failed" apart from "the server is listening and it is the mod's line that never appeared".

Inputs: timeout, extra_args. Returns: ok, data, hint, error

server_statusA

A quick health read: is the process alive, and is its log actually growing.

A hung boot and a slow one both look "alive, no ready line yet" from the outside -- this project has hit a genuine post-compile server hang before -- so this samples the newest log's size twice, pulse_seconds apart, and also reports how long it has been since the log last changed at all.

Inputs: pulse_seconds. Returns: ok, data, hint, error

server_stopA

Stop a server this session is responsible for.

With no pid, stops the session's own currently tracked server (the original behaviour). With pid, stops that specific process instead -- but only if this session started it at some point, or it was reported as orphaned_server_pid by project_open after a project switch (see session.known_pid). Any other pid is refused: this is the only way an orphaned server can be reached at all, and it must not become a general process killer.

Either way, the pid is checked against the recorded image name before it is handed to stop() (which calls taskkill): a recycled Windows pid can belong to an unrelated process by the time this runs, and killing that process instead would be a worse outcome than the stale bookkeeping this guards against.

Inputs: pid. Returns: ok, data, hint, error

ui_clickA

Press a widget, by path, having checked it is still the one meant.

expect_name and expect_class are how a path stops being a loaded gun. A tree walked a minute ago is not the tree in front of the mouse now, and pressing "whatever is at 0.3.1 today" is how an automated run presses the wrong button and reports success. Both are optional -- sometimes the caller genuinely means "whatever is there" -- but then that is the caller's own decision, taken in the open.

TWO TRACTS, and the answer always says which one was used:

  • via="script" delivers the click to the open menu's own handler. Works with the client in the background, no focus taken. Reaches ONLY the open scripted menu: Widget has no GetHandler, so a HUD widget's own handler is not reachable from script at all.

  • via="cursor" puts the real mouse on the widget's rectangle and clicks. Reaches anything the player could click -- and TAKES THE FOREGROUND, like client_type, because a real click goes wherever the real cursor is.

A handler that returns false is reported as what it is: the click was delivered and the menu did not act on it. That is a fact about the mod, not a failure of this tool, and the answer says so rather than inventing a verdict.

Inputs: path (required), via, root, button, +3 more. Returns: ok, data, hint, error

ui_findA

Find widgets by name, class or text, without fetching the whole tree.

name and class_name match exactly; text matches as a substring, because a label's exact string is the one thing a caller rarely knows in advance. At least one of the three is required -- with none of them this would be ui_tree, and answering it as such would hide which question was actually asked.

Filtering happens in the client, not here: sending the whole tree back so it could be filtered locally is exactly what the page limit exists to avoid.

Inputs: name, root, text, depth, +3 more. Returns: ok, data, hint, error

ui_menuA

What the client's interface is doing right now.

Free: the client half republishes the open menu's class, whether the cursor is visible and whether a modal dialog is up on every tick, so this answer is already on disk and costs no command round trip -- the same bargain world_state makes with no arguments.

Inputs: no named parameters. Returns: ok, data, hint, error

ui_textA

Write into an edit box, and read it back.

Only a field the player could type into may be written. A plain TextWidget has SetText too, but writing a mod's label from outside would change what the player sees without changing anything the mod believes -- a lie drawn on the screen -- so it is refused rather than quietly allowed.

The value is read back out of the widget before the answer is returned: SetText is native and returns nothing, so "it was set" would otherwise be this tool's own claim about itself.

Inputs: path (required), text (required), root, timeout, +2 more. Returns: ok, data, hint, error

ui_treeB

The client's widget tree: what is on screen, as the engine holds it.

root is "menu" (the open scripted menu, the default) or "screen" (the whole workspace). Each node comes back with its path, class, name, visibility, screen rectangle, depth and -- where the engine allows it to be read -- its text.

The answer is A PAGE: total is how many nodes the walk visited and count is how many it listed, and truncated says when they differ. A shorter list that did not say so would read as the whole interface.

Inputs: root, depth, limit, timeout. Returns: ok, data, hint, error

world_actionA

Run a mod's own action through the engine's gate, on the server.

action_class is the action's script class name. There is deliberately no verb dictionary: the same word means different things in a mod depending on context, so applicability is decided by the ACTION'S OWN Can() -- and its refusal is a meaningful test result, not a tool failure. The distinguishable refusals, classified in the mod before the engine is touched: the manager is busy; the player is already acting; the player is sprinting; the action class is unknown; and "the action's own Can() said no" -- the last one being the answer this tool exists to produce.

target_class names the config class of the object to aim at (resolved to the first match near the player); many actions take no target and it can be omitted. subject optionally names a Man-derived entity class to act AS instead of the connected player -- a diagnostic escape hatch, because a spawned survivor owns an action manager while not being counted as a player.

"Accepted" is not success: the engine can drop an accepted action one frame later without clearing it. The mod therefore holds the command running until the manager actually releases the action, and any failure path releases it too -- otherwise that player could never act again for the rest of the session. Expect an answer only after the action has genuinely ended; a stuck action fails by the mod's own 20s watchdog, with the release noted in the detail.

Inputs: action_class (required), pos, radius, subject, +2 more. Returns: ok, data, hint, error

world_deleteA

Delete every object of class_name within radius of pos (or of the player, when pos is omitted).

The class is required: the mod will not delete everything nearby regardless of class, and the radius is clamped on its side. Players are never deleted, whatever the class filter says.

Inputs: class_name (required), pos, radius, timeout. Returns: ok, data, hint, error

world_entitiesA

WHICH objects are nearby, not how many.

world_state(class_name=...) counts; this one names them, with each object's class, position, distance and health. An empty class_name lists everything found rather than nothing.

The list is a page: the mod caps it at 200 entries and reports the true total separately, so total larger than count means there is more out there -- never a shorter list quietly standing in for the world.

distance is HORIZONTAL, because the engine's own radius test ignores height: at the centre of Chernarus the terrain is 300 m up, so a straight-line distance from a position written as "7500 0 7500" reads 320 m for objects the engine returned inside a 150 m radius. A number that contradicts the filter that produced it is worse than no number.

Players are not in it. The mod's own gather step skips them, which is what keeps a delete of everything nearby from reaching the person standing in it, and this tool shares that step deliberately rather than growing a second notion of what is in the world.

Inputs: pos, limit, radius, timeout, +1 more. Returns: ok, data, hint, error

world_execA

Send an arbitrary verb through the bridge -- the debugging escape hatch, not a testing path.

This server does not know the verb, does not validate its arguments beyond stringifying them, and does not answer for what the mod does with it; every answer is marked non_standard to say so. Anything a mod's behaviour can express as an ACTION should go through world_action instead, where the mod's own Can() gives the refusal meaning.

A verb this bridge build does not know comes back as a failure listing the verbs it does -- that is the mod answering, not this tool guessing. A project that needs its own verb adds it to ITS OWN copy of the bridge's dispatcher (IsKnownVerb, the routing, and a handler); this server ships no registration machinery on purpose, because a verb the server typed and validated would be a verb the server answers for.

The verb must be lowercase ASCII (letters, digits, underscore, up to 41 chars): the mod recovers a command's id by a raw string search when a parse fails, and the id embeds the verb -- characters outside that set can make a failure impossible to correlate, which is the silence this product exists to remove.

Inputs: verb (required), args, timeout. Returns: ok, data, hint, error

world_readyA

Wait until the bridge inside the game is actually ticking.

Call this once after server_start's boot job finishes and before the first world command. The bridge publishes its first state during mission init but does not start reading commands until tens of seconds AFTER the server reports ready -- 18-38 s in the boots measured so far. A command sent in that window is claimed eventually and completes normally, long after the caller gave up.

Blocks, with a ceiling, because there is nothing else to do with the answer: the alternative is handing back "not yet" and having the caller poll, which is the same wait with more round trips.

Inputs: timeout. Returns: ok, data, hint, error

world_setB

Set health or quantity.

target is "player" or "hands"; left empty it defaults per what -- health on the player, quantity on the held item -- because a single default for both would make one of the two combinations a trap (a player has no quantity, and empty hands have no health).

Inputs: what (required), value (required), target, timeout. Returns: ok, data, hint, error

world_spawnA

Create an item: on the ground, in the player's hands, or in their inventory.

where is "ground" (default), "hands" or "inventory". A ground spawn takes pos as "x y z" and falls back to the player's own position when it is omitted; with neither a position nor a player, the mod says so in words rather than doing nothing.

Ground spawns are created with ECE_PLACE_ON_SURFACE and ECE_NOLIFETIME. Without the second flag the item lives by the lifetime in its own config and the central economy is free to remove it partway through a check -- which turns "my test item vanished" into a hunt through the mod under test. The flag is the mod's, not this tool's; it is named here because it is the reason a spawned item can be trusted to still be there a minute later.

Inputs: class_name (required), pos, where, timeout, +1 more. Returns: ok, data, hint, error

world_stateC

What the world looks like right now.

With NO class_name this costs nothing and waits for nothing: the mod republishes the player's position, health and what is in their hands every tick, so the answer is already on disk. That is deliberate -- a snapshot a caller has to pay a full command round trip for (a second to be claimed, two more of terminal dwell) would make the cheapest question the most expensive one.

With a class_name it also sends a query command to count objects of that class within radius, because a count needs arguments only a command carries. The count comes back in world.query_count as well as in the detail, so it stays readable on later snapshots too -- which is how "is the item I spawned a minute ago still there?" gets answered.

Inputs: pos, radius, timeout, class_name. Returns: ok, data, hint, error

world_teleportA

Move the player to pos, given as "x y z".

The same format world_state reports positions in, so a position read out of a snapshot can be handed straight back. With nobody connected the mod refuses by name -- an absent player is a distinct, stated reason, never a silent no-op.

Inputs: pos (required), timeout. Returns: ok, data, hint, error

world_time_setA

Move the world clock.

Every field left at -1 keeps the value the world already has, read back from the engine before the change. That matters because the engine sets a date as five numbers at once: a tool that filled in the missing ones would move the date every time somebody set the hour.

Ranges are the engine's own documented ones -- month 1-12, day 1-31, hour 0-23, minute 0-59 -- and are checked in the mod, before a native call that would otherwise be handed a value it does not define behaviour for.

The answer carries the world's clock as it stands after the change, from the mod's own snapshot rather than from what was asked for.

Inputs: day, hour, year, month, +2 more. Returns: ok, data, hint, error

world_weather_setA

Move one weather phenomenon towards a value.

what is "overcast", "rain", "fog", "snowfall" or "wind". The first four take a value between 0 and 1; wind takes a speed in metres per second. seconds is how long the change takes (0 is immediate) and duration is how long the value is held before the engine's own simulation may move it again.

THIS IS A NUDGE, NOT A LOCK. The engine keeps simulating weather, so a value set here drifts afterwards -- said here and in the mod's own answer, because the alternative is a caller who sets rain, looks up two minutes later and concludes the tool did nothing.

Inputs: what (required), value (required), seconds, timeout, +1 more. Returns: ok, data, hint, error

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 55 tools

    Disambiguation5/5

    Every tool targets a distinct capability, and the descriptions actively pre-empt confusion between near-neighbors: client_verdict vs log_verdict, world_state vs world_entities, client_chat vs client_type, world_action vs world_exec, and knowledge_find vs knowledge_show are all explicitly differentiated. Even the largest families (11 world tools, 11 client tools, 7 knowledge tools) have no functional overlap.

    Naming Consistency4/5

    All 55 tools follow a predictable snake_case domain_prefix_suffix pattern (knowledge_*, world_*, client_*, ui_*, asset_*, server_*, bridge_*, job_*, log_*, mod_*, project_*), so the domain of any tool is identifiable at a glance. Minor deviations: compound suffixes like world_time_set, world_weather_set, and client_compile_check, plus a mix of verb suffixes for actions and noun suffixes for read-only queries (status, state, tree, menu).

    Tool Count2/5

    55 tools is more than double the 25-tool threshold the rubric treats as too many, and an agent must navigate families of 11 world tools, 11 client tools, and 7 knowledge tools in a single selection space. The scope is genuinely broad and every tool earns its place, but the surface could be consolidated by 30-40% (parameterized client input, merged environment setters, combined job operations) without losing capability.

    Completeness4/5

    The toolchain covers the full modding pipeline end-to-end: knowledge indexing, lint/build, the complete asset pipeline (export, binarize, check, convert), server lifecycle, bridge management, world manipulation, client automation, and UI interaction, with observability at every stage via jobs, logs, and verdicts. Minor gaps remain: full player inventory cannot be read (only hands), UI testing lacks wait-for-widget and scroll operations, and bridge attachment stays a manual profile edit.

    Maintenance

    ActivityActive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers