# C4: Creating the patch.yml

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.

```yaml
# 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](https://theroyalproject.gitbook.io/installation-guide-hardware/c2-download-time) 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.

<figure><img src="https://3517447842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGoHg6F5JKG5QaZJ7PfHd%2Fuploads%2FRWxWFRcrdiYU9J4w0e6u%2Fimage.png?alt=media&#x26;token=54eb1e9c-0ee7-4a8d-8fdd-013a3bd68a90" alt=""><figcaption><p>start copying from here...</p></figcaption></figure>

<figure><img src="https://3517447842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGoHg6F5JKG5QaZJ7PfHd%2Fuploads%2Fiwa7K4jhCYsMI823rtVC%2Fimage.png?alt=media&#x26;token=a49e2988-8251-4c07-8608-c89cdd8d326e" alt=""><figcaption><p>...to here</p></figcaption></figure>

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:

<figure><img src="https://3517447842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGoHg6F5JKG5QaZJ7PfHd%2Fuploads%2FZ12oISxBhBkph7fDtXbf%2Fimage.png?alt=media&#x26;token=bd234e91-0e2a-4acb-bedd-50ee7244b4dc" alt=""><figcaption><p>right here</p></figcaption></figure>

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

<figure><img src="https://3517447842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGoHg6F5JKG5QaZJ7PfHd%2Fuploads%2F846HBnf9ClZwDiMVNlQA%2Fimage.png?alt=media&#x26;token=40e8945a-351d-46da-808d-46daa75fb4f1" alt=""><figcaption><p>p5ex patch</p></figcaption></figure>

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.

<figure><img src="https://3517447842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGoHg6F5JKG5QaZJ7PfHd%2Fuploads%2Fyr6pxu1FSa7xS7zp4rdp%2Fimage.png?alt=media&#x26;token=17152d18-7fe8-4511-878e-38aaf027f427" alt=""><figcaption><p>main patch</p></figcaption></figure>

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.

<figure><img src="https://3517447842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGoHg6F5JKG5QaZJ7PfHd%2Fuploads%2FDr99VI7RCdm9GKkPzIVU%2Fimage2.png?alt=media&#x26;token=f22b2d4a-c340-4265-9d7e-8ab44d9268d6" alt=""><figcaption></figcaption></figure>

{% hint style="danger" %}
Do NOT use the P5EX SPRX patch with TRP, TRP has it's own SPRX patch and using the P5EX SPRX patch **will not work**!
{% endhint %}

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!

{% hint style="info" %}
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](https://shrinefox.com/getstarted?platform=PS3\&game=P5EX\&region=EUR\&target=console) 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!
{% endhint %}
