FOR MODDERS AND HACKERS
Under the hood
How the 1988 DOS game stores its data, in enough detail to write your own tools. Nothing here contains the game's art, maps or text. Point your tools at your own copy.
23
documented
7
partly
1
not yet
Little-endian · offsets in hex, sizes in decimal · rule IDs open the Game Facts entry · code links open Redux's MIT-licensed readers. Counts are of the rows below.
Start here
Decoding graphicsLZW, archives, pixels, palette and the tile sheetSAVED.GAM byte mapEvery region of the save, and the object lists beside itMap files and locationsWorld chunks, settlement floors, location numbers and entrancesText filesLook descriptions, merchant phrases and the endingDATA.OVL indexWhere each name list, price table and lookup table livesCombat mapsBritannia combat records, formations and tactical boundsSigns and fontsCharacter sets, sign records and symbolic displaysTalk scriptsRecords, the word dictionary and the control codes in conversationsTile propertiesTile identity, movement, occupancy and animation
Every file
| File | Holds | Format in brief | Status | Rules |
|---|---|---|---|---|
| GRAPHICS | ||||
| TILES.16 (TILES.4 on CGA) | The 512 map tiles | LZW wrapper; one 128-byte, 16 × 16, 4-bit record per tile Guide | Partly | GFX-0001, GFX-0008 |
| MON0–7.16, ITEMS.16 | Dungeon monsters and items | LZW; image and 1-bit mask records in pairs Guide | Partly | GFX-0003 |
| DNG1–3.16 | Dungeon wall panels | LZW; 28 slots, two empty Guide | Documented | GFX-0002 |
| CREATE, TEXT, STORY1–6, END1–2, ULTIMA, STARTSC, ENDSC .16 | Pictures for creation, the story, the title and the ending | LZW; count, offsets, then 4-bit records Guide | Documented | GFX-0002 |
| TITLE.BIT, BRITISH.BIT, WD.BIT | One-colour title art | 1-bit archives; WD.BIT is not compressed Guide | Documented | GFX-0004 |
| PROPORT.PCS | Proportional font | 91 glyphs, 12-byte records Guide | Documented | GFX-0004 |
| IBM.CH, RUNES.CH (.HCS) | Fixed fonts, 128 glyphs | Stored directly; 8 × 8, a byte per row Guide | Partly | GFX-0005, SIGN-0001 |
| BRITISH.PTH | Lord British's signature | Pen-movement command bytes Guide | Documented | GFX-0007 |
| EGA.DRV | Display driver and colour tables | Only the tile-colour boundary is described Guide | Not yet | GFX-0006 |
| MAPS | ||||
| BRIT.DAT, UNDER.DAT | Britannia and the Underworld | 256 × 256 grids in 16 × 16 chunks; BRIT.DAT omits all-water chunks Guide | Documented | MAP-0001 |
| TOWNE, CASTLE, KEEP, DWELLING .DAT | Every settlement, floor by floor | 16 floors of 32 × 32 tiles per file; location numbers and entrances Guide | Documented | MAP-0002, MAP-0003, MAP-0004 |
| DUNGEON.DAT | Eight dungeons, eight levels each | 8 × 8 cells of packed families | Documented | DNG-0001, DNG-0002 |
| BRIT.CBT, DUNGEON.CBT | Combat maps and dungeon rooms | 11 × 11 plus formation and trigger data Guide | Partly | CBT-0001, CBT-0002, CBT-0003, CBT-0004, DNG-0011, DNG-0012, DNG-0013, DNG-0014 |
| MISCMAPS.DAT | Cutscene and intro maps, intro script | Four 176-byte scenes, then the intro script Guide | Documented | MAP-0005, INTRO-0004 |
| TEXT AND PEOPLE | ||||
| TOWNE, CASTLE, KEEP, DWELLING .TLK | Conversations | Records, dictionary, control codes Guide | Partly | TALK-0001, TALK-0002, TALK-0003, TALK-0004, TALK-0005, TALK-0006 |
| TOWNE, CASTLE, KEEP, DWELLING .NPC | Schedules, types, talk numbers | Three places and four times per person | Documented | NPC-0001, TALK-0001 |
| SIGNS.DAT | Signs and inscriptions | Grouped by location; two character sets Guide | Documented | SIGN-0001, SIGN-0002 |
| LOOK2.DAT | Look descriptions for every tile | 512 offsets, then zero-terminated strings Guide | Documented | TEXT-0001 |
| SHOPPE.DAT | Merchant phrases | Zero-terminated strings, word bytes and fill-in codes Guide | Documented | TEXT-0002 |
| KARMA.DAT, STORY.DAT, QUESTION.DAT | Karma reports, introduction, creation questions | Where each text starts; text not reproduced | Documented | KARMA-0017, INTRO-0003 |
| END.DAT | The ending | Six zero-terminated blocks at fixed offsets Guide | Documented | TEXT-0003 |
| CODE AND TABLES | ||||
| DATA.OVL | Names, prices, stats and lookup tables | 48,464 bytes; an index of identified regions, each defined by its topic Guide | Partly | OVL-0001, OVL-0002 |
| SAVES | ||||
| SAVED.GAM, INIT.GAM | Your save, and a new game's template | 4,192 bytes, fully allocated Guide | Partly | SAVE-0001, SAVE-0002, SAVE-0003, SAVE-0004, SAVE-0005, SAVE-0007 |
| SAVED.OOL, BRIT.OOL, UNDER.OOL | Objects in both worlds | 256-byte object lists, one per world Guide | Documented | SAVE-0006 |
| REFERENCE TABLES | ||||
| Location numbers | 0 for Britannia, up to 40 for Doom | Used by saves, signs and people Guide | Documented | MAP-0003 |
| Item numbers | Inventory order, also used by talk gifts | One table | Documented | SAVE-0003, EQUIP-0001 |
| Glyph tables | What each rune and symbol draws | Dungeon and sky symbols Guide | Documented | SIGN-0005, SIGN-0006 |
| Tile properties | Walking, projectile and occupancy tables | Procedural properties by logical tile index Guide | Documented | TILE-0001, TILE-0002, TILE-0003, TILE-0004, TILE-0005 |
| REDUX'S OWN FORMATS | ||||
| Native save files | How Redux saves | Versioned schema Document | Documented | — |
| Legacy-to-native crosswalk | Where each SAVED.GAM field goes | Field-by-field mapping Document | Documented | — |
| Save converter | Command-line import tool | Usage and options Document | Documented | — |
Not here: the game itself, or other platforms. The Amiga, Apple II, C64 and other versions use different files; this covers the MS-DOS release.
Spotted a wrong byte? Tell us, with the file and offset.