The last unplayed skill records
Main b05af67 plays 318 of the 386 skill
records. This section lists the other 68 by the
reason they are refused
(godot/tests/probe_unplayed.gd,
base API only: ids and numbers) and decodes what
each group needs. Units as in “Skill kinds”.
Confidence: H read in the code
and checked against the data, M
read in the code only, L a
lead.
| group | records (shown ids) | n | what blocks them in the rebuild |
|---|---|---|---|
| card fields 0x5C..0x60 | 0, 35, 128, 134, 135, 157, 161, 216, 217, 218, 221, 277, 283, 309, 315, 316, 339 | 17 | the card eraser (below) |
| erase set (1) | 36, 99, 100, 101, 158, 237, 278, 279, 284 | 9 | not built (decoded in “Erase set”) |
| special set (3) | 51, 56, 57, 58, 59, 60, 239, 240, 304 | 9 | not built (decoded in “Special set”) |
| status set (4), open effect ids | 55, 118, 119, 180, 231, 238, 298, 299, 300 | 9 | effects 11, 15, 17, 19, 20, 21, 22 and two auto cards without effects |
| no damage and no hit effect | 13, 52, 198, 336, 343, 739 | 6 | nothing: the refusal is wrong (below) |
| level cost 0x2A > 0 | 68, 76, 79, 97, 347, 352 | 6 | the level check and payment |
| hit effects 45 / 42 | 53, 345, 346 / 236 | 4 | 45 decoded here; 42 has no reader |
| fast rain (7) | 85, 142, 145 | 3 | the kind (decoded here); two also need the card eraser |
| hold cards (0x46 = 2) | 73, 204, 363 | 3 | the hold loop |
| set 6 | 205, 206 | 2 | castable after all (below) |
Card fields 0x5C / 0x5E / 0x60: the card eraser (0x140272510)
Run by the hit routine 0x14026f870 on the character that was hit, after the damage and before the hit effect, for every set-0 record; skipped together with the hit effect when the attack’s type (0x0E) is 1 and the target holds status slot 31. Three steps over the target’s four slot buttons (slot record = P + 0x348 + 0x50 × button: +0x08 filled, +0x30 card id). H.
0x5C: which cards are candidates (filled buttons only, in button order):
| 0x5C | candidates | records |
|---|---|---|
| 0 | none: the routine does nothing | all others |
| 1..5 | cards whose type 0x0E equals the value (1 attack, 2 defense, 3 erase, 4 status, 5 special) | 1 ×6, 2 ×10 |
| 6 | cards with skill id 0 (aura cards) | 0 |
| 7 | cards with a skill id other than 0 | 0 |
| 8 | cards whose type is neither 1 nor 2 | 2 |
| 9 | every card | 6 |
0x5E: the order of the candidate list (n candidates):
| 0x5E | order |
|---|---|
| 0 | shuffled: for i = 0..n−1, swap entry i with entry (rand() & 0x7FFF) × n >> 15 (the shared generator, n draws) |
| 1 | highest aura cost (0x28) first: n − 1 bubble passes; two equal costs are swapped when (rand() & 0x7FFF) × 100 >> 15 is above 50 (one draw per equal pair met) |
| 2 | lowest cost first, the same way |
| 3 | shuffled as 0, then every card with a use count (0x30 ≠ 0) is dropped: only unlimited cards stay |
| 4 | only the button with the same index as the button the attack was cast from (object + 0x0C), when it is a candidate; else none |
| other | button order |
0x60: how many. The first 0x60 entries of the list are erased (99 on the id-0 record, 4 = all, else 1). The routine returns 1 when at least one erase was tried; the hit routine then plays cue 0x5b at the target. Counts are over the 389 usable records: 24 carry a non-zero 0x5C, six of them close-range records (melee, blade) that the rebuild plays today without the eraser.
The slot erase (0x140262fc0), one button:
- nothing when the button is empty or one of its two pending fields (+0x3C, +0x40) is set;
- a card with 0x4E = 2 cannot be erased: only the HUD button flash is started (16 ticks, kind 4 of “How a status shows”); one status-set auto card and two attacks carry it;
- a placed object of the button (remote mine) is removed without its explosion (0x14026ef10);
- a card with 0x4E = 1 (3 records: two attacks, one defense) is not erased when its owner can pay it (0x1402620e0): the pay routine 0x1402621f0 runs instead and the card stays. This branch is skipped for an attack card while its owner holds status slot 31. M (what the payment does to the card’s use count was not followed);
- otherwise the button is cleared (0x140263570), the “slots changed” flag P + 0x340 is set and the card is gone (it does not go through the capsule take, so nothing is drawn for it).
Nothing in the routine is sent in the net modes at this point; it runs on the machine that simulates the target (as every hit does). M.
Auto cards (0x46 = 1) and the pre-hit triggers (0x14026f530)
The first thing the hit routine does for a living target is 0x14026f530; a non-zero return cancels the whole hit. It has two halves:
- Auto-shelter (set 2, 0x54 = 7; “Defense”): skipped when the attack is a set-0 record with 0x68 = 2 and its caster does not hold status slot 31, and for kind 4. Each matching button whose slot is idle is released on the spot (0x1402626d0 with the target’s own matrix) and the block routine 0x140271760 is asked; blocked → return 3.
- Erase guard: when the attack’s type 0x0E is 3 (an erase card; not the caster’s own “all” auto, kind 4 with 0x7C = 2), each filled button of the target whose card has 0x46 = 1 and whose slot is idle is released (0x1402626d0: cost paid, use counted). The first one that releases cancels the hit (return 2) and marks its button in the HUD record.
Two records have 0x46 = 1, both status set with no effect ids: releasing them does nothing but cancel the erase hit. One has uses 3; the other has no use count and 0x4E = 2 (cannot be erased). The button press routine 0x140261e90 refuses a card with 0x46 = 1 and an auto-shelter (they cannot be pressed). The guard only sees set-0 hits; the capsule erasers of set 1 never reach it. M (code; the two records’ fields fit).
Set 6: cast the remembered attack (corrects “Handler tables”)
Set 6 has no init routine because a set-6 object is never spawned: the button press routine 0x140261e90 replaces the skill id to cast (slot + 0x34) before the cast starts:
| 0x54 | cast as | record |
|---|---|---|
| 0 | P + 0x61AC: the last attack (type 1) this character released | 1 |
| 1 | P + 0x61B0: the last attack that hit this character | 1 |
Both fields start at −1 (cast refused). P + 0x61AC is written by the release 0x1402626d0 (with P + 0x61A8 = the last skill of any type but the aura card), P + 0x61B0 at the end of the hit routine for every landed hit of a type-1 record, also one that did no damage. The cast then runs with the remembered id (animation profile, power, objects); the cost routine still reads the slot’s own card. M. (Corrected: “Handler tables” and the implementation notes said set 6 can never be cast.)
Records without damage and without a hit effect (6)
The hit routine has no test on the damage: a hit of power 0 goes through the pre-hit triggers, the hit-state gate, health − 0, the 90-tick sum, the card eraser, the hit effect and the reaction (virtual slot 0x48 of the target’s actor, with the “effect fired” flag). The reaction tier is picked from the running sum, so a 0-damage hit on a fresh target plays the record’s light action 0x6E. H in code. What the six do:
- two attacks (parabola, straight): the reaction only (rows of types 2 / 5: stagger, thrown);
- one auto record (0x7C = 0, 0x7E = 5): the reaction row is a type-2 stagger;
- one mine (mode 1): all three tiers name a type-11 row that holds its animation for 90 ticks;
- one straight shot with 0x68 = 2 and no reaction ids: it only meets defenses (“Defense”: pierce 2) and skips the auto-shelters;
- one record with no cast profile at all (reaction row of type 9, the jump): not castable by a player, left out. L.
Level cost (0x2A > 0) and hold cards (0x46 = 2): the can-pay test (0x1402620e0)
(slot, hold count) → 1 when the card can be paid. On failure it sets bits in slot + 0x24: 2 = not enough aura, 1 = not enough level.
- 0x28 < 0 (spend all aura): needs aura ≥ 1.0;
- 0x2A < 0 (spend every level): always payable;
- else need = slot cost (+0x18) + extra, extra = hold count / 10 (integer), halved when status slot 30 reads −1, doubled when it reads 1; fails when need > aura (bit 2; bit 1 too when the level is below need). Then the level (P + 0x18) must be ≥ 0x2A (bit 1). The pay routine (already in “Aura paid”) takes level − 0x2A through the level routine. H (the 6 refused records: five with 1, one with 2; 8 usable records in all).
Hold. The hold state counts cast state + 0x80 up by one per tick while the button stays held and the test above passes with the next count; the release then adds count / 10 (status-30 scaled) to the cost and the aura paid, and formula 21 reads the aura paid. So a hold card charges 1 aura per 10 ticks until the aura runs out. M (3 records, all formula 21, cost 0).
Hit effect 45 is a teleport; hit effect 42 has no reader
- 45 (3 records: a straight shot, an auto with 0x7C = 2, a mine): only for a locally played target. The destination is the attacker’s start position (start record of the attacker’s start index, actor + 0x18, via 0x14012a5e0), the animation is field 0x52 of the action row named by the record’s 0x74 (row 19 in all three: a type-0 row), and the move is the teleport routine 0x140257e90 of the special set (state object, point, skill id, animation). No floor probe on this path. The auto record teleports every living character, the caster too. M (code; it fits what the three cards are listed to do).
- 42 writes the attack’s button index to P + 0x61B4. No instruction in the executable reads that offset (searched as a displacement over the whole code section); the field next to it (P + 0x61B0) is the last-hit attack above. Read as inert in this build. M.
Status set: the open effect ids
- 17 (slot 37): one record; no gameplay effect, already decoded.
- 11 / 15, the stances (action states 0x15 / 0x16, tick 0x14025b5e0, shared with the idle states): while the stick is neutral the character stays in the state. State 0x15 counts ticks and gives +1 health each time the count passes 90 (every 91 ticks), then restarts the count. State 0x16 does nothing per tick; the hit routine reads it: a hit on a target in state 0x16 takes no health (the sum and its 90-tick window still run, the card eraser and the hit effect still apply, the hit report carries damage 0). Any stick input leaves the state through the normal move start (to state 0x14 with a turn when status slot 4 is set). Whether a reaction or a cast also ends it was not followed. M.
- 19, 21, 22 (used pile and deck): as decoded in “Status set effects”; the release skips the “add to the used pile” step (0x140263410) for a status record whose first effect id is 19 and for mines (their use is filed at the detonation). M.
- 20, the deck view (state 0x18, routine 0x1401582f0): not followed. L.
Fast rain (7): completes “Fast rain (7), partly”
Init 0x140266fb0, update 0x140267410; fields 0x7C warn ticks, 0x7E strike ticks, 0x80 height (× 10 u), 0x82 (0 in all three), 0x84 radius (× 0.1 u). M unless noted.
- Placement as the hole kinds (0x14026e410, mode 1): the floor point under the target point, the range clamp of the record’s class, heading from the caster. The counter starts at 0x7C + 0x7E. Flag 0x20 (passes through); radius R = 0x84 × 0.1 u.
- Drift (same fields as the holes): the flat length and heading of target + 0x60 minus target + 0xA0 (the target’s last move) are stored once at the cast. In the net modes the machine of the target’s player computes and sends them (0x14026d7d0).
- Warning (counter ≥ 0x7E, i.e. 0x7C + 1 ticks): each tick the mark moves by the drift along its heading and is picked onto the floor within ±(7.5 u + drift length) of its height; no floor → the drift becomes 0 and the mark stays. So the mark runs on in a straight line at the speed the target had at the cast; it does not follow the target. The flight effect (slot 1) sits at the mark, scaled by R × 0.2 × 0.5 on all three axes.
- Strike (counter < 0x7E): the top point is the mark raised by 0x80 × 10 u. On the first strike tick (counter = 0x7E − 1) a sight line is cast from the top to the mark + 1 u, unless 0x6A is 2 or 3: blocked → the object ends at once (end reason 0, no effect). Clear → the flight effect is stopped and slot 2 of the cast profile’s effect is spawned as the column: centred between top and mark, X and Z scaled by R × 0.2 × 0.5, Y by 0x80 × 10 × 0.1. On every strike tick each living, local character whose hit bit is still set is tested by the common swept test 0x14026c1c0 along the segment top → mark with the object radius R (+ the character radius), then defense, guard and hit as any shot; each character is hit once.
- The object ends when the counter reaches 0 (reason 0).
- Data: warn / strike = 45 / 30 and 30 / 10 ticks, height 60 u, radius 40 u and 30 u.
Close-range hits play no shot-end slot
The end routine 0x14026cd70 picks the slot from its reason (index reason − 1, table 0x14026d79c):
| reason | slot | notes |
|---|---|---|
| 0 | none | lifetime end |
| 1, 2, 3 | 2 | hit sound 0x26, explode scale, cue 6 / 7 (“Shot end”) |
| 4 | none | the object is only reset |
| 5, 6 | 1 | 6 also sets a 20-tick field |
| 7 | none for melee, blade, pursuit: the caster gets reaction action 26 (the recoil) when it is locally played; other kinds: slot 1, object kept 60 ticks | the blocked-by-a-defense end |
| 8 | 2 | mine / burst explosion |
| 9 | 4 | |
| 10 | 5 and cue 0x0e | |
| 11 | 3 | the instant sets’ end |
The effect id is the ground cast profile’s effect (profile row + 4 of record 0x14), or record 0x20 when the record has no profile (0x1401272b0), spawned for the caster’s player (0x14018d2f0). H for the slot numbers.
Melee (tick 0x14026a0d0), blade (0x140269db0) and pursuit run their hit test and then the hit routine, and nothing else: the result is not looked at and the object lives on to its counter, where it ends with reason 0. So a close-range hit never spawns slot 2, never plays the record’s hit sound through the end routine and never plays cue 6 / 7; this is why the packs’ close-range files mostly have no slot 2. What a close-range hit shows is: the release effect (slot 3) still playing on the attacker’s joints, and on the victim the reaction with its hurt voice (reaction row + 8 = group 1..6: the cue is entry (group − 1) mod 6 + 10 of a table of ten-entry rows at gsdata 0x33004, one of the ten picked by rand, played on the character’s own bank) and its rumble (row + 0x0C..). The per-skill reaction rows 58..69 carry a sound id in row + 6 (the 5xx hit sounds of the records that name them; 34 of 71 rows have 0): its reader was not found in the dispatch 0x140258690, so where the close-range hit sound starts stays open. M (no slot 2), L (row + 6). (The action-table field 0x06 was listed as “character / variant” in “Player movement”; it holds sound ids.)
Rebuild status (skills3a 11-13)
Played in the rebuild (godot
PdCardEraser,
DataSkill): the 0-power hits (the
profile-less record stays out), level costs, hit
effect 45 (teleport to the attacker’s start,
then the 0x74 row) and 42 (nothing), the card
eraser with both 0x4E guards and cue 0x5b on
every set-0 hit path, the erase guard of the
auto cards (and their refused press), hold cards
(hold loop from the profile’s hold-loop start
tick), set 6, fast rain (7) in full, the status
effects 11 / 15 (stances), 17, 19, 21 and 22;
the deck view (20) stays out. The card’s 0x46
and 0x4E are read from the record’s raw bytes
(skills.json raw). Inferred parts
are rows in PLACEHOLDERS.md.
How the victim looks, per group
- Reaction: every group goes through the hit routine, so the decoded tiers apply (“Hit reactions”); auto (4) records have action ids 0 except the stagger record above.
- Card erased: cue 0x5b at the target; the button empties; a guarded card flashes its button.
- Erase guard (auto card): no hit at all; the guard’s own release effect plays on the target.
- Level and aura changes: cues 0x59 / 0x5a as decoded.
- Teleport (45, special subtypes 2, 6, 7): the row’s animation on the moved character.
- Stances: slot effects as decoded for the slot they set (none for states 0x15 / 0x16 themselves; the stance animation comes from the record’s cast profile).
Not decoded
The deck view (status effect 20, state 0x18); what ends a stance besides the stick; the use count after a 0x4E = 1 payment; the reader of reaction row + 6; the levitate’s hold in the movement code (special subtype 5, 2 records); the profile-less record’s cast path.
Implementation notes for the rebuild
DataSkill.refusal: drop “no damage and no hit effect” (a 0-power hit still reacts, erases and applies its effect); keep refusing the one record without a cast profile.- Card eraser: after the damage of every set-0 hit run candidates (0x5C) → order (0x5E) → count (0x60) on the target’s four buttons with the rules above (shared generator draws on the host), cue 0x5b; honour 0x4E = 2 (never erased, button flash) and 0x4E = 1 (pays instead when it can); remove a placed remote mine silently; skip for type-1 attacks on a target with slot 31.
- Pre-hit erase guard: a type-3 set-0 hit on a target holding an idle 0x46 = 1 card releases that card (cost, use) and is cancelled; such cards cannot be pressed.
- Set 6: remember the last released attack and the last attack that hit per character; a press of a set-6 card casts that id (refused while none).
- Level cost: refuse the cast below level 0x2A, pay it at the release. Hold cards: count held ticks while cost + count / 10 stays payable, add count / 10 to the cost and the aura paid.
- Hit effect 45: teleport the target to the attacker’s start position with the row’s animation; 42: nothing.
- Stances: state 0x15 heals 1 per 91 idle ticks, state 0x16 takes no health from hits; the stick ends both. Status effects 17, 19, 21, 22 as decoded (used pile).
- Fast rain: hole placement and drift, warn phase with the slot-1 mark, sight-line test, the slot-2 column and the swept segment test for 0x7E ticks.
- Close-range hits: spawn no slot 2 for melee / blade / pursuit; play the reaction row’s hurt voice group; the recoil (action 26) on the attacker when a defense stops the hit.