willy92wins/dayz-modding-knowledge-pack/dayz-texture-pipeline

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

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

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

Use when working with DayZ textures, .paa files, .rvmat materials, _co/_nohq/_smdi/_as/_mc/_dt maps, hiddenSelectionsTextures, hiddenSelectionsMaterials, material swaps, damage/destruct materials, emissive lights, glass, penetration materials, Multi shader masks, uvTransform, TexView/ImageToPAA, Blender/Substance texture export, or native PBR materials (MatPBR shader, .emat files, metallic/roughness/albedo maps) for DayZ.

Install

npx vskill@latest install willy92wins/dayz-modding-knowledge-pack/dayz-texture-pipeline

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-texture-pipeline.

DayZ Texture Pipeline

Use this skill to design, edit, validate, and package DayZ texture/material work. It covers visual texture maps, .paa conversion, .rvmat authoring, config material wiring, damage materials, emissive/glass variants, penetration materials, and advanced Multi shader masks.

Non-negotiable rules

  1. Verify every DayZ path, config property, and material pattern against the current mod or unpacked vanilla data before writing a final answer or diff.
  2. Prefer the lowest-risk material route that meets the goal:
  • texture-only skin: hiddenSelectionsTextures[] / _co.paa;
  • changed roughness/specular/normal/emissive behavior: .rvmat;
  • health visual states: damage/destruct .rvmat through healthLevels[];
  • bullet/surface response: collision LOD penetration .rvmat with .bisurf;
  • many tiled materials on one static mesh: Multi shader only after section count and UV requirements justify it;
  • source is an authored metallic/roughness PBR set and damage-overlay/terrain support is not needed: MatPBR .emat route — community-verified, not Bohemia-documented; prefer Super/.rvmat when either is required.
  1. Treat _nohq as DirectX/Y- for DayZ. If the source normal is OpenGL/Y+, invert the green channel before final DayZ export.

Measure a candidate for the source's convention, then confirm it; do not guess it from where the asset came from (added 2026-10-03). python scripts/normal_convention.py --normal <normal.png> --albedo <albedo.png> takes two independent readings and proposes a convention only when they agree. The albedo reading looks at the albedo's dark grooves: across a hollow, d(nx)/dx and d(ny)/dy have the same sign in DirectX and opposite signs in OpenGL, and the red channel calibrates the sign of the groove signal. The curl reading needs no albedo: the slopes of a height field have no curl, under one convention only; it names a convention only when its two median residuals differ by more than one 8-bit step of the normal (2/255), a heuristic floor: on nearly flat normals rounding to 8 bits alone moves them about that much, and more where the normal tilts. The candidate must also hold across a 6×6 grid of blocks, each block read with the same thresholds: at most 1 block in 10 of those that vote may name the other convention for the curl reading, and 1 in 3 for the albedo reading (added 2026-10-04 after a flat brick decal and a cloth bag read OpenGL on vanilla maps with readings that agreed on the whole map but not block by block). Exit 0 prints a candidate, DirectX or OpenGL (both readings agree, stable across the blocks); exit 2 is INCONCLUSIVE (they disagree, one has no signal, or the blocks disagree); exit 1 is bad input. Convert a .paa to PNG with ImageToPAA first. A candidate is not proof: the cross-family review (2026-10-03) built known-DirectX maps that both readings call OpenGL, a valid tangent-space bake on a sphere patch and undersampled tileable detail; the block check cannot see an error that is the same in every block, such as that tileable detail. Confirm a candidate another way before inverting the green: the baker's export setting, or a render under a raking light in which a known groove reads as a groove. The raking light confirms only if it crosses V (known limit, review round 3): the green changes the shading only through the light's V component, so a light parallel to U renders the map and its inverted-green copy identically, and so does a groove that runs along V under any light. Use a light from the top or the bottom of the texture on a groove that runs along U, and check that the inverted-green copy reads that groove as a ridge; two renders that look the same are inconclusive, not a confirmation (references/map-conventions.md). Measured on LFPowerGrid's heater, a Sketchfab asset: the albedo reading gave red −0.130, green −0.085 over 491,775 pixels (2026-09-21) and the curl reading a median residual of 0.013 under DirectX against 0.024 under OpenGL (2026-10-03), candidate DirectX, not confirmed another way and not checked in game. On 284 vanilla pairs not used to design the block check, it gave 157 DirectX, 119 INCONCLUSIVE and 8 OpenGL, all 8 consistent with OpenGL by their own features (2026-10-04). Known limit, accepted by the Pack owner on 2026-10-04: a map that mixes the two conventions inside every block passes the block check. Vanilla kancel_008_nohq (glass panes DirectX by their own edges; hinge bolts and window frames OpenGL) reads OpenGL with stable blocks. Over the three vanilla samples (848 pairs) that is 1 wrong candidate in 502, 0 in the 165 not used for the design, with no N1 error and about 41 % INCONCLUSIVE. Check features of known relief of more than one kind before inverting a channel. The albedo reading alone is also wrong, with strong correlations, on a flat surface that curves one way along x and the other along y; the curl reading alone has no signal on a surface that is a sum of one function of x and one of y. Inverting the green channel only flips both readings, so it is no control: the controls are the fixtures of known convention in tests/test_normal_convention.py. An OpenGL candidate only says that the green disagrees with the red: a map whose red is inverted against the real relief reads the same, and inverting its green then turns the relief upside down (two vanilla maps, 2026-10-04). Check red on a recessed joint of known relief before choosing the channel (references/map-conventions.md). Packing `[MECHANISM VERIFIED]` (vanilla `hatchback_02`/`sedan_02` `_nohq` mip 128 raw, 2026-08-30; same layout on two LFQuad2 maps the same night): shipped _nohq is DXT5nm, not RGB-in-DXT5. Stored (R,G,B,A)=(0,Y,Z,X) with TAGG SWIZ 05 04 02 03; X lives in alpha. ImageToPAA with a _nohq filename deswizzles to RGB (X,Y,Z). Measure amplitude/relief on that PNG, never on the raw DXT block. Do not infer packing from the suffix: read the current file and a vanilla _nohq. Sign if height comes from albedo luminance: dark pixels are valleys. A dark seam that comes out as a ridge is an inverted mold. Confirm with a 1D sweep across a known dark line (entering a horizontal groove: R>128; leaving: R<128; use G for a vertical sweep). Recalibrate Sobel gain per atlas — copying a strength that worked at another resolution or contrast overshoots. An exaggerated normal looks worse than a weak one. Detail: references/map-conventions.md.

  1. Copy the closest vanilla .rvmat category first. Do not invent absolute stage constants when vanilla examples diverge by asset class.

