dayz-agentic-modding-mcp
dayz-agentic-modding-mcp
Un servidor MCP que permite a un agente construir un mod de DayZ, comprobar que el cliente compila, ejecutar un servidor de prueba y obtener un veredicto estructurado en lugar de un registro.
El servidor hace el trabajo por sí mismo: llama a FileBank, a la herramienta de firma y al ejecutable de diagnóstico directamente. Un proyecto no necesita su propio script de compilación.
Por qué un perfil
El servidor no sabe nada sobre ningún mod en particular. Todo lo específico vive en un perfil de dos partes:
dayz-mcp.toml— portátil, comprometido con el repositorio del mod: qué mods empaquetar, cómo se ve un arranque saludable.dayz-mcp.local.toml— específico de la máquina, nunca comprometido: dónde viven el juego, las herramientas y el banco de pruebas.
Mezclar las mitades se rechaza al cargar: así es como un repositorio deja de compilarse en
la máquina de cualquier otro. Comienza desde dayz-mcp.example.toml.
Un mod se declara una vez, por nombre: fuentes en <root>/Name por defecto, salida
@Name/addons/Name.pbo. build.sources puede redirigir la fuente de un mod a otro lugar
(por ejemplo, "." para un mod cuyo config.cpp se encuentra en la raíz del repositorio).
La mitad portátil — dayz-mcp.toml
Clave | Significado |
| cómo llamar a este proyecto |
| una entrada por mod, por nombre; la fuente, el pbo y la |
| dónde vive realmente la fuente de un mod, relativo al perfil ( |
| qué nunca debe empaquetarse. Listarlo reemplaza el valor predeterminado por completo; el predeterminado es |
| empaquetar una copia filtrada en lugar de rechazar cuando algo excluido está presente — el diseño que necesita un mod de diseño raíz |
| el directorio contra el que se resuelven todas las rutas de modelo, relativo a este archivo. Debe contener la carpeta de prefijo del mod. Requerido por las herramientas de modelo y por nada más — ver "El pipeline de assets" |
| un script de PowerShell que se ejecuta antes de empaquetar, para proyectos que generan código primero |
| la línea que imprime el mod cuando ha terminado de cargar — ver más abajo |
| pares |
| presupuesto de advertencias; omitir la clave para deshabilitar la comprobación |
| subcadenas que hacen que una ejecución sea mala independientemente de cualquier otra cosa |
| expresiones regulares que marcan errores de script que te pertenecen, usadas por la comprobación de compilación del cliente |
| ruido extra del motor a ignorar, además de la lista incorporada |
La mitad de la máquina — dayz-mcp.local.toml
Clave | Significado |
| la instalación del juego; descubierta automáticamente si está ausente |
| DayZ Tools; descubiertas automáticamente si están ausentes |
| el ejecutable de Blender, solo para |
| el banco de pruebas preparado. El servidor arranca contra él y sus registros se leen desde |
| el nombre del archivo de configuración del servidor dentro del banco (por defecto |
| el puerto que |
| nombres de carpetas de mods, resueltos bajo la carpeta |
| rutas completas a cualquier otra cosa a cargar, para mods que no viven en |
| nombres de carpetas para enrutar a |
La línea de listo
server_start termina cuando expect.ready_line aparece en un registro escrito después
de que ese arranque comenzara. Es la única cosa que el servidor no puede deducir por sí mismo, y
sin ella dos cosas cambian: no se puede esperar nada, por lo que el trabajo de arranque inicia
el servidor, confirma que sigue vivo un momento después y termina diciéndolo;
y log_verdict no tiene línea de la que leer contadores, por lo que expect.counters nunca
coincide con nada. Los errores, los bloqueos y el presupuesto de advertencias aún se juzgan. Un
perfil sin una línea de listo está soportado, no roto — project_open lo dice
en sus notas.
Related MCP server: DayZ API MCP Server
Herramientas
Herramienta | Qué hace |
| leer el perfil, descubrir el juego y las herramientas, informar de lo que falta |
| proyecto actual, servidor en ejecución, trabajos recientes |
| empaquetar y firmar cada mod declarado; devuelve un id de trabajo. Rechaza una segunda compilación del mismo proyecto mientras una siga en ejecución |
| iniciar el servidor de prueba, terminar cuando esté listo. Rechaza si la misión que nombra la configuración no está en |
| pid, si el proceso está vivo, si el registro está creciendo (muestreo con |
| detener el servidor que esta sesión inició (pid opcional para servidores huérfanos) |
| leer — o cambiar deliberadamente — el |
| ejecutar el cliente de diagnóstico y leer sus registros |
| aprobado/fallido con razones: contadores, cadenas prohibidas, presupuesto de advertencias. |
| últimas líneas, opcionalmente filtradas; las mismas dos fuentes |
| estado de un trabajo de larga duración |
| esperar a que un trabajo termine |
| recuperar las salidas de un trabajo completado |
| empaquetar el mod puente, cuyas fuentes vienen con este servidor ( |
| ¿el puente dentro del juego en ejecución sigue funcionando? Informa el número de tick y si avanzó durante |
| descartar el comando atascado en el buzón, nombrando lo que desechó. Rechaza mientras el puente parezca vivo a menos que |
| esperar a que el puente dentro del juego esté realmente reclamando comandos. Llámalo una vez después de que el trabajo de arranque termine, antes del primer comando mundial — ver "el servidor listo no es el puente listo" más abajo |
| instantánea del mundo desde la publicación una vez por segundo del puente: jugadores, posición, salud, manos. Gratis sin argumentos; con |
| crear un objeto en el suelo (sin vida, para que no pueda desaparecer a mitad de verificación), en las manos del jugador o en su inventario |
| mover al jugador a |
| establecer |
| eliminar objetos de una clase cercana. Requiere la clase; nunca elimina a un jugador real |
| qué objetos están cerca, no cuántos: clase, posición, distancia y salud para cada uno. Una página, y lo dice — el total real viene junto con la lista |
| mover el reloj del mundo. Cada campo dejado en -1 mantiene su valor actual, leído primero del motor, porque el motor establece una fecha como cinco números a la vez |
| mover nublado, lluvia, niebla, nevada o viento. Un empujón, no un bloqueo: el motor sigue simulando el clima después, y tanto la herramienta como el mod lo dicen |
| ejecutar la acción propia de un mod a través de la puerta del motor — ver más abajo |
| la escotilla de escape: un verbo arbitrario a través del mismo transporte, marcado como no estándar en cada respuesta |
| iniciar el cliente del juego y conectarlo al stand; devuelve un id de trabajo. Siempre en ventana. Termina cuando el puente informa |
| client_status() | pid, geometría de la ventana, si la ventana está minimizada o en primer plano, el ajuste de fondo, el número de jugadores y si hay un controlador virtual conectado |
| client_stop() | detener el cliente que esta sesión inició y desenchufar el controlador virtual |
| client_shot(path) | captura la ventana del cliente en un PNG, con lit_fraction — el número que distingue un fotograma real de uno completamente negro. No necesita foco |
| client_move(x, y, seconds) | mueve al personaje con la palanca izquierda. Analógico, y la única vía que mueve al personaje en absoluto. No necesita foco |
| client_look(x, y, seconds) | gira la cámara con la palanca derecha. No necesita foco |
| client_press(button, seconds) | un botón de mando, de una tabla cerrada de catorce nombres. No necesita foco |
| client_chat(text, color) | escribe una línea en el chat — entregada por el puente en el lado del servidor, así que no necesita teclado, ni ventana, ni foco |
| client_type(text, submit) | escribe en un campo de entrada del lado del cliente con pulsaciones reales de teclado. La única herramienta aquí que pasa a primer plano, y lo dice en su respuesta |
| client_verdict(since) | juzga al cliente en vivo por su propio .RPT — un veredicto de errores y cuelgues; ver más abajo |
| ui_menu() | lo que está haciendo la interfaz del cliente: clase de menú abierta, cursor, diálogo. Gratis — republicado en cada tick |
| ui_tree(root, depth, limit) | el árbol de widgets del cliente: ruta, clase, nombre, visibilidad, rectángulo de pantalla, profundidad y texto. Una página, y lo dice |
| ui_find(name, class_name, text, root) | el mismo recorrido, filtrado en el cliente para que el árbol completo nunca tenga que viajar |
| ui_click(path, expect_name, expect_class, via) | pulsa un widget. via="script" pasa por el manejador del menú abierto sin foco; via="cursor" coloca el ratón real sobre su rectángulo |
| ui_text(path, text, expect_name) | escribe en una caja de edición y lee el valor de vuelta del widget |
| mod_lint(mod, strict) | juzga el Enforce Script sin empaquetar ni arrancar nada. mod_build lo ejecuta primero y rechaza lo que este rechaza |
| knowledge_build(layer, full, only) | construye o refresca una capa del índice de la API; devuelve un id de trabajo. only=[path] relee exactamente los archivos que nombres |
| knowledge_status() | qué contiene cada capa, cuán antigua es y si sigue coincidiendo con lo que hay en disco |
| knowledge_find(name, kind, owner, layer, prefix, limit) | encuentra una clase, método, constante, enum o clase de config por nombre |
| knowledge_show(name, ..., body) | una declaración completa: firma, miembros, cadena de herencia y la fuente misma — leída directamente de un archivo si es allí donde vive |
| knowledge_overrides(name, owner, layer) | quién sobrescribe esta clase o método |
| knowledge_callers(name, kind, owner, layer) | quién llama a este método o construye esta clase — cada punto de llamada, con la clase y el método que lo hizo |
| asset_export(blend, mod, source, name) | exporta un modelo desde un .blend a build.project_root, sin interfaz; devuelve un id de trabajo. El primer paso opcional — ver más abajo |
| asset_build(mod, source, deploy) | binariza los modelos de un mod desde sus fuentes MLOD, juzga lo que salió y solo entonces lo pone en el mod; devuelve un id de trabajo |
| asset_check(mod, model) | juzga los modelos y texturas que un mod ya incluye. No construye nada, no necesita DayZ Tools, responde en milisegundos |
| asset_convert(source, output) | convierte una textura entre .png y .paa, y juzga el resultado |
Firmas, y por qué el mensaje del propio motor te despista. Con
verifySignatures = 2 un servidor rechaza a todo cliente con el código 118 y "falta
dta.bin.pbo" — un nombre de archivo original, sin mención alguna a las firmas. La
causa suele ser el llavero de claves: esta herramienta lanza el ejecutable de diagnóstico desde la
instalación del CLIENTE, así que el motor lee keys junto a ese ejecutable, mientras que
dayz.bikey — la clave que firma los pbo del propio juego — se distribuye con la instalación
separada de DayZServer. Una carpeta keys que falta, o que solo contiene la clave de un mod,
deja al servidor sin poder verificar nada, incluido el contenido original. client_start
se niega y nombra cuál de los tres es; server_start solo avisa, porque un
arranque sin cabeza y sin cliente sigue siendo útil. Un pbo sin firmar en la línea
-mod del cliente se nombra de la misma manera — incluido el puente de este propio servidor, que
está empaquetado sin firmar a propósito.
Tres límites que el motor impone a las herramientas de UI, y ninguno se ha sorteado:
un TextWidget simple tiene SetText y no GetText en ningún lugar de enwidgets.c, así que
la cadena de una etiqueta no se puede leer en absoluto — lo que SIGNIFICA la interfaz de un mod sigue siendo una cuestión para
el puente del lado del servidor, donde los datos son reales. Un clic a nivel de script solo alcanza el
menú scripteado abierto, porque Widget tiene SetHandler y no GetHandler; via="cursor" está
ahí para todo lo demás. Y el cliente tiene que cargar el puente: un pbo lleva ambas
mitades, así que un perfil que lo liste bajo mods.server_only lo mantiene fuera de la línea -mod
del cliente — ese caso se rechaza por nombre en lugar de responderse con un árbol vacío.
job_wait es la herramienta pensada para esperar, y su timeout está limitado a 600
segundos por muy grande que sea el valor que se pase. Otras dos herramientas duermen: server_status
muestrea el log dos veces, separadas por pulse_seconds, con un límite de 10 segundos — esa pausa
es como distingue un arranque lento de uno colgado — y bridge_status muestrea el
tick del puente dos veces, separadas por window, con el mismo límite de 10 segundos, por la misma
razón. Todo lo demás devuelve inmediatamente; el trabajo que lleva minutos ocurre
detrás de un id de trabajo.
El mod del puente
bridge_build empaqueta bridge/ desde el propio repositorio de este servidor en
@DZMCP_Bridge a su lado. Es el mod del servidor, no el tuyo: una copia sirve a
cada proyecto, nada se escribe en tu repositorio excepto el registro del trabajo,
y no se usa la clave de firma de ningún proyecto — un pbo de -serverMod nunca se entrega a un
cliente para que lo verifique, así que se construye sin firmar y su carpeta de salida se mantiene libre
de firmas y claves.
Construirlo no lo carga. Eso sigue siendo decisión de tu perfil, porque el
puente es un pbo extra en el servidor y una ejecución sin él tiene que seguir siendo posible.
Para adjuntarlo, añade dos líneas a dayz-mcp.local.toml (las mismas dos
que imprime el resumen del trabajo de bridge_build):
[mods]
extra = ["<path printed by bridge_build>/@DZMCP_Bridge"]
server_only = ["@DZMCP_Bridge"]server_only es lo que lo enruta a -serverMod en lugar de -mod. Sin ello,
el servidor arranca perfectamente y bridge_status informa de que el puente nunca
escribió ningún estado — lo cual es cierto, y fácil de confundir con un puente roto.
bridge_status también informa del buzón de comandos. Dentro del juego solo el mod
lo vacía, reclamando el comando; en este lado lo hacen bridge_clear y
el borrado previo al arranque de server_start. Así que un comando enviado mientras el servidor estaba
caído, o antes de que el puente se adjuntara, no se descarta ni caduca por sí
solo — sigue bloqueando
cada envío posterior, y un servidor arrancado fuera de estas herramientas lo recogería.
server_start borra ambos archivos de transporte antes de cada arranque, así que un servidor
iniciado a través de esta herramienta nunca ejecuta un comando de una sesión anterior; eso es
higiene, no un sustituto de saber que el comando está ahí. El estado vuelve
como stale_command, y
bridge_clear() es la salida. El borrado es una herramienta separada a propósito:
descartar un comando en cola es una decisión, no algo que una comprobación de estado
deba hacer a tus espaldas. Se niega mientras el puente parezca vivo a menos que
pases force=True, y de cualquier manera informa del id de comando que descartó.
Lo que bridge_status puede distinguir
El tick por sí solo no basta para juzgar un puente, porque se reinicia a 0 en cada
arranque mientras el archivo de estado sobrevive en el directorio de perfil. Cada respuesta
lleva el veredicto propio del canal en heartbeat, y los cuatro son hechos genuinamente
distintos:
|
| significado |
|
| el tick avanzó dentro de una sesión — la única respuesta de actividad con |
|
| un mundo nuevo apareció entre las dos muestras: vivo, no congelado, y todo lo enviado a la sesión anterior ha desaparecido |
|
| el mismo mundo visto dos veces, sin moverse — un problema del lado del script, así que |
|
| no se pudo leer una muestra (o |
Cada respuesta que leyó una muestra también lleva session_id — el id del mundo
en vivo — y una respuesta restarted lleva también previous_session_id, para que quien llama pueda
decir qué mundo desapareció.
no_server, stale_command, no_state_file, invalid_state,
unreadable_state y outdated_bridge vienen antes que todo eso: nada está
en ejecución, un comando está atascado, el mod no está cargado, el documento de estado es JSON válido
con un campo nombrado incorrecto (dice cuál, y lo comprueba dos veces antes de decirlo),
el archivo nunca se parsea en absoluto, o se parsea pero es anterior al protocolo de este servidor
(reconstrúyelo con bridge_build).
Los comandos del mundo
Las herramientas del mundo hablan con el puente a través de dos archivos JSON en el directorio
-profiles del servidor: un buzón de comandos (escrito atómicamente desde este lado,
eliminado por el mod como su reclamo) y un archivo de estado que el mod sobrescribe una vez por
segundo. Enforce Script no tiene rename, así que el mod no puede escribir atómicamente —
el lector tolera escrituras rasgadas en su lugar, y una lectura fallida nunca es noticia.
Cuatro hechos, todos medidos en un servidor en vivo, deciden cómo usarlos:
Que el servidor esté listo no significa que el puente esté listo. El puente empieza a reclamar comandos
decenas de segundos después de que el servidor informe de que está listo — la dispersión observada hasta ahora
es de 18–38 segundos, y varía de un arranque a otro.
Un comando enviado en esa ventana no se rechaza — se reclama tarde y
se completa después de que quien llama haya abandonado. Así que: server_start, espera al trabajo de arranque,
luego world_ready(), y después los comandos. Toda herramienta del mundo también se niega de antemano
si el tick no se mueve, nombrando a world_ready como el remedio.
Todo valor de argumento cruza el cable como cadena. El parser del mod es
estricto: un número JSON en cualquier lugar de args rechaza todo el bloque de args. Las
herramientas convierten números y booleanos a cadena por sí mismas y rechazan valores sin
forma de cadena fiel (listas, diccionarios, None). Las posiciones viajan como una sola cadena,
"x y z".
Una negativa es un resultado. La frase propia del mod vuelve verbatim como error: "no player is on the server", "the class does not exist", "the action's own Can() said no". Que no haya nadie conectado es el estado normal de un servidor sin cabeza, y todo verbo que necesita un jugador lo dice en lugar de no hacer nada silenciosamente.
El id de sesión protege contra el comando de ayer. Cada comando lleva la sesión que el puente publicó más recientemente; el mod rechaza cualquier comando dirigido a otra sesión (o a ninguna) sin ejecutarlo. Un comando escrito mientras el servidor estaba caído nunca puede dispararse contra un mundo recién arrancado. Las herramientas sellan la sesión automáticamente — solo importa si escribes el buzón a mano.
Acciones, y por qué no hay un diccionario de verbos
Un verbo semántico como "entregar la muestra" miente: en un mod real las mismas palabras
significan cosas distintas según qué dispositivo esté cerca, la facción del jugador,
y qué ya está desbloqueado. Ese contexto no es enumerable, así que el puente
no lo intenta. world_action toma el nombre de clase de una acción, un objetivo y el
objeto sostenido, y pide al motor que la ejecute a través de su propia puerta — la misma por la que
pasa una pulsación de tecla. La aplicabilidad la decide el propio Can() de la acción,
y su rechazo es un resultado de prueba significativo, no un fallo de la herramienta. Las
respuestas distinguibles: gestor ocupado, jugador ya actuando, jugador
corriendo, clase de acción desconocida, y "el propio Can() de la acción dijo que no".
"Aceptada" tampoco es éxito — el comando sigue en ejecución hasta que el motor
libera realmente la acción, y cada ruta de fallo libera el gestor para que
el jugador pueda seguir actuando después.
world_exec es la vía de escape
Cualquier cosa que un mod exponga que no sea una acción — "cuántos puntos hay en el
fondo de la facción" — pasa por world_exec(verb, args): un verbo arbitrario sobre
el mismo transporte. Cada respuesta está marcada como non_standard: este servidor
no conoce el verbo, no lo valida, y no responde por lo que el mod hace con él.
Un verbo que la compilación del puente no conoce devuelve la lista de los verbos que sí conoce.
Un proyecto que necesita su propio verbo edita su propia copia del
despachador del puente (el comentario sobre KnownVerbs() en
bridge/scripts/5_Mission dice exactamente dónde); no hay maquinaria de
registro a propósito — un verbo que este servidor escribiera y validara sería un verbo
por el que este servidor responde.
El cliente: tres capas de entrada, y por qué son tres
El puente llega al servidor. Lo que no puede hacer es mirar la pantalla del
cliente o actuar a través del cliente — caminar un personaje por el terreno, abrir un
menú, rellenar un campo que un mod dibujó. Las herramientas client_* son eso, y usan
tres vías diferentes porque ninguna de ellas puede hacer el trabajo de las otras dos.
Cada línea de abajo es una medición contra un cliente en vivo, no una intención de diseño.
Vía | Qué hace | Necesita el primer plano |
el puente ( | el mundo, y texto en el chat | no |
un gamepad virtual, ViGEmBus ( | movimiento, cámara, y algo de interfaz | no |
pulsaciones reales de teclado, | texto en un campo que solo existe en el cliente | sí, y lo toma |
La emulación de teclado no mueve al personaje, y los mensajes de ventana no hacen
nada en absoluto. Scancodes de SendInput con el primer plano verificado: 25 s de
avance, 0 m. PostMessage/SendMessage WM_KEYDOWN en la ventana principal
y sus hijos: 0 m, y tampoco reacción de los menús. El motor
lee el movimiento de la entrada sin procesar e ignora las teclas emuladas, que es por lo que ninguna
herramienta aquí ofrece un mensaje de ventana.
El gamepad virtual sí lo mueve, sin foco, y es ANALÓGICO — la razón por la que se queda incluso donde una tecla bastaría. Medido en una ejecución con una aplicación de terceros manteniendo el primer plano durante todo el tiempo:
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)Misma vía, mismo personaje, 2,7× la velocidad solo por la deflexión de la palanca. "El personaje camina, no corre" no se puede expresar con una tecla, que solo conoce encendido y apagado. En la misma ejecución el personaje caminó unos 141 m por su cuenta, y el propio recuento del mod de objetos a menos de 10 m de él pasó de 1 → 0 → 1 al salir del sitio y volver — un cambio de estado causado por presencia, que un teletransporte no puede producir.
Parte de la interfaz responde al pad, y parte no. Medido, con
la ventana del juego detrás de otra aplicación todo el tiempo: back abre y
cierra el inventario, start abre el menú de pausa, b lo cierra — todas con
la pulsación por defecto de 0,1 s, así que una pulsación es suficiente para que el motor la registre. Pero a
no movió nada, ni a 0,1 s ni a 0,5 s, y tampoco la cruceta dentro de esas
pantallas: el cliente no cambió al modo de navegación con mando, así que no
había ningún elemento enfocado sobre el que un confirmar pudiera actuar. Trata el cierre de menús como
una tarea del gamepad y la confirmación de menús como no demostrada.
Los ojos tampoco necesitan foco. Una captura es un fotograma en vivo con la ventana
en la parte más baja del orden z (lit_fraction 0,9997 sin foco, 0,9997
con foco en la misma sesión). El único estado que las derrota es una ventana
minimizada, cuya área de cliente se colapsa a 0×0 — rechazada con una
razón en lugar de guardarse como una imagen vacía de apariencia válida.
Todo ese comportamiento en segundo plano descansa en un único ajuste del cliente, pauseMode
(GAME → UPDATE IN BACKGROUND). En el valor medido aquí, el cliente sigue
dibujando y simulando sin foco, que es por lo que el fotograma está vivo y la
palanca sigue moviendo al personaje. Con "sin gráficos" ambos se detendrían silenciosamente —
un fotograma congelado se ve exactamente igual que uno en vivo. Así que client_start y
client_status LEEN ese ajuste y avisan; nunca lo escriben, porque pertenece
a quien sea dueño de la máquina.
client_type es la única herramienta que toma la pantalla, y es honesta
al respecto: la respuesta lleva foreground_taken y una frase que dice que la
persona en la máquina no pudo escribir en su propia ventana mientras se ejecutaba. Verifica
el primer plano con GetForegroundWindow después de pedirlo, porque
SetForegroundWindow devuelve éxito sin haber hecho nada cuando Windows se niega
— y escribir a ciegas envía las pulsaciones a la ventana que la persona está
usando realmente. Cuando no se puede obtener el primer plano, no se escribe nada y el
rechazo nombra el proceso que lo tiene.
ViGEm es emulación de un dispositivo real y esto es un banco de pruebas. El controlador está firmado y se instala sin reiniciar, y el gamepad es un dispositivo nuevo en lugar de un filtro sobre el propio teclado y ratón de la máquina — un controlador de filtro se probó aquí una vez y le costó al dueño de la máquina toda la entrada de teclado y ratón hasta que se deshizo a mano. Nada de eso es una promesa sobre el anticheat en un servidor en vivo, y nada en esta fase hace una.
El índice de conocimiento
Un agente que escribe un mod no deja de hacerle al juego las mismas preguntas: ¿existe tal
API, cómo se llama, dónde está declarada, quién la sobrescribe. Responderlas
significaba desempaquetar scripts.pbo y barrer el texto — y cada sesión
pagaba de nuevo. knowledge_* convierte ese trabajo en una pregunta.
Es un archivo SQLite plano en el propio .dayz-mcp/ del proyecto, construido por
este servidor a partir del juego, los mods que un proyecto declara y las fuentes
propias del proyecto. Sin embeddings, sin servicio externo, sin clave.
Tres capas, y por qué sus ritmos difieren
Capa | Fuente | Se vuelve obsoleta cuando |
| el juego: | el juego se actualiza |
| los archivos de los mods que declara el perfil, leídos sin desempaquetarlos | una dependencia se actualiza, o el conjunto declarado cambia |
| las fuentes propias del mod, leídas donde están | cada edición |
Un índice construido de una sola vez estaría mal al minuto de estar bien: el
juego se mueve unas pocas veces al año, una dependencia unas pocas veces al mes, y el
proyecto entre un turno de agente y el siguiente. Así que cada capa se construye, envejece y
mide por su cuenta, y cada construcción es incremental — las fuentes sin cambios se
omiten por tamaño y hora de modificación, y only=[path] omite incluso el recorrido
que las descubre.
Una respuesta lleva la edad de la capa de la que proviene
La obsolescencia se mide, no se adivina: una capa registra el tamaño y la hora de modificación de cada fuente que leyó, y eso se compara contra los archivos tal como están ahora.
Cada respuesta nombra las capas que usó y la edad de cada una. Una respuesta con ningún resultado nombra cada capa que buscó — "no encontrado" vale exactamente tanto como las capas que hay detrás están al día.
La frescura de la capa del proyecto se mide en cada búsqueda, contribuya o no. Ese es el caso peligroso: un agente añade una clase, pregunta por ella, y una capa construida hace un minuto dice "no encontrado" — una afirmación segura sobre código que existe.
Una búsqueda sobre una capa que nunca se construyó es rechazada, y el rechazo nombra la llamada que la construye. "No encontrado" y "no buscado" son hechos diferentes, y solo uno de ellos es seguro para actuar sobre él.
La restricción lleva la misma trampa un nivel más abajo, así que una respuesta restringida vacía informa de dónde sí existe el nombre: preguntar
kind='class'por un nombre que el juego declara solo en un config obtiene un "no" verdadero que se lee como "el juego no tiene tal clase".
Las clases de config viven bajo kind='config', no kind='class'. Contadas en el
propio índice de esta máquina del juego: 88 102 clases de config contra 43 595
declaraciones de script de todo tipo juntas, así que mezcladas en un solo tipo entierran cada
respuesta de script. Separadas, "¿tiene el juego una clase de objeto llamada X?" es
una pregunta que puedes hacer con exactitud.
Lo que no responde
El índice responde qué existe: clase, método, firma, dónde está declarado, quién
sobrescribe. No responde qué es correcto — que modded class X extends X compila y falla silenciosamente al aplicarse, que _co cuesta el canal alfa,
que binarize toma directorios en lugar de archivos. Nada de eso es derivable
de las fuentes; se aprendió por las malas y vive en la habilidad de modding y
en el propio mod. El índice no intenta reemplazar a ninguna de las dos, y no intenta
entender qué significa un campo o por qué una clase está ahí.
La búsqueda semántica está deliberadamente ausente
La decisión se tomó por medición, no por precaución: cada búsqueda que dio forma a las fases anteriores de este servidor fue una búsqueda por nombre. Y un índice de embeddings rompería la regla que el resto de este servidor mantiene — instálalo y funciona, sin servicio externo y sin clave. El proyecto predecesor sobre el que este deliberadamente no se construyó documenta su capa de conocimiento como local y gratuita mientras su código importa un cliente de embeddings de pago, falla sin clave y lleva precios hardcodeados. Sus dos herramientas de búsqueda también se cuelgan para siempre, porque el cliente que hay detrás se creó sin timeout; de ahí el límite bajo el que corre cada búsqueda aquí. Si la búsqueda exacta resulta no ser suficiente, la búsqueda semántica es una fase separada con una condición: el modelo viaja dentro de la entrega.
Los números medidos
En esta máquina — el juego con 2810 archivos de script, 35 mods instalados, un proyecto real de 41 fuentes — a través de las herramientas, no de sus internals:
Construcción | Resultado | Tiempo |
| 2927 fuentes, 131 697 declaraciones (41 no dieron nada) | 70,2 s |
| 8 archivos, 10 925 declaraciones | 0,9 s |
| 523 archivos, 204 768 declaraciones, 3 archivos ilegibles y nombrados | 139–147 s |
| 41 fuentes, 1196 declaraciones | 0,12 s |
El índice en disco: 74,7 MB para las tres capas de un proyecto real; 110 MB para los 523 archivos de dependencias por sí solos. Esos archivos son 92 GB, y ninguno de ellos está desempaquetado.
Los puntos de llamada son el precio que paga el índice. Los propios scripts del juego contienen 43 579 declaraciones y 113 703 puntos de llamada, y registrar el segundo conjunto aproximadamente duplica el índice: medido solo en la capa del juego, 23.8 MB y 3.7 s para construir sin ellos, 49.6 MB y 4.5 s con ellos. Ese es el precio de poder responder «quién llama a esto», y se declara aquí en lugar de descubrirlo más tarde en un disco lleno.
Respuesta | Tiempo |
| 4.2 ms de extremo a extremo, de los cuales 3.0 ms son el recorrido del proyecto |
| 3.2 ms de consulta |
| 4.2 ms |
| 0.38 ms de consulta |
| 277 ms de comprobaciones de texto, 7 ms de comprobaciones de índice |
Medido en un banco de pruebas en vivo, tres arranques: world_time_set(hour=3, minute=7) movió el reloj a 2026-09-20 03:07 y dejó la fecha donde estaba; world_weather_set("fog", 0.9, seconds=2) llevó la niebla publicada de 0.085 a 0.900 y la mantuvo; world_entities(pos="7500 0 7500", radius=150, limit=5) enumeró 5 de 171 objetos con truncated: true. Las distancias volvían a 320 m para un radio de 150 m hasta que se hicieron horizontales, que es lo que mide la propia prueba de radio del motor.
| knowledge_show, una clase con 400 miembros y su ascendencia | 6.8 ms |
| knowledge_status, las tres capas medidas | 41 ms (110 ms en la primera llamada tras una compilación) |
Incrementalidad, en el proyecto real: una reconstrucción completa 136 ms; un archivo editado encontrado por el recorrido 8.8 ms (15×); el mismo archivo nombrado mediante only= 5.8 ms (23×). En un árbol de 2810 archivos el recorrido domina y only= vale mucho más — pero en un proyecto de este tamaño, 15× es lo que una reconstrucción ordinaria compra realmente.
El tope se hace sentir de verdad: una consulta medida en 77 ms, ejecutada bajo un tope de 19.3 ms, se detuvo a los 19.9 ms, y la conexión siguió respondiendo.
El pipeline de assets
Llevar un modelo de Blender a un mod son diez pasos, y hasta esta fase todos se ejecutaban a mano. El valor no está en lanzar las herramientas. Está en que cada herramienta de esta cadena es estructuralmente incapaz de informar de un fallo, y cada uno de esos silencios ya había costado días.
Medido con los binarios reales, no supuesto:
Lo que ocurrió | Lo que devolvió la herramienta |
a | 0, un directorio de salida vacío, ni una línea de texto |
| 0, un ODOL de 46 190 bytes cuando una compilación correcta es de 58 644 |
a |
|
el exportador de Blender con sus propios argumentos predeterminados |
|
De modo que la regla sobre la que se construye todo este espacio de nombres: el veredicto se lee del artefacto, nunca del informe de la herramienta. El código de salida se registra y no se cree en ninguna de las dos direcciones.
La raíz se declara, no se supone
binarize no tiene ninguna opción de raíz de proyecto — la lista completa de opciones se enumeró contra el binario real. La raíz es el directorio de trabajo del proceso. El mismo comando, la misma entrada, un directorio distinto, y sale un ODOL válido con rutas de textura plausibles que el motor renderiza sin texturas, con un código de éxito y sin queja alguna. El add-on exportador de Blender tiene la misma raíz en una preferencia propia, recordada del último proyecto que estuviera abierto: en la máquina donde esto se desarrolló apuntaba a un directorio de una sesión no relacionada, y contra una raíz equivocada el add-on tampoco falla — elimina la letra de unidad, conserva el resto y escribe rutas que parecen rutas.
build.project_root es ese directorio, declarado una vez en la mitad portable del perfil. El servidor lo establece como directorio de trabajo del binarizador y lo introduce en el add-on durante la ejecución, de modo que lo que el add-on tenga almacenado no decide nada (se informa de ello, para que puedas ir a arreglarlo). Eso es lo que hace que una raíz equivocada sea imposible en lugar de detectable, y es por lo que la clave es obligatoria antes de que se ejecute nada con forma de modelo.
Las negativas que produce ocurren antes de que exista un proceso — medido en 0.0003 s — y una compilación rechazada deja el modelo que el mod ya distribuye intacto byte a byte.
Doce comprobaciones sobre el artefacto, y cuatro de ellas rechazan
asset_check las ejecuta sin construir nada y sin DayZ Tools, porque un clon recién hecho debe poder preguntar si lo que distribuye está sano. Cuatro rechazan: hay un modelo construido y es un ODOL (C1), ninguna referencia escapa del mod (C3), un material fue realmente incrustado (C4), y nada ya binarizado se vuelve a ofrecer a binarize (C10). El resto avisa: referencias colgantes, un rvmat que apunta a otro mod, una transparencia perdida por DXT1 (C7), una animación que nunca llegó al artefacto, un model.cfg que no es con el que se construyó el artefacto, una huella estructural que ya no coincide con lo que desplegó la última compilación. Cada hallazgo dice qué hacer.
C4 es el que merece la pena conocer. Cuando binarize resuelve un rvmat copia las texturas de etapa propias de ese material en el modelo — fresnel, #(argb,8,8,3), env_land_co.paa, _nohq, _smdi — cadenas que ningún MLOD contiene. Seis artefactos de seis se separaron correctamente con esa única prueba, y encontró en esta máquina un modelo roto del que nadie sabía.
El paso de Blender es opcional
asset_export es la única herramienta aquí que necesita Blender, y todo lo posterior funciona con un .p3d de cualquier procedencia — una exportación manual, un archivo de un colaborador, un modelo subido hace años. Una máquina sin Blender compila y distribuye un mod perfectamente; la negativa lo dice en lugar de presentarlo como una instalación rota. Sí necesita que el add-on exportador esté habilitado en el Blender que encuentre, y nunca escribe de vuelta las preferencias de usuario de Blender (verificado: el archivo de preferencias era byte a byte idéntico tras cada ejecución).
Exportar y compilar son dos llamadas en lugar de una, porque cada mitad tiene su propio veredicto y una compilación rechazada por una y permitida por la otra no es una decisión.
La igualdad de bytes nunca se promete
Ninguna de las dos mitades de este pipeline es reproducible, y el diseño lo dice en lugar de fingir:
La exportación. Siete exportaciones de un único archivo fuente sin cambios — tres de una sesión, tres de otra, y una hecha a mano en la GUI meses antes — dieron siete SHA-256 diferentes con un tamaño constante de 334 032 bytes. La diferencia es el orden de un bloque interno.
binarize. Cuatro ejecuciones sobre una misma entrada sin cambios dieron tres resultados diferentes: el tamaño varió en 5 bytes y dos fragmentos de 8 bytes se filtraron fuera de regiones comprimidas.
Por lo tanto, un modelo nunca se almacena en caché ni se compara por hash de contenido. Lo que se compara es una huella estructural — el tipo de archivo, su número de LOD y su conjunto de nombres. En las siete exportaciones, esa huella fue un único valor.
Las cifras medidas
Un modelo pequeño, en esta máquina, a través de las herramientas:
Paso | Resultado | Tiempo |
| MLOD, 334 032 B, 5 LODs, limpio | 2.1 s (unos 8 s en arranque en frío) |
| ODOL v55, 58 646 B, 4 LODs, los cinco marcadores C4 | 43.8 s (75.6–78.7 s medidos en cuatro ejecuciones anteriores) |
| 1 modelo y 10 pares de texturas evaluados | milisegundos |
| un PNG a DXT1, 50 764 B | 0.52 s |
una negativa con una raíz equivocada | antes de que se inicie ningún proceso | 0.0003 s |
Ambos registros son casi en su totalidad texto repetitivo, y lo que se silencia se cuenta en lugar de descartarse: las 169 líneas de Blender se redujeron a 4, y las 91 de binarize a 6 — uno de esos seis siendo la única queja genuina del modelo.
Encadenados de principio a fin, la exportación y la compilación reprodujeron un modelo que se había hecho a mano meses antes: mismo tipo, mismos 4 LOD, las mismas 50 cadenas, y un tamaño con un byte de diferencia.
Lo que nada de esto responde
Si el modelo se ve bien, está escalado bien, está bobinado correctamente, tiene una colisión. Nada fuera del juego responde a eso. C1–C12 acortan el camino hacia ello; no lo sustituyen.
Limitaciones conocidas
La detección de pbo obsoleto se basa en mtime, no en el contenido.
mod_buildrechaza un pbo recién construido que es más antiguo que sus fuentes -- la causa habitual es un servidor en ejecución que aún mantiene el archivo antiguo abierto, por lo que el empaquetado produjo silenciosamente nada. Perogit checkoutcambia el tiempo de modificación de un archivo sin cambiar su contenido, por lo que un pbo perfectamente bueno construido justo después de cambiar de rama también puede activar esta comprobación. Simod_buildinforma de "pbo obsoleto" inmediatamente después de un cambio de rama, esta es la razón probable, no un fallo real de empaquetado -- reconstruye y pasará. Una herramienta madura en este espacio pasó a un hash de contenido exactamente por esta razón; eso es trabajo futuro aquí, no hecho en esta fase (verpacker.py,pack_one).Una carpeta de origen de mod se empaqueta entera.
mod_buildse niega a empaquetar un mod cuyo directorio de origen contenga cualquier cosa que coincida conbuild.exclude(el valor predeterminado de siete patrones se enumera arriba) en lugar de enviarla silenciosamente dentro del pbo publicado. Se niega independientemente debuild.excludecuando el origen contiene los artefactos propios de este servidor -- las claves de firma, cualquiera de las dos mitades del perfil, el almacén de trabajos, la compilación anterior del mod -- porque empaquetarlos publica la clave de firma privada, y ningún proyecto debería tener que configurar eso. Por defecto no prepara primero una copia filtrada: una copia siempre es más nueva que las fuentes, lo que deshabilitaría permanentemente la comprobación de pbo obsoleto anterior si esa comprobación midiera la copia.build.stage = trueopta por copiar de todos modos -- seguro solo porque la comparación de pbo obsoleto siempre mide el árbol de origen original, nunca la copia. Este es el diseño que necesita un mod cuyo origen es la raíz del repositorio (siempre contiene al menos.git).Un veredicto juzga el registro completo, no solo las líneas de tu mod.
log_verdictlee el registro del stand al que está apuntado, por lo que un stand compartido con otros mods cuenta sus advertencias contra tu presupuestoexpect.max_warningsy sus errores como razones. Dos proyectos que comparten unmachine.stand_rootverán la línea base del otro. O bien se da a cada proyecto su propio stand, o se establece el presupuesto sabiendo qué más está cargado. Un filtro con ámbito de proyecto, simétrico aexpect.error_regex, es el refinamiento obvio y no está implementado.expect.noiseno puede rescatar una línea que ya cuenta como error. La clasificación está ordenadaforbid→ crash → error → noise → advertencia, por lo que una línea que contieneERRORoFATAL(o una de tus cadenasforbid) se decide antes de que se consulte noise. Ese orden es deliberado -- si noise coincidiera primero, un substring inocuo podría tragarse una línea fatal -- pero significa quenoisesolo puede suprimir advertencias y líneas ordinarias, nunca degradar una línea de nivel de error.client_verdictes un veredicto de errores y fallos, no de disponibilidad.[expect]describe el registro del servidor: su línea de listo y sus contadores los imprime la inicialización del lado del servidor de un mod, ymax_warningses un presupuesto contado sobre ese mismo registro. Un.RPTde cliente no contiene nada de eso, por lo que esas tres claves no se aplican deliberadamente aquí y la respuesta las enumera ennot_applied.forbid,error_regexynoisetratan sobre el texto de una línea de registro y siguen aplicándose. No hay línea de listo del lado del cliente que declarar; si el cliente entró se responde con el recuento de jugadores que esperaclient_start, no con su registro.Las herramientas de cliente se unen a un stand que esta sesión no inició;
client_chatno puede.client_startse conectará felizmente a lo que ya esté en el puerto, y dice de quién es. Pero el chat se entrega del lado del servidor, a través del mismo canal que las herramientasworld_*, y ese canal solo actúa sobre un servidor que esta sesión inició -- por lo que en un stand prestado todo funciona exceptoclient_chat. La negativa nombra los pids que mantienen el puerto en lugar de sugerir unserver_startque los rechazaría.El chat no es accesible desde el gamepad, y confirmar un menú tampoco. El juego vincula su línea de chat a Enter y a nada más, y no hay teclado en pantalla, por lo que el texto es o un mensaje de puente (
client_chat, gratis) o pulsaciones de teclas reales (client_type, cuesta el primer plano).client_type("", submit=True)envía Enter solo, que es como se abre la línea de chat -- y, según la evidencia anterior, la única confirmación que tiene el conjunto de herramientas.Cada búsqueda de conocimiento paga un recorrido del árbol del proyecto. Ese recorrido es como se mide el desfase de la capa de proyecto en cada respuesta, que es la única propiedad para la que existe el índice. Cuesta 3,0 ms en un mod real de 41 fuentes (cuyo árbol contiene unas 1800 entradas) y 21 ms en un árbol de 2810 archivos. Almacenarlo en caché durante un segundo o dos eliminaría el coste y restauraría exactamente la ventana de silencio que el diseño rechaza; si alguna vez se vuelve demasiado caro, ese intercambio debe hacerse deliberadamente, no por accidente.
Una compilación siempre pasa por un trabajo, y el trabajo cuesta más que una compilación pequeña. Tiempo de respuesta medido en 70–95 ms frente a una reconstrucción de proyecto de 6 ms:
job_waitsondea a 100 ms. La forma única es deliberada -- un llamador no debe tener que saber qué bloques de compilación -- y nada te obliga a esperar, porque la siguiente búsqueda mide la capa misma.La capa de dependencias se mide contra el perfil tal como está ahora. Añade un mod a
mods.requiredy sus archivos llegan comoadded; elimina uno y sus archivos se leen comomissing. Ese es el requisito (el conjunto declarado es parte de lo que se construye la capa) pero parece que el índice se quedó obsoleto cuando lo que realmente cambió fue el perfil.coresiempre incluye las configuraciones del juego, y eso es la mayor parte de su coste. 70 s con ellas frente a unos 4 s solo para los scripts. No hay interruptor: sin las configuraciones no se puede responder "¿existe una clase de objeto llamada X?", y un segundo eje haría ambigua la medición de desfase -- el recorrido no sabría si esperar los archivosAddons.knowledge_showresponde primero por la capa más cercana. Para una clase que una dependencia reabre conmodded class, la declaración del mod viene antes que la del juego. Ese es el orden correcto y uno sorprendente; pasalayer='core'para la del propio juego.La compilación condicional se indexa, no se resuelve. El 4,9% de las líneas de script del juego están dentro de
#ifdef, incluyendo alrededor de un centenar de declaraciones de clase. Este servidor impulsa compilaciones de servidor, cliente y diagnóstico, por lo que no hay un único conjunto correcto de definiciones: todo se indexa y la guarda se registra en la declaración. Por lo tanto, se puede informar de un nombre que una compilación particular excluye -- la alternativa, filtrar por una suposición de las definiciones, negaría la existencia de métodos que están en la compilación en ejecución.La huella de C12 lleva el tamaño del archivo, y el tamaño de
binarizeno es estable. Reconstruir un modelo que nadie editó produjo un artefacto un byte más grande que el enviado, con el mismo tipo, el mismo recuento de LOD y las mismas cincuenta cadenas -- y un digesto diferente, porque el tamaño es parte de él. Así que C12 puede avisar de una reconstrucción que no cambió nada. Avisa en lugar de negarse exactamente por esta razón, y las partes de las que se construye se informan junto a él para que la comparación pueda hacerse a mano. Dividir el digesto en una mitad estable y un tamaño es el refinamiento obvio y no está hecho.Una exportación parcial avisa; no se niega. Con los argumentos predeterminados propios del exportador, un modelo salió con 2 de sus 5 LOD y pasando todas las demás comprobaciones. Este servidor no pasa esos argumentos, por lo que no debería ocurrir -- pero un objeto marcado como LOD y no enlazado en la escena cuenta en un lado de la comparación y no en el otro, lo que es una razón legítima para que los recuentos difieran, por lo que una negativa tendría falsos positivos. Lee E3.
La regla de contención no puede ver toda raíz incorrecta. Se niega a una raíz que no contiene la carpeta de prefijo del mod, que es el fallo medido. Una raíz que sí contiene una carpeta con ese nombre -- un repositorio cuyo propio directorio de mod se escribe como el prefijo, por ejemplo -- la pasa, y lo que atrapa ese caso es C10 o C3/C4 una capa más abajo. Medido: apuntado a tal raíz, la compilación se negó, no desplegó nada y dejó el artefacto enviado intacto, pero la negativa vino del trabajo en lugar de la llamada.
asset_exportnecesita el add-on de exportación habilitado en Blender, y no puede instalarlo. Blender se lanza con las preferencias reales del propietario de la máquina, porque iniciarlo con--factory-startupelimina el add-on por completo. Sus otros add-ons se mantienen fuera de la ruta de búsqueda para la ejecución (dos de los instalados aquí alcanzan la red al iniciarse y se les culpa de los fallos), lo que Blender informa como "Add-on not loaded" en el registro -- esa línea es obra de este propio servidor, no un fallo.Una configuración binarizada no tiene cuerpo que mostrar.
knowledge_show(body=True)lee una declaración de vuelta del archivo o archivo comprimido del que se indexó, pero unconfig.bincontiene la forma binaria mientras que el índice contiene lo queCfgConverthizo de ella. La respuesta lo dice en lugar de devolver nada.
Instalación
python -m pip install -e ".[dev]"
python -m pytestRegístralo en tu cliente MCP:
{ "mcpServers": { "dayz": { "command": "dayz-mcp" } } }Licencia
GPL-3.0-or-later. Ver NOTICE.md.
Available Tools
55 toolsasset_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:Widgethas noGetHandler, 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, likeclient_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_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
Scored across 55 tools
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.
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).
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.
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
Related MCP Connectors
An MCP server that provides agents access to the KeldynAI platform
Make games with AI: one MCP server that connects your agent to Unity, Unreal and Godot editors.
MCP server for building and testing AI agents with multi-model experimentation and insights.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceAn MCP server for Arma Reforger and Enfusion engine modding that enables users to create mods, search API classes, and generate scripts through natural language. It provides a comprehensive suite of tools for scaffolding addons, generating prefabs, and building projects using the Workbench CLI.67 npm14-
- AlicenseAqualityCmaintenanceMCP server for DayZ Enforce Script that gives AI coding assistants deep knowledge of the DayZ scripting API with semantic search, code validation, class hierarchy, and reverse call graphs.81MIT
- AlicenseAqualityCmaintenanceAn MCP server that empowers AI coding agents to work effectively with Minecraft mod development, providing static analysis of decompiled source code and runtime interaction with a running Minecraft instance.3170 npm18MIT
- FlicenseNot gradedqualityDmaintenanceMCP server that helps AI agents inspect Minecraft project evidence (crash logs, mod files, datapacks) before writing development code.2-