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 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:

  1. 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.
  2. 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:

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.

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

Status set: the open effect ids

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.

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

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

  1. 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.
  2. 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.
  3. 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.
  4. 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).
  5. 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.
  6. Hit effect 45: teleport the target to the attacker’s start position with the row’s animation; 42: nothing.
  7. 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).
  8. 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.
  9. 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.