Skip to main content

Reference

Home · Reading guide · The engine in ten minutes

In brief​

The reference holds what the two first parts of the book rely on, entry by entry: the named values the game uses, the structures it keeps in memory, every routine and variable of the executable that the documentation describes, the layout of each file format, and the catalogue of anomalies and bugs. It is not meant to be read in order: rule pages and file pages link each fact to its entry here, and each entry lists the pages that use it.

The two first parts of the book and the reference they point to. The rule pages of How the game works link the values (enumerations), the runtime structures and the entries of the executable reference that hold the routines and data they describe. The file pages of From files to the game link the schema of each format and the field reference generated from it. The anomaly catalogue lists every anomaly and bug, with links to both. The sources and tools pages close the reference.
Every rule and every file page points to the entries that give its evidence.

What the reference holds​

PartWhat it holds
ValuesThe enumerations and flag sets of the game, named for the documentation and grouped by subject in the navigation: world, party, monsters, items, magic, and the values of the script language.
Runtime structuresThe records the game keeps in memory: characters, items, item types, monsters, blocks, spells.
The game executableThe memory map, the routines and data of START.EXE, its overlays and its display drivers, each entry with its addresses, its role and the pages that use it.
File schemasThe Kaitai schema of each format, and the field reference generated from it at each build.
Anomalies and bugsEvery behavior that contradicts the game's own code or data, with whether play reaches it.
Technical references, toolsThe comparative sources and the programs that produce the figures, maps and listings.

Sources​

The figure is drawn by make_reference_figures.py.