At a glance

  1. Download + verifyOne archive per platform, checked against SHA256SUMS.
  2. Check your disc imagedisc-extract verify confirms the USA build the tools target.
  3. Extract everythinglegaia-extract: about five seconds, roughly 900 MB, one extracted/ tree.
  4. Pick a toolPer-format extractors, the engine, the viewer, the patcher.
Just want to play?

With nothing to install, the play page runs the game in this browser on your disc image. For the desktop build, double-click Legend of Legaia in the unpacked folder (Legend of Legaia.exe on Windows, Legend of Legaia.app on macOS); it starts the engine, command-line-tools/legaia-engine, with no arguments. Its launcher asks for your disc image once, remembers it, sets the display options, and Play opens the title screen; see the first start on each system and the launcher. The rest of this page is about the extraction tools.

Rather use buttons than a terminal?

The same archive carries Legaia Explorer, a desktop app that browses, previews, exports and extracts the disc with no commands at all. Its Extract view runs the same one-shot extraction as legaia-extract below into a folder you pick, with progress and Cancel, so getting the assets out needs no terminal either. Desktop apps walks through downloading, the first start on Windows, macOS and Linux, Explorer itself and the native port, with screenshots.

Bring your own disc

One rule shapes everything here: the project ships no Sony-owned bytes. The archive contains only the project's own compiled tools. Every tool operates on a disc image you supply - a raw Mode 2/2352 .bin dump of your own Legend of Legaia (USA) disc, SCUS-94254. A .cue sheet is accepted anywhere a disc image is: the referenced BINARY track is resolved automatically.

Commands on this page use the bare ./tool form, as run from a terminal in the unpacked archive's command-line-tools folder. If you build from source instead, the same binaries land in target/release/ (cargo build --release), so substitute ./target/release/tool.

1 · Download and verify the archive

Each tagged release publishes one archive per platform plus a SHA256SUMS manifest (see tagged releases for how they are built):

Every archive unpacks into one folder. Its top level holds only what you double-click - Legend of Legaia and Legaia Explorer (.exe on Windows, .app on macOS) - plus README-PLAY.txt (how to start them), the two license files and THIRD-PARTY-LICENSES.txt. Every command-line program, the engine legaia-engine among them, is in its command-line-tools folder, with a README.txt listing them. Keep that folder beside the two programs: they start the game from it.

Verify and unpack:

  1. Check the downloadsha256sum -c SHA256SUMS --ignore-missing (on a Mac: shasum -a 256 -c SHA256SUMS --ignore-missing)
  2. Unpacktar -xzf legaia-tools-<version>-<target>.tar.gz, then cd into the command-line-tools folder of the directory it creates
  3. Smoke test./legaia-extract --version

Every binary answers --version and --help; subcommand help (./asset monster-archive --help) states where each input comes from.

2 · Check your disc image

The fingerprint check tells you whether the tools will recognise your dump before you spend time on it.

./disc-extract verify "/path/to/Legend of Legaia (USA).bin"

A good USA dump prints:

[ok] matches: Legend of Legaia (USA) - SCUS-94254 - Mode2/2352 .bin

An unrecognized dump (a PAL disc, a re-track, a bad rip) prints an [unknown] line with the computed SHA-256 instead of failing - the extraction tools still run on it, but the fingerprints, offsets, and the randomizer's patches all target the USA build. A file that is not a Mode 2/2352 image at all is rejected up front with not a Mode2/2352 disc image: <path>.

3 · Extract everything in one shot

./legaia-extract "/path/to/Legend of Legaia (USA).bin" --out extracted

On a modern machine this takes about five seconds and writes roughly 900 MB. A disc-fingerprint check runs first, then eight numbered steps, each logged as step N/8:

  1. ISO9660 walk - the disc's 45 files.
  2. PROT.DAT split - 1233 entries, named via CDNAME.TXT.
  3. Per-entry format categorization.
  4. Streaming sub-asset extraction.
  5. Streaming-container TIMs → PNG.
  6. CD-XA demux → per-channel WAVs (316 of them).
  7. The TIM-catalog TSVs.
  8. The dialog-font artifacts.
