Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

File formats

Binary layouts for game assets, scripts, saved state, and bundled support resources. Integers are little-endian unless a reference states otherwise. For runtime rules, see engine behavior. Asset locations and renderer versions are listed in Asset Directories.

The project README describes CLI conversion commands and the library API.

Models and worlds

FormatExtensionContents
Model.3dStatic 3D models.
Animated Model.3dcAnimated 3D models (multi-frame).
ROB Archive.robModel archive used by worlds and dungeons.
Map Data.rgmScene sections for objects, scripts, locations, and collision data.
World Geometry.wldWorld geometry and height maps stored in four sections on a 128×128 grid.
Visibility Octree.pvoPre-computed visibility octree for level geometry culling.

Images, textures, and fonts

FormatExtensionContents
TEXBSI.###Texture container (TEXBSI.###); indexed-color images with optional palettes and animation.
Software textures.###Indexed software-renderer texture banks.
Software palette tables.###Shade and haze palette-index lookup rows.
Palette.col256-color palette files; 776 bytes (8-byte header + 256×RGB).
Font.fntBitmap glyphs with a 56-byte header and optional palette.
GXA Bitmap.gxaIndexed-color bitmap archive used for UI, loading flashes, and sky panoramas.
PCX Image.pcxEight-bit indexed PCX image with a trailing palette.
IFF Bitmap.lbmPacked PBM bitmap with ByteRun1 scanlines.
Deluxe Paint Animation.anmLPF pages containing indexed bitmap deltas.
Standalone BSI.bsiStandalone image chunks for named textures such as skies and suns.

Audio and cinematics

FormatExtensionContents
Sound Effects.sfxAll game sound effects in a single container (MAIN.SFX); 118 raw PCM clips.
Dialogue Audio.rtxDialogue text + voice clip container (ENGLISH.RTX) with chunk index footer (RNAV); 4866 entries (3933 voice clips, 933 text-only).
Smacker video.smkCompressed indexed video, palettes, audio streams, and frame metadata.

Scripts and saved state

FormatExtensionContents
SOUP386.DEF.defDefinition-file format for SOUP callable functions, references/equates, attributes, and global flags.
Save Games.sav, .tsgSave metadata, state chunks, and per-map snapshots.
Cheat States.chtCheat persistence file (REDGUARD.CHT); 256-byte raw dump of 64 u32 LE cheat state slots.
Console Preferences.cpfSaved developer-console settings.

Startup graphics

Startup presentation describes how the splash assets are displayed.

Bundled support files

These resources describe DOS hardware interfaces, setup utilities, controller presets, and development tools. Bundled support resources explains their roles alongside the game assets.

ResourceDescriptionFormat reference
.dig, .mdiExecutable Miles DOS digital audio and MIDI hardware drivers.Miles drivers
.pifWindows launch settings for DOS audio utilities.PIF
.opl, .adTwo-operator FM MIDI instrument banks.OPL and AD
.rstSectioned text editor settings and remembered file positions.RST
.swg, .swxMicrosoft SideWinder controller preferences.SideWinder
Extensionless moreHistorical model filenames and version labels.MORE