Skip to content

War in Middle Earth

A human-readable guide to the internal data formats of War in Middle Earth (1988, Melbourne House / Virgin) — a real-time strategy/adventure hybrid set in Tolkien’s Middle-earth, played across a scrolling strategic map, a zoomed-in animated landscape view, and per-hero character screens, while the Fellowship carries the Ring toward Mount Doom.

War in Middle Earth title screen

The Amiga release is the reference platform here: 197 resources across 6 Mac-style resource-fork .res files, plus a 68000 executable whose DATA hunk carries the entity, item, location and movement tables the game is actually played on. Three other releases are extracted and cross-checked against it — DOS VGA, DOS EGA (shipped as Lord of Middle Earth), and Apple IIGS.

Area Status
Resource forks (6 .res files) 197 resources catalogued — IMAG, CSTR, FRML, MMAP, CHAR
IMAG (still images) 115/115 decode, including the 2 uncompressed variants — PackBits over interleaved Amiga bitplanes
CHAR (terrain tileset) 320 tiles of 16×16 at 4 bitplanes, with a 15-entry OCS palette in its own 32-byte header — not character data, despite the name
MMAP (strategic map) One resource, PackBits-compressed to a 16,256-byte terrain grid at one byte per tile — see The Map
FRML (animation sheets) 19 resources — 5 battle sprites in AAnims.res, 14 scene animations in BScene.res. Frame segmentation comes from decoding the game’s own animation VM: 253/256 landmark checks pass across 15 of 16 races, with the Balrog the one documented exception — see Characters & Mobs
CSTR (text) 61 strings across AText.res and BScene.res
Entity table 196 records at a 38-byte stride, every byte mapped — 42 heroes, 126 armies, 28 creatures — see Characters, Armies & Creatures
Item system 17 items, each one bit of a 16-bit per-entity inventory mask, with their own BScene.res icon art — see Items
Location & movement tables 70 waypoint entries at DATA+0x3E76; speed is 12 class weights (DATA+0x41C4) times a 256-entry terrain score (DATA+0x4242), not the “13 tables × 16” at DATA+0x4270 once described here, which are slices of that score table. See Movement & Time
Scene rendering (BScene.res) DisplayScene traced end to end: 81 background IMAG strips, an 18-entry scene-descriptor table, and SynthSceneObjects reimplemented across all 31 handled terrain values. The symbolic-executor check (276 paths, 0 mismatches) missed two details that running the real routine found (stale flags on terrains 93 and 188, an extra object for overlay selectors 0xA0/0xE0); now 0 of 9,174 under the harness. See Scene Viewer Gallery
Palettes 4 verified tables (strategic map, map variant, 32-colour scene, title); scene indices 2–3 confirmed as the dynamic water-shimmer slots
Save format (ARCHIVE.DAT) An 8,330-byte raw DATA-hunk dump: 196 entity records, 16 party slots, 10 army/commander slots, 40 route paths, 50 bytes of state flags
Sound & music 22 SMUS scores, 32 .instr instruments in three variants, 4 .ss multi-octave samples — played back live through a Web Audio SMUS renderer
Game logic Movement, the clock and calendar, encounters, combat, the Ring, the day panel, item use and the endings all run on the original 68000 code under a CPU harness and agree with this project’s rules on every vector, each with a null control. See How We Verified the Rules
End conditions Exactly 4 trigger sites, each proven via the CSTR resource it fetches and verified on the real code; named-character deaths confirmed absent as an ending. See Combat & Events
DOS VGA port Item, location and item-placement tables byte-exact against the Amiga; entity table 196/196 at a uniform 37-byte stride (the “166/196 with 30 non-standard records” once shown here was superseded). The 382-byte movement, calendar and terrain block is byte-identical to the Amiga’s and its x86 consumers are traced; the map (PAMM) equals the Amiga MMAP. The hobbit and campfire animations, once listed as undecodable, were a parser byte-swap bug and now build. See Movement & Time § “DOS VGA and DOS EGA run the same rules”
DOS EGA port 110/110 GAMI and 19/19 LMRF decode; in-game palette confirmed as standard CGA/EGA 16 with register 13 forced to black. Same movement block and map as DOS VGA; its tables sit 0x1DCC bytes later, and 35 scripted-march slots differ from the Amiga’s
Apple IIGS port 82 GAMI and 20 LMRF build clean; SONGS.RES is not a resource fork and stays undecoded, as do the PAMM/TNOF/RAHC payloads

Open questions are tracked on the Status & Open Work page.

  • Items: all 17 items, their effects, and the property table behind them.
  • Characters, Armies & Creatures: the 196-entry entity table and what each record actually tracks.
  • Combat & Events: meetings, the battle round, the campaign events and the four endings.
  • Movement & Time: the clock and calendar, the verified movement turn, and the DOS ports’ identical rules.
  • How We Verified the Rules: the 68000 harness, its null controls, and the per-routine results table.
  • The Map: the strategic map of Middle-earth, rendered from its own MMAP/CHAR resources.
  • Icon Gallery: the strategic-map unit icons.
  • Characters & Mobs: every character and troop type, recoloured and animated in its real colours.
  • Scene Viewer Gallery: named locations composited the way the game’s own DisplayScene builds them.
  • Buildings & Scenery: the scene object art placed on top of those landscapes.

These pages are a curated summary. The exhaustive, byte-level research notes live in the main repository (not part of this site) — and when a page here disagrees with them, the raw notes win:

  • docs/wime/plan.md: the format-by-format status table.
  • docs/wime/amiga/: the byte-level specs: mmap-format.md, char-format.md, bscene-format.md, exe-gameplay-data.md, game-logic.md, event-system.md, movement-system.md, timer-system.md, save-format.md, palettes.md, and logic-harness.md for the harness and every verified routine.
  • docs/wime/dosvga/exe-gameplay-data.md: the DOS tables and the x86 consumers of the movement block.
  • docs/formats/: the container and media formats this game shares with the other four: resource forks, IMAG, FRML, SMUS and SampledSound.
  • docs/wime/TODO.md: the single status surface for open work.