OpenTPW

PS2 version data#

October 9, 2026. Status: read-only viewing support ([EXT:ps2-data]). OpenTPW still runs on the PC/Mac data; the PS2 data can be listed and its textures exported for viewing. Nothing from the disc is in the repository.

Source examined: the PAL disc Theme Park World (Europe) (En,Fr,De), SYSTEM.CNF BOOT2 = cdrom0:\SLES_500.32, a single MODE2/2352 CD track. The executable SLES_500.32 is a stripped MIPS (Emotion Engine) ELF: no symbols, unlike the Mac PEF libraries.

Disc layout#

FKNL archive (FknlArchive)#

Little-endian. Header: FKNL, 0, data start, an unknown word, name-pool start, root record offset.

RecordBytesFields
directory16file-entry table offset, subdirectory-entry table offset, file count, subdirectory count
file entry16name offset, data offset, stored size, size
subdirectory entry8name offset, directory record offset

Names are NUL-terminated Latin-1 strings in the pool between the name-pool start and the data start. A member whose stored size is smaller than its size is RefPack-compressed (10 FB), as in the PC WADs; otherwise it is stored. Three Text/translations/eur/*.dup entries in DATA.WAD record a size but store no bytes (empty placeholders). All 16 archives (14,678 files) parse and every member decompresses to its recorded size (FknlArchiveTests, private, OPENTPW_PS2_DATA).

Formats inside#

ExtensionMeaningStatus
.sshEA SHPS shape container, id GIMX; one image record per texture plus a 0x70 name blockcontainer read (SshFile); pixel payload not decoded
.tgatruecolor TGA of every texture, same size as the SSHdecoded for viewing
.mps / .apsmodels and animations (PS2 counterparts of MD2), e.g. Rides/dizzyd/dizzyd.mps, terrain/terrain_1.mpsnot decoded
.rse / .rss / .samride scripts (same RSE virtual machine: the executable contains the PC opcode names and RSSE: diagnostics), settingsRSE/SAM readers apply in principle; not run yet
.lip, .sce, .plb, .dat, .bfflip sync, menu scenes, particles, miscnot examined

SSH image records use type 0x84 (24-bit) and 0x85 (32-bit) with the 0x80 bit set. Their payload starts with GM, the number of 16×16 blocks across and down, and the payload length: a lossy block format (similar in spirit to the TQI video) that the PS2 decodes at load time. It is not decoded yet; the accompanying TGA files make every texture viewable without it.

Compared with the PC version#

Viewing#

bash scripts/run.sh --export-ps2 /path/to/ps2/DATA /path/to/output

Writes every texture as <output>/<archive>/<path>.png (from the TGA) and index.tsv listing every member with its size and, for SSH files, the image records (size, type, GM, name). On the PAL disc: 14,678 files, 5,695 textures, in about five seconds on an Apple silicon Mac.

Next steps#

.mps/.aps models (compare with the PC MD2 of the same object, e.g. dizzyd), the PS2 terrains, the GM texture payload, and running PS2 ride scripts on the existing RideVM. Playing the PS2 side games needs their logic from the stripped executable and is out of scope for now.

Source: docs/PS2.md in the project repository.