One run of legaia-extract: the disc image goes in, eight steps run in order, and each step writes one part of the extracted tree - the raw files, the per-entry PROT folder, the classification, the streaming sub-assets and their PNGs, the audio WAVs, the texture catalogs and the dialog font. legaia-extract, in order what lands in extracted/ your disc .bin or .cue 1. ISO9660 walk PROT.DAT, CDNAME.TXT, SCUS_942.54, MOV/ 2. split PROT.DAT PROT/ - one file per entry 3. categorize entries PROT/categorize.json 4. unpack streaming entries streaming/ 5. TIMs to PNG PNGs under streaming/ 6. CD-XA demux XA_WAV/ 7. TIM catalogs prot_tim_*catalog.tsv 8. dialog font font/
Steps 1 and 6 read the disc image itself; every other step works on what the steps before it wrote. Step 1 gives you the raw files, step 2 the per-entry folder most tools take as input.

Skip flags exist for the verify pass and for each slow or optional step: --skip-verify, --skip-png, --skip-xa, --skip-catalog, --skip-font.

What lands where

extracted/
├── PROT.DAT                 - the game's main archive, raw copy
├── CDNAME.TXT               - entry name map
├── SCUS_942.54              - the game executable (data-table source)
├── DMY.DAT, SYSTEM.CNF       - the disc's remaining root files
├── MOV/                     - FMV movies (MV1.STR ...)
├── XA/                      - streamed audio, raw sectors
├── PROT/                    - one file per PROT entry, plus categorize.json
├── streaming/               - sub-assets unpacked from streaming containers
├── XA_WAV/                  - streamed audio, one WAV per channel
├── font/                    - dialog-font atlas + widths (engine + viewer read this)
├── prot_tim_catalog.tsv     - texture inventory (raw TIMs)
└── prot_tim_deep_catalog.tsv - texture inventory (TIMs inside LZS)

Bulk texture export is not one of the eight steps: --all-textures adds it as a ninth (every TIM, raw and LZS-compressed, as .tim + .png under tim_scan/), and without it the final summary points at the equivalent two-command step (asset tim-scan + tim convert-dir) covered in extracting assets. Everything downstream - the asset scenarios, the engine and viewers, the modding tools - reads either this extracted/ tree or the disc image directly.

Reference Disc layout PROT.DAT CDNAME.TXT Per-stage pipeline

4 · The tools at a glance

The archive is a toolbox rather than one program. Three groups: the extractors that turn disc bytes into files, the programs that play or edit the game, and the aids you reach for once you start reverse-engineering yourself.

Pipeline and per-format extractors

BinaryWhat it's for
legaia-extractThe one-shot pipeline: disc image → the whole extracted/ tree. Start here.
disc-extractVerify a dump's fingerprint; list / extract the raw ISO9660 files.
prot-extractSplit PROT.DAT into its numbered entries with CDNAME-derived names.
lzs-decodeDecompress Legaia's LZS streams and .lzs containers.
assetThe format tool: categorize entries, extract sub-assets, dump readable game-data tables, export monsters to glTF.
timTIM textures → PNG.
tmdLegaia TMD meshes → Wavefront OBJ.
vabVAB sound banks → VAG samples / WAV.
seqSEQ music inspector: headers, event disassembly, find for wrapped BGM.
xaStreamed CD-XA audio → correctly-paced per-channel WAVs.
mdecFMV decoder: STR movie data → per-frame PNGs.
font-extractDialog-font atlas + width table, straight from the disc.

Game-data, playing, and modding

BinaryWhat it's for
legaia-engineThe from-scratch engine: plays the game - field, battles, menus, minigames, movies, saves - straight from your disc, plus record / replay.
legaia-explorerDesktop app: open your disc, browse and search the archive, preview and export textures, models, audio, text, characters and movies, or extract the whole disc - all with buttons (guide).
asset-viewerWindowed browser for textures, meshes, audio banks, and scene demos.
legaia-patcherDisc patcher: randomizer, translation toolchain, and manual record edits; emits shareable PPF patches.
save-toolPSX memory-card / save inspector: character records, save-block diffs.
gamedata-toolCurated game-data lookups (arts, items, shops, enemies, ...); needs no disc at all.
cheat-toolGameShark cheat-database parser with the Legaia NTSC-U databases built in.

Reverse-engineering aids

BinaryWhat it's for
asset field-disasmField/event-VM script disassembler over PROT.DAT (a subcommand of asset).
mesMES dialog-container inspector (for readable game text, use legaia-patcher translate export instead).
anmANM animation-container inspector.
mdtLayout classifier for retail’s “MOVE” buffer (the scene’s animation clip bank).
artTactical Arts tables: action constants, arts names, Super/Miracle Art triggers.
mednafen-stateMednafen save-state inspector: RAM diffs, VRAM dumps, SPU snapshots.

See also

Guides Desktop apps Extracting assets Playing + viewing Modding + translation Translating the game VRChat world
Reference Format specs Per-stage pipeline reference Browser asset viewer