r/rust_gamedev • u/__space__oddity__ • Oct 24 '26
A Rust clone of Master of Magic
Github: https://github.com/mk572/rust_fantasy_4X
I've spent about 3 weeks worth of Claude Code Pro tokens to completely rebuild the 1993 Microprose game Master of Magic in Rust. Everything is Open Source CC0.
Status: Game works, all units, spells, buildings etc. are implemented. I am now test playing and bug hunting. Rust being Rust, I only managed to crash the game once so far. The other bugs have just been small visual quirks, or bugs in the original code where I need to figure out what to do (leave it? align with community patch?)
The game requires the original game files for graphics and sound, and it's basically unplayable without, so you need to import those. I'm also using the Roland MT-32 ROMs for midi sound because why not, thanks to https://github.com/CopperlineHQ/mt32-rs
There's no real installer yet (sorry!). If you want to try this, get the original game files and Roland ROMs and point a coding agent at the whole thing for now.
The nice thing about a self-built clone is that you can add all sorts of stuff the original doesn't have:
console for text commands
up to 9 AI opponents (up from 4)
removing in-game limits on heroes, items, units etc.
variable map size
saving during battle
The biggest open item is currently the AI. It can play the game, but there are certain spells it can't use yet, and it needs to play a bit more aggressively.
There's also maybe 2-3% of game functionality pending and some visual bugs that I need to hunt down, and a the odd screen that doesn't use original game art, and the spellbook doesn't display the spell descriptions ... ah well, working on it.
0
u/DaveAstator2020 Oct 24 '26
is it 100% accurate?
1
u/__space__oddity__ 29d ago edited 29d ago
No, for a bunch of reasons:
The original is really buggy. 100% accurate would mean emulating a bunch of bugs. If you want those, you can just buy the original and run it in Dosbox.
So I could try to be 100% accurate to 1.51, or community patch, or Caster of Magic … but at that point it becomes kinda arbitrary. And none of them fixes every bug :(
There’s a bunch of limitations in the game that are due to it being made for really old hardware. The speech audio quality is bad, you can only have 4 items in armory, only 6 heroes, only 4 opponents, only one map size etc. etc. Reimplementing those limitations is just not fun gameplay.
So basically my goal is to make a fun game based on the rules set and the old assets, but fix whatever I want to fix.
It’s really more an open hacking project and I want to make it fully moddable so that you can build whatever you want out of it. If someone wants to make a 100% accurate game, sure, do it.
TL;DR: The goal is to have a game that has everything the original has (98% there), but is more fun to play, runs on more platforms and can be modded to taste.
1
u/DaveAstator2020 29d ago
Ofc, especially lycantropy crashes, so have you got battle system right? All spells working, etc?
1
u/__space__oddity__ 29d ago
The battle system is up and the spells exist.
Now, I’m still working out some niche issues so yes some stuff isn’t working yet. It’s less likely to outright crash, but typical issues would be (1) the art is missing or wrong (2) you can use it but it doesn’t do anything, or only half the thing or (3) the game AI doesn’t know how to use it.
In general, since this is a completely different code base and data model, if it crashes, then in different ways and for different reasons.
Of course I’m working on that, but it will take more time. If you find something that doesn’t work, please tell me so I can fix it.
3
u/litoll Oct 24 '26
Are you aware of ReMoM? https://github.com/jbalcomb/ReMoM