C4: Creating the patch.yml

hold my hand, we'll go this way

Now comes the hardest part of the guide, since it's really easy to mess up here. But there's no need to be afraid, as long as you follow the guide, there's no room for error.

We need to create a new file, the patch.yml, that will add mod support and also contains the patches for the mods we will be using, more specifically, Persona 5 EX and The Royal Project. For convenience, you can copy this code down below, paste it into a notepad, and save it as patch.yml, it'll work as your template.

# Skip Intro Videos v1.0 by TGEnigma
# 
p5_skip_intro_videos: &p5_skip_intro_videos
  - [ be32, 0x0055AC8C, 0x60000000 ]

# Disable DLC Unlock Messages v1.0 by TGEnigma
# 
p5_disable_dlc_unlock_messages: &p5_disable_dlc_unlock_messages
  - [ be32, 0x197AE8, 0x4E800020 ]

PPU-b8c34f774adb367761706a7f685d4f8d9d355426:

- [ load, p5_skip_intro_videos ]
- [ load, p5_disable_dlc_unlock_messages ]

It is important that you keep this file open, because we will be making more additions to it soon enough.

Now, open the p5ex_prx_patch package we downloaded back in Chapter 3 and extract it somewhere. Inside of it you'll see a folder named p5ex and another one named patches. Enter patches and open this patch.yml. This one will have way more text, but you only have to copy and paste the first two patches.

start copying from here...
...to here

And paste it into the main patch.yml, the one that you created. It is recommended that you paste it after the last patch that appears on the list (for convenience only, really, order doesn't play any role here). So, paste it here:

right here

Cool, check the bottom of the p5ex patch, below PPU you will see this:

p5ex patch

You have to copy the first line (excluding PPU) and paste it at the bottom of your main patch.yml. It should look like this.

main patch

You can now close the p5ex patch, but we're not done yet. TRP has patches as well, and we need to do the same thing we just did. Go to your Aemulus folder, enter Packages, then Persona 5, and find your The Royal Project folder. Inside this folder, open the yml patches folder. Inside it there are two folders, open the one called hardware. (Do NOT open emulator)

Copying this patch is fairly straightforward, as of v2.0.0 this file contains two patches. Just start copying at the very beginning and finish copying before the PPU. And just like the previous file, copy the load thing at the bottom of everything. The last lines of your file should be just like this.

Remember to save the file and, pat yourself on the back because you made it through the toughest part. In the next chapter we'll be decrypting EBOOT, so see you there!

Congrats! You now know how to add and remove patches to a patch.yml file. There are more patches you could add. In case you want to create your own patch.yml, use ShrineFox's Patch Generator to do so. It contains by default the P5_EX and P5_mod_SPRX patches, and you can add more on top of those. Experiment to your heart's content!

Last updated