A PlayStation game is a stack of containers: a disc holds files, one file holds an archive, the archive holds bundles, the bundles hold models, textures and sounds, and the running game loads all of that into a handful of little script engines. This page is the map of that stack and of the code that reads each layer - start here before any format or subsystem page.
PROT.DAT is the game's archive: 1233 numbered entries holding every scene, monster, tune and menu. The executable only carries the tables that tie them together.Going top to bottom: a PSX disc image, then the ISO filesystem, then the archive (PROT.DAT), then per-entry containers, then individual sub-assets, and finally the engine that brings them to life. Each layer's title links to the page that documents it.
disc-extractPROT.DAT (the archive), SCUS_942.54 (the executable), DMY.DAT (dev fixture data), the MOV/ movies, the XA/ voice streams, CDNAME.TXT (the archive's name list) and SYSTEM.CNF.prot-extractCDNAME.TXT, whose numbers are raw table indices and sit two ahead of the extraction numbering (why).assetThe -re in the project name means both reverse engineering and reimplementation. The tracks are separate crates with a clear boundary between them.
| Track | What it produces | Where it lives |
|---|---|---|
| Preservation | Every asset off the disc as PNG / WAV / OBJ / glTF / JSON, a format spec per file type with the game function that reads it named as evidence, and round-trip parsers that can write assets back. | The disc crates (iso, prot, lzs), one crate per format, the format families over them (container-formats, scene-formats, minigame-formats, ui-formats, the static tables in game-tables, the character and monster model formats in actor-formats, the code-overlay image formats in overlay-images), the asset command-line tool over disc-audit, the extract driver, and the patcher over disc-patch, translate, code-hooks, arts-patch, texture-replace, party-swap, delilas-party and delilas-challenge. |
| Reimplementation | A playable engine built from those specs plus logic traced in Ghidra and rewritten fresh - never a decompilation or static recompile of Sony's executable. Retail behaviour is the measured ground truth; enhancements (dynamic lighting, see-through walls, free-angle movement, VR) are toggles that leave the faithful mode bit-identical when off. | The simulation (engine-core over engine-scene, engine-vm, engine-battle-vm, engine-cast, engine-motion-vm, engine-camera, engine-battle, engine-effects, engine-minigames, engine-fishing, engine-minigame-scenes, engine-menus, engine-battle-menus, engine-battle-loop, engine-title, engine-dialog, engine-dev-menu, engine-field, engine-mode, engine-system, with engine-scene-host, engine-menu-runtime, engine-battle-hud, engine-world-views, engine-cheats and engine-save-state reading a running World from above it), presentation (engine-ui over render-kernels, engine-render, engine-audio), the shared game loop (engine-session, engine-screens), the parity oracles over engine-capture, the engine-export world exporter, the native engine-shell, the browser hosts in web-play and web-minigames, and the asset-viewer / web-viewer front ends (the site's ROM patcher in web-patcher). |
What keeps the two honest is a set of parity oracles: the engine's video memory, sound output and game-mode trace are compared against emulator captures of the real game, so a doc that is wrong shows up as a pixel or a sample that differs. The engine page has the boundaries and the current list of enhancement toggles.
When you talk to a villager, watch a cutscene, throw a Tactical Art or open the shop, no hand-written code for that moment is running. Instead the game's engine interprets small programs stored with the data: the villager's dialogue is a script, the art is a move record, the shop window is a widget program. The five interpreters below share one actor model - the same records describe your character, an NPC, a monster and a spark of a spell - and each has its own page. Four are classic bytecode dispatchers; the effect VM is a per-slot state machine that plays the same role with a different shape.
"Five VMs" is the orientation, not the census: the field VM's menu sub-dispatcher, the move VM's overlay extension, and the battle, world-map and tile-board state machines are separate dispatchers with their own tables. The VM inventory lists every one.
The field VM drives the scene. When it needs an actor to perform something, it stages a move record into that actor, and the per-frame actor tick steps the move VM through it. One move-VM opcode escapes into an overlay-resident extension dispatcher that exists only while the town overlay is loaded, so battle-side move records can never reach it. The motion VMs run independently per actor for pathing and camera follow. The effect VM is battle-only, but every effect is bound to a master-slot actor that the script VM and the battle state machine can reference - the same actor model throughout. Driver addresses and traces are on the linked subsystem pages.
| You want to… | Read |
|---|---|
| See it running before reading anything | Play the port, asset viewer, media browser |
| See how the code is organised, crate by crate | Crate map, how the crates stack |
| Install the tools or build from source | Quick start, getting started |
| Understand one file format | Formats index - each page has a confidence badge |
| Understand one part of the running game | Subsystems index |
| Mod or translate your own copy | Modding and translation, then randomizer / translation |
| Look up a function or RAM address | Key functions, memory map |
| Find an open question to work on, or check one already answered | Open threads, settled threads, do not re-walk |