Join Us and become a Member for a Verified Badge to access private areas with the latest PS4 PKGs.
PS4 CFW and Hacks       Thread starter CyB1K       Start date Nov 8, 2021 at 4:34 PM       64,350       103      
Today I (@CyB1K on Github or Cyberpt1000 on Twitter) present PS4 Fake PKG Tools 3.87 including Fake PKG Generator for PS4 Version 3.87 (Build 3.87.7549.35163) Patched for PS4 FPKGs with a Custom PKG Key, Fake SELF Support and Online Checks Patched followed by some updates for Keystones, the fixed PS4 Fake PKG Tools 3.87 (V4 Patched) and latest PS4 Fake PKG Tools 3.87 V5. :)

Download: PS4_Fake_PKG_Tools_3.87_V5.rar (6.36 MB - includes gengp4_app.exe, gengp4_patch.exe, orbis-pub-chk.exe, orbis-pub-cmd.exe, orbis-pub-gen.exe, orbis-pub-prx.dll, orbis-pub-sfo.exe, orbis-pub-trp.exe, di.exe, libatrac9.dll, sc.exe and pkg.exe) / GIT / Temp-Folder-Patcher.bat

Spoiler: Depreciated

For those who enjoy my PS4 Game Backports and related work, I have a PayPal Page set up for donations to help with disk and storage costs. <3

:note: Brief background: Many in the PlayStation 4 Scene sought to replace the outdated Fake PKG Generator v3.38 for generating PS4 FPKGs with an updated version, however, Fake PKG Generator for PS4 Version 3.70 (Build 3.70.7110.1152) was never released due to LM-based drama over DMs while the orbis-pub-prx.dll offsets of PS4_Fake_PKG_Tools_v3.87.rar from the PS4 DevKit Leak this summer weren't patched for use with PS4 Fake PKGs... until now!

And from my PS4 Fake PKG Tools 3.87 (Patched) Release Post:

I patched the latest 3.87 tools. Both pub gen and cmd works, I also patched the check on download data size that was required to backport apps. SELFs are also patched to work ofc (slowly I'm learning assembly and its exciting :D)

For now I will keep doing my best to try to find a way to patch it to use original keystones directly :)
Code:
_________        __________  ____ ____  __
\_   ___ \___ __ \______   \/_   |    |/ _|
/    \  \<   |  | |    |  _/ |   |      <
\     \___\___  | |    |   \ |   |    |  \
 \______  / ____| |______  / |___|____|__ \
        \/\/             \/              \/
From the README.md: PS4-Fake-PKG-Tools-3.87

Patched 3.87 Tools

V4 (All working now... maybeeee? ^-^"):


Patched sc.exe which wasnt patched and so games wouldnt work, big thanks to TheRadziu and my partner Arczi for the help!

Other fixes applied here and there, thanks to my friend Opoisso for the help! Thanks to Arczi for testing it all with me!

Let me know if you find anything else broken and ill fix (Forgive me for i am a mess with focusing on loads of files with same names) :D

Added a version of 3.87 to be used with PSX-FPKG and PS2-FPKG To PS4 PKG builders if you want. I didn't do much testing to that, tested obscure with jak2 emulator and it was working.

You need to always make sure your app/base files has a keystone on "sce_sys\keystone" before building a base pkg as it will build it without a keystone inside otherwise, which would cause the game to not work or save!

Use the gengp4's accordingly to make sure apps/bases are built with a keystone and avoid accidentally building patches/updates with keystones, which can happen if for example you move files from base's sce_sys into a patch sce_sys folder.

DONT use the old versions, as they wont work! Sorry!

V3 (Original keystone patch / No more fake file):

So i managed to reverse LMAN's legendary loader and managed to patch the keystone correctly now, it will no longer create a fake file inside and pkg will contain only the original keystone!

You need to always make sure your app/base files has a keystone on "sce_sys\keystone" before using these to build a pkg as it will not build a pkg with a keystone inside otherwise, which would cause the game to not work or save!

Use the gengp4's accordingly to make sure apps/bases are built with a keystone and avoid accidentally building patches/updates with keystones, which can happen if for example you move files from base's sce_sys into a patch sce_sys folder.

V2 (Original keystone patch):

This version uses a patched rename of keystone in the tools, so you can now build base games with original keystone directly from the tools without the need for a loader or gui.

The downside, you need to always make sure your app/base files has a keystone on "sce_sys\keystone" before using these to build a pkg as it will not build a pkg with a working keystone otherwise, which would cause the game to not work or save!

Pkgs will be created with a file named "fakekeys" which is the renamed generated fake keystone.

Use the gengp4's accordingly to make sure apps/bases are built with a keystone and avoid accidentally building patches/updates with keystones, which can happen if for example you move files from base's sce_sys into a patch sce_sys folder.

Instructions to build pkgs properly

Extracted Game (For repacks, ignore this one if its a dump):

  1. Extract all files from base or update.
  2. After extracting rename the folder from Image0 to CUSAXXXXX-app or CUSAXXXXX-patch, accordingly.
  3. Move the files from the folder "Sc0" to "CUSAXXXXX-app\sce_sys" or "CUSAXXXXX-patch\sce_sys" and delete the "Sc0" folder after.
  4. Continue the instructions the same as a dump.
Dumped Base Game:
  1. Generate gp4 project file with geng4_app.exe from CUSAXXXXX-app of your dump and save it.
  2. Open in orbis-pub-gen.exe that saved *.gp4 file and build pkg.
Dumped Update Game:
  1. Generate gp4 project file with geng4_patch.exe from CUSAXXXXX-patch of your dump and save it.
  2. Open in orbis-pub-gen.exe that saved *.gp4 file.
  3. Make sure that you have selected base game pkg in Command > Project Settings > Patch Tab > "Application Package" field.
  4. Build pkg.
Always make a copy of "param.sfo" from "sce_sys" to somewhere else before generating a gp4 as it can change and corrupt the param if the folders are not properly named.

If you are repacking a game made with this tools, you first need to delete the file "fakekeys" from sce_sys before creating a gp4 or it will fail and error when building the pkg!

XXXXX - Stands for the CUSA of the game you are packing.

Credits to flat_z, cfwprophet, SocraticBliss, TheRadziu and everyone else who worked on earlier tools patches!

Credits to LMAN for his patched gengp4 :)

