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

Every file

FileHoldsFormat in briefStatusRules
GRAPHICS
TILES.16 (TILES.4 on CGA)The 512 map tilesLZW wrapper; one 128-byte, 16 × 16, 4-bit record per tile GuidePartlyGFX-0001, GFX-0008
MON0–7.16, ITEMS.16Dungeon monsters and itemsLZW; image and 1-bit mask records in pairs GuidePartlyGFX-0003
DNG1–3.16Dungeon wall panelsLZW; 28 slots, two empty GuideDocumentedGFX-0002
CREATE, TEXT, STORY1–6, END1–2, ULTIMA, STARTSC, ENDSC .16Pictures for creation, the story, the title and the endingLZW; count, offsets, then 4-bit records GuideDocumentedGFX-0002
TITLE.BIT, BRITISH.BIT, WD.BITOne-colour title art1-bit archives; WD.BIT is not compressed GuideDocumentedGFX-0004
PROPORT.PCSProportional font91 glyphs, 12-byte records GuideDocumentedGFX-0004
IBM.CH, RUNES.CH (.HCS)Fixed fonts, 128 glyphsStored directly; 8 × 8, a byte per row GuidePartlyGFX-0005, SIGN-0001
BRITISH.PTHLord British's signaturePen-movement command bytes GuideDocumentedGFX-0007
EGA.DRVDisplay driver and colour tablesOnly the tile-colour boundary is described GuideNot yetGFX-0006
MAPS
BRIT.DAT, UNDER.DATBritannia and the Underworld256 × 256 grids in 16 × 16 chunks; BRIT.DAT omits all-water chunks GuideDocumentedMAP-0001
TOWNE, CASTLE, KEEP, DWELLING .DATEvery settlement, floor by floor16 floors of 32 × 32 tiles per file; location numbers and entrances GuideDocumentedMAP-0002, MAP-0003, MAP-0004
DUNGEON.DATEight dungeons, eight levels each8 × 8 cells of packed familiesDocumentedDNG-0001, DNG-0002
BRIT.CBT, DUNGEON.CBTCombat maps and dungeon rooms11 × 11 plus formation and trigger data GuidePartlyCBT-0001, CBT-0002, CBT-0003, CBT-0004, DNG-0011, DNG-0012, DNG-0013, DNG-0014
MISCMAPS.DATCutscene and intro maps, intro scriptFour 176-byte scenes, then the intro script GuideDocumentedMAP-0005, INTRO-0004
TEXT AND PEOPLE
TOWNE, CASTLE, KEEP, DWELLING .TLKConversationsRecords, dictionary, control codes GuidePartlyTALK-0001, TALK-0002, TALK-0003, TALK-0004, TALK-0005, TALK-0006
TOWNE, CASTLE, KEEP, DWELLING .NPCSchedules, types, talk numbersThree places and four times per personDocumentedNPC-0001, TALK-0001
SIGNS.DATSigns and inscriptionsGrouped by location; two character sets GuideDocumentedSIGN-0001, SIGN-0002
LOOK2.DATLook descriptions for every tile512 offsets, then zero-terminated strings GuideDocumentedTEXT-0001
SHOPPE.DATMerchant phrasesZero-terminated strings, word bytes and fill-in codes GuideDocumentedTEXT-0002
KARMA.DAT, STORY.DAT, QUESTION.DATKarma reports, introduction, creation questionsWhere each text starts; text not reproducedDocumentedKARMA-0017, INTRO-0003
END.DATThe endingSix zero-terminated blocks at fixed offsets GuideDocumentedTEXT-0003
CODE AND TABLES
DATA.OVLNames, prices, stats and lookup tables48,464 bytes; an index of identified regions, each defined by its topic GuidePartlyOVL-0001, OVL-0002
SAVES
SAVED.GAM, INIT.GAMYour save, and a new game's template4,192 bytes, fully allocated GuidePartlySAVE-0001, SAVE-0002, SAVE-0003, SAVE-0004, SAVE-0005, SAVE-0007
SAVED.OOL, BRIT.OOL, UNDER.OOLObjects in both worlds256-byte object lists, one per world GuideDocumentedSAVE-0006
REFERENCE TABLES
Location numbers0 for Britannia, up to 40 for DoomUsed by saves, signs and people GuideDocumentedMAP-0003
Item numbersInventory order, also used by talk giftsOne tableDocumentedSAVE-0003, EQUIP-0001
Glyph tablesWhat each rune and symbol drawsDungeon and sky symbols GuideDocumentedSIGN-0005, SIGN-0006
Tile propertiesWalking, projectile and occupancy tablesProcedural properties by logical tile index GuideDocumentedTILE-0001, TILE-0002, TILE-0003, TILE-0004, TILE-0005
REDUX'S OWN FORMATS
Native save filesHow Redux savesVersioned schema DocumentDocumented—
Legacy-to-native crosswalkWhere each SAVED.GAM field goesField-by-field mapping DocumentDocumented—
Save converterCommand-line import toolUsage and options DocumentDocumented—

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.