File formats
Documentation overview · File inventory · Technical references
These are the binary formats of Eye of the Beholder II (DOS) described so far. Each format has three pages:
- a file page, in From files to the game, that follows the file from its bytes to what the game makes of it: what it is for, how it is organized, what the game does with it and what remains unknown, with an annotated example;
- a field reference, generated from the schema each time the site is built, that lists every field with its meaning;
- the schema itself, a Kaitai Struct
.ksyfile and the authoritative description of the format.
The schemas state facts about the files without citing evidence; the sources are listed at the end of each file page.
| Format | Contents | Pages |
|---|---|---|
| CPS | Compressed container used by INF, VCN and CPS files, with its palette | File page · Fields · Schema |
| INF | Level data: resources, doors, monsters, wall mappings, scripts, cell bindings | File page · Fields · Schema |
| MAZ | Level wall grid: four wall references per cell | File page · Fields · Schema |
| VCN | Dungeon tiles: 8 × 8 blocks and colour tables (unpacked) | File page · Fields · Schema |
| VMP | Wall layouts: which VCN block goes where in the view | File page · Fields · Schema |
| DEC | Wall decorations: rectangles and placements | File page · Fields · Schema |
| DCR | Monster decorations: shapes layered over monster images | File page · Fields · Schema |
| ITEM.DAT | Initial item records and item names | File page · Fields · Schema |
| ITEMTYPE.DAT | Properties shared by all items of a type | File page · Fields · Schema |
| TEXT.DAT | Dialogue and parchment texts: offset table and zero-terminated texts | File page · Fields · Schema |
| SAV | Saved games: party, variables, items, level records, options | File page · Fields · Schema |
| LEVELS.TMP | Level records: walls, monsters and temporary walls per level | File page · Fields · Schema |
| ADL | AdLib music and sounds: sound-effect table, programs and instruments | File page · Fields · Schema |
| SND | PC speaker and Tandy sounds: sound-effect table and note programs | File page · Fields · Schema |
| PAL | Palettes of 256 colours: the .PAL, .EGA and .COL files | File page · Fields · Schema |
| FNT | Bitmap fonts of 128 characters | File page · Fields · Schema |
| FADING.DAT | Seven colour tables for the fades of the introduction | File page · Fields · Schema |
| EOSPREFS.DAT | The three settings written by the setup program | File page · Fields · Schema |
Other files of the game, such as palettes, fonts and the .SND sounds, have
no schema yet; the file inventory lists them all.
Using the schemas
The schemas describe the DOS release only. Each one states the values found
in the original files; its valid constraints describe the files it
supports, not checks made by the game. Statements are established unless
marked inferred or unknown; see the reading guide.
To generate the Kaitai HTML documentation or a parser yourself, use the Kaitai Struct compiler, for example:
kaitai-struct-compiler -t html --outdir build/docs/formats formats/MAZ.ksy
Generated output is temporary and is not kept in the repository.