Editing Cheats and patches

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
{{stub}}
+
==Playstation==
Cheats are when you modify variables from the RAM so that the game becomes playable beyond it's official functionality. Patches are cheats which act like executable code to achieve the same goal and are more prevalent on systems like the GC/Wii/PS3/PSP/3DS.
 
 
 
There are either common cheat codes by manufacturers of unlicensed devices plugged to real consoles to do the RAM manipulation, including the Game
 
Genie, GameShark, Code Breaker, and Action Replay. Some homebrew mods offer cheats and tools to make them, like CWCheats on the PSP. These cheats are also supported by many emulators. Emulators offer the possibility to have another type of cheat codes directly modifying one specific RAM address, and tools to find these wanted RAM addresses and create cheats for them.
 
 
 
Some cheat formats (notable are the DS ones) are so advanced they offer the possibility to hook new programming on the game.
 
 
 
Sometimes cheats are also needed to circumvent anti-piracy protection, bugs or emulator crashes. Cheats alter games only temporarily. If you want permanent alterations, you may want to alter the ROM image itself. See modding articles.
 
 
 
== Retroarch ==
 
 
 
 
 
=== Using existing cheat tables ===
 
 
 
RetroArch uses two methods of applying cheat codes:
 
 
 
# Emulator Handled are codes that are sent to the emulator/core and it is up to the emulator/core to apply them.
 
# RetroArch Handled are codes that RetroArch itself handles by directly scanning/manipulating the emulator/core memory area.
 
 
 
The cheat tables from the builtin downloader are tagged in the filename with "(RetroArch Cheats)" for 2., and "(GameShark/Xplorer/etc.)" for 1.
 
 
 
Pre-32bit system cores usually support both methods, while most post-32bit (e.g. PS1, N64, Saturn, Dreamcast) only support RetroArch Handled cheat codes.
 
 
 
