willy92wins/dayz-modding-knowledge-pack/dayz-p3d-audit

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

Trust tier 2
  • community
  • ext:[{"type":"plugin","description":"Custom plugin integration"}]
LLM review pending
Source check pending

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

Audit and fix DayZ .p3d model files for collision, action targeting, physics, animation, path, and structural issues. Runs py3d-based validation against known-working reference patterns. Also validates config.cpp and .rvmat files for path and property issues. Use this skill whenever: a DayZ mod object has no collision, actions don't appear, the player walks through placed objects, CCTObject raycasts miss, Geometry LOD seems ignored, a model was exported from Blender and doesn't work in-game, te…

Install

npx vskill@latest install willy92wins/dayz-modding-knowledge-pack/dayz-p3d-audit

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-p3d-audit.

DayZ P3D Audit — Complete Model & Mod Validator

Validates .p3d model files, config.cpp, model.cfg, and .rvmat materials against DayZ engine requirements. Built from production debugging where models rendered correctly but had zero collision, missing animations, or broken textures.

Preflight gate

Per the L2 rule (_shared/dayz-conventions.md), every DayZ skill that does work gates on /dayz-preflight first. The audit reads .p3d files which can live anywhere, but the moment you point it at P:\ paths or a built mod, an unmounted P-drive silently produces wrong results. Run /dayz-preflight before this skill.

The three py3d gates cannot go red for geometry (SP-227-py3d-gates-cannot-go-red)

