HerrHulaHoop (talk | contribs) (Added template syntax to main sheet) |
m (→Template syntax: Remove whitespace) |
||
(7 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
This page aims to provide all information relating to RPCS3's patch system. | This page aims to provide all information relating to RPCS3's patch system. | ||
* | * The [[/Main|Main subpage]] lists the current PPU patches available for RPCS3's game patching system. | ||
* | * The [[/SPU|SPU subpage]] lists the general-use SPU patches available for RPCS3's game patching system. | ||
* | * The [[/Canary|Canary subpage]] lists patches that are severely buggy, in-development, or circumvent emulation bugs. These patches are not shipped with RPCS3's patch download functionality. | ||
==Using game patches== | ==Using game patches== | ||
The simplest way to | The simplest way to enable patches in RPCS3 is as follows: | ||
# Boot RPCS3 | # Boot RPCS3 | ||
# Select <code>Manage > Game Patches</code> to access the Patch Manager. | # Select <code>Manage > Game Patches</code> to access the Patch Manager. | ||
Line 19: | Line 19: | ||
# Click '''Save''' and name the file '''imported_patch.yml'''. Do NOT change the capitalization or use any other name, RPCS3 will not be able to apply the patches. On Windows, select ''All files (*.*)'' as the file type when saving. | # Click '''Save''' and name the file '''imported_patch.yml'''. Do NOT change the capitalization or use any other name, RPCS3 will not be able to apply the patches. On Windows, select ''All files (*.*)'' as the file type when saving. | ||
# Save the file in relevant location: | # Save the file in relevant location: | ||
#: <u>Windows</u>: < | #: <u>Windows</u>:<pre><RPCS3 folder>\patches\</pre> | ||
#: <u>Linux</u>: < | #: <u>Linux</u>:<pre>~/.config/rpcs3/patches/</pre> | ||
#: <u>MacOS</u>: <pre>~/Library/Application Support/rpcs3/patches/</pre>If you're unable to locate this directory then copy/paste the path shown here into Spotlight and hit Enter. | |||
# Navigate to the Patch Manager as mentioned before and tick the checkbox corresponding to the patch you wish to apply. | # Navigate to the Patch Manager as mentioned before and tick the checkbox corresponding to the patch you wish to apply. | ||
Line 32: | Line 33: | ||
# Copy the value that looks like <code>PPU-b8c34f774adb367761706a7f685d4f8d9d355426</code>. This is the PPU hash of your game. | # Copy the value that looks like <code>PPU-b8c34f774adb367761706a7f685d4f8d9d355426</code>. This is the PPU hash of your game. | ||
# Open '''patch.yml''' with any text editor (e.g: VSCode, Sublime, Notepad++). | # Open '''patch.yml''' with any text editor (e.g: VSCode, Sublime, Notepad++). | ||
# Find the existing patch that you wish to modify and copy it to '''imported_patch.yml'''. Ensure that you also copy over any anchors that the patch relies on. | # Find the existing patch that you wish to modify and copy it to '''imported_patch.yml'''. Ensure that you also copy over any anchors that the patch relies on. | ||
# Find the existing PPU hash in the patch and replace the same with the PPU hash you obtained in ''Step 4''. | # Find the existing PPU hash in the patch and replace the same with the PPU hash you obtained in ''Step 4''. | ||
Line 41: | Line 42: | ||
===Template syntax=== | ===Template syntax=== | ||
<pre> | <pre> | ||
{{patch | {{patch | ||
|type = <!-- PPU, SPU, Canary --> | |type = <!-- PPU, SPU, Canary --> | ||
|version = 1.2 | |version = 1.2 | ||
|content = | |content = | ||
<!-- Enter actual patch here (see below for format). Remember to delete this comment. --> | <!-- Enter actual patch here (see below for format). Remember to delete this comment. --> | ||
}} | }} | ||
Line 53: | Line 53: | ||
===Parameters=== | ===Parameters=== | ||
The following are the valid parameters of the Patch structure ('''required entries are in bold'''): | The following are the valid parameters of the Patch structure ('''required entries are in bold'''): | ||
{| class="wikitable" | |||
| '''''PPU/SPU executable hash''''' || This is the 40 character unique to help identify the game's executable file. It will have the prefix <code>PPU-</code> or <code>SPU-</code>. Please find the instructions to identify the hash [[#How to identify the PPU/SPU executable hash|here]]. | |||
|- | |||
| '''''PatchName''''' || This field needs to be replaced with the name of the patch (e.g. 60 FPS patch, Disable MLAA, Infinite Ammo, etc.). | |||
|- | |||
| ''GameName'' || This field needs to be replaced with the name of the game (e.g. Persona 5, The Last of Us, etc.). To the extent possible, ensure that this matches to the title of game page on the wiki. Deviation on account of special editions or demos are allowed and will be reviewed on a case-to-case basis. In case of a global patch that is to be applied to all games, mention <code>All</code>. | |||
|- | |||
| '''''GameID''''' || This field needs to be replaced with the Serial of the game (e.g. BLUS23053, NPEB54673, etc.). | |||
|- | |||
| '''''GameVersion''''' || This field needs to be replaced with the version number of the game as follows: | |||
: ''Actual version'' - If you are sure of the version number of your game, mention the same (for e.g. v1.01 is to be written as <code>01.01</code>). | |||
: ''All'' - If you are unsure of the version and the game has only a single known version, mention <code>All</code>. | |||
|- | |||
| ''Author'' || Fill in the name of the authors of the patch. | |||
|- | |||
| ''Notes'' || Fill in any relevant information that needs to be communicated to the user of the patches. Any special settings or drawbacks to the patches needs to be mentioned here. | |||
|- | |||
| ''Group'' || This field is used when there are multiple patches for a game that cannot be enabled at the same time. Using the same '''Group''' for these patches will ensure that only one can be enabled at a time (for e.g. mention <code>FPS</code> when both 60 FPS and 120 FPS patches are available for the same game). This only applies to patches present under the same ''PPU/SPU executable hash''. | |||
|- | |||
| ''Patch Version'' || Fill in the version number of the patch (for e.g. v1.1 is to be written as <code>1.1</code>). This version number needs to be incremented every time a significant change has been made. | |||
|- | |||
| '''''Patch''''' || This field will contain the actual patch code. | |||
|- | |||
| ''Anchors'' || This field can be used to when the same patch code is to be used for multiple patches. A unique ''AnchorDesc'' needs to be declared and then called in the Patch field of every patch that uses it. Please see an example of its use in the formats below. | |||
|} | |||
===Standard format=== | ===Standard format=== | ||
<pre> | <pre> | ||
PPU-0000000000000000000000000000000000000000: | PPU-0000000000000000000000000000000000000000: | ||
PatchName: | "PatchName": | ||
Games: | Games: | ||
"GameName": | "GameName": | ||
Line 88: | Line 100: | ||
PPU-0000000000000000000000000000000000000000: | PPU-0000000000000000000000000000000000000000: | ||
PatchName: | "PatchName": | ||
Games: | Games: | ||
"GameName": | "GameName": | ||
Line 102: | Line 114: | ||
<pre> | <pre> | ||
PPU-0000000000000000000000000000000000000000: | PPU-0000000000000000000000000000000000000000: | ||
PatchName1: | "PatchName1": | ||
Games: | Games: | ||
"GameName": | "GameName": | ||
Line 113: | Line 125: | ||
Patch: | Patch: | ||
- [ Patch ] | - [ Patch ] | ||
PatchName2: | "PatchName2": | ||
Games: | Games: | ||
"GameName": | "GameName": |
Latest revision as of 01:42, 19 August 2023
This page aims to provide all information relating to RPCS3's patch system.
- The Main subpage lists the current PPU patches available for RPCS3's game patching system.
- The SPU subpage lists the general-use SPU patches available for RPCS3's game patching system.
- The Canary subpage lists patches that are severely buggy, in-development, or circumvent emulation bugs. These patches are not shipped with RPCS3's patch download functionality.
Using game patches
The simplest way to enable patches in RPCS3 is as follows:
- Boot RPCS3
- Select
Manage > Game Patches
to access the Patch Manager. - Click the Download latest patches button and the emulator will automatically fetch the latest version of available patches.
- Navigate to the patch you wish to enable and tick the checkbox corresponding to the patch. You may want to tick the check box Only show owned games to make navigation simpler.
- Click Save and boot the game.
Manually adding custom patches
There are many patches that aren't shipped with the automatic download facility due to them being canary patches, privately-shared patches, or otherwise missing from the Wiki. These patches can be added to RPCS3 in the following manner:
- Open your preferred text editor (e.g: VSCode, Sublime, Notepad++).
- Add the text
Version: 1.2
as the first line. Do not paste anything else on this line. HitEnter
and move to the next line. - Paste your custom patch from the Canary page or any other source. Ensure that the formatting for these patches are perfect, as the emulator will ignore the patch if it detects any formatting deficiencies.
- Click Save and name the file imported_patch.yml. Do NOT change the capitalization or use any other name, RPCS3 will not be able to apply the patches. On Windows, select All files (*.*) as the file type when saving.
- Save the file in relevant location:
- Windows:
<RPCS3 folder>\patches\
- Linux:
~/.config/rpcs3/patches/
- MacOS:
~/Library/Application Support/rpcs3/patches/
If you're unable to locate this directory then copy/paste the path shown here into Spotlight and hit Enter.
- Windows:
- Navigate to the Patch Manager as mentioned before and tick the checkbox corresponding to the patch you wish to apply.
How to identify the PPU/SPU executable hash
This section is meant for adept users who wish to apply a patch to a different game version. Do not try to edit any of the patches unless you know what you are doing. Please note that you will also have to edit the Title ID and game version information for the modified patch to be applied by the emulator.
To identify the executable hash, follow the instructions mentioned here:
- Boot the game for a minute and then close the emulator.
- Open RPCS3.log (or just RPCS3 with the Notepad icon).
- Search for the string
PPU executable hash:
. - Copy the value that looks like
PPU-b8c34f774adb367761706a7f685d4f8d9d355426
. This is the PPU hash of your game. - Open patch.yml with any text editor (e.g: VSCode, Sublime, Notepad++).
- Find the existing patch that you wish to modify and copy it to imported_patch.yml. Ensure that you also copy over any anchors that the patch relies on.
- Find the existing PPU hash in the patch and replace the same with the PPU hash you obtained in Step 4.
Please note that some games may have multiple PPU executable hashes, and it is up to you to figure out the correct hash to be copied. Also, the same method can be used to extract SPU executable hashes by searching for SPU executable hash:
in Step 3.
Patch format
Below are the various types of patch structures that can be used in RPCS3. It starts with the basic format and then showcases various other complex structures that can be used. In case of any doubts, you can refer to over 100 patches present in our patch repository for guidance.
Template syntax
{{patch |type = <!-- PPU, SPU, Canary --> |version = 1.2 |content = <!-- Enter actual patch here (see below for format). Remember to delete this comment. --> }}
Parameters
The following are the valid parameters of the Patch structure (required entries are in bold):
PPU/SPU executable hash | This is the 40 character unique to help identify the game's executable file. It will have the prefix PPU- or SPU- . Please find the instructions to identify the hash here.
|
PatchName | This field needs to be replaced with the name of the patch (e.g. 60 FPS patch, Disable MLAA, Infinite Ammo, etc.). |
GameName | This field needs to be replaced with the name of the game (e.g. Persona 5, The Last of Us, etc.). To the extent possible, ensure that this matches to the title of game page on the wiki. Deviation on account of special editions or demos are allowed and will be reviewed on a case-to-case basis. In case of a global patch that is to be applied to all games, mention All .
|
GameID | This field needs to be replaced with the Serial of the game (e.g. BLUS23053, NPEB54673, etc.). |
GameVersion | This field needs to be replaced with the version number of the game as follows:
|
Author | Fill in the name of the authors of the patch. |
Notes | Fill in any relevant information that needs to be communicated to the user of the patches. Any special settings or drawbacks to the patches needs to be mentioned here. |
Group | This field is used when there are multiple patches for a game that cannot be enabled at the same time. Using the same Group for these patches will ensure that only one can be enabled at a time (for e.g. mention FPS when both 60 FPS and 120 FPS patches are available for the same game). This only applies to patches present under the same PPU/SPU executable hash.
|
Patch Version | Fill in the version number of the patch (for e.g. v1.1 is to be written as 1.1 ). This version number needs to be incremented every time a significant change has been made.
|
Patch | This field will contain the actual patch code. |
Anchors | This field can be used to when the same patch code is to be used for multiple patches. A unique AnchorDesc needs to be declared and then called in the Patch field of every patch that uses it. Please see an example of its use in the formats below. |
Standard format
PPU-0000000000000000000000000000000000000000: "PatchName": Games: "GameName": GameID: [ GameVersion ] Author: Notes: Patch Version: Patch: - [ Patch ]
Using anchor (for large patches)
Anchors: AnchorDesc: &AnchorDesc - [ Patch ] PPU-0000000000000000000000000000000000000000: "PatchName": Games: "GameName": GAME00000: [ GameVersion ] Author: Notes: Patch Version: Patch: - [ load, *AnchorDesc ]
Multiple GameIDs and Patches
PPU-0000000000000000000000000000000000000000: "PatchName1": Games: "GameName": GAME00000: [ GameVersion ] GAME00001: [ GameVersion ] Author: Notes: Group: Patch Version: Patch: - [ Patch ] "PatchName2": Games: "GameName": GAME00000: [ GameVersion ] GAME00001: [ GameVersion ] Author: Notes: Group: Patch Version: Patch: - [ Patch ]