/agentic-z:dayz-pack-texture [--dry-run] <image_co.png|.tga> [<image2_nohq.png> ...] | scripts: <file.rvmat ...> | <super|damage|emissive|penetration|multi> --prefix <packed-path> | --normal <normal.png> --albedo <albedo.png>from agentic-z
Converts PNG/TGA images to DayZ .paa textures with ImageToPAA, validates filename suffixes, and provides .rvmat linting, template writing, and normal map convention checks.
Ships in agentic-z. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
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\.
Convert one or more PNG/TGA images to .paa (DayZ's texture format) using DayZ Tools' ImageToPAA.exe. Each input file must end in a texture-role suffix. ImageToPAA reads the suffix to pick the compression and color space (its rules are in <DayZ Tools>\Bin\ImageToPAA\TexConvert.cfg). The skill accepts the suffixes below; each has a rule there and is used by vanilla textures under P:\DZ. A few rarer suffixes also have a rule and appear on a handful of vanilla .paa files, and the skill refuses them: _can (3 files), _nofhq (2), _raw (1) and the format suffixes _dxt5 (25), _dxt1 (1) and _4444 (2) (a scan of the .paa file names under P:\DZ).
| Suffixes | Role |
|---|---|
_co, _ca | Color / diffuse, without and with alpha |
_lco, _lca | Terrain layer color (satellite and mask textures), without and with alpha |
_nohq, _no, _non, _nopx | Normal map: high quality, plain, with noise in alpha (vegetation), parallax |
_smdi, _sm | Specular (_smdi is the higher-bit-depth form vanilla gear uses) |
_as, _ads, _adshq | Ambient shadow (_ads, _adshq: ambient, diffuse and shadow) |
_mc, _mco | Macro texture, multiply color |
_dt, _detail, _cdt, _dtsmdi | Detail textures |
_mask, _sky | Masks, sky |
Most mod gear needs only _co (or _ca), _nohq and _smdi.
A file like vest_camo_co.png becomes vest_camo_co.paa next to it. If a .paa of that name already exists, it is first copied to vest_camo_co.paa.bak, then overwritten. There is one rolling backup per texture: each repack replaces the .bak from the previous run, so iterating on a 2048 texture never piles up copies in data\ (and the build's *.bak exclude matches it). If that conversion fails, the backup is copied back over the .paa automatically, so config.cpp and .rvmat never point at a broken file. To get the previous .paa back after a successful run, delete the new one and rename the backup before you repack again; the next repack replaces it. Keep a hand-tuned .paa you want to preserve outside the folder. Numbered backups (.paa.bak.1, .paa.bak.2) left by older releases of this skill are never touched; each run prints how many there are so you can delete them. Run with --dry-run first to see what would be written.
Follow skills/_shared/dayz-conventions.md.
python "<skill-dir>\pack_texture.py" [--dry-run] <input1> [<input2> ...]
| Argument | Required? | Notes |
|---|---|---|
--dry-run | no | Check that P:\ is mounted (read-only), validate every input, resolve ImageToPAA, and list each .paa that would be written and each existing .paa that would be backed up (with the backup name, and whether it replaces a current .bak). Converts nothing and writes no file. It skips the full /dayz-preflight, because that creates the P:\Mods junction when it is missing. |
<input> | yes (one or more) | Path to a .png or .tga file with a valid suffix in the basename. Pass each file explicitly; cmd.exe does not expand globs. |
/dayz-preflight, or with --dry-run only its read-only P:\ check..png or .tga (any case), the basename ends with one of the suffixes above (any case) before the extension, and both sides of the image are powers of two. The size comes from the PNG IHDR chunk after the PNG signature, or from the TGA header once its color map type (0 or 1), image type (1 to 3, or 9 to 11 for RLE) and bits per pixel (8, 15, 16, 24 or 32) are valid, so a corrupt .tga or a renamed PNG is refused here. No two inputs may map to the same .paa.ImageToPAA.exe from DayZ Tools (env / registry / Steam paths) via find_dayz_tools().--dry-run, list what would be written and stop with exit code 0. Otherwise, for each input, copy any existing .paa to <name>.paa.bak (through a temporary file, so a failed copy leaves the previous backup intact; a [WARN] line counts any numbered backups from older releases), then invoke ImageToPAA.exe <input> <output.paa>. If the backup copy itself fails, that input is skipped and the existing .paa is left untouched. Streams the tool's output live. A conversion counts as failed if the tool exits non-zero, if no .paa appears, or if an existing .paa was left unchanged (its modification time did not move), so a stale file from an earlier run is never reported as packed. On a failure the backup is copied back over the .paa (and kept), or, when there was no .paa before, any partial file the failed run wrote is removed; each step is printed. If that undo fails, a [FAIL] line names the file to copy back by hand./dayz-preflight returns non-zero (with --dry-run: P:\ is not mounted).ImageToPAA.exe is not found under DayZ Tools.x_co.png), or cannot be read..png or .tga._normal or _nrm becomes _nohq, _spec or _specular becomes _smdi, _alpha becomes _ca, _diffuse or _albedo becomes _co, a role word elsewhere in the stem (for example vestnormalmap) gets its suffix appended, and any other name gets _co appended..paa (for example vest_co.png and vest_co.tga, or the same file passed twice), since the second conversion would silently replace the first.IHDR chunk, or a TGA header with an invalid color map type, image type or bits per pixel). The message names the nearest vanilla size from skills/_shared/textures/suffixes-and-sizes.md (for example 1000 x 1000 becomes 1024 x 1024). Nothing is converted until every input passes, and every failing input is listed in the same run.DayZ preflight
... (preflight output)
Preflight complete.
[OK] ImageToPAA: C:\...\DayZ Tools\Bin\ImageToPAA\ImageToPAA.exe
[Pack] vest_camo_co.png -> vest_camo_co.paa
... (ImageToPAA output) ...
[OK] Wrote vest_camo_co.paa (123,456 bytes)
[Pack] vest_camo_nohq.png -> vest_camo_nohq.paa
[OK] Backed up existing vest_camo_nohq.paa to vest_camo_nohq.paa.bak (replaced the previous backup)
... (ImageToPAA output) ...
[OK] Wrote vest_camo_nohq.paa (98,765 bytes)
[OK] 2 of 2 textures packed.
Three offline scripts in scripts\ check and draft the material side. They only read the files they are given and print a report or a template, so they do not run /dayz-preflight; nothing here needs DayZ Tools except decoding a .paa to PNG with ImageToPAA before normal_convention.py reads it.
| Script | What it does | Arguments, exit codes and how to read the result |
|---|---|---|
rvmat_lint.py | Lints one or more .rvmat files (and a companion .emat), standard library only | skills/_shared/textures/rvmat-cookbook.md, "The template writer and the linter" |
rvmat_template.py | Writes a starter super, damage, emissive, multi or penetration .rvmat, standard library only | the same section |
normal_convention.py | Proposes whether a normal map is DirectX (Y-) or OpenGL (Y+) from the normal and its albedo; needs numpy and Pillow | skills/_shared/textures/normal-maps.md, "Measuring a source map" |
python "<skill-dir>\scripts\rvmat_lint.py" <file.rvmat> [<more.rvmat> ...] [--pdrive-root P:\] [--warnings-as-errors] [--json]
python "<skill-dir>\scripts\rvmat_template.py" <super|damage|emissive|multi> --prefix <packed\path\name> [--output <file.rvmat>]
python "<skill-dir>\scripts\rvmat_template.py" penetration [--surface <packed\path.bisurf>] [--output <file.rvmat>]
python -m pip install -r "<skill-dir>\scripts\requirements.txt"
python "<skill-dir>\scripts\normal_convention.py" --normal <normal.png> --albedo <albedo.png> [--json]
Each script takes --help; the two .rvmat scripts also take --self-test. Outside an agent session, scripts\dayz\rvmat-lint.bat, scripts\dayz\rvmat-template.bat and scripts\dayz\normal-convention.bat in the repo run them with the same arguments. Which route, map and material to make, and the checks before handing the work over, are in the texture pack, skills/_shared/textures/README.md.
P:\ before it goes into an answer or a file. Never edit a file on P:\.skills/_shared/textures/rvmat-cookbook.md, "Pick the route": a _co.paa and hiddenSelectionsTextures[] for a skin, a .rvmat for a different highlight, relief or glow, healthLevels[] materials for a look per health level, a penetration .rvmat for bullet and surface response, Multi only once the section count and the two UV sets justify it, and MatPBR only for a metallic and roughness set with no damage look that is not terrain._nohq is DirectX style, Y-. Do not guess a source map's convention from where it came from: run normal_convention.py for a candidate, then confirm it with the baker's export setting or a raking light render (skills/_shared/textures/normal-maps.md). Do not read a shipped _nohq as plain RGB..rvmat of the same kind first, and set _smdi, _as and _co levels against the closest vanilla asset with matching material constants (skills/_shared/textures/smdi-and-levels.md)..paa from ImageToPAA, not a hand written .edds (skills/_shared/textures/ui-textures.md)..rvmat, measure its _as per channel and check Stage4, Stage5 and every uvSource; before changing UV orientation or winding, decode the atlas and draw the affected faces over it (skills/_shared/textures/baked-atlas-checks.md).GetObjectMaterial, and a health level change wipes it (skills/_shared/textures/runtime-material-swaps.md).Ask when any of these is unknown: the mod's root folder and packed path; the exact selections that get a texture or material swap; whether the model has one UV set or two; whether the texture is cosmetic only or must change surface, damage, glass, light or penetration behaviour; whether the result is a change to the mod or a standalone reference.
vest_camo.png (no suffix), they rename it themselves so they're explicit about what role it plays.pack_texture.py (opens in a new tab)scripts/normal_convention.py (opens in a new tab)scripts/requirements.txt (opens in a new tab)scripts/rvmat_lint.py (opens in a new tab)scripts/rvmat_template.py (opens in a new tab)scripts/test_normal_convention.py (opens in a new tab)scripts/test_rvmat_tools.py (opens in a new tab)test_pack_texture.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub dayz-n-chill/agentic-z --plugin agentic-z42 skills in this plugin
/dayz-add-scaffoldAdds missing DayZ mod scaffold pieces (config.cpp, $PBOPREFIX$, Workbench gproj, README, folders) to a folder already in workspace/ without overwriting files, and can create its P:\ link. Use when a workspace mod lacks scaffold pieces or its P: link, such as a hand-cloned or older mod./dayz-add-serverSets up an isolated DayZ test server instance under .server/<instance>/ with its own mission copy, serverDZ.cfg and profiles. Use when you need a new test instance before /dayz-launch-test (for example chernarus or chernarus-hardcore), or to refresh the mission after a DayZ update./dayz-animation-pipelineRuns the DayZ animation tools: writes a model.cfg from one JSON description, writes and inspects SEAnim and RTM files, solves a vehicle rider pose from model anchors, builds the weapon animation and grip viewers, samples a Blender scene against a motion contract and validates it, and retargets Mixamo clips inside Blender (experimental). Use when one of these scripts has to run. The knowledge behind them (model.cfg animations, graphs, clips, items and weapons in hands, rider poses, Blender, realistic motion, building doors) is the animation pack, skills/_shared/animation/README.md.Other plugins' skills for the same job