Skip to main content

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 .ksy file 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.

FormatContentsPages
CPSCompressed container used by INF, VCN and CPS files, with its paletteFile page · Fields · Schema
INFLevel data: resources, doors, monsters, wall mappings, scripts, cell bindingsFile page · Fields · Schema
MAZLevel wall grid: four wall references per cellFile page · Fields · Schema
VCNDungeon tiles: 8 × 8 blocks and colour tables (unpacked)File page · Fields · Schema
VMPWall layouts: which VCN block goes where in the viewFile page · Fields · Schema
DECWall decorations: rectangles and placementsFile page · Fields · Schema
DCRMonster decorations: shapes layered over monster imagesFile page · Fields · Schema
ITEM.DATInitial item records and item namesFile page · Fields · Schema
ITEMTYPE.DATProperties shared by all items of a typeFile page · Fields · Schema
TEXT.DATDialogue and parchment texts: offset table and zero-terminated textsFile page · Fields · Schema
SAVSaved games: party, variables, items, level records, optionsFile page · Fields · Schema
LEVELS.TMPLevel records: walls, monsters and temporary walls per levelFile page · Fields · Schema
ADLAdLib music and sounds: sound-effect table, programs and instrumentsFile page · Fields · Schema
SNDPC speaker and Tandy sounds: sound-effect table and note programsFile page · Fields · Schema
PALPalettes of 256 colours: the .PAL, .EGA and .COL filesFile page · Fields · Schema
FNTBitmap fonts of 128 charactersFile page · Fields · Schema
FADING.DATSeven colour tables for the fades of the introductionFile page · Fields · Schema
EOSPREFS.DATThe three settings written by the setup programFile 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.