willy92wins/dayz-modding-knowledge-pack/dayz-test-ingame

Claude Code and agent skill by willy92wins/dayz-modding-knowledge-pack

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"},{"type":"plugin","description":"Custom plugin integration"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when: lanzar el juego con el mod, probar el mod in-game, filepatching, DayZDiag, arrancar server local, connect 127.0.0.1, the mod doesn't load. Not packaging-only: dayz-pbo-build; not env check: dayz-preflight. Also: start or check a local DayZ dedicated server with or without mods (serverDZ.cfg, ports, -mod/-servermod, script logs, RPT), on Windows or native Linux, headless client under Proton.

Install

npx vskill@latest install willy92wins/dayz-modding-knowledge-pack/dayz-test-ingame

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as willy92wins/dayz-modding-knowledge-pack/dayz-test-ingame.

DayZ test in-game (filepatching launch)

WHAT THIS DOES

Closes the dev loop for a DayZ mod on a single Windows box: re-pack the PBO, deploy it where the engine reads mods, and launch DayZDiag_x64.exe with -filePatching so script and config edits are picked up without re-binarizing. Three launch modes (offline / server / client / all) driven by one orchestrator script and double-click .bat wrappers, generated per mod into <Mod>_dev\tools\. (until 1.29: the loop was pack PBO → deploy packed @Mod → DayZDiag -filePatching.) (since 1.30 [CHANGELOG]: -mod may point at an unpacked source folder; RV configs load unpacked; new flags -cacheP3D=0/1 and -resolveFilePatchingUsingEnfusion=0/1. Details: dayz-1-30-test-ingame.md.)

SOURCE OF TRUTH

<dayz-projects>\DAYZ_INFRA.md is the canonical record of this user's DayZ paths, flags and gotchas, verified in-situ. This skill operationalizes that doc — it does not re-derive the flags. If the two ever disagree, DAYZ_INFRA.md wins; update the skill to match, never the reverse.

Cite-then-verify discipline:

  • [EXACT] — flag/path verified against DAYZ_INFRA.md (section refs below; section names are

stable, line numbers drift as the doc grows) and the user's RPTs.

  • [DESIGN] — plausible but NOT in the user's infra. The single-exe **offline mode is

[DESIGN]** — validate it in-game on first run before trusting it.

WHEN TO USE / WHEN NOT

Use when the user wants to see a mod running in-game, iterate scripts/configs live, or stand up a local server+client. Do NOT use to author the mod (that is dayz-model-pipeline / dayz-enforce-script-reference), to validate/pack only (dayz-pbo-build), or to configure a production server. The retail DayZ_x64.exe is for final pre-release validation only — default to the diag exe. Retail is manual-only and external to this launcher. On this box retail does not load mission (LL-479): B-4 accredits 3_Game+4_World and 5_Mission only compiles in diag; coverage is written per module in the matrix, never "B-4 green".

SHARED SESSION PROTOCOL

Read before launching: <runbooks>\dayz-mcp-agent-session-protocol.md. Official launcher is Diag-only and enforces this matrix:

RouteExecutable / roleContract
Managed diagDayZDiag_x64.exe, including -server rolemanaged_lifecycle=true; dayz_test_run possesses lease/heartbeat/release and returns run_id.
Dedicated serverDayZServer_x64.exemanaged_lifecycle=false; probe-gated and not started by official launcher.
External manual retailSession opened by user outside launcherNo agent lifecycle; triggers quarantine.
  1. Run bridge_status; under retail quarantine only reads are allowed.
  2. [EXACT][CLAIM-R21-TEST-PUBLIC-LIFECYCLE] Use dayz_test_run for

managed server/client and dayz_test_stop for exact run_id. Those tools possess FIFO queue, lease, heartbeat, and release; DO NOT pre-acquire another lease around them.

  1. session_acquire/session_wait/session_heartbeat/session_release remain

for low-level mutations not encapsulated by public tools. (rev. 2026-09-06) And to ADOPT the run: upon completion, dayz_test_run releases its lease and run remains RUNNING_IDLE without owner; any bridge verb on it, reads included, is rejected with run_not_owned until session_acquire_wait adopts it (check adopted_run). Sequence and citations: dayz-mcp-verify §COMPOSITION, "Bridge startup sequence".

  1. [EXACT][CLAIM-R21-TEST-CREDENTIAL-SCOPE] The approved launcher receives

DAYZ_MCP_CLIENT_ID_JSON and DAYZ_MCP_LEASE_TOKEN only in the process environment. The template captures them, removes them from parent environment, and restores them solely around child process; never copy their values to shell, argv, logs, or handoff nor invoke approved launcher directly.

  1. Retain returned run_id. Same mod does not grant ownership: stop/adopt

require the exact run. -Kill without -RunId remains fail-closed.

  1. Verify terminal state after stop. NEVER substitute lifecycle

guard with a kill or with attribution based on name, mod, cmdline, or profile.

  1. [EXACT] After adopting, keep the run owned yourself: the lease lasts 120 s and is not renewed internally, fresh client or not, so send session_heartbeat at least every ~90 s during the whole run, including while a human plays. Without heartbeats the run goes ownerless and the daemon stops it after the grace period (measured 2026-09-27, three runs; detail in dayz-mcp-verify §COMPOSICIÓN).

Manual-only retail triggers retail quarantine: user who opened it closes it via UI and then runs doctor/rescan. Without access to that UI, declare manual_cleanup_required; another agent neither kills nor adopts the process.

Unmanaged fallback when managed is blocked (SP-084-unmanaged-fallback)

dayz-test.ps1 and dayz_test_run are the managed path. If approved-launchers.json registry does not let the project pass and MCP daemon on documented port goes down (session_status=daemon_unavailable), that path does not launch.

