Reverse-engineering notes on Corridor 7: Alien Invasion (Capstone Software / IntraCorp, 1994) — the DOS shooter Capstone built on a licensed Wolfenstein 3-D engine, and the one that ships its levels in TED5's development format.
This repository documents the retail DOS release: the eleven *.CO7 data
files and the four executables that install alongside them. The later
Steam/GOG re-release is out of scope.
Documentation only. No game assets, no extracted art, no executable code is
committed here. The tools in tools/ reproduce every figure, table
and image from your own legally obtained copy.
| Doc | Contents |
|---|---|
| 00-overview.md | Release, licence, file inventory, build chain, provenance |
| 01-executables.md | The four binaries, the tables linked into C7.EXE, the command line, the cheat strings |
| 02-page-file.md | GFXTILES.CO7: 136 wall textures, 598 compiled sprites, and the eight-texture door kit |
| 03-vgagraph.md | VGAHEAD/VGADICT/VGAGRAPH: the Huffman archive, the pic table, Mode-X munging, two text-mode pages |
| 04-maps.md | MAPTEMP.CO7 in TED5v1.0 format, the tile vocabulary, and the credits corridor |
| 05-audio.md | 83 sounds in three renderings, 34 IMF songs with their MUSE tags, and the second page file |
| 06-end-sequence.md | SEQTWO.CO7 is a plain .FLC; AUDIOSEQ.CO7 and EXPUNGE.EXE |
| 07-config-and-saves.md | CONFIG.DAT, SAVEGAM?.CO7, AUTOSAVE.DAT, EZI.HST |
| 08-vs-wolfenstein.md | What came across unchanged, what was extended, what was replaced |
| 09-easter-eggs-and-leftovers.md | The Star Trek wall, the credits corridor, the hint-book screen, BJOBJ, SOUNDS.CO7, BLORCH |
| 11-palettes.md | The three VGA palettes in C7.EXE, how the game palette is built, and the one picture with a palette of its own |
| 10-open-questions.md | Everything unresolved, with the measurements behind it |
| notes/music-timeline.md | All 34 tracks, dated from their MUSE tags |
| notes/level-inventory.md | All 36 levels, per-plane sizes and tile counts |
It really is Wolfenstein 3-D underneath, and the game says so. The
copyright screen credits "Portions of the program (c) 1994 Id Software", and
id's RLEW, Huffman, page-file, compiled-shape, MUSE and TED5 formats all read
without modification. What Capstone changed is the top half: 256-colour art
throughout, a second page file for digitised sound, a wider tile space, and a
pre-rendered .FLC ending.
The shipped maps are the editor's work file. MAPTEMP.CO7 opens with
TED5v1.0 and its planes are RLEW-compressed and nothing else — no Carmack
layer, no GAMEMAPS. The 100-entry map directory is linked into C7.EXE at
0x24BF0, which is why no MAPHEAD.CO7 ships. One level, number 27, sits at
the very end of the file, after the secret levels: the one TED5 had to
re-append.
The soundtrack can be dated to the day. Every music chunk keeps an 88-byte
MUSE tag with its source file name and a packed MS-DOS date/time. The 34
tracks run from TESTB.IMF on 12 January 1994 to L3LOOP.IMF on 25 March
1994 — the same day the data files were built. Working titles and all:
BTMLIK, SLAY1, COORSLOW, TGRUV, and a LEVEL1/2/3/5 with no
LEVEL4.
The credits are a corridor. Thirteen of the 598 sprites are the credit
roll drawn as artwork, and ten of them are placed as static objects along the
western corridor of level 1 — at x = 2, every three tiles, from y = 2 to
y = 29. The player spawns facing the other way.
A Star Trek dedication wall. Four wall textures near the end of the set
are display plaques: WHERE NO ONE HAS GONE BEFORE, NCC-1701D, the United
Federation of Planets emblem, and the blank plaque the other three were drawn
over. Nine tiles on level 2 use them, and nowhere else in the game.
Three palettes, and none of them a tint. C7.EXE holds exactly three
768-byte VGA palettes. The game one — 768 bytes at 0x23E70, located by the
grey ramp that lands on palette index 32 — is a designed artist's palette:
16 fixed colours, then nine 24-step hue ramps, then 24 HUD colours. The
second keeps that skeleton and collapses all nine ramps to one red ramp, and
it is demonstrably authored rather than generated: 123 of its entries have
less red than the game palette, which no shift toward red can produce. The
third fits exactly one asset in the whole game.
Pure Python 3. pillow and numpy are needed only for the rendering paths.
tools/c7lib.py Game paths, RLEW, Huffman, Mode-X unmunge, palette, DOS dates
tools/c7pages.py GFXTILES.CO7 walls and compiled sprites
tools/c7gfx.py VGAGRAPH pictures, fonts and text pages
tools/c7maps.py MAPTEMP.CO7 levels, census and texture-accurate plans
tools/c7audio.py AUDIOT chunks, IMF songs and tags, AUDIOMUS digitised bank
tools/c7flic.py SEQTWO.CO7 FLIC decoder and AUDIOSEQ.CO7
tools/c7cfg.py CONFIG.DAT and the save files
tools/c7export.py one shot: everything above into one directory
python tools/c7export.py "<install>" ./outor piecemeal:
python tools/c7pages.py "<install>" walls ./walls
python tools/c7gfx.py "<install>" text
python tools/c7maps.py "<install>" dump 0
python tools/c7audio.py "<install>" timeline
python tools/c7flic.py "<install>" info
python tools/c7cfg.py "<install>" verify "<install>/AUTOSAVE.DAT" 1<install> is the directory holding C7.EXE and the *.CO7 files.
First pass. Chapter 10 lists what is still open — chiefly the exact door
code-to-texture binding, the meaning of the plane-1 wall flags 99–107, the
orphaned GFXINFOV.CO7, and the BLORCH and SEQONE ghosts. Nothing in the
other chapters depends on those answers.