Case study
mgcarpet: reconstructing the Magic Carpet games with turn comparisons
mgcarpet rebuilds Magic Carpet, Hidden Worlds and Magic Carpet 2 in a Rust engine that imports data from the user's game copies. Its simulation is compared turn by turn with state and input recorded from retail executables in instrumented DOSBox; the author reports matching certified recordings while tracking exceptions. Rendering and audio are rewritten separately, with deliberate differences documented.
- Targets
- Game
- Category
- Independent reconstruction cases
- Relationship
- Independent reconstruction project
- Sources reviewed
- Evidence class
- C1 partial scope or analysis entry
- Stars
- 17
- Last commit
- 2026-10-18
- Language
- Rust
- License (GitHub)
- GPL-3.0
GitHub data as of 2026-11-10
Evidence

- Observed
- Download and demo observed; the case covers part of the target software.
- Scope
- Partial
- Checked
- 2026-11-09
Requirements & limits
- Prerequisites: Original game data from a legally owned copy.
- Prerequisites: Rust 1.85 or newer; Linux builds need ALSA headers.
- Testing evidence: The author reports exact simulation replay only across certified recordings; rendering and audio are excluded from exact comparison.
- License: GPL-3.0-or-later licence.
Cite
BibTeX
@misc{mgcarpet-case,
title = {{mgcarpet: reconstructing the Magic Carpet games with turn comparisons}},
howpublished = {\url{https://github.com/raincz/mgcarpet}},
url = {https://github.com/raincz/mgcarpet},
urldate = {2026-11-06},
note = {Awesome REA entry: \url{https://awesomerea.org/resources/mgcarpet-case/}}
}Plain text
mgcarpet: reconstructing the Magic Carpet games with turn comparisons. https://github.com/raincz/mgcarpet (accessed 2026-11-06). Awesome REA entry: https://awesomerea.org/resources/mgcarpet-case/
Useful? Star Awesome REA on GitHub2.4k
About this entry
The description was reviewed against primary sources.
Primary sources
- README.md GitHub · raincz/mgcarpet · Revision 9a82c64
- docs/CONFORMANCE-REPORT.md GitHub · raincz/mgcarpet · Revision 9a82c64
More in Games
- MHLIB: reimplementing engines for Moorhuhn games · Case study
- mkxp: reimplementing RPG Maker's RGSS runtime · Case study
- mortar-eng: LSW game scene and character reconstruction · Case study
- My biggest work: reconstructing Brawlhalla replay simulation · Case study
- My Simulation: reimplementing The Sims Online client · Case study
- Nanolathe: a documented Total Annihilation engine reimplementation · Case study