With the box free of run DayZ processes and explicit user authorization, the path is UNMANAGED launch. It is not default.

  • Do not launch exe from agent shell. [EXACT - this skill, cross-ref SP-085] DayZDiag launched outside registered launcher stays alive with 0 CPU and 0 RPT. Signature: alive + 0 CPU + 0 RPT => not args/mod, it is launch-from-agent.
  • Do not use Start-Process -ArgumentList for DayZDiag. [EXACT - this skill, SP-167] In Windows PowerShell 5.1 array does not guarantee quoting of each element. [EXACT - SP-228, measured in LFPowerGrid P0.0, 6 A/B attempts 2026-08-12] cmd /c start with literal quotes on each value with spaces is the path that starts; Start-Process -ArgumentList starts and hangs at ~0.06 s CPU without writing EVEN the RPT header.
  • [EXACT] When the command that cmd /c start launches is a .bat, the new window runs cmd /K: an exit /b at the end of the bat exits the script, not the interpreter, and the window stays at an idle prompt after the server closes — one leftover console window per launch (measured 2026-09-25, LFDucati T99, Windows 11 23H2: 9 idle cmd.exe /K wrappers after two days of server starts; 0 after the switch). Wrap the bat in a second cmd /c: cmd /c start "<title>" cmd /c "<abs bat>". A preflight failure with pause inside the bat is still visible.
  • Recipe: agent writes .bat (server/client argv, literal quotes on each value with spaces) and user double-clicks to execute them in interactive session. [EXACT - this skill, SP-077] Read script.log/RPT with FileShare.ReadWrite. UI closure, not by PID, except agent's own zombie (then exact Stop-Process -Id).
  • [DESIGN] Server argv: -server "-config=<serverDZ.cfg>" "-profiles=<server-profiles>" "-mission=<mission-abs>" "-mod=<mod-abs-semicolon-list>" -filePatching -port=2302
  • [DESIGN] Client argv: "-mod=<mod-abs-semicolon-list>" -connect=127.0.0.1 -port=2302 "-profiles=<client-profiles>" -name=Dev -window -filePatching

(since 1.30 [CHANGELOG]) Optional on both: -cacheP3D=1 (unbinarized .p3d sibling cache) and -resolveFilePatchingUsingEnfusion=1 (requires -filePatching; always on in Workbench). -mod= may name an unpacked source folder, not only a packed @Mod. See references/dayz-1-30-test-ingame.md.

Three gotchas that bite along this same path and are not from argv (SP-228, measured):

  • Stuck Workshop. workshop_log.txt with "No workshop depot defined, skipping non-legacy

item" on each item (NeedsDownload=1) is unblocked with steam://validate/221100, which refreshes appinfo. Neither launcher nor download page unblocks it.

  • Default RPT. If -profiles does not reach exe, DayZDiag writes RPT and script log to

%LOCALAPPDATA%\DayZ. Search there before declaring nothing was written.

  • VPP superadmin. Current versions read

<profiles>\VPPAdminTools\Permissions\SuperAdmins\SuperAdmins.txt (IDs only, one per line); SuperAdmins.json is old format and ignored. With vppDisablePassword=1 plus ID in .txt menu opens directly. Corrects hint that cited only the JSON.

PREREQUISITES (preflight — runs automatically)

Step 0 — offline linter, BEFORE wasting a startup

A startup cycle costs minutes; linter costs ~60 s and catches cold what you would otherwise discover reading an RPT:

python <KNOWLEDGE_PACK>/tools/dayz-script-validator/scripts/script_validator.py <addon_root>

Gate on `len(errors)`, never on status (WARN with zero errors is valid). Path is relative to Knowledge Pack root, not your project: from a mod directory you must give absolute path to YOUR checkout of the pack, or command dies with No such file or directory and reads as "not installed". Compare against base to know if error is yours. Does not substitute startup — Enforce only compiles on loading the world, and this linter does not see that — but errors > 0 means startup will fail and there is no need to launch it to find out. Mandatory if change deletes classes, files, or config.cpp entries.

⚠ MEASURED blind spot, costing an entire startup: linter DOES NOT see an undeclared variable. An obj.m_Campo where type of obj does not declare m_Campo exits with 0 errors and zero delta, and upon world load module dies with Cant compile "World" script module! + ACCESS_VIOLATION. Measured 2026-09-08 in LFPowerGrid: SAME tree passed this gate in 12 lanes and again on merged main; an adversarial review from another family did not catch it either, because read in a diff an incrementing counter looks reasonable. The case: tRnd.m_Projections on a LFPG_RenderMetrics, field existing on LFPG_PreviewMetrics — the adjacent class in same file. Useful asymmetry: SERVER started fine because that code was on render path; a gate looking only at its log gives green to this.

Cheap sweep that catches it, before wasting startup when touching many files: for each typed local Type obj = ... in diff, check that each obj.m_Campo is declared in Type or its parents, resolving inheritance with regex census of class X : BASE {...}; across all scripts/. Measured: 145 classes and 32 files in ~2 s. Only covers locals with explicit type — does not see member accesses, function returns, or this — but covers this pattern.

The orchestrator checks these every run and fixes what it safely can. Verified on this box 2026-05-30: missions present in DayZServer, AddonBuilder present, P:\ mounted, but P:\Mods junction NOT yet created and DAYZ_* env vars unset (fallbacks used).

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
16
Repository forks
5
7-day trend score
19

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Extension points

  • hookPre/post lifecycle hooks
  • pluginCustom plugin integration

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/willy92wins/dayz-modding-knowledge-pack/dayz-test-ingame/badge)](https://verified-skill.com/skills/willy92wins/dayz-modding-knowledge-pack/dayz-test-ingame)

Something wrong with this skill or its page? Tell us.