graphics.dat: name creature animation commands #467
Labels
No labels
area/ci-release
area/cli
area/docs
area/dungeon
area/ftl
area/graphics
area/gui
area/music
area/saves
area/tooling
port/amiga
port/dos
port/fm-towns
port/mac
port/pc98
port/sega-cd
priority/high
priority/low
priority/medium
type/bug
type/chore
type/docs
type/feature
type/research
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jqueuniet/dm2-tools#467
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
sequences(0x0f, type)gives each animation'scommandsas numbers (type 2:1/2 3/4 6/7 9 17 19 39/40/65535). A browser can only label them by number; names (walk, attack, hurt, …) from the engine's command dispatch would let it show e.g. "Attack" instead of17.Source: the engine's creature commands (
ccmenum,[SKPROJECT] SKWINSPX/src/v0/dme.h; debug names inv4/skcore.cppgetCreatureCommandName). A reimplementation: about half its names are marked?.Note: commands are decimal in the JSON. Type 2's
17is0x11spawn,39/40are0x27/0x28cast spell.Usage across the 76 DOS EN creature types:
0x000x050x080x0a0x0e/0x0f0x110x130x17/0x180x260x27/0x280x3b0x01–0x04,0x06,0x07,0x090x0b,0x100x1b–0x200x23–0x250x29–0x2e0x2f–0x310x35–0x3a0x3d0x0c,0x0d,0x15,0x16,0x42,0x52,0x55The commands that group the same creatures back the clear names: cast spell and
0x35–0x3ashare the caster types, merchandise and the merchant states only appear on 34, 67 and 68.PR #469 adds
namesnext tocommandsinsequences(), set for the clear rows only,nullotherwise. Left open for the walk / turn family, the one a browser most needs: naming it needs tracingDM2_PROCEED_CCMand the movement code, then an in-game check.https://claude.ai/code/session_01SnENBXnZbhNNrojZT5jbJ7
Resolved in v0.8.0:
creature_command_namenames every command whose engine use is clear (stand, jump, melee_attack, steal, throw, spawn, death, …) and is surfaced asnamesin the sequences JSON. The full command table, with the walk/turn family documented as guesses, is in docs/formats/graphics-dat.md § "Animation". Closing.