Dayz launch workbench

From DayZ-n-Chill/Agentic-Z · View interactive version

Dayz launch workbench is an AI agent skill from the GitHub repository DayZ-n-Chill/Agentic-Z. Opens Enfusion Workbench (DayZ Tools' script and UI editor) on vanilla DayZ or on a mod's gproj so vanilla and mod scripts compile together. Use when you want to write or debug a mod's Enforce Script or .layout files with Workbench's compiler and code completion.

How to use this skill

Skill file

<!-- skill-dir-note -->

Path note: <skill-dir> in commands below is the absolute path of this skill's folder. When the agent loads this skill the harness exposes the skill's base directory; substitute it before running. Sibling skills are reached via <skill-dir>\..\dayz-X\.

/dayz-launch-workbench

Open Workbench without leaving the terminal. Default loads vanilla DayZ; --mod <ModName> loads the customized dayz.gproj that /dayz-new-mod (or /dayz-add-scaffold --piece workbench) writes into workspace/<ModName>/workbench/ (reached as P:\<ModName>\workbench\ through the /dayz-new-mod junction), so Workbench compiles and lints vanilla + your mod together.

Follow skills/_shared/dayz-conventions.md.

What it does

  1. Checks a --mod name before anything else, so a typo fails before the preflight output: it must match /dayz-new-mod's rule (starts with a letter; letters, digits, underscores; max 64 chars) and must not be a reserved P:\ folder (see "Flag rules").
  2. Gates on /dayz-preflight.
  3. Resolves the project file, before looking for DayZ Tools:
  1. Locates workbenchApp.exe via DayZ Tools (Bin\Workbench\workbenchApp.exe). For a vanilla launch it also checks that the bundled Bin\Workbench\dayz.gproj exists and fails with a hint to verify DayZ Tools in Steam if it does not (a partial install otherwise ends in Workbench's "cannot find file dayz.gproj").
  2. Refuses (exit 1) when a workbenchApp.exe is already running, naming its PID. tasklist cannot show which project a running Workbench has open, so any running instance blocks a second launch. If tasklist itself cannot run, it prints a [WARN] that the check was skipped and launches anyway.
  3. Spawns workbenchApp.exe, passing any project as -gproj=<path> (Workbench's own switch; with no switch it loads $CurrentDir:dayz.gproj, the vanilla one), with cwd=<DayZ Tools>\Bin\Workbench (so Workbench's support files resolve; see "Why cwd" below), detached so the shell returns immediately.
  4. Watches the new process for one second. If workbenchApp.exe exits in that time (bad project file, missing DLL), it prints the exit code and exits 1 instead of reporting a launch.

How to run

Just open Workbench on vanilla:

python "<skill-dir>\launch.py"

Open with a mod's project file (compiles vanilla + mod together):

python "<skill-dir>\launch.py" --mod MyMod

(Requires P:\MyMod\workbench\dayz.gproj, created by /dayz-new-mod MyMod. For an imported or older mod without it, run /dayz-add-scaffold MyMod --piece workbench first.)

Open with an arbitrary gproj:

python "<skill-dir>\launch.py" --gproj P:\Custom\path\to\my.gproj

When to run

Output

DayZ Workbench launcher

DayZ preflight

[OK]    P:\ is mounted
[OK]    DayZ Tools found: C:\...\steamapps\common\DayZ Tools
[OK]    DayZ Diag found: C:\...\steamapps\common\DayZ\DayZDiag_x64.exe
[OK]    DayZ Server found: C:\...\steamapps\common\DayZServer
[OK]    Vanilla data found: P:\dz
[OK]    Vanilla scripts found: P:\scripts
[OK]    P:\Mods -> C:\...\steamapps\common\DayZ\!Workshop

Preflight complete.

[OK]    workbenchApp.exe: ...\Bin\Workbench\workbenchApp.exe
[INFO]  Project: P:\MyMod\workbench\dayz.gproj
[OK]    Working directory: ...\Bin\Workbench

[OK]    Workbench launched (PID 12345). The window may take a few seconds to appear.

Exit code 0 means workbenchApp.exe was still running one second after the spawn. Exit code 1 means preflight failed, DayZ Tools, workbenchApp.exe or (for a vanilla launch) the bundled dayz.gproj is missing, the --mod/--gproj target is invalid, Workbench is already running, or the new process exited at once:

[FAIL]  workbenchApp.exe exited right after starting (exit code 1).

Flag rules

Why cwd=`<DayZ Tools>\Bin\Workbench`

Workbench resolves its own support files (dta\, platforms\, ToolAddons\) from the working directory, and the scaffolded dayz.gproj mounts P:/ and P:/<ModName>/ explicitly, so vanilla and mod sources resolve no matter where the gproj lives.

Why detached

The editor is spawned detached (shared DETACH_FLAGS in _shared/skill_helpers.py) so the terminal returns at once and closing it doesn't kill Workbench; the printed PID identifies the process.

Editing the gproj

workbench/dayz.gproj is yours to edit (for example to add modules beyond the injected game/world/mission paths). No skill rewrites it: /dayz-new-mod refuses to run on an existing mod folder and /dayz-add-scaffold never overwrites a file. To regenerate it, delete it and run /dayz-add-scaffold <ModName> --piece workbench.

Do not

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.