Living Tool
Browse the docs
Docs/Reference

File formats

The game hides its real file system inside the executable. This page covers the disc, the hidden file table, the containers inside it and what happens when a file grows.

v0.1.27 · updated 16 Oct 2026 · 5 min read

The disc

The game ships on a single data track. A normal ISO reader sees SYSTEM.CNF, the executable SLUS_008.11 and 13 empty folders. Those folders are a decoy: the game never looks at them. Files shows them on its ISO9660 (decoy) tab.

TrackTRACK 01 MODE2/2352 · one track only
Size185,985 sectors × 2352 B = 437,436,720 B
IdentityCRC32 cdc72c62 (Redump) · SLUS-00811
BootSYSTEM.CNF at LBA 23 → cdrom:\SLUS_008.11;1
Compressionnone in game data · only movies, ADPCM and one RLE heightmap are encoded

The hidden file table

The real file system is a table of 493 entries compiled into the executable at file offset 0x41B04 (RAM 0x801B4304). Each entry is eight bytes. There are no names and no byte sizes: the loader always reads whole 2048-byte sectors.

Entry #70, npc/7: three BCD bytes of start position, a pad byte that is always 0, and a little-endian u32 sector count.
Entry #70, npc/7: three BCD bytes of start position, a pad byte that is always 0, and a little-endian u32 sector count.

Decoded, 19:08:63 is LBA 86,013 (absolute time minus the 150-sector lead-in) and 0x60 is 96 sectors. Thirteen named slices of the table form the sub-tables below. A shifted HackerGC base moves the table; Living Tool finds it through the layout in the base's base.json.

Files shows npc/7's entry as stored, decoded to LBA 86,013 and 96 sectors, with the loader that reads it and its cap.
Files shows npc/7's entry as stored, decoded to LBA 86,013 and 96 sectors, with the loader that reads it and its cap.

Sub-tables and IDs

Living Tool names every file as table/index, where index is the file's 0-based position in its sub-table. Each loader also has its own size cap, counted in sectors. Asset IDs lists every ID form.

Sub-tableIDFilesLoad cap
Moviesmovie/n14streamed · no cap
Systemsys/n220x20000 staging, plus boot caps
World archivechunk/n524125 sectors per chunk, fixed
Overlaysovr/1–2525fixed load address per slot
NPC packsnpc/n500x31000 · 98 sectors
NPC soundsnpcsnd/n90x20000 staging
Field texturesfe/n570x20000 → VRAM (512, 256)
Musicbgm/n610x20000 staging
Battle arenasbf/n480x20000 staging
Living Toystoy/n730x20000 · packet 0xE000
Baby formspb/n19not yet verified
Battle Knightknight/01not yet verified
Enemiesenemy/n112not yet verified
New files (HackerGC base)new/n32spare entries · free ones have 0 sectors

To take a whole sub-table out, right-click it in the tree and choose Extract all to folder…, which writes each file under its old extractor name, plus an index.json that maps the names back to canonical IDs.

Extracting the Music sub-table: each file is written under its extractor name, then index.json.
Extracting the Music sub-table: each file is written under its extractor name, then index.json.

Containers

Almost every file that isn't a plain TIM starts with a list of u32 offsets into itself. There is no magic number and no length field. Sections sit back to back, and the file is padded to a 2048-byte boundary.

What the loader does
u32 *hdr = (u32 *)base;        // e.g. staging at 0x80153000
u32 n = hdr[0] / 4;            // header size = first offset

for (u32 i = 0; i < n; i++)
    hdr[i] += (u32)base;       // relocate in place
FileHeaderSections, in order
toy/n8 offsetsposes, abilities, sprite script, TSQ sound effects, effect model, TVB sample bank, TIM, main model
enemy/n7 offsetsposes, effect model, TSQ, TIM, TVB, model, then a 0x398-byte profile (stats, attacks, AI, drops)
knight/04 offsetsposes, model, TIM, profile; enemy/0 and enemy/1 use the same shape
pb/n6 offsetsposes, sub-model, TSQ, TVB, model, profile
npc/nP, D, modelsthe P chain, the D-block (actor records, triggers, the text pool, event bytecode, walk data), then models and poses
bgm/nseq, bankTSQ sequence, then headerless SPU-ADPCM at bank + 0x800
bf/n8, modelTIM, then a TMD model
fe/nnoneone plain TIM

Inside them, models are standard Sony TMD, textures are 4bpp TIMs at fixed VRAM positions, and animation cross-fades between two morph-target poses at 30 Hz. There are no skeletons. World chunks have a layout of their own, covered in Chunk format.

Growing a file

Files are packed with zero slack, so a file that grows can't stay where it is. The build appends it past the end of the disc (LBA 185,985 on retail), repoints every table entry of its alias group, adds a 150-sector postgap and recomputes EDC/ECC for every sector it writes.

npc/7 grows from 96 to 98 sectors: it moves past retail's last sector, and entry #70 is repointed from LBA 86,013 to 185,985.
npc/7 grows from 96 to 98 sectors: it moves past retail's last sector, and entry #70 is repointed from LBA 86,013 to 185,985.
  • The executable keeps its exact size, 155 sectors at LBA 24. About 23,000 hard-coded overlay references depend on it, so builds rewrite it in place.
  • Moving a file doesn't lift its loader cap. An NPC pack can never be bigger than 98 sectors.
  • Chunks never move. Each is read at id × 0x3E800 inside the world archive, so new areas take chunk ids from 1328, which land past the end of the disc.
  • Movies are written as whole Mode 2 sectors: Form 1 video and Form 2 XA audio, each with a fresh EDC. Files can't replace one; use Replace… on the movie in Music & sound.
  • A brand-new file needs a spare table entry. Only a HackerGC base has them (new/0 … new/31).

Building a patch covers the build itself.