Dayz launch objectbuilder

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

Dayz launch objectbuilder is an AI agent skill from the GitHub repository DayZ-n-Chill/Agentic-Z. Opens DayZ Tools' Object Builder (the .p3d model editor), optionally on a specific .p3d or the one .p3d in a mod's P: folder. Needs /dayz-setup-objectbuilder run once. Use when you need to inspect or edit a .p3d model, such as adding LODs, named selections or memory points.

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-objectbuilder

Open Object Builder without leaving the terminal. Optionally pre-loads a .p3d: one you name with --file, or the one model anywhere under a mod's P:\<ModName>\ folder with --mod.

Follow skills/_shared/dayz-conventions.md.

What it does

  1. Gates on /dayz-preflight (as /dayz-launch-workbench does), so an unmounted P:\ fails with preflight's fix before --mod looks under it.
  2. Resolves the open target:
  1. Locates ObjectBuilder.exe via DayZ Tools.
  2. Verifies the registry has been populated by /dayz-setup-objectbuilder (with that skill's own check, loaded from its setup.py), and fails with a hint if not.
  3. Refuses if ObjectBuilder.exe is already running (checked with tasklist, using /dayz-setup-objectbuilder's own check) and tells you to switch to that window, so a second instance never opens on the same .p3d. If tasklist itself fails, it prints a [WARN] and carries on as if Object Builder were not running.
  4. Spawns ObjectBuilder.exe detached, with working directory <DayZ Tools>\Bin\ObjectBuilder\, so the shell returns immediately. The window may take a few seconds to appear.
  5. Watches the new process for about a second. If it has already exited, the skill reports a failure with its exit code (exit 1) instead of printing "launched".

How to run

Just open the editor:

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

Open a specific .p3d:

python "<skill-dir>\launch.py" --file P:\MyMod\data\model.p3d

Open a mod's model:

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

(Requires P:\MyMod\, typically created by /dayz-new-mod. Opens the one .p3d anywhere under it, or the editor with no model when there is none yet. With several, use --file.)

When to run

Output

DayZ Object Builder 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]    ObjectBuilder.exe: ...\Bin\ObjectBuilder\ObjectBuilder.exe
[OK]    Registry configured
[INFO]  Opening: P:\MyMod\data\model.p3d

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

Flag rules

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 Object Builder; the printed PID identifies the process.

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.