Cheats In MAME ============== What Is This? ============= I know that using cheats will probably spoil a game, but I did this because there are many games that I want to see the endings of, but never will if I have to play several weeks to finish them. It is also very useful for driver writers, like me, because it allows me to see all the levels of a game without having to play them. It is very frustrating to play a game you do not really like, all night, just to pass the first level because someone tells you that there is a bug in your driver that appears on the second level. The cheat system in MAME operates much like the Pro Action Replay. You can use cheats found by others, or you can try to find new cheats yourself. The file CHEAT.DAT contains cheats that I, and others, have found. This file is in standard text format, so you can see or edit it with a standard text editor like Notepad. You might want to read the file just to have an idea of what cheats are available. That is a lot faster than trying all the games one after another. Operation ========= - Start a game in MAME, passing the "-cheat" parameter on the command line. - After the game's self test has completed (and you have started playing), press <TAB> to go to the menu. Note: it is important that you do not enable any cheats before the self tests have completed, otherwise the tests will probably fail and the game will not start. (The tests are the garbage you see when most games start up.) - Select "CHEAT" on the menu. - You should see: Load And/Or Enable A Cheat Start A New Cheat Search Continue Search Memory Watch Return To Main Menu Active Cheats: --- None --- - The first line allows you to select and enable a cheat. The other three lines are used when searching for new cheats. The "Return To Main Menu" is obvious. Below that, you have a list of the currently active cheats. The first time you bring up this menu there will be no cheats active and it will show "--- None ---" to indicate that. - Select "Load And/Or Enable A Cheat". - The upper part of the screen lists the cheats that are currently available. This is where you can select the cheat you want to enable. - The lower part is a list of the currently enabled cheats. - If nothing appears between the lines "Select a Cheat" and "Active Cheats", then no cheats are available for the current game. - To enable a cheat, select it using the arrow keys, and use <ENTER> to enable it. The name of the cheat should now appear in the "Active Cheats" list. - Pressing <ENTER> on a cheat that is already in the "Active Cheats" list will remove it from the "Active Cheats" list (disables the cheat). - <DELETE>, <F1>, <F3> and <INS> are used when you are searching for your own cheats, or editing a cheat. Note: pressing <DELETE> does not delete that cheat from the CHEAT.DAT file, it just deletes it from the list in memory. Pressing <F1> on a cheat will save it to the CHEAT.DAT file. Pressing <F1> on a cheat that is already in the file will save it again (it will be duplicated in the file). Pressing <INS> will insert an new "empty" Cheat into the Cheat List. To remove a cheat from the file, you will have to edit the CHEAT.DAT file and remove it. - Press <F10> to see a view the Help. - Press <ESC> or <TAB> three times to return to the game. - Start a game, you should see the cheat's effects. - During the game, if you have to temporarilly disable all cheats, press <F7>. (See the MAME docs, as this key might have been changed.) *NOTE*: Enabling a cheat, *even for a short time*, will disable the hi-score saving for that MAME session. If you want to reenable hi-score saving, you will have to restart MAME. The "Memory Watch" option is described below. How To Search For New Cheats ============================ What can you search for? You can search for anything that happens during a game. The idea of a cheat is to replace a value, at a specific location in memory, with a different value. (Using cheat function #0, explained later) the game will not be able to change that value while the cheat is active. So, if you know the memory location where the "lives remaining" are kept, placing a value of "3" at that location will make the game think that you always have 3 lives remaining. You now, in effect, have unlimited lives. The easiest cheats (values) to find are lives or other numbers that you can see on the screen. You can also search for values that determine how you have a certain ability, and lengthen (or shorten!) the time you have the ability. In 1942, when you perform a loop, you are invincible during the time you are in the loop. So you can search to have that invincibility during the entire game. In Pacman, you can search for a code that keeps the ghosts blue during the entire game. Here is how you start searching for cheat codes. (More later on what to do with them.) There are 5 methods available to search for cheat codes. Each of them has specific advantages, and with practice you will learn which one to use depending on what it is you are searching for. Also, from the "Start A New Cheat Search" menu, you can bring up help to detail the search methods available. Here is a description of the methods and an example of how to use them. - Method #1 is used to search for a known number and follow its value. It is good for lives or other numbers. Here are the steps to find the lives value in (Namco) Dig Dug. - Start MAME. - Start a game. - Go to the cheat menu, and select "Start A New Cheat Search". - Select "Lives or other number". - With the arrow keys, enter the number of lives you had at the bottom of the screen while in the game. (Normally 2, but that depends on the DIP Switch settings.) Then press <ENTER>. - Return to the game. - Die. - Go to the cheat menu, and select "Continue Search". - Enter the number of lives you now have left. (Normally 1.) - The program will display all the locations that match your search criteria. If you have performed the search properly,and starting with 2 lives, you should see 2 entrys: 840A = 02 840C = 02 It means that the locations $840A and $840C had the value of 2 in them when you started the search, and have the value of 1 in them now. (We will try to narrow the list down to 1 entry.) - Return to the game - Die again. - Go to the cheat menu, and select "Continue Search" again. - Enter the number of lives you have left. (Normally 0.) - The list is the same, so now we will try to find which is the good one. - Press <F2> to copy all entries into the "Loaded Cheat" list, Or press <ENTER> on each of them to add them one by one. - Press <ESC> or <TAB>. - Select "Load And/Or Enable A Cheat". - You should see your 2 entries in the upper list. - Select the first entry (840A) press <ENTER> to copy it to the "Active Cheat list". - Return to the game. - Die. Since it was your last life your game should end, but it does not end: it is a good code. (What was the other code for? Let's try it and see.) - Go to the cheat menu, and select "Load And/Or Enable A Cheat". - Press <ENTER> on the 840A entry to remove it from the "Active Cheat List". - Press <ENTER> on the 840C entry to copy it into the "Active Cheat List". - Return to the game. - Die. It does the same thing of the other cheat code. It just so happens that in this game, there are 2 locations in memory that contain the lives remaining. So either one should good. - Return to the "Load And/Or Enable A Cheat" menu - Select the 840A or 840C entry, and press <F1> to save it in the CHEAT.DAT file. It will be saved with a cheat name of "840A = 02" (or "840C = 02). - Although the cheat system can edit cheat information, I will ask you to edit the CHEAT.DAT file and give the cheat a more meaningful description. (See below "How To Use The Cheat Editor") The last line of the file should be: digdugnm:0:840A:2:0:840A = 02 (While you are there, you can change the 2, in the fourth field, to a "6" so you will see 5 or 6 lives at the bottom of the screen when you will activate this cheat.) Give the cheat a more meaningful description (30 characters max). When you are finished, the line should look something like: digdugnm:0:840A:6:0:Infinite Lives - From now on when you will start (Namco) Dig Dug you will have "Infinite Lives" in the list of cheats available for that game. Note: With lives remaining, you can have 3 values: the number of lives displayed or the number displayed + 1 which is the real number of lives you have, or possibly the number of lives displayed - 1! Because of that, the method #1 will search for the number you enter and the number - 1. - Method #2 looks for locations that have changed by a specific value since the last time you checked. This method is good for timers, lives, energy, money, and level searches. Note th...
majeron