[Help] Caster of Magic
Posted: Thu Apr 22, 2021 8:19 pm
Hey all,
So for all the old Master of Magic fans, a native windows update/rebalance called Caster of Magic was just released. They'd had a DOS version before, but the windows version has some nice quality of life upgrades. More readable text, scroll wheel, etc. Some values have been updated to 4 bytes instead of 2, so your gold/mana doesn't max at 30,000 anymore.
The memory structure is quite similar to the old Master of Magic, so I've been able to get a table together with resources, spell books, retorts, etc. What I can't seem to find are the actual spells. They don't seem to be in the same memory location that they used to be in.
The way it used to work, memory wise, is that every spell in the game has a value from 00-03.
00: You can't learn this spell
01: You will eventually be able to learn this spell
02: You know the spell
03: The spell is currently on your list of what you can choose to research next
These used to be one byte values but I'm not sure if that's changed, as some other values have changed to 4 byte as well.
Any thoughts on how to find these? I thought about trying to find the value 03 that's surrounded by a bunch of 00-02s, but couldn't figure out a way to do that efficiently.
So for all the old Master of Magic fans, a native windows update/rebalance called Caster of Magic was just released. They'd had a DOS version before, but the windows version has some nice quality of life upgrades. More readable text, scroll wheel, etc. Some values have been updated to 4 bytes instead of 2, so your gold/mana doesn't max at 30,000 anymore.
The memory structure is quite similar to the old Master of Magic, so I've been able to get a table together with resources, spell books, retorts, etc. What I can't seem to find are the actual spells. They don't seem to be in the same memory location that they used to be in.
The way it used to work, memory wise, is that every spell in the game has a value from 00-03.
00: You can't learn this spell
01: You will eventually be able to learn this spell
02: You know the spell
03: The spell is currently on your list of what you can choose to research next
These used to be one byte values but I'm not sure if that's changed, as some other values have changed to 4 byte as well.
Any thoughts on how to find these? I thought about trying to find the value 03 that's surrounded by a bunch of 00-02s, but couldn't figure out a way to do that efficiently.