Credits to Arczi for the help!

Enjoy

By CyB1K
PS4 Fake PKG Tools with Fake PKG Generator 3.87 Patched for FPKGs by CyB1K.png
 

Comments

dkpeld

Member
Contributor
@CyB1K Hello, I have merging the main game and the patch Marvel Avengers, removed the languages that I did not need, and the size became about 90GB. But when I try to add a small backport to this pkg, I get the following error.
Code:
[Error]    param.sfo: Param Large Patch: ASA code is not valid (app/patch size mismatch).
[Error]    2022-05-08 11:40:42 Create image Process finished with error(s).
You wrote that you solved the problem with 100GB pkg, how about solving the problem of adding patches to large game.
 

jasonclarke1986

Member
Contributor
Verified
@dkpeld the ASA code it says is invalid is in the user-defined settings. check see if it mentions size and correct it to the sizes you have edited the app and patch to by removing languages. It should then make the pkg
 

dkpeld

Member
Contributor
@jasonclarke1986 Where exactly to mentions the size? In orbis-pub-gen or gengp4 or param.sfo? In param.sfo everything is the same. In gengp4 i changing pkg_ps4_app to pkg_ps4_patch and digital50 to digital25.

I have already done about 40 repacks of games. So I have experience with this. But this problem arose with large games like Marvel Avengers or RDR2. With games up to 80GB everything is fine, and there have never been such errors.
 

CyB1K

Staff Member
Moderator
Developer
Senior Member
Verified
Remove the ASA inputs from the user-defined in the param, that issue is unrelated with the tools. There's no problem making patches to large games ive done about 570 pkgs and never had a single issue.
 

SERIOUS HULK

Member
Contributor
I want to add Big_preview pGEN - Portable Genesis Plus GX please tell me how to build pkg. orbis-pubgen gives the error sce_sys/param.sfo
Code:
[Debug]    Create image Process started.
[Error]    sce_sys/param.sfo: Param VERSION: Invalid value.
[Error]    Format of the param file is not valid. (sce_sys/param.sfo, unexpected Application Version (APP_VER))
[Warn]    The required file is missing
 (sce_sys/pronunciation.xml). The created package will not be imported into GEMS.
[Error]    Create image Process finished with error(s).
 

jasonclarke1986

Member
Contributor
Verified
its saying your param.sfo doesnt have application version so it errors and stops, app needs to be 1.00 or patch at least 1.01 (or.1 above app version)

It also says your missing the pronunciation.xml file which is needed for loading apps via voice command but isnt needed to build a pkg it will just warn its missing
 

Spiral09

Member
Contributor
I tried everything and still can't generate a PKG, the error is:
Code:
format of the package file is not valid. (app.pkg, pfs Extra digests mismatch)
I extracted some files off the base game what is that not valid

Edit: Apparently the base pkg was actually corrupted i redownload it and Now integrity check ended fine , i wonder if i could use orbis pub cmd to generate a pkg
 

Alphai7ssd

J.Games
VIP Member
Senior Member
Contributor
Verified
Hi big thanks to everyone who have made all this available excellent work. Can anyone help with remarry pkg in pubgen I get all the way to the end of the repack and it fails. It says can’t access C\USER ect.

All files where extracted from the update PKG and all moved from Sc0 folder to the image0\sce_sys folder. Renamed the image0 folder to CUSAXXXX-patch. Created the GP4 file opened pubgen and build the image but fails as it can’t access C\user ect. Can anyone help with this. Thanks to all
 
Top