Cast animation profiles (gsdata_<lang>.dat at 0x1B00C)
How a skill picks the caster’s animation,
decoded from the executable’s cast code (our
reading of the machine code; addresses only in
the branch report) and read by
skilldata.py →
skills.json anim. The
profiles are data in the same gsdata file, not
in the executable.
Table. At file offset 0x1B00C, 0x10000 bytes = 574 records of 0x72 bytes (57 × s16), indexed by profile number (record 0 is empty). It is the first part of one array: the evade / action table at 0x2B00C continues with the same record size. Profile records have 0x00 = 1 (401 of them); a profile with another tag is ignored by the cast code. The profile number equals the skill record number for most skills; several skills share one.
| off | field (skills.json
anim.profiles.*) |
meaning |
|---|---|---|
| 0x00 | 1 = cast profile | |
| 0x02 | flag |
passed to the animation player with the slot (1 for almost all; meaning not decoded) |
| 0x04 | effect |
effect file number
(Effect/eftNNNN) spawned at cast
start; equals the skill’s own effect number for
the profiles that equal the record number |
| 0x06 | sound |
sound played at cast start (0 = none) |
| 0x08 | voice |
voice group: a random line out of a group of the character’s cast voices (0 = none) |
| 0x0A | rumble end mode (“Controller rumble”) | |
| 0x0C..0x33 | five rumble steps of four fields {motor, level, start, length} (“Controller rumble”) | |
| 0x34..0x4B | release rumble steps, same layout (three profiles only); used by the game at release | |
| 0x4C | slot |
character animation slot played for the cast (0 = no animation, the cast does not start) |
| 0x4E, 0x50 | hold_loop |
hold mode only: the animation loops between these frames while the button is held; on release it continues from 0x50 |
| 0x52, 0x54 | lunge |
lunge state only: frames of the move toward the target |
| 0x56 | release_tick |
ticks from cast start until the skill object spawns (the shot leaves the hand) |
| 0x58 | active_end |
end tick of the active window (some skill objects live 0x58 − 0x56 ticks) and the frame a restarted cast resumes from |
| 0x5A, 0x5C | combo_window |
a repeat press of the same skill between these animation frames is buffered … |
| 0x5E | combo_tick |
… and taken at this frame: the next cast uses the next combo profile |
| 0x60 | combo_start |
start frame of a combo follow-up (0 in this build) |
The slot is the index into
the character’s animation list, the same
numbering as the ALR header’s animation slots
(pdconv anim_NNN) and
Esper-RE’s alr_animations.h enum
(counted from 0: idle 0, walk 7, run 12; the
executable’s own walk/run tables use these
numbers). In that enum the throw animation is
slot 80; slot 81 is the next one.
Choosing the profile (skill
record r, the cast state is
air when the caster is off the
ground):
- air and
r[0x16] ≠ 0→ profiler[0x16]; - else, if
r[0x18..0x1E]has n > 0 entries before the first 0 and the combo counter c > 0 → profiler[0x18 + 2·((c − 1) mod n)]; - else profile
r[0x14]. With no air profile the ground one is used, and the caster hangs (vertical speed set to 0) while it plays. Profile 0 or a non-profile record: no animation; the effectr[0x20]plays instead.
The combo counter is 0 at each new cast and
goes up by one when a buffered repeat press is
taken at combo_tick (see the
table).
Cast state (sets how long and how the cast runs; it lasts the slot’s full animation length minus the start frame):
- lunge when the skill set
r[0x52]= 0 and the behaviorr[0x7A]is 3, 12, 13 or 14 (the blade, melee and pursuit kinds) — uses the lunge frames; - air (above);
- cast otherwise.
skills.jsonwritesanim.state=lungeorcast; air is a runtime state.
Hold mode
(r[0x46] = 2,
anim.hold): the animation loops
hold_loop while the button is held
(a counter of repeats goes up each loop; how it
changes the spawned objects was not followed);
on release the animation continues from the loop
end.
Release: the cast counts
release_tick down each tick (paused
while a hold loop runs); at 0 it spawns the
skill object (the projectile, wall, etc.),
once.
skills.json
anim: ground
/ air = slot,
release_tick /
air_release_tick,
state, hold,
fallback_effect (only when there is
no profile), and profiles
{ground, air (null =
uses ground), combo […]} with the
per-profile fields above.
Checks (this build): 361 of 386 usable skills have a ground slot, 366 an air slot (56 have their own air profile), 25 have no profile (bosses’ and a few status/special skills). Every release tick is within its slot’s animation length (417 profile uses). Slot names from Esper-RE fit the skill kinds: the environment skills use the “set” animation (29 of 30), blades the sword ones, mines the bomb-setting one, the “hole” kinds the ground one, the parabola shots the throw, defenses the shield/barrier ones. The straight fire shot (reference footage) gets a push-forward slot (not the throw): the hand is drawn back beside the head from frame ~6 to 18 and pushed forward at 21–24, against a release tick of 20; the footage shows the orb forming beside the head, then pushed forward. Its air profile uses another slot (an upward-angled shot).