MDHack
Contents
Introduction
The Alt Cheats are a debugging tool used in the Ultima 6 engine (i.e. they exist in Ultima 6, The Savage Empire and Martian Dreams). In Ultima 6 they were left in the game, so they became a popular cheat. However, they were disabled in the Worlds of Ultima Series.
F-15 Dragon later wrote a program called MDHack to enable the Alt Cheats in Martian Dreams. It also works for The Savage Empire. MDHack can be downloaded from:
- Here at Dino's Ultima Page.
- Here at the Ultima Web Archive's FTP archive.
What MDHack Does
There's a specific bit in the SAVEGAME\OBJLIST file that toggles cheating. It's the second bit from the left (i.e. 0100 0000 in binary) of byte 18f2 (hex), so if you open the file in a hex editor, look for the row starting at 18f0 (hex), and from there it's the second bit of the third byte (see screenshot above).
What MDHack does is set the entire byte to 40 (hex, 0100 0000 in binary), enabling the specific bit in question but turning off all the rest. In order to preserve the value of that byte (e.g. 03 hex, or 0000 0011 binary, in the screenshot above), you should instead take that value and OR it with 40 hex (e.g. 03 hex OR 40 hex = 43 hex).
Known Alt Cheats
You can activate a cheat by pressing Alt and typing the 3 numbers corresponding to that cheat, on the keypad. You need MDHack to be able to use them. The following links tell you which cheats exist:
- "Savage Empire and Martian Dreams cheats", a post to rec.games.misc by Arthur Johnson on 11th June 1991 - describes 10 cheats.
- The Other Codex's Savage Empire cheats page and Savage Empire cheats [TXT] file - describe 9 cheats.
The following are the debugging commands (cheats) you can use.
- Alt+213 - gives you a bird's eye view as well as your coordinates and the current time.
- Alt+214 - teleports to the location you specify with (x,y,z) coordinates.
- Alt+215 - passes an hour.
- Alt+222 - toggles Avatar solidity, allowing you to walk through obstacles (e.g. trees).
- Alt+224 - teleports to a specific NPC (specified by NPC number).
- Alt+232 - views portrait of a specific NPC (specified by NPC number).
- Alt+233 - plays sound effects (specified by a 2-digit number).
- Alt+242 - toggles specific bits/flags for an NPC.
- Alt+244 - toggles introspection mode (which does what...?).
- Alt+252 - displays memory free for tiles.
Ignore the Alt codes listed in the MDHack documentation, as many of them are either wrong or simply don't work.
I have also investigated the nature of these Alt codes and wrote a text file about Alt codes [TXT] which describes what Alt codes really are, and lists all the existing ones.
Character List
Character lists can be found:
- At "Savage Empire and Martian Dreams cheats" (important characters only).
- At the Other Codex's Savage Empire cheats page (important characters only).
- At Paulon Dragon's Savage Empire cheats [TXT] file (important characters only).
- Here [TXT] at Dino's Ultima Page (complete list)
Item Creation
Talk to Triolo and say "cheat". This will allow you to generate specific quest items, any other item, and edit flags. For a list of items, see the following links (in descending order of completeness):
- Object numbers [TXT] at the Nuvie GitHub repo.
- Savage Empire Create Item list at The Codex of Ultima Wisdom
- Paulon Dragon's Cheat Options for Worlds of Ultima I, called The Savage Empire [TXT] at UltimaInfo.Net
