--- name: dayz-rip-vehicle-import description: "Use when: ripped racing-game Grub, rip vehicle import, rip-import of a source-game vehicle. Family-B template. Not vanilla CarScript: dayz-vehicles." --- # Ripped racing-game vehicle → DayZ — family B adapter (CAMBIO-2) > Day-0 critical path for the next source game Grub car, proxy-split and with moving parts. > If the asset is in flight, use its frozen runbook. If an applicable entry is missing: **STOP**. > The previous runbook is in `history/pre-cambio-1-family-b-runbook.md` and is not executable. ## Seis deltas obligatorios | Field | Family B contract | |---|---| | Axes / units | Source `\rip\media\cars\\`. Net transform `DayZ=(-Fx, Fy+Y0, -Fz)`, meters, without permuting axes and `det=+1`; `Y0` is measured and sealed in the ledger entry, never inherited from another car. Contract verified in `/tools/fit_transform.py:5-15,107-108`. | | Monolithic vs proxy-split | Host/shell with structural LODs; visual parts exceeding budget and attachments are instantiated as proxy submodels. Do not use a monolith as a silent fallback. | | Moving parts | Doors, hood, trunk and wheel/item retain their own identity, measured pivot and item↔slot↔proxy wiring; they are not merged into the shell. | | Frame authority | Donor/golden frame rules for structure; source frame rules for imported visuals. Every conversion is tested with independent anchors. Never validate a part against a point produced by the same transform. | | Golden | `\goldens\family-b\civiliansedan\r1\q1-structure.json`, revision `family-b-civiliansedan-r1`, 3,219,555 bytes, SHA-256 `3174D511F2761EE2F4E003694F566D7D92180BB30CE3479A8FA5F1EAA7C45AEB`; donor hashes in `golden-manifest.json`. Structural, not clone-ready: empty `mass_array` and proxy warnings require STOP before copying per-vertex mass or declaring full parity. | | Checks allowlist | Only B1-B7 from the following table. No legacy gate, snapshot, or workspace copy expands the lane. | ## Source door inventory (measured 2026-08-06 on the library of 651 rips) - Bilateral door container can come from EITHER side: the BRZ provides only `doorlf`, `SUB_WRXSTi_04` provides only `doorRF_a`, `FOR_BroncoRaptor_22` mixes sides (`doorLF_a`, `doorLF_b`, `doorLR_b`, `doorRF_a`). The real rule is "a single side per container, whichever it is" — do not assume LF when classifying, counting doors, or synthesizing the mirror. - Variants `_a`/`_b` of the same door container = interchangeable platforms (removable Bronco doors): session A chooses ONE variant as INCLUDE and justifies the rest as EXCLUDE. - jamb/handle/card of a door WITHOUT its `door_` panel = door merged into the bodywork (`BMW_M4_14`, `FOR_2_GT40_66`): this is not another naming convention; the openable part does not exist in the rip. ## Single ledger entry and identity checkpoint - Full template: `\contracts\asset-contract.json`; review schema: `\contracts\asset-contract.schema.json`. - The per-asset copy is named exactly `asset-contract.json`; it is the third and final day-0 file. It replaces parallel inventory/decisions: do not produce `source_inventory.json`, `manifest_decisions.json`, separate tombstones or any other list. - Session A/B export: the human runs `\scripts\blender_export_asset_contract.py` on collections `DZ_INCLUDE` / `DZ_EXCLUDE` / `DZ_MOVABLE`. The JSON is import evidence; afterwards the ledger entry rules. - Single primitive: `\scripts\asset_contract_checkpoint.py`, version declared in stdout. Copying it to a run is forbidden. - Session A/B is imported with `import-blender`; after converting, `check` is the only `capability=LINEAGE_CHECKPOINT`. - `PASS` allows continuing only within the issued capability. `DECISION_REQUIRED` returns to the human. `TOOL_FAIL` blocks and does not authorize touching geometry nor is it recorded as an asset failure. - Coverage is N:M: every `INCLUDE`/`MOVABLE` appears in a `derived_from` within an authorized operation; each justified `EXCLUDE` is the tombstone. Source/output equality is not required. ## Allowlist B1-B6 and canonical location | ID | Contract / location | Status for a new B | |---|---|---| | `B1_BINARIZE_LOAD` | Three-state oracle `PASS / CAPACITY_FAIL / OTHER_FAIL`: `\scripts\p3d_vertex_gate.py`. | Available; demonstrated authority with known-good, `CAPACITY_FAIL`, `OTHER_FAIL` and residual ODOL. | | `B2_DEPLOY_IDENTITY` | `\scripts\rip_build_identity.py --stage` (`:420-442`). | Available. | | `B3_VEHICLE_PARITY` | `\tools\verify_rip_car.py` in contractual mode (`:1538-1546,1734-1736,1817`), never legacy `build_checks()`. | Available. | | `B4_CREW_ACTIONS` | `\scripts\rip_action_contract_gate.py` via its real CLI (`:732-742`). | Available. | | `B5_DOOR_ALIGNMENT` | `\scripts\rip_door_engine_alignment_gate.py` via its real CLI (`:513-515`). | Available. | | `B6_NATIVE_DOOR` | `\scripts\rip_native_door_contract_gate.py` via its canonical CLI (`--profile`, `--mlod-stage`, `--odol-stage`, `--debinarizer-scripts`, `--out`); W2 (`--matrix-authority` + `--matrix-out`) is an optional extension, not the base authority. | Available; family B authority demonstrated with non-BRZ profile, vanilla golden, structural mutation and instrumental failure. | | `B7_VISUAL_SIGNOFF` | Render: `\scripts\rip_assembled_viewer.py`. Verdict: `\scripts\rip_visual_signoff.py` (`--render` / `--verdict` / check with `--out`). | Available; debuted with sub_wrxsti_04 on 2026-08-16, when the user's eye found in minutes four defects that B1-B6 had passed as good. | **Single location:** each primitive/gate is executed only from its canonical path above. It is forbidden to copy it to `work\`, `sNN\`, `_validation\`, `.superpowers\sdd\` or any run workspace. Existing copies are evidence snapshots: they are preserved, can be hashed, and **are not executed**. If the canonical path is missing, the result is STOP, never "use the newest copy". ## Classification viewer (session A review without Blender) `assets/classify-viewer/` — Three.js viewer to review/reclassify session A by click (GLB with extras + deltas that the agent applies to the `.blend` via headless script). Advisory: authority remains `.blend` → export → ledger entry. Usage and data contract in its `README.md`. Debuted with sub_wrxsti_04 (2026-08-06). ## B7 — visual signoff before build (debuted 2026-08-16, sub_wrxsti_04) B1-B6 measure names, face counts, hashes and logical matrices. **Neither can see a color nor the orientation of a proxy.** On 2026-08-16 the user opened the WRX in a viewer for the first time and found in minutes four defects that the entire allowlist had passed as good: - 64% of the car in ONE material and the entire interior in another — the import recorded `material_map: null` and sent 37 named parts (badges, mirrors, exhaust, jambs, skirts, underbody, suspension arms) to the bodywork paint bucket; - the four wheel proxies written with the IDENTITY matrix, all four identical, when vanilla writes TWO mirrored frames, one per side. Same frame + mirrored anchors = one side mounted backwards by mathematical obligation; - 176 mm vanilla sedan wheel instead of the car's wheel; - a bodywork color that no one had verified. The tool existed halfway: `rip_visual_sheet.py` already renders artifacts and its own docstring says "renders, does not judge" — but it draws geometry in GRAY and separately, so it could not show any of the four. B7 is the other half. **How to run it**, in this order and without skipping the middle. ABSOLUTE PATHS: this project has TWO trees — `` (scripts, profiles, work) and `C:\Users\\OneDrive\Documentos\DayZ Projects` (= `P:\`, the deployed mod) — and a relative command only runs from one. The actual debut of B7 failed with `can't open file ... No such file or directory` precisely because of that. ``` set FZ= python "%FZ%\scripts\rip_visual_signoff.py" --car "%FZ%\profiles\.json" ^ --render "%FZ%\work\_viewer.html" REM (el humano lo abre y lo mira -- este paso no lo puede hacer el agente) python "%FZ%\scripts\rip_visual_signoff.py" --car "%FZ%\profiles\.json" ^ --verdict pass^|fail --by "human:" --note "" python "%FZ%\scripts\rip_visual_signoff.py" --car "%FZ%\profiles\.json" ^ --out "%FZ%\work\_gates\b7.json" ``` **Three rules that make it a gate and not a rubber stamp:** 1. **The render must be ASSEMBLED and with materials.** Shell + chunks + interior + removables in their proxies + wheels in theirs, with the colors of the rvmats that ship. Floating doors and inverted rims ONLY appear when assembled; not in loose parts and in gray. 2. **The verdict is tied to the bytes.** It carries the sha256 of each artifact that was viewed, and the check hashes them again. Rebuilding a part renders the signoff STALE, not old, and the gate turns red until someone looks again. It is the same lesson already paid by `positive_control`: a control pointing to a path that the next build overwrites is a tautology. 3. **Fail-closed.** Without a verdict it is `NO_EVIDENCE`, never PASS. A verdict covering fewer artifacts than the car currently has is FAIL: a part that was not shown cannot be approved. Signing on behalf of the human invalidates the entire gate. The `--verdict` command exists so that the signature has a name and date; using it instead is forging it. Two traps encapsulated by the render, paid on the same day: DayZ is LEFT-HANDED and three.js RIGHT-HANDED, so passing the coordinates as-is **is a reflection** — a mirrored car looks perfectly plausible until you read a badge, and the calibrator is brand text. And proxy placement is `vertices @ effective_frame.T + anchor` with `effective_frame = MLOD_PROXY_CONVENTION_FRAME @ raw_frame` (`rip_detachable_doors.py:55-61,171-176`): deducing it by eye from the triangle placed each door one meter from the car. ## Single symptom → cookbook index | Symptom | Moved cookbook | |---|---| | Missing get-in | `cookbooks/family-b/get-in-ausente.md` | | `wheelPresent=0` | `cookbooks/family-b/wheelpresent-0.md` | | White car / missing texture | `cookbooks/family-b/coche-blanco.md` | | Invisible attachment with intact sim | `cookbooks/family-b/attach-invisible.md` | | Missing door radial | `cookbooks/family-b/radial-puerta-ausente.md` | Do not create `INDEX.yaml`, a cookbook router or any other symptom→cookbook table. This is the only index. ## Secuencia day-0 1. Open this adapter from the `dayz-vehicles` selector. 2. Open a single ledger entry `asset-contract.json`, created from the canonical template, and verify source revision, `Y0`, golden revision and status. 3. The human classifies in Blender; the primitive captures hash/inventory and imports lists/transforms into that same ledger entry. The agent neither opens nor maintains schema/export as state documents. 4. Check canonical presence of B1-B6 without executing snapshots. **The B1-B7 allowlist is complete; any canonical absence results in STOP.** 5. Convert while preserving provenance and require `LINEAGE_CHECKPOINT=PASS`; the other two states block. 6. Execute only the allowlist; the final live test remains separate from preflight. 7. If one of the five symptoms appears, open only its cookbook. For other symptoms, STOP and explicit diagnosis. ## Step 5 conversion rail (SP-363; debuted sub_wrxsti_04, 2026-08-06) The car profile declares `source.asset_contract` (path to ledger entry) — this activates the contract mode of `rip_p2_import.py`: INCLUDE/SHADOW lists projected from the ledger entry by `scripts/rip_contract_source.py` (fail-closed per-container homogeneity; `rip_p2_import.py` and `rip_contract_source.py` are scripts of the import project and are not shipped in this pack), never with `manifest_decisions.json`, far-shell deferred to human classification, G0 anchors per profile (`source.g0_anchors` = pairs [part, locator]). The three commands, in order: ``` blender --background --factory-startup --python-exit-code 1 --python scripts\rip_p2_import.py -- --car profiles\.json python scripts\asset_contract_checkpoint.py import-conversion --contract --import-report --contact-y-m C --hub-y-m H --lift-m L --y0-m Y0 --responsible "machine:rip_p2_import@" --approved-by "human:" --out python scripts\asset_contract_checkpoint.py check --contract ``` - `--python-exit-code 1` is MANDATORY: without it Blender returns exit 0 even if the python script dies (a G0 FAILED passed as "completed" at debut). Applies to ALL headless Blender launches, not just this step. - `import-conversion` validates the derivation `Y0 == contact − hub + lift`, the MULTISET correspondence of object names per container (report vs inventory, blind to Blender `.NNN` suffixes) and that no excluded part was imported; seals 1:1 lineage `AXIS_UNIT_TRANSFORM` + frame, and is seal-once (retry = `CONVERSION_ALREADY_IMPORTED`). - The new profile starts MINIMAL (see `profiles/wrx.json`): source block + anchors + measured transform + `WHEEL_R` == mounted wheel radius. Copying keys from `profiles/brz.json` is forbidden: they are scars specific to that car. - Known downstream landmines (next surgery): `rip_p2_group.py:33` IN_BLEND hardcoded BRZ; `rip_p3_structural.py:715` defaults to `brz.json`. ## On Linux Everything above is the Windows workflow and stays valid there. On Linux, the Proton setup, the measured tool matrix and the pitfalls are in [`_shared/linux-proton.md`](../_shared/linux-proton.md); this section only says what changes for this skill. - Pack, sign and binarize with dayzmake >= 3.1.0, bzed's DayZ fork of armake2 (https://github.com/bzed/dayzmake), pinned to `v3.1.0`; 3.x fixes a lot of security and file-handling issues of the earlier releases, so do not use an older build. Install the release binary `dayzmake-v3.1.0-debian-trixie-x86_64.tar.gz` from https://github.com/bzed/dayzmake/releases/tag/v3.1.0 only after verifying it against the release's GPG-signed `SHA256SUMS` (key fingerprint `6624 41B3 6A57 85AD 18FB 8667 DF75 3D99 D064 EB7E`; commands and the list of fixes in `dayz-pbo-build/references/dayzmake-linux.md`, "Get the right dayzmake"), or `cargo install --locked --git https://github.com/bzed/dayzmake --tag v3.1.0`: use `dayzmake build`, `keygen`, `sign`, and `build --proton-binarize` where needed. Upstream armake2 is no substitute: it is built for Arma, its V3 file hash omits `*.c` files (dayzmake includes them) and lacks the DayZ-only functions dayzmake keeps adding. `skills/_shared/scripts/dayz-mod-pack.sh` wraps them (`init`, `keygen`, `build [--binarize-models]`, `check`, `publish-hint`; `dayz-pbo-build/references/dayzmake-linux.md`). The author's 2026-11-03 textured-cube comparison with BI binarize from a `P:` root matched byte for byte (fork commit `7dcb3cf`, then still named armake2; `v1.0.0` and later contain it); this is not an in-game ODOL check. See `skills/_shared/linux-proton.md` for setup and limits. - `P:\` is a plain directory mapped by `skills/_shared/scripts/dayz-proton.sh init `; a `P:\\...` path in this skill is `//...`. - Object Builder and TexView run under Proton: `dayz-proton.sh gui ObjectBuilder `, `gui TexView `. Object Builder opened and displayed a model; editing in it was not exercised. Offline checks (`py3d`, `dayz-model-preflight`, `dayz-3d-viewer`) are Python and run natively. - In-game checks: the Linux notes of `dayz-test-ingame`. ## Building, testing and publishing the mod When this work has to end in a mod that builds, loads and ships (`config.cpp`/`CfgMods`, `requiredAddons`, the PBO and its signature, a boot on a local server, the Workshop), follow the loop and the rules every mod task needs in [`dayz-mod-dev`](../dayz-mod-dev/SKILL.md), the Pack's entry point for mod development.