For these cores the cheat tables need some manual conversion, see [https://github.com/libretro/libretro-database/issues/1360 this issue].
 
 
 
=== Searching for new codes ===
 
 
 
[https://docs.libretro.com/guides/cheat-codes/#retroarch-new-cheat-code-searching guide here]
 
 
 
(This will produce cheat tables that are Retroarch-handled and will work with all the cores)
 
 
 
== Duckstation ==
 
Duckstation has a built cheat manager and cheat database (chtdb.txt) and supports custom cheats being loaded from a text file. to load custom cheats follow these steps: <br>
 
1. click tools -> cheat manager <br>
 
2. import file -> from file <br>
 
3. select the cheats to be enabled.<br>
 
the [https://github.com/stenzek/duckstation Duckstation] GitHub repository should have the latest cheat codes in the file data/resources/chtdb.txt <br>
 
 
 
== Mednafen ==
 
 
 
Mednafen supports the usual cheats such as GameShark, Code Breaker, and Action Replay. The cheats menu can be accessed (or quit back to normal gameplay) with '''ALT+C'''.
 
 
 
The cheat engine interface is command-based but still easy to use. Each time a menu appears, you have a bunch of options with a number (or key) before each choice. You're supposed to write the number (# just means to choose the number for the line you want) or letter standing for your choice. Occasionally, when asked to input some values or names, a value appears between brackets after the question - if that's what you want to write down, you can simply leave the entry field empty and press Enter.
 
 
 
To add an existing GS/AR/PAR/CB cheat code, use "Gameshark Codes". Else, if you have a memory address and a given value for it, choose "Search Code" then "Add Code", then put in the address (as $XXXXXXXX), the byte range depending on the values your variable can take (1 is 0-255, 2 is 0-65535, etc), and the numeric value proper (in decimal, or hexadecimal if followed by a lower-case h). Various cheat types exist too (S(substitute on read), C(substitute on read with compare) or R(replace value before vblank) -- R being the default recommended option).
 
 
 
Searching for new cheat codes is also possible. The general idea being comparing variables, going back to gameplay so that this variable changes then back to the cheat engine searching for any variables that changed in that particular way. For example:
 
* '''Infinite Health / Ammo / Time / Money:''' you start with 5 hearts, reset search (in the cheat engine, not reset the game you silly!), you get hurt to 4 hearts, search variables that decreased, get healed back to 5 hearts, search variables that increased, and so on. For money, you can start with 0 when you have 0 gold and try earning/spending money. You could try using save states as well when you don't have as much freedom changing the value.
 
* '''Infinite Lives:''' It's game over when the internal variable for "Lives" is 0. So in some cases, when it shows "REST/LEFT=1" in-game and you lose a life then it becomes 0 but you're still allowed to play on your last life, that means the internal counter for lives has actually changed from 2 to 1 and not from 1 to 0, but in other games (where if you die on "LIVESx1" it's game over) it's not the case. In the case of lives, you actually know the exact value: reset search initially, then (if you have 2 lives on a game that allows you to play on "LEFT=0") search for variables with values equal to 3. Lose a life, search for variables equal to 2, and so on.
 
* '''Character Modifier / Level Modifier / Having an Item:''' reset search, play without changing whatever you're searching for (let's say the stage), do lots of searches for new value equals old value. In-game, change it, then do a new value doesn't equal old value. And so on.
 
* '''Walk Though Walls / Invincibility / In-game Cheats & Features :''' you need to find the value that tells the character if he can move or not (he can't really move when walking against a wall) / if he's blinking or being invincible right now after getting hurt. Same methods as before, but there are hints that could be useful here -- both states could be 0/1, or something else... for example, one could assume 0 is not enabled and 1 is enabled.
 
* '''Debug Modes:''' stuff that stays 0 no matter what, extra off-screen inaccessible options in menus, extra dialogue... you name it. Have fun experimenting.
 
 
 
The goal of these searches is to narrow down the list of results to a single or handful of addresses (variables) pertinent directly to whatever we're searching for. The search always starts with "Reset Search", going back in-game (Alt+C) to play and change stuff, then back to the cheat engine to compare the "Original" value with the "Current" value. Then you check the results page which must get smaller and smaller (if it's 0 results, you screwed up and need to reset search to try again). The comparing options offered by Mednafen are as follow, with O being the Original value, and C being the Current value (when you reset a search, they're the same):
 
 
 
* '''1) O==V1 && C==V2 :''' if you know the explicit numerical values for the variable you write it here. The first time, just write the same value in both. Subsequent times, leave O blank and press Enter so that you don't write the old value again, and write the current value under C.
 
* ''' 2) O==V1 && |O-C|==V2 :''' same, but instead of writing the current value you write by how much it changed (0 if old value equals new value)
 
* '''3) |O-C|==V2 :''' you write by how much it changed (0 if old value equals new value)
 
* '''4) O!=C :''' if old value doesn't equal new value
 
* '''5) Value decreased :''' if new value smaller than old value
 
* '''6) Value increased :''' if new value bigger than old value
 
 
 
== PCSX-R ==
 
 
PCSX-R has a built-in cheat function. To use it, follow these steps:
 
PCSX-R has a built-in cheat function. To use it, follow these steps:
  
Line 82: Line 19:
  
 
9. Click Close, and get back to the game by going to Emulator -> Run
 
9. Click Close, and get back to the game by going to Emulator -> Run
 
+
==PlayStation 2==
Pre-made patches for games may be found [https://psxdatacenter.com/down.html here].
 
 
 
 
 
== PCSX2 ==
 
 
 
 
Tutorials on how to apply patches and cheats can be found [http://forums.pcsx2.net/Thread-redlof-s-Guide-to-Convert-Codetwink-Cheats-to-PNACH-Files-for-newbs here.]
 
Tutorials on how to apply patches and cheats can be found [http://forums.pcsx2.net/Thread-redlof-s-Guide-to-Convert-Codetwink-Cheats-to-PNACH-Files-for-newbs here.]
  
 
Resources for cheats: [http://www.codetwink.com/ CodeTwink]
 
Resources for cheats: [http://www.codetwink.com/ CodeTwink]
  
Patches for games may be found [http://forums.pcsx2.net/Thread-Post-your-PCSX2-cheats-patches-here here] and [https://psxdatacenter.com/psx2/down2.html here]
+
Patches for games may be found [http://forums.pcsx2.net/Thread-Post-your-PCSX2-cheats-patches-here here.]
  
 
[http://forums.pcsx2.net/attachment.php?aid=30208 CB2crypt]
 
[http://forums.pcsx2.net/attachment.php?aid=30208 CB2crypt]
Line 98: Line 30:
 
The CRC code for a PS2 game is found in the PCSX2 console.
 
The CRC code for a PS2 game is found in the PCSX2 console.
  
 +
==Patches==
  
== DeSmuME ==
+
'''Kingdom Hearts' 60 FPS patches'''
 
 
DeSmuME has a built-in cheat function. To use it, follow these steps:
 
 
 
1. Download the [https://gbatemp.net/threads/deadskullzjrs-nds-cheat-databases.488711/ latest cheat pack from here] and extract "cheat.dat" or "usrcheat.dat" in some folder.
 
 
 
2. start the emulator and open Config -> Path settings
 
 
 
3. Enter the path where you extracted "cheat.dat" or "usrcheat.dat",  click the correct radio button and press OK
 
 
 
4. Load any game
 
  
5. open Tools -> Cheats -> List
+
// 60 FPS Kingdom Hearts 2 Final Mix
 +
patch=1,EE,00349E1C,extended,00000000
  
6. click "Cheats base"
+
// 60 FPS Kingdom Hearts 1 NTSC U/C
 +
patch=1,EE,002B624C,extended,00000000
  
7. select the codes you want to use
+
// 60 FPS Kingdom Hearts 1 Final Mix
 +
patch=1,EE,002BBE0C,extended,00000000
  
== PPSSPP ==
+
// 60 FPS Kingdom Hearts 2 NTSC U/C
 +
patch=1,EE,00356F4C,extended,00000000
  
# Download the [https://github.com/Saramagrean/CWCheat-Database-Plus- latest cheat pack from here] and extract "cheat.db" in `<emu user dir>/PSP/Cheats` folder.
+
// 60 FPS Kingdom Hearts 1 PAL
# Launch the emulator, select Settings -> System, activate "Enable Cheats"
+
patch=1,EE,002B67CC,extended,00000000
# Load a supported game
 
# Open the emulator menu, select "Cheats" and "Import from cheat.db"
 
  
 +
// 60 FPS Kingdom Hearts Re: Chain of Memories NTSC U/C
 +
patch=1,EE,004386B0,extended,00000000
  
==External links==
+
// 60 FPS Kingdom Hearts Re: Chain of Memories JP
 +
patch=1,EE,0043C930,extended,00000000
  
* [https://gamehacking.org/ GameHacking.org] Offers a great collection of user submitted codes for many systems, complete with a search engine, code downloader and converter.
 
  
 +
BONUS Birth By Sleep (Normal and Final Mix)
  
 +
_C1 Force 60 FPS Mode
 +
_L 0x21725EC8 0x00000000
 
[[Category:FAQs]]
 
[[Category:FAQs]]
 +
{{stub}}

Please note that all contributions to Emulation General Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Emulation General Wiki:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)

Template used on this page: