Skip to content
Vairn edited this page Jun 2, 2026 · 12 revisions
Spellbook icon (book.32 frame 0)

Might & Magic II

Amiga reverse-engineering wiki

Data formats · 68k runtime · combat · events · graphics · MM2ED


GitHub Map Walker


Start Here Overview Data Formats Gallery MM2ED

How it all fits together

flowchart LR
  map["map.dat<br/>geometry"] --> r3d["3D view 0x2ECE"]
  attrib["attrib.dat<br/>environment"] -- tileset --> r3d
  map -- bit 0x80 --> event["event.dat<br/>scripts"]
  event --> vm["script VM 0x172CA"]
  vm -- OP_12 --> combat["combat 0x12A22"]
  combat --> monsters["monsters.dat"]
  roster["roster.dat<br/>party"] -- equips --> items["items.dat"]
  items -- use byte --> spells["spells.dat"]
Loading
Getting Started walks each of these paths.

📦 Data formats

ASM-confirmed .dat layouts with round-trip Python & C codecs.

→ Format inventory

⚔️ Game systems

68000 traces for combat, world simulation, and scripts.

→ Full analysis

🐉 Sprite gallery

Decoded .32 tilesets and .anm combat animations from original assets.

→ Gallery home

🛠️ Tools & code

Decoders, disassembly helpers, and the ImGui data editor.

→ Open questions


By the numbers

256

items

256

monsters

96

spells

60

map screens

71

event locations

Tip

New here? Start with Getting StartedOverviewformat inventory. Editing data files? Jump to MM2ED Editor. Tracing combat or scripts? Combat Overview · Combat System · Event Script Opcodes. Audio? Audio Sounds Music.

Important

Endianness — MM2 .dat multibyte fields are little-endian on disk (matching our codecs and Blitz3D editors). The 68000 runtime may byte-swap after load — trace ASM before assuming otherwise.

📑 All quick links
If you want to… Start here
Understand the project Getting StartedOverviewdat Files and Formats
Edit .dat files MM2ED Editor + sidebar Data formats
Trace combat or scripts Combat Overview · Combat System · Event Script Opcodes
Town shops & services Town Services · Spell Sources · Event to String Path
Audio / walk beep / SFX Audio Sounds Music
Exe-embedded UI strings Embedded Exe Strings
MM1 map cross-walk MM1 MAZEDATA · MM1 outdoor
Browse decoded art Gallery
See what's still unknown Open Questions
Boot & memory map Startup and Init · Runtime Memory Map
RE tooling RE Tools

Synced from Vairn/MM2 · python wiki/scripts/export-github-wiki.py

🏠 Home


Getting started

Runtime & engine

Graphics

UI

Data formats (.dat)

Combat

Audio

Game systems

Might and Magic I (DOS)

Gallery

Tools

Clone this wiki locally