dayz-animation-pipeline
Skill16 starsChanged 2 months agoMITView on GitHub
Use when: DayZ animations, model.cfg AnimationSources, SetAnimationPhase, RTM, SEAnim, anim graph, CMD_Death, vehicle rider pose. Config-driven and skeletal. Not Blender .txa authoring: blender-animation; not Mixamo: mixamo-retarget.
- Installs packages
In this repository44 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- 3d-generation-harnessSkill
- ai-3d-to-dayzSkill
- ardy-motion-generationSkill
- blender-animationSkill
- blender-assemblySkill
- blender-visual-reviewSkill
- dayz-3d-viewerSkill
- dayz-ai-patternsSkill
- dayz-aviationSkill
- dayz-basebuildingSkill
- dayz-charactersSkill
- dayz-clothingSkill
- dayz-doorsSkill
- dayz-environment-hazardsSkill
- dayz-feature-specSkill
- dayz-mcp-verifySkill
- dayz-model-pipelineSkill
- dayz-mod-workflowSkill
- dayz-motorbikesSkill
- dayz-p3d-auditSkill
- dayz-p3d-inspectorSkill
- dayz-particlesSkill
- dayz-pbo-buildSkill
- dayz-pbo-reverse-engineeringSkill
- dayz-persistenceSkill
- dayz-physics-engineSkill
- dayz-preflightSkill
- dayz-proxy-alignSkill
- dayz-realistic-animation-directorSkill
- dayz-sound-systemSkill
- dayz-test-ingameSkill
- dayz-texture-pipelineSkill
- dayz-ui-developmentSkill
- dayz-undergroundSkill
- dayz-vehiclesSkill
- dayz-weaponsSkill
- enforce-script-referenceSkill
- mixamo-retargetSkill
- rigorous-data-auditSkill
- rip-vehicle-importSkill
- uv-clean-atlasSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
Only the .p3d scripts need py3d.
- Distinctive: line 41
When you produce a deliverable, say where it sits on this seam and what the user must run next.
- Distinctive: line 58
Ask first: is this object/prop animation or skeletal animation?
- Very specific: line 163
Write the new block to /tmp/<name>.md with a bash heredoc.
- Distinctive: line 166
Read the destination back with the Read tool (host-direct) and assert the tail matches what you wrote.
- Very specific: line 184
Use MeshBasicMaterial (unlit) for overlays, with saturated high-luminance colors (yellow 0xffe000, green 0x00ff66, blue 0x33bbff).
- Very specific: line 221
When you produce a plan that writes a .p3d (selections, memory points, properties), name these six explicitly as criteria the script must …
- Distinctive: line 241
If the rebake step skipped that, the modded action silently sees vanilla positions and L/R routing degrades.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
DayZ Animation Pipeline
Produce and modify DayZ animations end to end. DayZ has two parallel animation systems, and the single most common failure is conflating them. This skill keeps them straight, tells you exactly which parts run where, and refuses to confabulate the reverse-engineered formats.
Dependencies
# py3d = DayZ fork of the pack, >= 1.6.0 (sealed wheel vendored in this skill).
# NEVER `pip install py3d` (PyPI = point-cloud lib) NOR git+upstream (without guards).
command -v python3 >/dev/null 2>&1 || { echo "ABORT: python3 is required to install the sealed DayZ py3d wheel" >&2; exit 1; }; python3 scripts/install_py3d.py
python3 -c "import py3d; assert getattr(py3d,'IS_DAYZ_FORK',False) and tuple(map(int,py3d.__version__.split('.')))>=(1,6,0), (py3d.__version__, py3d.__file__)"Only the .p3d scripts need py3d; the SEAnim/RTM writers are pure Python. The assert
is not decoration: without it a wrong py3d installs silently and every geometry read
returns plausible garbage.
The seam: what runs in the sandbox vs what needs Windows/GUI (anchor 1)
This matters more than any config detail. Claude runs in a Linux sandbox with no P:\, no DayZ Tools, no Workbench, no Object Builder. Be honest about the boundary in every plan — promising work Claude cannot run is the worst outcome.
- Layer 1 — Claude produces directly (sandbox, text + Python):
model.cfg(CfgSkeletons, CfgModels, class Animations),config.cppAnimationSources, the script wiring (SetAnimationPhase / GetAnimationPhase), item carry-IK registration, hide-on-attach. Fully deliverable here. - Layer 2 — Claude assists via interchange formats (sandbox Python + Blender headless): generate or edit strict SEAnim v1 (bridges to
.anmvia DayZATool) and unbinarized RTM_0101/RTM_MDAT with the Knowledge Pack's dependency-freedayz-animation-formatstool, plus keyframe authoring in Blender headless..anm/BMTR remain unsupported here. - Layer 3 — user or computer-use only (Windows GUI): Workbench compile (
.txato.anm),FBXToRTMGui.exe, Arma3ObjectBuilder export from interactive Blender, PBO signing, in-game test. Claude can drive these via computer-use when granted, or hand the user precise steps — but never claim to run them in-sandbox. A strict interchange round-trip is not evidence that DayZ accepts the converted animation; keep the DayZATool/Object Builder/DayZDiag gate.
Additional layer-specific notes from the LFQuad rider-pipeline sprint (2026-05-28):
- Layer 1 — handlebar/steering-wheel rotation: pure
model.cfgwithsource = "drivingWheel"plus a two-memory-point axis. NoAnimationSourcesentry. Seereferences/handlebar-and-steering-config.md. - Layer 1.5 — scripted (Enforce Script): a
modded ActionGetInTransportthat snaps the player to the correct seat side using 4 memory points per seat (pos_*_L/_R) beforesuper.OnStartServerruns. Fixes the >180° yaw spin from the wrong side. Seereferences/dual-entry-action-pattern.md. Sandbox-deliverable. - Layer 1.5 — native directional in/out (DayZ 1.30 Exp): (added 2026-09-16, DayZ 1.30 Exp) [EXACT] vanilla now provides native directional boarding for single-track vehicles via
Transport.HasDirectionalInOutAction()(3_Game/Vehicles/Transport.c:677) andGetSeatAnimationTypeDirectional(posIdx, directionIndex)(Transport.c:690), with the side chosen by a dot product inActionGetInTransport.c:81-100(seat = transport.GetSeatAnimationTypeDirectional(crewIndex, direction)). Single-track vehicles also get a dedicated spring-smoothed 3rd person cameraDayZPlayerCamera3rdPersonVehicleMotorbike(DAYZCAMERA_3RD_VEHICLE_MOTORBIKE = 32,DayZPlayerCameras.c:20, registered at:63). [DESIGN] For a custom vehicle that implementsGetSeatAnimationTypeDirectional, the manual snap script above may be unnecessary; not measured. Details:dayz-motorbikes/references/rider-animation.md. - Layer 2 — IK pose from .p3d anchors → SEAnim: 2-bone analytic IK on
OFP2_ManSkeletonfrom 6 anchors (scripts/ik_pose_to_seanim.py). Produces SEAnim variants without a per-bone keyframer. Critical caveat: SEAnim rotations are rest-pose-relative, so the script needs--rest-poseextracted from a vanilla.anmvia DayZATool to produce in-game-ready output; without it the output is positionally approximate. Seereferences/vehicle-rider-ik-pose.md.
The .p3d geometry an animation needs is NOT Layer 3 — don't punt it to Object Builder. A config-driven animation needs a named selection to drive and (for rotation/translation) an axis = a pair of memory points; a skeletal bone is also a named selection. Adding/editing those and rebuilding the .p3d is sandbox work via the sibling p3d skills: dayz-p3d-inspector (extract → Recipe JSON → edit memory points / axis endpoints / selections → rebuild .p3d) or dayz-model-pipeline (py3d assembly, or from scratch). Run an external ODOL→MLOD converter first if the model is binarized (ODOL, not editable), and dayz-p3d-audit to verify winding and Component01 naming. Honest caveats: py3d edits an MLOD .p3d, and authoring a brand-new selection that groups specific geometry leans on the model-pipeline/inspector context (memory points and the axis pair are trivially addable). So when a plan needs a selection or an axis, offer to do it in-sandbox — interactive Object Builder is a preference, not a requirement. For Layer 1 work the only true Layer 3 remnants are PBO signing and the in-game test.
When you produce a deliverable, say where it sits on this seam and what the user must run next.
The wall you must always flag (anchor 3)
Only one mod that modifies player/creature animations can be loaded at a time. Loading two crashes the client/server — this is an Enfusion engine limit, not a policy. Any plan that ships a character/creature animation mod MUST warn the user it will conflict with every other animation mod on their server. (scoped 2026-09-28) That is a graph replacement; the child-.asi routes (weapons, and one vehicle class's rider: references/vehicle-rider-ik-pose.md) replace no graph file. This does not apply to config-driven object animation (Layer 1) — doors and levers are per-model and do not hit this wall.
Cite-then-verify, because half this domain is reverse-engineered (anchor 2)
The RTM format carries an explicit Bohemia notice that it is internal and undocumented; the .anm format is proprietary. Community wikis disagree on edge details. So this skill labels every fact:
- [VERIFIED] — confirmed against a primary source actually read (PMC wiki model.cfg, an official repo, a working mod in this vault). Safe to act on.
- [TBD-verify] — reported by a secondary source or a single community guide, not confirmed. Before relying on it, open the real file (the user's
P:\vanilla config, a vanillamodel.cfg) and confirm. Never silently promote a [TBD-verify] to a fact.
When you cite a property/type/source in output, give the source. If you cannot verify and cannot reach the file, say so and mark it [TBD-verify] — do not invent a plausible config key to make a list look complete. This domain has burned us before (see the vault's verificacion-outputs-multi-agente.md).
Decide which route you are on
Ask first: is this object/prop animation or skeletal animation?
| If the user wants… | Route | Read |
| A door, lever, wheel, turret, hatch, gauge, or any moving part of an object driven by a controller or by script | Config-driven (Layer 1) | references/config-driven-animation.md |
| An attached item to appear/disappear, or a carried item held with the right hand pose (including a held item that points the wrong way: turn the model, not the ikpose) | Item IK + hide (Layer 1) | references/item-ik-and-hide.md |
| A character/infected/animal body animation, or a weapon animation | Skeletal — Enfusion .anm | references/skeletal-anm-enfusion.md |
| A legacy prop/man RTM animation, or to use FBXToRTM / Arma3ObjectBuilder | Skeletal — RTM | references/skeletal-rtm.md |
| Strict SEAnim v1 or unbinarized RTM read/write/inspect, bounded parsing or deterministic JSON | Interchange tooling | Knowledge Pack tools/dayz-animation-formats/README.md |
| To author keyframes from scratch or retarget in Blender | Authoring | references/blender-authoring.md |
| To apply Mixamo (or any FBX) mocap onto a rig — auto bone mapping, retarget, NLA — as a keyframe SOURCE for Layer 2 | Sibling skill | invoke mixamo-retarget (runs via Blender MCP); output feeds the SEAnim path below. Mixamo FBX download is manual (no API) |
| To know which tool does what, the walls, and signing | Tooling | references/tooling-and-walls.md |
Anim graph / state machine for a creature or for the player; CMD_* commands; ASI structure; weapon state names (FireCocked, ReloadMagazineDetach); Workbench Animation Editor #eventtable mechanism | Anim graph (Layer 2/3) | references/anim-graph.md |
Player skeleton bone catalog by zone (core/legs/arms/IK helpers/weapon attachment); RightHand_Dummy, LeftHand_Dummy, EntityPosition, LookAt; twist bones at every joint and the measured 148-bone parent table (references/ofp2-manskeleton-parents.txt); the frame an ikpose keys LeftHandIKTarget in, and which SEAnim axis is a held object's vertical | Skeleton bones | references/player-skeleton.md |
| Body pose of a vehicle driver/passenger from data (seat + grips + footpegs anchors) without per-bone keyframing | Data-driven IK + SEAnim (Layer 1 + 2 hybrid) | references/vehicle-rider-ik-pose.md |
Handlebar or steering-wheel rotation driven by drivingWheel; axis from two memory points; cross-contract with rider IK angular range | Layer 1 config | references/handlebar-and-steering-config.md |
| Get-in action that snaps the player to the correct side of the seat before the engine plays the climb-on animation, killing the >180° yaw spin from the wrong side | Layer 1.5 scripted | references/dual-entry-action-pattern.md |
.p3d named selections that drive action raycasts (seat, handlebar grip, door handle) with interactive painter + adjacency-dilation refiner | Sandbox tooling pattern | references/selection-painter-for-actions.md |
How a custom weapon sits in the hands / ADS: weapon-side memory-point pattern (eye, usti/konec hlavne, axes) validated vs a vanilla reference, bore/ADS lines, estimated hand zones, grip parity overlay | Weapon-in-hands (Layer 1 + sandbox tooling) | references/weapon-in-hands.md + scripts/weapon_grip_viewer.py |
| Author a weapon animation interactively: pose the vanilla skeleton + weapon with IK handles + a keyframe timeline, get an offline preview, export SEAnim | Weapon-anim authoring viewer (Layer 2 interactive) | references/weapon-anim-authoring-viewer.md |
Author a complete custom PLAYER weapon animation end-to-end (Blender .txa → Workbench .anm; per-weapon .asi WeaponOperations.<RigKey>.<State> map; AddItemInHandsProfileIK + AddItemBoneRemap binding; ikpose vs weapon-states vs action-anim artifacts; vanilla AKM frame budget; conflict-free-across-mods ASI route; reloadAction is legacy; RPT failure catalog) | Weapon-anim complete (Layer 2/3) | references/weapon-anim-blender-complete.md |
In-sandbox .p3d edit / rebake via py3d 1.0.0 (selections, memory points, frame flip) where Object Builder "cannot read" or selections silently empty are real risks | Sandbox tooling quirks | references/py3d-1.0.0-quirks.md |
Most requests that say "animate X in DayZ" where X is an object are Layer 1 and never touch RTM/anm. Confirm before reaching for the heavy skeletal path.
Layer 1 workflow (the high-certainty core)
This is what Claude can fully deliver in-sandbox. Read references/config-driven-animation.md for the exact properties, then:
- Model the motion. Which named selection in the
.p3dmoves, around/along which axis, driven by what. An axis is two memory points; a hide needs none. If the.p3ddoesn't yet have that selection or the axis memory points, add them in-sandbox withdayz-p3d-inspector/dayz-model-pipeline— don't send the user to Object Builder for it. - Declare the skeleton and animation in
model.cfg: aCfgSkeletonsentry listing the bones (named selections), and aCfgModelsentry withskeletonNameand aclass Animationsblock (typerotation*/translation*/hide, withsource,selection,axis/begin+end,minValue/maxValue,angle0/1oroffset0/1). - Wire the source in
config.cppclass AnimationSources:source = "user"for script control (withanimPeriod,initPhase), or an engine source (wheel,reload, …) that needs no AnimationSources entry. - Drive it from script with
SetAnimationPhase("<animClassName>", phase)on the right server/client side and the right lifecycle event. - Verify names match exactly across
model.cfg,config.cpp, and the script call — a typo is the most common silent failure. Generate themodel.cfgwithscripts/gen_model_cfg.pyto avoid hand-typo drift.
Output .cpp/.c files to the project's compilable folder; never invent vanilla paths — double-backslash texture/model paths and confirm against the user's data.
Layer 2 workflow (programmatic intermediate authoring)
scripts/seanim_writer.py remains a legacy project helper.
For new format work, prefer the Knowledge Pack's strict
tools/dayz-animation-formats/ package. Its verified public API is:
read_seanim[_bytes], write_seanim[_bytes], read_rtm[_bytes] and
write_rtm[_bytes]; the CLI is
python -m dayz_animation_formats inspect FILE.
The strict tool supports complete SEAnim v1 channels, modifiers, notes and
float32/float64 precision, plus one unbinarized RTM_0101 block optionally
preceded by RTM_MDAT. It rejects unknown flags/blocks, malformed counts,
truncation, invalid UTF-8/NUL fields, non-finite values, wrong RTM bone order
and trailing bytes. It does not read or write .anm/BMTR.
references/weapon-anim-authoring-viewer.md is the interactive viewer route
for weapon authoring (IK handles + timeline + offline preview + SEAnim
export). The viewer reads bone.quaternion directly, so the
positions_to_local_rotations stub is not on its path.
For skeletal work Claude can take you partway. Read references/skeletal-anm-enfusion.md and references/blender-authoring.md, then:
- Author or edit keyframes — either Blender headless (
bpy) against the DayZ skeleton, or by writing strict SEAnim v1 / unbinarized RTM_0101 throughdayz-animation-formats. A third source: retarget Mixamo/FBX mocap onto the DayZ skeleton with themixamo-retargetskill, then treat the baked action as the keyframe input here (mind its rest-pose caveat). - Hand the intermediate to the closed converter the user runs: SEAnim →
.anmvia DayZATool (--generate-anim), or FBX →.rtmvia FBXToRTMGui.exe, or.txa→.anmvia Workbench. - Bone names MUST match
OFP2_ManSkeletonexactly or the RPT logsBone X doesn't exist. Verify the target skeleton's bone list before authoring.
The pure-Python RTM writer was cross-read by external Arma3ObjectBuilder 2.5.1 with first-party motion, phases, metadata and transforms preserved. A3OB is a GPL external oracle only; no A3OB source is imported or redistributed.
Animating a sub-piece of a proxy requires separating it (added 2026-05-23)
model.cfg rotates/translates whole selections/proxies. To animate a SUB-PIECE of a proxy
(e.g. one moving part within a proxied attachment), separate it into its own proxy/selection —
you cannot animate part of a proxy's geometry in place. Also: a derived mod that inherits the
base's .p3d/model.cfg needs its OWN .p3d + model.cfg + model= entry to rig new
animations; inheriting the config alone won't bind a new skeleton/anim. (SP-004, LL-012)
Sprint 2026-05-28: vanilla-verified anim graph + skeleton additions (anchor 4)
The two newest references (anim-graph.md, player-skeleton.md) are the result of a vanilla-verification sprint against unpacked DZ/ + SurvivorAnims/. They cover the gap this skill had: the anim graph / state machine layer where creature behavior and player weapon states actually live. Read them when:
- The user wants to animate a creature (animal/infected/predator) and needs commands, variables, terrain alignment, or the special
EntityPosition/LookAtbones →references/anim-graph.mdfirst,references/player-skeleton.mdfor bone names. - The user wants to author or modify a weapon/item animation and needs the real state path (e.g.
WeaponOperations.ErcRas.FireCocked) or the right hand/left hand anchor bones → both references. - The user wants to open the player graph in Workbench Animation Editor (
#eventtableremoval trick) →references/anim-graph.md.
Things community tutorials get wrong (correct them on output)
These corrections come from the same sprint. State them when the user repeats the tutorial naming, so they don't ship the wrong identifier:
- "Entity Position" / "Pin Look At" → real bones are
EntityPositionandLookAt(noPin, no spaces). - "right hand dummy" →
RightHand_Dummy(PascalCase + underscore). - "cmd death" / "cmd success" / "cmd attack" →
CMD_Death,CMD_AttackSuccess(notCMD_Success),CMD_Attack— UPPER_SNAKE withCMD_prefix. discrete = 1/discrete = 0→ the model.cfg property isisDiscrete.skeletonAnims.xml/skeletonanim.xml→ the vanilla file isskeletons.anim.xml(literal, with the dots). (added 2026-09-16, DayZ 1.30 Exp) [CHANGELOG] the 250 global bone limit is removed in 1.30 and the global bone index is derived from the bone name instead of the value inskeletons.anim.xml; the changelog says most of that file is now unused except thelodattribute and bones missing from the.xob. [EXACT] In the 1.30 file onlyEntityPositionstill carries anindexattribute; the other bones are bare<bone name="..."/>entries (exp\anims_cfg\DZ\anims\cfg\skeletons.anim.xml:986-1045, 1336 lines in total).- "weapon cocked" / "mag remove" as state IDs → the real state names are
FireCockedandReloadMagazineDetach.BulletChamberedis not a state name — chambering is done by command (CMD_Reload_Chambering,CMD_Reload_ChamberingFast). - "reload is additive" → REFUTED by vanilla:
CMD_Modifier_Additiveis for sickness/cough/sneeze modifiers, not reload. Reloads use dedicated commands with no additive flag. Authoring convention in Blender may animate only torso/arms, but the engine does not blend it as an additive layer at runtime — verify how the vanilla weapon graph closest in feel transitions in/out of the state before assuming.
Caveats from the LFQuad rider-pipeline sprint (anchor 5, added 2026-05-28)
Three operational gotchas that bit during the LFQuad work. Add to your context when authoring or extending this skill, or when writing sandbox tooling for animation work.
LL-edit-tool-truncation (reproduced again)
The Edit tool truncates new_string silently around 5–8 KB when the target path lives on OneDrive or under LocalCache\Packages\Claude_*\…\<skills>\ (plugin mount: skills-plugin). The file is written but the second half is cut off; no error is raised. Read-after-write looks normal in chat until you read the file from the host and see it ends mid-line.
Mitigation when patching this skill (or any skill in the plugin mount):
- Write the new block to
/tmp/<name>.mdwith a bash heredoc. - Validate with
py_compile(for scripts) orwc -lcplus a manual check that the tail matches the intended end of the block. - Copy from
/tmp/to the destination withopen(dst, 'w').write(src)in a Python heredoc — NOTbash cpif the destination is OneDrive (LL-onedrive-write-safe). - Read the destination back with the Read tool (host-direct) and assert the tail matches what you wrote.
This skill prefers heredoc-bash + Python writes specifically because of this bug. If you find yourself reaching for Edit on a references/ file that is more than ~5 KB, stop and use the bash route.
LL-baked-viewer-reuse
Re-parsing a 10+ MB .p3d with py3d in the bash sandbox commonly exceeds the 45 s timeout. Building viewers / painters / pose tools on top of py3d from scratch is slow and fragile.
Faster pattern: if any HTML viewer for the same .p3d already exists (output of dayz-3d-viewer or dayz-p3d-inspector), it contains the geometry base64-encoded in a const DATA = "..." literal. Reuse that DATA block: decoding it takes ~1 s vs ~30 s of py3d parsing.
Tell users this when they ask "can you make a new viewer for this model?" — first check whether an existing viewer's DATA can be lifted, only fall back to py3d when no prior viewer exists or the geometry has changed.
LL-overlay-vs-lighting
In Three.js viewers that use PBR + environment map for the base geometry, overlay meshes (selection brushes, anchor markers, axis visualizers) drawn with MeshStandardMaterial get dimmed enough to be effectively invisible against chrome or dark plastic.
Two fixes, both required:
- Use
MeshBasicMaterial(unlit) for overlays, with saturated high-luminance colors (yellow0xffe000, green0x00ff66, blue0x33bbff). - Inflate the overlay mesh's vertices 5 mm along their per-vertex normal so it wins the z-fight against the base. Without this the overlay flickers in/out as the camera moves.
Applies to any sandbox tooling this skill or its consumers produce. Cross-ref: selection-painter-for-actions.md covers this in the painter context.
py3d 1.0.0 quirks for in-sandbox .p3d writes (anchor 6, added 2026-05-29)
(historical — the pack fork, py3d 1.6.0 or later as this skill requires, supersedes these quirks; see
references/py3d-1.0.0-quirks.md header.)
The Layer-1 scripts this skill ships (or this skill's consumers write on top
of) edit .p3d files in-sandbox via py3d 1.0.0. Five quirks of that version
silently corrupt the output unless handled; a sixth pattern (frame
auto-detect when re-baking) is required for any project that has more than
one coordinate frame for the same model. All six are extracted from the
LFQuad rider-pipeline sprint (2026-05-28, LL-055 + LL-056).
Full detail and reference implementations in references/py3d-1.0.0-quirks.md.
Summary so a plan can flag them without re-reading the ref:
py3d.Selection()constructor requires(points, faces)positional args — the no-arg form silently produces empty selections.- Weights are
int, notfloat—1.0corrupts the byte stream and Object Builder reports "cannot read". - Material name lookup is case-sensitive in py3d but DayZ vanilla
.p3duses lowercase; normalize on lookup with.lower(). - Memory points must be overwritten in place when the name already exists in the LOD (very common when extending a vanilla model); appending duplicates silently degrades to the vanilla value (LL-056).
- Selections must be rebound (
py3d.Selection(lod.points, lod.faces)after the last grow) when the script adds memory points or vertices, otherwise the selection references go stale. - A rebake script that crosses authoring and production frames must accept
an explicit
--frame {plusZ|minusZ|auto}and auto-detect from the bounding box (LL-054). Hard-coding the flip silently mirrors output for the other frame.
When you produce a plan that writes a .p3d (selections, memory points,
properties), name these six explicitly as criteria the script must satisfy
(R26 fixtures). Validation gate after the write: round-trip the file with
py3d.P3D(open(path, "rb")) (there is no py3d.read_p3d) or dayz-p3d-inspector
extract_recipe, and assert non-empty
selections, exact memory-point coords, and unchanged material count. If any
check fails, restore from backup before iterating — the failure modes here
cannot be "tweaked out" of a corrupted file.
Cross-references already covered in this skill:
vehicle-rider-ik-pose.md§"Frame-of-reference caveat" addresses Quirk 6 from the pose side (the anchor placement step). The rebake step is what Quirk 6 covers; both must agree on the frame in use.selection-painter-for-actions.md§"Pipeline (start to finish)" step 6 calls into ap3d_update.py-style writer that needs all five quirks. The LFQuad case (LFQuad_dev/task4_handoff/p3d_update.py) is the canonical reference.dual-entry-action-pattern.md§"Bail-out for non-LFQuad" relies oncrewdriver/crewcodriverhaving been overwritten in place (Quirk 4). If the rebake step skipped that, the modded action silently sees vanilla positions and L/R routing degrades.dayz-debinarizer-inspector-memory-selection-bugs.md(vault knowledge note) covers an adjacent failure mode on the READ side: ODOL → MLOD round-trip can preserve selection names but lose membership (LL-018). py3d 1.0.0 Quirks 1, 2 and 5 reproduce a similar symptom on the WRITE side: name present, body empty or corrupted. If you see name-present-body-empty after either step, check the matching skill before assuming the source.p3dis wrong.
Locomotion in scripted commands: GetCurrentStance/GetCurrentMovement drive the graph (added 2026-06-11)
Origin: LFSlidingFloor POC-A4, verified in-game 2026-06-10. HumanCommandScript exposes the overrides int GetCurrentStance() / int GetCurrentMovement() (human.c:1238-1247, "Override this!") without ANY vanilla script call-sites: ENGINE queries them, and player graph reproduces reported locomotion during COMMANDID_SCRIPT. Overriding GetCurrentMovement() returning DayZPlayerConstants.MOVEMENT_RUN (dayzplayer.c:647) made character RUN while a scripted command translated them (without override it showed locomotion inherited from previous command). Modulable by state (IDLE/WALK/RUN/SPRINT, dayzplayer.c:645-648) without magic IDs.
DISCARDED routes to drive player vanilla graph from a scripted command: PreAnim_CallCommand (0 call-sites in vanilla script, graph command IDs undocumented) and PreAnim_SetFloat/SetInt (vanilla graph variable IDs are not exposed to script). Those APIs do work with CUSTOM graphs defining their own variables (BI sample Test_ScriptCmdSwim brings its own).
[2026-06-28] CORRECTION to anchor 3 — the wall is GRAPH-replacement, not weapon anims [VERIFIED-vanilla]
The wall in anchor 3 ("Only one mod that modifies player/creature animations can be loaded at a time") applies ONLY to mods that REPLACE the player/creature animation GRAPH (player_main.aw/.agr, e.g. Expansion-Animations). It does NOT apply to custom WEAPON animations authored via the ASI route.
A custom weapon animation reaches the engine through three decoupled, per-item layers, none of which edits the graph: author .txa→.anm; a per-weapon .asi ($animsetinstance) maps WeaponOperations.<RigKey>.<State>→.anm inheriting player_main_rifle.asi→player_main.asi; and Enforce Script binds it per item via AddItemInHandsProfileIK(itemClass, asi, behavior, ikPose.anm, weaponStates.anm) (dayzplayer.c:243) + AddItemBoneRemap. Because binding is per-item and never replaces .agr/.aw, multiple weapon-anim mods are conflict-free across mods. (added 2026-09-16, DayZ 1.30 Exp; corrected 2026-09-28) [EXACT] The vehicle graph is readable text, and was in 1.29 too: DayZ 1.30 ships it as Enfusion Config Vehicles.agf (DZ\anims\workspaces\player\player_main\Vehicles.agf, 3654 lines), 1.29 as the text Vehicles.agr in the old $AnimGraph 7 format (this paragraph used to call vehicles an opaque binary exception; evidence in references/anim-graph.md §Vehicles.agf). Rider anims map via .ast columns (Jawa_05, Jawa_Bitrak in player_main.ast:1119-1120) and .asi bindings (Vehicle.Jawa_05.* in player_main.asi:5088). A custom vehicle can inspect or borrow from the vanilla motorbike state machine (MotorBikeSTM); extending it means shipping vanilla-path graph files (references/tooling-and-walls.md §Named Filesystems for Mods). A per-vehicle rider pose through a child .asi swap, with no graph change, works standing and riding, with clips we generate (measured in game on the H2R 2026-09-28; remote observers and the edge cases still open): references/vehicle-rider-ik-pose.md §Per-vehicle pose without a graph change and §Own clips on the rider (the steering poses span +/-45 degrees of wheel angle on every bike; DayZATool clips play as absolute poses, so transitions are written whole). [DESIGN] Whether two graph-replacing mods can now coexist has NOT been measured: the one-graph-mod wall of anchor 3 stands until someone loads two and reports. Source extraction: E:\DayZ-Exp-Extract\1.30.164014\exp\anims_workspaces\ (see the dayz-motorbikes skill for the rider/vehicle side).
Practical rule: when the user's plan is a custom WEAPON animation, do NOT warn about the one-anim-mod wall — it is a false blocker. Keep the wall warning for character/creature/player-GRAPH-replacing mods only. See references/weapon-anim-blender-complete.md for the full binding contract, frame budgets, and the ikpose_*/reloadAction verified facts.
scripts/ index (added 2026-07-06 — previously unreferenced)
Viewer-pipeline scripts shipped in scripts/ but not referenced elsewhere in this file, in the order they run. They pass their files through DAYZ_ANIM_SCRATCH (default <tempdir>/dayz-anim-pipeline), except seanim_export.py, which takes paths as arguments; the FBX and .p3d paths are set at the top of the scripts that read them. Run the Blender steps as blender -b --python-exit-code 1 --python <script> and stop at the first non-zero exit: without the flag an uncaught Python exception still exits 0.
scripts/fbx_extract.py— Blender headless: dumps the BI rig FBX (animation_rig_character.fbx) torig_raw.json— per-bone rest world matrices (Blender Z-up), parents, lengths, theMale_bodymesh, plus every empty'smatrix_world, which sits at the origin for the helpers the FBX imports disabled in viewports. First step of the viewer rig build.scripts/extract_empties.py— Blender headless, same FBX path asfbx_extract.py: world matrices of the helper empties (RightHand_Dummy,Weapon_Root,LeftHand_Dummy,weapon, the IK helpers) composed through their parent chain (references/weapon-anim-authoring-viewer.md§Where the rig comes from), toempties_armworld.json. Exits 1 and writes nothing when the FBX has noRightHand_Dummy:build_viewer.pyplaces the weapon on that anchor, and without it at a fixed(0, 1.3, 0.2)(scripts/build_viewer.py:139). It removes the previous run'sempties_armworld.jsonbefore the FBX import, read-only or not, so after a failed runbuild_rig_dayz.pyfinds none and stops instead of building on stale anchors; a file it cannot remove stops the extractor with that error.scripts/build_rig_dayz.py— convertsrig_raw.jsonandempties_armworld.jsontorig_dayz.jsonin the viewer's Y-up frame, the helpers as itsanchors: uniform scale + translate alignment against the mesh, frameRf=[[1,0,0],[0,0,1],[0,-1,0]](det +1). That frame is right-handed like Blender and Three.js, not DayZ's left-handed model space despite the file name; its coordinates written into a p3d as they are land mirrored.scripts/extract_weapon.py— py3d: extracts a weapon.p3dLOD0 visual geometry (proxy faces excluded) + memory points toweapon.jsonfor the viewer; it does not depend on the rig steps.scripts/build_viewer.py— generates the self-contained weapon-anim authoring viewer HTML (rig + weapon mesh, Three.js r128 UMD, SkinnedMesh + analytic 2-bone IK + FK controls + keyframe timeline + JSON export). Seereferences/weapon-anim-authoring-viewer.md.scripts/seanim_export.py— converts a viewer anim JSON (per-frame per-bone LOCAL quaternions) to SEAnim viaseanim_writer, through the bone-frame map of the rig it reads (JD rig: calibrated; FBX rig frombuild_rig_dayz.py: derived offline; any other rig refused, seereferences/weapon-anim-authoring-viewer.md);--rest-poselimits the export to the bones of a DayZATool-extracted vanilla SEAnim (positions always come from the rig). NOT valid for full-body action anims — those go Route A (JD plugin →.txa→ Workbench Register&Import →.anm); hand-rolled SEAnim export is for weapon-bone/partial tracks only.
Rules promoted from lessons learned corpus (added 2026-07-27)
Promoted from AI/20_Knowledge/lessons-learned.md so they trigger automatically rather
than depending on someone remembering to look them up. Each rule cites its originating LL-NNN;
the full entry lives there. Do not remove citation: the index detects promotion by it.
- LL-052 — Define a single angular range for the animated part and for the IK solver maintaining contact. Propagate the same value to
angle0/angle1andsteerMax, and verify both extremes. (bounded 2026-09-28, LL-533) Not in the 1.30 motorbike graph: its steering poses span ±45° of wheel angle regardless of model turn; frames are made at 45° and clamped at stop (references/vehicle-rider-ik-pose.md,CLAIM-ANIM-MOTO-STEER-SCALE-130). - LL-053 — Do not add scripted snap or
pos_*_L/Rpoints for bilateral get-in. Replicate vanilla structure: crew proxies and valid seat selections/components in ViewGeometry and FireGeometry; preserve vanilla action. - LL-102 — Use
source="steeringwheel";DrivingWheelis the usual class name, not the source. Replicate standard hierarchydamper → steering → wheel; do not attempt to feed a second animation from a wheel source. - LL-171 — Before adjusting a pose offline, enumerate the real determinants of in-game state: weapon origin, bone remap, ikpose, geometry, and stance/aim-space. Build viewer from those data; do not chain visual heuristics.
- LL-189 — For joints resolved by IK at runtime, dump model-space bone positions from client and reconstruct offline pose from positions. Do not guess swivel or rely on raw rotations with unverified convention.
DayZ 1.30 Exp (build 1.30.164014) — What changes, breaking points & migration
1. Modular Animation Graphs (.agf Submodules) & Schema Evolution
- Modular Graphs: sub-graphs move from old-format text
.agrfiles ($AnimGraph 7; 1.29 already split the player graph into eight of them) to Enfusion Config.agffiles (AnimSrcGraphFile), such asVehicles.agf(3,654 lines) andWolf_MainGraph.agf. The master graph (.agr, nowAnimSrcGraph) lists them inGraphFilesResourceNames(player_main.agr:1587,Wolf_Graph.agr:157-159). (corrected 2026-09-28: this bullet used to call the 1.29 setup monolithic and to say the master graph usesincludedirectives, which have 0 hits in the 1.30.agrfiles; evidence inreferences/anim-graph.md§Vehicles.agf.) - Node Graph Format: Graph nodes use Enfusion class syntax, such as
ControlTemplate AnimSrcGCTand procedural transform nodes likeAnimSrcNodeProcTransform. - Class-Based AnimSet Sources: Legacy
$animsetinstanceblocks transition toAnimSetInstanceSource(with typedIKPoses,Runtimes, andAnimations), while templates transition toAnimSetTemplateSourcewith explicitAnimSetTemplateSource_AnimationGroup.
2. Removal of the 250 Bone Limit & Dynamic Bone Hashing
- No Global Bone Cap: The engine no longer limits skeletons to 250 global bones.
- Dynamic Hashing: Bone indices are hashed directly from bone names at engine boot. In
skeletons.anim.xml, manualindexattributes are removed (retained only onEntityPosition), simplifying multi-mod skeleton coexistence. - Physical Ragdoll Skeletons: Physics bone rosters (e.g.
characters/bodies/human.ragdoll, 11 physical bones, 73.8 kg) remain aligned with the primary skeleton hierarchy.
3. Script Animation API Table (1.30 Additions)
| Script API / Hook (declaration as in the file) | exp\scripts\scripts\...:line | Purpose / Mechanics |
proto native void SetAnimationInstanceByName(string animationInstanceName, float blendingTime); | exp\scripts\scripts\3_Game\human.c:1384 | Switches the player's animation instance (.asi profile) at runtime with a blend time; no entity recreation. Dangerous in multiplayer, see the source comment. |
proto native void SetErectSpeedLimit(bool bShouldDisable, int pMaxErectSpeed = DayZPlayerConstants.MOVEMENTIDX_SPRINT); | exp\scripts\scripts\3_Game\human.c:230 | HumanInputController: caps the erect movement speed (sibling SetCrouchSpeedLimit/SetProneSpeedLimit). |
proto native void DisableProneCameraHorizontalRotation(bool pDisable); | exp\scripts\scripts\3_Game\human.c:242 | HumanInputController: locks horizontal camera rotation in prone (siblings for erect/crouch, note the vanilla typo DisableErectCameratHorizontalRotation). |
proto native bool IsTag(TAnimGraphTag iTag); | exp\scripts\scripts\3_Game\human.c:319 | HumanAnimInterface: queries an animation tag bound with BindTag on the fixed tick (changelog item). |
bool IsTransitioning() | exp\scripts\scripts\3_Game\human.c:735 | HumanCommandVehicle: true while a get-in/get-out/seat-switch transition is playing. |
proto native void PhysicsSetSimpleDeath(bool pEnable); | exp\scripts\scripts\3_Game\human.c:1449 | Toggles the simple physics death simulation. |
proto native bool IsFirstRenderFrame(); | exp\scripts\scripts\3_Game\dayzplayer.c:1189 | DayZPlayer: true on the first rendered frame after a catch-up, to limit per-frame work (changelog item). |
4. 1.29 -> 1.30 Animation Migration Checklist
- Audit
skeletons.anim.xml: Strip hardcodedindexattributes from custom skeleton declarations (exceptEntityPosition), relying on engine bone name hashing. - Adopt
.agfModularity: Break down custom monolithic animation graphs into.agfsubmodules included by the main.agrworkspace. - Dynamic Grip/Stance Profiles: Migrate attachment-based grip and weapon stance hacks to native
SetAnimationInstanceByName(asiName)withinOnItemInHandsChanged. - Directional Boarding Support: For custom vehicles and motorbikes, implement
HasDirectionalInOutAction()andGetSeatAnimationTypeDirectional(posIdx, directionIndex)to take advantage of native directional entry/exit without scripted snaps. - Workbench 2021 Filepatching: Use
-resolveFilePatchingUsingEnfusion=1in Workbench launch parameters when iterating on loose.anmand.asiresources.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