A clean validate(), a passing save(verify=True), or a diff that reports equal is not evidence that the geometry is correct. Those checks only prove internal count consistency. When declaring a model verified, say whether vertex order was compared against debinarized vanilla or whether it was tested in-game.

  1. validate() does not detect GLOBAL winding inversion. The winding check is relative to the Visual LOD. If every LOD is inverted (Blender Z-up to Y-up; this skill, PART 5 item 1), validate() returns an empty list and exit 0. If only Visual is inverted, it accuses healthy collision LODs (ERR_WINDING_INVERTED). The message of py3d_dayz-1.8.0, the wheel pinned until 2026-10-02, tells you to run face.vertices.reverse() on every face of each one (it warns against a vertices[1]/[2] swap, which turns a quad into a crossed face); following that instruction still breaks them. From 1.9.0 (the pin from 2026-10-02 to 2026-10-03; 1.10.1 since), the message names the Visual LOD it compares against, says the two LODs disagree, not which one is wrong, and gives the winding steps for both, which leave a part that reads right as it is (py3d README, "Winding"). [OFFLINE MEASURED 2026-10-02] On build_multilod_v2_p3d (py3d tests) after blender_to_dayz(), with the Visual LOD turned inside-out, faces and normals together, the finding named the three healthy collision LODs; following the 1.8.0 instruction wound all 6 faces of each box outward and traded the finding for ERR_WINDING_VS_NORMALS on each, and negating their normals as well left validate() empty with every LOD wound outward: the silent-broken state. Read the finding as "Absolute winding check" rule 6 says. (Corrected 2026-10-02: this item said it "suggests swapping vertices on every face; following that instruction reaches the silent-broken state". The 1.8.0 message names `face.vertices.reverse()` and warns against the swap; on a healthy collision LOD that still breaks the LOD, and `validate()` goes quiet only once the LOD's normals are negated too.)
  2. save(verify=True): _verify_against does not compare geometry. It looks at counts, selection names and mass sum. Points (0,0,0) vs (99,99,99) still verify OK.
  3. python -m py3d diff: py3d diff total: 0 does not prove geometric equality. The same pair reports total: 0, exit 0.

[DESIGN] Discriminating signal on a vanilla-scale LOD set: edge coherence (neighbors traverse the shared edge in opposite directions) and cross(e1,e2) . declared_normal in the same space.

Update 2026-09-07 (corrected the same day by the engine): the fork (1.7.0) ships that absolute signal as _check_winding_absolute → ERR_WINDING_VS_NORMALS. Calibrated against shipped MLOD it reads 100 % on production models and 0 % on two Blender exports whose STORED NORMALS were inverted, so 0 % means winding and normals disagree, not that the winding is wrong: the build that reversed every face on that reading rendered both models inside-out in DayZDiag. Item 1 above describes the relative check only. See "Absolute winding check: what 0 % means" under WINDING DIAGNOSTICS for the direction test (signed volume against production) and the fix rule.

SP-221 — sibling-model frame parity (before copying rotation offsets)

Two .p3d of the SAME family can differ 90° in authorship frame. Before copying rotation offsets from one kit to another, verify frame parity. Compare Memory LOD (res 1e15) selections point-to-point between the two models. If the coordinates correspond by an axis permutation — measured here (x, y, z) → (x, -z, y) — the models do NOT share a frame and their config rotation offsets are not interchangeable. The discriminator of "which way it mounts" is the thin axis of the Geometry LOD (1e13): that axis must sit perpendicular to the mounting surface, and pitch comes from there, not from the family or the model name. The visual LOD bbox is NOT a signal — measured counterexample in the same session: gate_and.p3d (Y≈2, Z≈1.16, pitch 90) and switch_v2.p3d (Y=1, Z≈2, pitch 90) have opposite long axes and the SAME pitch. Corollary: "the two kits are identical except this override" is a hypothesis about CONFIG; measure the model before acting on it.

Source: 2026-08-10 LFPowerGrid (placement-batch reorientation). switch_v2.p3d vs switch_v2_remote.p3d, memory points: switch_axis (-0.0407, 0.0288, -0.1472) → (-0.0407, 0.1472, 0.0288); ce_center (0.0001, 0.0366, -0.1286) → (0.0001, 0.1286, 0.0366); boundingbox_max (0.1833, 0.1039, -0.3665) → (0.1833, 0.3665, 0.1039); Geometry LOD 0.293/0.0911/0.4185 → 0.293/0.4185/0.0911. Refutes finding F1 of LFPowerGrid_dev\reviews\2026-08-07-placement-audit-grok.md — applying the "forgotten" pitch would have PRODUCED the symptom it was meant to cure. MLOD parser used (memory points + extents per LOD, PowerShell, without py3d) is reusable. See also dayz-model-pipeline.

Quick Start

bash
# Single model(s)
python <skill-path>/scripts/audit_p3d.py path/to/model.p3d [more.p3d ...]
# With config.cpp — REQUIRED for the SP-017 wheel-slot wiring check (see below)
python <skill-path>/scripts/audit_p3d.py model.p3d --config path/to/config.cpp
# model.cfg / .rvmat path checks
python <skill-path>/scripts/audit_p3d.py model.p3d --model-cfg path/to/model.cfg
python <skill-path>/scripts/audit_p3d.py model.p3d --rvmat a.rvmat b.rvmat
# Whole-mod scan (recursive; auto-uses the first config.cpp found for SP-017)
python <skill-path>/scripts/audit_p3d.py --scan-dir path/to/mod/

Without --config (or a --scan-dir that finds a config.cpp), the SP-017 check does NOT run: the audit cannot verify the wheel-slot selection wiring, so a wheeled-vehicle body can print "ALL PASSED" while its wheels will never simulate. Always pass --config when auditing a vehicle body.

For full mod audit including config and materials, also check sections below manually.

SP-017 — wheel-slot selection wiring (the silent wheel-sim gate)

The engine resolves the wheel slot→model binding via the selection named by config.cpp > CfgSlots > <Slot>.selection. That selection MUST exist in the body's FireGeometry LOD and contain the wheel-proxy faces. If it exists only in visual LODs, the slot binds as inventory but the wheel never simulates: WheelCountPresent()=0 while WheelCount()=N, with NO RPT error — chassis bounces/sinks, wheels mount as items but do not rotate, RPM climbs while speedo stays ≈0. Fix Y (confirmed in-game on LFQuad, wheelPresent 0→4): alias the wheel-proxy face ALSO into a selection with the exact name CfgSlots.selection expects — additive, preserving the original selection. Automated: check_wheel_slot_firegeo in scripts/audit_p3d.py (runs only with --config or a --scan-dir that finds a config.cpp). Source: Bohemia wiki DayZ:Vehicle_Configuration.

Sibling skills

Input / needDelegate to
ODOL / binarized .p3d (audit_p3d.py rejects ODOL — MLOD signature required)external ODOL→MLOD converter FIRST, then audit the MLOD output
Visual inspection / interactive editing of a .p3ddayz-p3d-inspector
Aligning / orienting proxiesdayz-proxy-align
Assembling or generating modelsdayz-model-pipeline

PART 1: The 13 Silent P3D Killers

These produce ZERO engine errors but break functionality completely. Full body of each killer (root cause, detection snippet, fix, caveats) → references/killers-detail.md. Index:

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

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

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

Source

Popularity

Repository stars
18
Repository forks
6
7-day trend score
19

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

Extension points

  • 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-p3d-audit/badge)](https://verified-skill.com/skills/willy92wins/dayz-modding-knowledge-pack/dayz-p3d-audit)

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