LEVELS.TMP field reference
File page · Format catalogue · Schema source
This page is generated from the Kaitai schema LEVELS_TMP.ksy each time the site is built. The schema is the authoritative description; statements are established unless marked inferred or unknown, and the evidence is listed on the file page (see the reading guide).
- Schema: Eye of the Beholder II DOS level records (LEVELS.TMP)
- Byte order: little-endian
- Schema license:
MIT
Description
LEVELS.TMP holds the record of each dungeon level the party has left: 17 records of 0x852 bytes, record n − 1 for level n, each with the level's walls, monsters and temporary walls. The game writes a level's record when the party leaves the level and reads it back when the level is loaded again. It is the same image as the level records chunk of a saved game (SAV.ksy). See the format overview and saving and restoring.
The game writes one record at (level − 1) × 0x852 and reads one back the same way. Saving a game reads the whole file (0x8d72 bytes) and loading a saved game replaces it with the records of the loaded game. A bit per level in the game's memory, saved with the game, says which records are valid; the file itself has no such marker.
Lifetime: all record bits are clear when the program starts, and the start menu, the only way to a new game, runs once per program run. A new game therefore ignores every record already in the file and neither creates nor empties it. Leaving a level opens the file without truncating it, creating a missing file, and writes one record in place; loading a saved game deletes and recreates the whole file. Nothing deletes it at exit. Records of an earlier game can therefore remain, with their bits clear. See /eob2/files/saves/LEVELS_TMP#lifetime.
The original LEVELS.TMP is 36,210 bytes, byte-identical to the level records of EOBDATA0.SAV.
File structure
| Field | Type | Size, repetition and constraints |
|---|---|---|
records | sav::level_record | size 2130; repeated 17 times |
trailing_unknown | bytes to end of stream | — |
records
Record n − 1 for level n, at file offset (n − 1) × 0x852. A record whose level has no record bit is ignored and can hold leftover data.
trailing_unknown
Data after file offset 0x8d72, unknown, kept verbatim. Empty in the original file.