Ads keep us online. Without them, we wouldn't exist. We don't have
paywalls or sell mods - we never will. But every month we have large bills
and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3
A Simple Reloaded II Mod to make patching P4G.exe more accessible.
Brought to you in part by my Uwu Overhaul Reloaded II mod. It's basically the same thing but less of a meme. It uses .patch files (basically raw hex data with .patch extension) from your mods/patches folder in your Steam game directory to patch the exe at startup.
All you need for P4G Exe Patcher to work is to already have Reloaded II setup for mod loading following this tutorial (if you already mod Persona 4 Golden through Reloaded II you should be good to go).
Also if you're somehow still on Version 1.0 (REV: 2008), you'll need to patch P4G.exe with this tool in order to not get a AccessOutOfMemory error. All other versions don't need to have the 4GB Patch.
How To Install
- Extract the p4gpc.exepatcher folder from the download and place it in your Reloaded II 'Mods' folder. ('Release' is my Reloaded II folder)
- Enable 'Exe Patcher' in your Reloaded II Launcher by making sure the icon next to it is a red plus like so.
- Take your .patch files (none provided with this tool) and place it in your 'mods/patches' folder in your Steam game directory. Just create a 'patches' folder if you don't have one already. Also, if you launch the game with the mod enabled and don't have the directory, it'll create one for you.
- Now when you launch the game, P4G.exe should be modified by the patch files at startup.
Structure of .patch Files (For Modders)
Read this if you want to create .patch files to modify P4G.exe yourself. This would be especially useful for people who want to translate the game since there's a lot of the game's text found inside P4G.exe. You can also modify any other part of the exe if you wish to do so (and know how to). Do note that you should have a hex editor if you want to create your own. Before creating a .patch file, you want to look inside P4G.exe with a hex editor to see which part you want to modify.
First two bytes of the .patch file - Length of the search pattern in hex You can use a decimal to hex converter like this one. Just make sure that last byte goes first and the first byte goes last (I know that that's a bit confusing). For example, a length of 10 would be 0A 00 (instead of 00 0A) and a length of 580 would be 44 02 (instead of 02 44).
In this example, we can see that the length is 05 00 or 5.
The Exe Patcher then uses that length to get the Search Pattern from the .patch file. For example, if the first two bytes indicated a length of 10, the patcher then reads 10 bytes after the first two bytes as the Search Pattern. This Search Pattern is then used to search for in P4G.exe. Do note that it'll stop at the first instance it finds since this is a simple patcher. Do make sure your search pattern is unique so that you'll be modifying the right part of the exe. I usually make sure that it's unique by just ctrl+f'ing the pattern in a hex editor and seeing if it's the only one that pops up.
In this example, we can see that the search pattern is "Sorry" since it's the next 5 bytes that follow the length indicated by the previous image.
Finally, right after the search pattern is the hex data you want to use for replacing the original hex data starting at which the Search Pattern was found. This part of the .patch file can be any length you want as the patcher just grabs the rest of the hex that follows the search pattern.
In this example, we can see the contents we're replacing is "UwU 00 00 00 00 00 We made a fucky wucky!!" as it is just the remaining hex data of the .patch file.
And that's it!
I included a Debug option that you can enable from the Reloaded II launcher as follows.
This is useful for modders creating their own .patch files to use with this simple patcher. I would use it to make sure I setup my .patch files correctly. It'll print out the length of the search pattern, the search pattern itself in hex, and the contents that you'd like to replace it with onto the console like so.
If anything isn't working or you need help with using this tool please let me know through here or through my Discord found on my profile page.