Tutorial HOW TO make a custom patch FPKG for game modding.

J00n3

AKL Member
Original poster
Developer
회원 | Member
Apr 22, 2018
1
94
Requirement
You must click 'Like' before you can see the hidden data contained here


How-TO

Unpack the FPKG that contains EBOOT.BIN and sc0 folder by using orbis-pub-chk (I won't provide it here, you will have to google PS4 SDK 4.50 or FPKG tool)

upload_2018-4-22_13-45-44.png

upload_2018-4-22_13-46-18.png

You need to have passcode for the base FPKG otherwise you won't be able to extract contents (including EBOOT.BIN) inside image0

upload_2018-4-22_13-47-32.png

Select EBOOT.BIN and everything in the sc0 folder.

Go to the extracted folder, in this case I chose "PATCHPKG"

upload_2018-4-22_13-50-41.png

Merge sc0 with image0. contents inside sc0 should be placed inside image0/sce_sys/

upload_2018-4-22_13-52-2.png

upload_2018-4-22_13-51-54.png

Use gengp4.exe to generate GP4 file, (for modders modding patch.pkg, save your param.sfo before using gengp4.exe, because gengp4 changes param.sfo to disc game type so you will have to edit param.sfo after generating gp4, if you saved your param.sfo before using that tool then you can replace the modified one with your backup)

upload_2018-4-22_13-55-13.png

upload_2018-4-22_13-55-28.png

Go to GP4, and change following

"<volume_type>pkg_ps4_app</volume_type>" to "<volume_type>pkg_ps4_patch</volume_type>"
"digital50" to "digital25"

Then save your GP4

upload_2018-4-22_13-59-3.png

Open a HEX editor and change following from PARAM.SFO

BuRlZoC.png


This is where you setup the pkg format and app version. Since I'm modding the original 1.00 I change this value to anything higher than 1.00 , in this case I'll do 1.01,

"gd" means game disc, you need to change this to "gp" which is game patch.

w7BRm5V.png


Then save this file, you're almost done.

Open that GP4 you previously generated via gengp4 v1.8 with orbis-pub-gen,

h6qJOPP.png


Open Project Setting via Command (C)

MylEoOC.png


CONTENT ID should already be set as well as the passcode if you used GP4 made by gengp4.exe

Passcode must match with the base game, in this case mine was 00000000000000000000000000000000

Go to the Patch tab and select your base game for Application Package:

QvOthpu.png


Then start building

UbAosOJ.png


bUj2Xcv.png


Done you successfully built your 1.01 pkg.

Now, let's test our pkg.

HbnS3WC.png


hUhnE3g.png


Now the version is 1.01 :)

The game booted fine too

3OkaVpH.jpg


Enjoy
 
Last edited by a moderator:
Can I use this to change the keystone file of the game? How would I do that?
1) In the step where you extract the fpkg do I need to extract the keystone also? Or Should I just put the original keystone in that place and then follow the rest of the steps?

2) If this works should I patch the original game with the keystone patch first and then apply the update of the game? Does the order matter?
 
so i can use this method to make Retail Update pkg to work with my FPKG game ??
 
QUESTION if u are able to make a custom patch file for a title use hex and edit some code why cant u just reverese this process by downgrading a title requiring sys ofw 6+ and make a patch file for the game so it can run on<5.05?
 
o 1 more question these custom home made patches will this allow u to run dlc on them that's released on a higher firmware and if that's the case then why not do it for games requiring higher firmware
 
not sure if this was aimed at me but from what i know we cannot rip 5.5X games with a 5.05 console
well from what i know you can download official PKG's 5.xx i know where and due to policies i cant mention it but if u can get the opkg and fake sign it repack it erase or rather patch the file that let the system know that this game needs to run on a higher firmware then boom we can enjoy the latest games
 
well from what i know you can download official PKG's 5.xx i know where and due to policies i cant mention it but if u can get the opkg and fake sign it repack it erase or rather patch the file that let the system know that this game needs to run on a higher firmware then boom we can enjoy the latest games
im pretty sure if this was the case... the new spiderman would have been posted... not seen it come up anywhere yet