Skip to content

Persona 4 Golden Patches (PS Vita)

Notifications You must be signed in to change notification settings

zarroboogs/p4g-patches

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Persona 4 Golden Patches (PS Vita)

Included patches:

  • Intro Skip - Skips the boot logos and intro movie.
  • Mod Support - Enables file replacement via a mod.cpk file.
  • Easy Fishing - Press triangle at any time to fast reel a fish (after reading the "Expert Fishing" book), without waiting for the triangle prompt.
  • Easy Bug Catching - Press cross at any time to get a perfect bug catch, without waiting for the ! prompt.
  • Multi Mod Support - see Multi Mod Support.

Supported versions:

  • PCSE00120 01.00 (P4G US) - Intro Skip, Mod Support, Easy Fishing, Easy Bug Catching, Multi Mod Support.
  • PCSB00245 01.00 (P4G EU) - Intro Skip, Mod Support.
  • PCSG00563 01.00 (P4G JP) - Intro Skip, Mod Support.

Patching

  1. Using your preferred method, dump a copy of P4G's eboot in ELF format. For example, using FAGDec, decrypt the eboot to SELF. You should end up with a decrypted eboot.bin file. Use vita-unmake-fself to extract eboot.elf.
  2. Apply patches to eboot.elf using either:
  3. Using your preferred method, convert the patched eboot back to SELF format. For example, using vita-elf-inject you can inject the patched ELF into the original decrypted eboot.bin (make sure to keep a backup of the original decrypted SELF for future patching).
  4. Finally, place the patched eboot.bin in ux0:/rePatch/<title_id>/.
RPCS3PatchEboot eboot.elf ./patch/<title_id>.yml eboot.elf-out -FilterByName <patch1> <patch2> <...>

For example, to apply the p4g_ModSupport patch to PCSE00120 (P4G US):

RPCS3PatchEboot eboot.elf ./patch/PCSE00120.yml eboot.elf-out -FilterByName p4g_ModSupport

Using heeboot

heeboot eboot.elf ./patch/<title_id>.yml eboot.elf-out -n <patch1> <patch2> <...>

For example, to apply p4g_IntroSkip and p4g_ModSupport to PCSE00120 (P4G US):

heeboot eboot.elf ./patch/PCSE00120.yml eboot.elf-out -n p4g_IntroSkip p4g_ModSupport

Using xdelta

If necessary, merge the patches you want to apply:

xdelta3 merge -fvn -m <patch1> -m <patch2> -m <...> <patchN> _patch.xdelta

Then apply the merged patch:

xdelta3 -fvn -d -s eboot.elf _patch.xdelta eboot.elf-out

For example, to apply the mod-support patch to PCSE00120 (P4G US):

xdelta3 -vfn -d -s eboot.elf ./patch/PCSE00120_mod-support.xdelta eboot.elf-out

Building mod.cpk

Use the Amicitia Mod Compendium to pack mods into a mod.cpk file, then place it under P4G's data dir (ux0:/rePatch/<title_id>/data/).

An example mod is supplied with this patch.

Testing

The provided example mod serves as a test to see if mod support is enabled.

After performing the required steps, launch the game and check the boot logos and title screen to see if they match the images under the "Mod" column below.

Image Vanilla Mod
1 * x x
2 x x
3 x x
4 ** x x

* This screen only appears on the JP version.

** The title.plg logo frame fix is only apparent on the US/EU versions.

Multi Mod Support

This patch enables loading several cpk files:

m0.cpk
m1.cpk
m2.cpk
m3.cpk

The loading order is as stated. This means that m0.cpk has the highest priority, and files within it will be loaded first and will replace all files with the same path in cpks with a lower priority.

You should use this patch instead of the mod.cpk patch:

  • When making or testing a mod, in case you only want to change a single file to see if it breaks or fixes anything (you can put the mod in m3.cpk and the test files in m2.cpk).

  • When using a large "static" mod along with several other small mods that you might want to edit/change/replace more often, e.g. while using an undub mod:

    • build a "static" undub m3.cpk file (~950 MB).
    • put every other mod in m2.cpk, m1.cpk or m0.cpk, while taking loading priority into account.

    This way you won't have to rebuild the large undub cpk every time you add/change/edit another mod.

About

Persona 4 Golden Patches (PS Vita)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published