Afterlife Dust: decode notes
These are our working notes on how the game stores and does things: file layouts, rules and constants read from our own retail copy (the 2017 Store build, version 1.3.25854.2, plus the original Xbox disc where the PC port differs), written in our own words. They hold no game files, no extracted assets, no game text and no code listings. They build on Esper-RE and the Phantom Dust Modding Wiki.
The notes are generated from the project’s repository after each merge, so they read like a lab book: later sections correct earlier ones, and section names such as FORMATS “Movement parity” refer to pages listed here. Confidence marks: H read in the machine code and checked against data or footage, M read in the code with the meaning inferred, L a lead only.
Start with the systems map: one entry per system of the versus mode, with what is decoded and what is left.
Stages and props
- Stage variants (st03 / st13 / st23)
- Intro camera paths (stNNcam.alr)
- Stage layout props (stNN.dat, PS00)
- Stage layout sections (stNN.dat header)
- Stage objects: classes, hits and breaking
- Stage objects: other families
- Stage destruction: support chains and the collapse family
- Stage attack bodies and landings
- Surface marks: craters, debris and the hard landing
- Crater and debris models
- Stage sprite sets (SP00) and the sand storm’s sprites
- Stage ambient effects (stNN.dat EF00, executable)
- Start positions (stNN.dat, CP00)
Rendering and light
- Stage vertex formats 0x01 and 0x03 (st03, the Lost Palace)
- Lightmapped format 0x1F
- Materials
- Stage shaders (<NAME>_vs.cso / <NAME>_ps.cso)
- SBTS (normal mapped)
- Reflection (REF shaders)
- Height fog (YFOG shaders)
- Sky dome and clouds (SC, SBTSCLOUD2/3)
- Glow pass (bloom) and the post filters
- Stage light script (stNN.dat, header 0xD0 / 0xD4 / 0xD8)
- Sky and far scenery draw: light sets 2 and 3, dome colour, the st02 glow
- Sky colour: set 2’s point light
- St03 sky brightness against the Xbox: the sky model’s vertex-colour domes
- Shadow volumes (sshadowch, sshadow, sshadowc) and the shadow pass
- Stage cull mode
- Godot surface limit (st01, st06, st07, st16, st17, st26)
- Xbox capsule shading
- Xbox fog
Characters, movement and collision
- Characters (Assets/Data/Player/<id>/<id>.alr)
- Player movement (executable + action table in gsdata_<lang>.dat)
- Character table (setup/charaset/charaset.dat)
- Body point, sight point and aim point (model nodes + executable)
- The evade (executable + gsdata_<lang>.dat skills + setup/charaset/charaset.dat)
- Movement animations (executable)
- Game loop and tick rate (executable)
- Animation playback rate (executable)
- Floor test (executable)
- Movement collision response (executable, 0x140255020)
- Movement parity: the per-tick walk, turn starts, air, roll, landing; collision details; the Palace benches; a parity test
- Collision attributes, groups and casts (executable)
- Stage collision (stNN.dat, executable)
- Cast animation profiles (gsdata_<lang>.dat at 0x1B00C)
- Stage bounds and the pit (executable + stage collision)
- Skill cast animation
- Pose mixer and the character file the battle loads
Combat, skills and match rules
- Skill table (Assets/Data/gstorage/gsdata_<lang>.dat)
- Combat rules (executable + gsdata_<lang>.dat)
- Match flow (executable)
- Arsenal rules (deck record, editor, lobby check)
- Versus options, stage list, teams and start spots
- Skill kinds (what a skill object does, per behavior / skill set)
- Status slots, hit effects and environments in full
- Skill casting leftovers: handler tables, formulas, erase and special sets
- The last unplayed skill records
- Lock-on and targeting (executable)
- Vertical aim of a cast
- Capsules (skill / aura pickups)
- CPU opponents (com/ai, com/deck, com/param, com/stNN/comdataN.cad + executable)
Effects
- Skill effects (Assets/Data/Effect/eftNNNN.eft + eftNNNN.alr)
- Effect particles (particle01, particle02; element update and draw in PDUWP.exe)
- Effect trails (tale01; element update and draw object in PDUWP.exe)
- Effect blades (blade01; partly decoded, not drawn yet)
- Effect lights on characters (light02 → light pool → character point light)
- Effect drawing (material render state, shaders, mesh element update)
- Effect instances, slots and joint attach
- Effect packs and the Xbox / PC effect comparison
- Stage effect records by type
- The straight fire shot, the rebuild against the game, difference by difference (eft0061 + executable)
- Character aura glow, the cast / aura-card flare, the pickup cue and the jump animations re-checked (System/auradefault.ssb + executable)
Camera, HUD, menus and input
- Pad input: buttons to pad bits
- Controller rumble (executable + cast animation profiles)
- Play camera (executable + setup/configdata.dat, com/stNN/camdata.cam)
- Battle HUD (Menu/BtMenu<lang>.alr + executable)
- Bitmap font and text drawing (System/dbfont.ddx + executable)
- HUD status icons and clock (executable)
- Lock-on marker: range colours, sizes, distance gauge (executable + Menu/BtMenu<lang>.alr)
- Menu script VM (Menu/*.ssb, stage and event scripts)
- Match-flow screens (Menu/battlestart_<lang>.ssb, Menu/battleend_<lang>.ssb)
- Menu engine, menu table and screen graph (Menu/.ssb, Menu/.alr + executable)
- Title screen drawing (Menu/FDLogo.alr, title*_?s.cso + executable)
- Arsenal editor input, skill card panel, screen frame and the aura card
Audio
- Storm sphere, vkSAND, piece impact sounds and the object hit mark
- Sound banks (Assets/Data/Sound/*.bin, “STH2”)
- Music (BGM/*.stx) and track selection
- Sound parameters (setup/soundparam.dat)
- Stage sounds: the stage bank, sound emitters and effect cues
- Match, menu and footstep sounds
- Music payload (BGM/*.stx → PCM): converter-step spec
- Music volume, the sound volume option and the battle UI cues
- Stage soundscape, 3-D sends and the listener
- The XACT bank (media/Sound.xsb, media/Wave.xwb)
Network
- The original network protocol (executable)
- Session, mesh and lobby layers under the battle protocol
- Session control, mesh leftovers, lobby values and card trade
- Versus network messages