# C3: Building the mod.cpk

This is the part that will probably take you the most time; we'll be using Aemulus to create a **mod.cpk** file that will contain all the mods we downloaded. First things first, extract the *Aemulus Package Manager* in whichever folder you choose, you should be seeing something similar to this.

<figure><img src="https://3517447842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGoHg6F5JKG5QaZJ7PfHd%2Fuploads%2FzOSnD4BnZdw4FZV1HSFC%2Fimage.png?alt=media&#x26;token=625a303b-928e-4703-85a7-e14464d0dc46" alt=""><figcaption><p>there are more files down there, keep that in mind</p></figcaption></figure>

{% hint style="warning" %}
Avoid putting Aemulus on your Desktop, Documents folder or any other folder that could potentially be synced with programs like OneDrive, as that can cause issues.
{% endhint %}

Now, time to extract everything we downloaded so far.

1. Extract ***Persona\_5.7z***, the base files. The file has folder named *Persona 5*, extract it in **Aemulus\Original**. Ensure you don't accidentally double up the folders, you can compare it to this screenshot:

   <figure><img src="https://3517447842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGoHg6F5JKG5QaZJ7PfHd%2Fuploads%2FvJxazdod6rk6iRtykgPL%2Fimage.png?alt=media&#x26;token=6b3279db-58d4-40bb-b3a7-0885d27747a9" alt="" width="425"><figcaption></figcaption></figure>

2. Extract the Aemulus packages for P5EX, The Royal Project, P5R/P5D Font, Fix Softlock for Community Patches, and any other mods you might have in the **Aemulus\Packages\Persona 5** folder, like this:

   <figure><img src="https://3517447842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGoHg6F5JKG5QaZJ7PfHd%2Fuploads%2FDgpHKQAyXWktr5Y4vwu8%2Fimage.png?alt=media&#x26;token=06345da5-4b73-4544-b818-c0147c9ecca9" alt=""><figcaption><p>your mod list may differ from mine, that's okay.</p></figcaption></figure>

3. Double check that the mod folders aren't doubled or inside another folder. Here are examples for how it should be and how it shouldn't. Check the Original folder in Aemulus for this issue as well before proceeding.

<figure><img src="https://3517447842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGoHg6F5JKG5QaZJ7PfHd%2Fuploads%2FaIupne9wxLi577zZ3Q5v%2Fimage.png?alt=media&#x26;token=df8b00fb-a9d2-4b32-a8f1-265c46bb2d7b" alt="" width="419"><figcaption><p>the "mod name" folder can't be inside another folder (as in, Aemulus\Packages\Persona 5\mod)</p></figcaption></figure>

<figure><img src="https://3517447842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGoHg6F5JKG5QaZJ7PfHd%2Fuploads%2FtaFy8MLPmUrW9X3mxB71%2Fimage.png?alt=media&#x26;token=451c83be-34e9-49e6-afe7-552273ee3328" alt="" width="443"><figcaption><p>the "mod_name" folder has to be located at Aemulus\Packages\Persona 5</p></figcaption></figure>

With that out of the way, open **AemulusPackageManager.exe** as we already extracted everything we needed. Make sure you set the selected game to Persona 5 and you should be seeing the mods you just extracted. For now, press the settings icon shown in the image and select an output folder. Keep the CPK Name as *mod*, though.

<div><figure><img src="https://3517447842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGoHg6F5JKG5QaZJ7PfHd%2Fuploads%2FhJ3I2uSfER631gWcYyfQ%2Fimage.png?alt=media&#x26;token=ef0bdc86-6924-45e3-9056-32a8dee00d49" alt="" width="563"><figcaption></figcaption></figure> <figure><img src="https://3517447842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGoHg6F5JKG5QaZJ7PfHd%2Fuploads%2FOfalsOZSzmR7Nw0vjlwc%2Fimagen_2023-08-01_163529085.png?alt=media&#x26;token=6c82e80f-646f-4737-abbc-2a2f55cbe527" alt="" width="437"><figcaption></figcaption></figure></div>

{% hint style="info" %}
Be sure to check that all the mods have a working description, thumbnail and author list. If it shows the default description when clicking on a mod, check again that the mod folder isn't doubled or inside another folder.
{% endhint %}

Cool, we got the mods we want and everything's as it should be; it is now time to build the **mod.cpk**. As a general rule of thumb, keep in mind of the following things.

* *The Royal Project* should **always** be at the very top of the active mod list, then *P5ex* right after it. (Unless stated otherwise)
* If you are using *Colored Icons* or any *Button Prompt* mods, put those mods **above** *The Royal Project*.
* *P5 Community Patches Softlock Fix* should **always** be at the very bottom of the active mods list.
* Any other mods should be **in-between** *P5ex* and *P5 Community Patches Softlock Fix*.

Alright, your mod list should be looking like this.

<figure><img src="https://3517447842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGoHg6F5JKG5QaZJ7PfHd%2Fuploads%2Fh0p53L1dpmfwNrY2Fuey%2Fimage.png?alt=media&#x26;token=3865d83f-7ece-49ec-8131-3e6e1ec82321" alt=""><figcaption><p>Your list may differ depending on which mods you have downloaded</p></figcaption></figure>

Once you've checked that the order of the mods are correct, press the Hammer icon and wait for it to finish building. This will probably take a while depending on the amount of mods you are planning to use as well as your computer, so do something in the meantime. Whenever it's done, check your output folder, since it'll contain the **mod.cpk**. A folder named *mod* would have also been created that you can delete if you want.

<figure><img src="https://3517447842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGoHg6F5JKG5QaZJ7PfHd%2Fuploads%2FAQSgaFBV1S30E05DIehO%2Fimage.png?alt=media&#x26;token=781371cc-1b74-431b-a310-8b6790bf3461" alt=""><figcaption></figcaption></figure>

Next, you can move the mod.cpk to the Loadout folder, like this.

<figure><img src="https://3517447842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGoHg6F5JKG5QaZJ7PfHd%2Fuploads%2F2LsBDzBrUzaUvCXOOJv2%2Fimage.png?alt=media&#x26;token=8296e53a-8b25-4a5e-be5e-2ef7d3265e52" alt=""><figcaption></figcaption></figure>

We are more than halfway through the process, so move on to the next chapter!