The same holds for map levels (added 2026-11-02): before choosing _smdi, _as and _co levels, measure the closest vanilla asset of the same family whose rvmat constants match yours. The generic SMDI table is far brighter than the vanilla motorbike body measured (references/map-conventions.md §Calibrating against a vanilla asset of the same family).

  1. Mark templates as [DESIGN] until adapted to the real addon paths, selections, UV sets, and verified vanilla reference.
  2. UI textures (loading screens, menu backgrounds, map images): NEVER change the tone curve on the strength of an offline model — the engine's transfer function must be MEASURED from a screenshot first (added 2026-08-21, rewritten same day after the first version shipped a regression).
  • What is measured: a mod running in production carried a full sRGB→linear decode on its source. An offline model built from a vault note ("1.29 washes UI by +35% luma, contrast 76→58", Bohemia T198202) said this was a ~4x overshoot, so it was replaced with a gentle photographic curve. In-game the result was much brighter than before — the user's report, the only real datum in the whole exercise. Working backwards, linear→sRGB on the old texture predicts a render of 132.31 against a source median of 132.51: an exact cancellation. So the engine plausibly treats the UI .paa as LINEAR data and encodes it for display, making sRGB→linear on the source the correct inverse and the note's "+35%" model wrong or measured on something else.
  • Status: HYPOTHESIS. It fits one qualitative report and arithmetic, not a measurement. Do not act on it either. Get a screenshot of the actual UI texture on screen, compare it pixel-wise against the known texture that produced it, and derive the real curve. One screenshot ends the guessing permanently.
  • Second-order trap worth knowing: storing linear data in an 8-bit DXT1 texture starves the shadows, and the engine's gamma expansion then amplifies exactly that quantization. Measured on the production mod: raw DXT1 error averaged 2.64/255, but in DISPLAY space it hit mean 7.46 / max 77 in the darkest 18% of the image — blotchy, banded shadows that read as "the picture looks a bit off" while the overall tone is perfect. If the linear-storage route is correct, the fix for that is precision (uncompressed/higher-bit PAA, or dithering before encode), NOT a tone change.
  • Gate: decode the shipped .paa back and compare its luma median against the source — a build script that "ran fine" proves nothing about the curve it applied. And an offline round-trip never predicts the render: look at it in-game before believing any of this.
  • Power-of-two is an `ImageToPAA.exe` limit, not an engine limit. The tool rejects 2048×1152 and 1920×1080 with Error (Img is not of power of 2 size), yet non-POT .paa load fine at runtime (the loading-screen mask that ships in these mods is 1920×1080). Consequence: forcing a 16:9 source into 2048×1024 costs ~12.5% vertical stretch — budget a crop or another encoder before promising 16:9.
  1. For a UI texture (loading screens, menu backgrounds, map images): use a `.paa` from `ImageToPAA.exe`; do not ship a hand-written `.edds`.
  • What failed: a Python-written .edds did not render — not self-contained LZ4, not a structural clone of a production file with the same tags, not COPY. LoadImageFile returned true in every case, so the log does not catch it. A Python round-trip max_diff=0 does not predict the render; look at it in-game.
  • What worked: a .paa from DayZ Tools ImageToPAA.exe, referenced from script. First try. ~1 MB vs ~14 MB. 2048×1024 accepted; 1536×1024 rejected as not power-of-two.
  • Decoder is for INSPECTING a foreign `.edds`, not for writing one. Six production files decoded with max_diff=0 on mip 0 vs their source PNG. Runtime layout: 128-byte DDS header (loading-screen backgrounds were BGRA8 uncompressed: pf.flags 0x41, R=0x00FF0000, A=0xFF000000; mips = floor(log2(max(w,h)))+1); from offset 128, 8 bytes per mip = tag(4) + uint32 size, tag 'COPY' (raw) or 'LZ4 ', smallest mip first, then payloads in the same order. DayZ Tools has no CLI writer; production files come from Workbench PNG import (the .meta records it).
  • LZ4 slices are linked blocks. A 'LZ4 ' payload is uint32 uncompressed mip size, then 65536-byte slices each prefixed by compressed size with OR 0x80000000 on the last. Slice 0 decompresses alone; later slices fail with "corrupt input or insufficient space" unless the previous slice is passed as dictionary (lz4.block.decompress(data, uncompressed_size=n, dict=prev)). That error reads as a size bug and is not.
Material and atlas preflight (added 2026-08-31)

Before workflow step 2 borrows any vanilla .rvmat, run Ambient-shadow maps and borrowed RVMATs below: measure _as per channel and verify Stage4, Stage5, and every uvSource. Before changing UV orientation or winding, run Atlas identity before mapping diagnosis: decode the selected atlas and overlay the affected faces first.

Workflow

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

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

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