PS4:Ripping PS4 Game Backups

Dumping is the process of copying and decrypting every file from a game disc in order to be converted into a fake pkg, eliminating the need of the disc when launching the game. This process is the only way of preserving games.


 * Note that usually the save files of a original disc game and a fake converted pkg will not work, so it's recommended to dump before you make progress in your game.

Dumping games and updates from a PS4 to a external HDD

 * In order to dump, you must have a original PS4 game disc or have the license for digital games that came from PSN (must be able to launch and play it).
 * 1) Jailbreak your PS4 using GoldHEN.
 * 2) On the PC, format a USB HDD to exFAT. Note that it needs to be at least twice as big as the game to ensure you have enough space.

Using Homebrew Store

 * This is now the preferred method to dump a game, as everything happens on the PS4, no payloads, no Internet Browser, and no need to manually decrypt trophies/fix NP errors.
 * 1) For disc games, insert the disc on your PS4 and make sure it is installed, and not running from the disc. Also, for disc games, make sure the disc isn't scratched, clean it before you insert it in the PS4.
 * 2) To have the latest game patch, use Retail Patch Installer.
 * 3) Download and install Homebrew Store on your PS4.
 * 4) Open HB Store. Make sure you have a internet connection to auto-update itself.
 * 5) Plug-in the exFAT USB Drive. Make sure the game isn't running.
 * 6) Select Installed Apps. A cover flow should show.
 * 7) Select your game. Select Dump Game. Select OK on pop-up.
 * 8) Game should now launch, wait for it to load, must be in main menu.
 * 9) Press home/PS button on your controller, go back to HB Store. The game will suspend in the background.
 * 10) Dumping should now start, follow the progress bar and wait.

Building the dumped contents into a FAKE pkg

 * 1) Insert the HDD back to a PC. You should have a few folders and a .complete file. You can remove the .complete file.
 * 2) Download and extract:
 * 3) * FAKE PKG Tools
 * 4) * LibOrbisPKG - homebrew alternative also for MacOS and Linux
 * 5) Open GP4 Generator. In the CUSAxxxx directory put the directory of the -app folder on your external HDD. Ex: `E:/CUSA43953-app`.
 * 6) Select Generate GP4 and wait for it to finish.
 * 7) After it completes, a "Done" should appear at the bottom. Select Save GP4 and save it on the root of the USB drive.
 * 8) Repeat the process if you have -patch folder and other.
 * 9) Open orbis-pub-gen.exe.
 * 10) Select CUSAxxx-app.gp4 made and select Build. Set the output folder and select Build again.
 * 11) Repeat for the CUSAxxx-patch.gp4.
 * Install the pkg on your PS4 via Settings > GoldHEN > Package Installer (if desired).

Dumping Remastered Packages
Remastered packages are the type of packages that combine the main game and updates into one. This is different from usual cases where you would find one package for the main game and another for the updates. Remastered packages are not referring to remastered games.

The dumping process is the same as before. The difference would be after inserting the HDD back to the PC, the patch folder would be empty. If you try to build the fpkg, orbis-pub-gen would give a error saying that remastered packages are not supported. To fix that:
 * 1) In the FPKG Tools folder, open orbis-pub-sfo.exe then hit File > Open.
 * 2) Open in the extracted game's folder > sce_sys > param.sfo.
 * 3) Once opened, simply uncheck For the Remaster Package. Then hit File > Save.
 * 4) A error will appear, but don't worry, the changes will be still applied. You can continue building the fpkg using orbis-pub-gen.exe as above.

Dumping DLC
DLC on the PS4 comes in two categories: on-disc DLC and extra content DLC. Extra content DLC usually come in form of map packs, extra campaign or any additional content that is not present in the main game files. On-Disc DLC, as the name implies, already are on the disc/main game files.

Dumping Extra Content DLC
This type of DLC comes from PS Store. In order to dump it, you have to have the DLC installed and ready to start on your PS4.
 * 1) Jailbreak your PS4 using GoldHEN. Navigate to Settings > GoldHEN >  Enable FTP server. Take note of your PS4's IP Address.
 * 2) Load the game and keep it on the main menu.
 * 3) On your PS4, open FileZilla. Input the PS4's IP Address for the host name and 2121 for the port.
 * 4) Navigate to /MNT/SANDBOX/PFSMNT/ and locate the -ac folder associated with your game's CUSA ID.
 * 5) Copy all the files to your PC.
 * 6) Open orbis-pub-sfo and create a new SFO with the following:
 * 7) * Core Settings > Category: PS4 Additional Content
 * 8) * Core Settings > Content ID: your games id (format: `EP0123-CUSAXXXXX_YY-ZZZZZZZZZZZZZZZZ-ac`)
 * 9) * Title Text > AC Title: the game's name
 * 10) * File > Save (Save it to `EP0123-CUSAXXXXX_YY-ZZZZZZZZZZZZZZZZ-ac/sce_sys/param.sfo`)
 * Open orbis-pub-gen and create a new pkg with the following:
 * 1) * File > New Project > Additional Content Package With Extra Data
 * 2) * Double click Image0 > drag and drop your DLC directory into this. Close the window.
 * 3) * Click Command > Project Settings > go to Package tab > set Content ID (same as: `EP0123-CUSAXXXXX_YY-ZZZZZZZZZZZZZZZZ`) > set Passcode and Entitlement Key to `00000000000000000000000000000000` (32 x 0's).
 * 4) * Click Command > Build Image > specify output path > click Build.
 * 5) Install the pkg via Package Installer.

Dumping On-Disc DLC

 * 1) Download and extract psDLC.
 * 2) Search your game's DLC on the PS Store on a web browser, `https://store.playstation.com/en-us/product/UP0001-PPSA01491_00-DLCEXPANSION0001` as a example. Take note of the address, for the example `UP0001-PPSA01491_00-DLCEXPANSION0001` is the DLC name. UP = US version, EU = Europe version, JP = Japan version.
 * 3) Launch psDLC.exe. In Manual Input tab, paste the DLC name. Select Create fpkg.
 * 4) In the fake_dlc_pkg folder, you will see the unlocker.
 * 5) Install the pkg via Package Installer.

Dumping using dumper payload

 * 1) Download and save dumper.cfg to the root of the USB drive.
 * 2) * Make sure it is saved as a .cfg file and not .txt!
 * 3) Open the file using notepad or notepad++
 * 4) Default settings should be fine but edit it according to your liking.
 * 5) * `split = value ;` this option will tell the dumper what to dump to the USB Drive.
 * 6) * `notify= value ;` This option will send a notification to the PS4 every value in seconds to show you the progress. 0 = disabled.
 * 7) * `shutdown = value ;` This option will shutdown the console after dumping. 0 = disabled, 1 = enabled.
 * 8) Insert the USB Drive into the PS4 and load your game to the main menu. Note!: keep the game ONLY on the main menu!
 * 9) Hit the PS button on your controller to go the homescreen and DO NOT CLOSE THE GAME.
 * 10) Open PS4's internet browser and navigate to the following site: https://kar0218.github.io/
 * 11) Select your firmware and select Dumper game.
 * 12) If you see "Not Enough Memory" errors continue by hitting OK.
 * 13) Once it has loaded, the dumping process has started. Wait and have patience. Games on PS4 are huge, so it will take a long time.
 * 14) Once it's completed, a pop-up saying "You're all set!" should appear.

Building the dumped contents into a FAKE pkg

 * 1) Insert the HDD back to a PC. You should have a few folders, the dumper.cfg and a .complete file. You can remove the .complete file.
 * 2) Download and extract:
 * 3) * FAKE PKG Tools.
 * 4) * LibOrbisPKG - homebrew alternative also for MacOS and Linux.
 * 5) Open GP4 Generator. In CUSAxxxx Dir put the directory of the -app folder on your external HDD. Ex: E:/CUSA43953-app
 * 6) Select Generate GP4 and wait for it to complete.
 * 7) After it has been completed a "Done" should appear at the bottom. Select Save GP4 and save it on the root of the USB drive.

Fixing NP Errors
NP errors are usually related to encrypted trophies. A quick summary, is when you don't try to fix them, when you make the fpkg and try to launch them a error will immediately appear with a random NP-xxxx code. Not all games will need this fix, but most game updates/patches will, so it's better to keep it save and see if you need this patch or not.
 * 1) Download and install:
 * 2) * HxD Editor
 * 3) * FileZilla FTP
 * 4) Open HxD and open trophy00.trp from your extracted game's folder > sce_sys > trophy AND from the extracted patch folder > sce_sys > trophy.
 * 5) * In the decoded text section, if you can clearly read the contents (ex: `TROPHYCONF.ESM`, `TROP.ESM`, etc), then you have an unencrypted file. In this case, you don't have to do anything.
 * 6) * In the decoded text section, if you see gibberish or scrambled text (ex: `d%ns8c`), then you have a encrypted file. In this case, you need to apply the fix.
 * 7) *# To fix this issue you need to FTP to your PS4. Navigate on your PS4 to Settings > GoldHEN > Enable FTP Server. Take note of your PS4's IP Address from the incoming notification.
 * 8) *# In FileZilla's Host section input your PS4's IP Address, in the Port section input 2121.
 * 9) *# Navigate to '/user/trophy/conf'.
 * 10) *# Depending on your number of installed games, you should see a bunch of folders with their own unique ID.
 * 11) *# To find out your game's ID, in your extracted game's folder (or patch if it's the one with the unencrypted file), navigate to extracted folder > sce_sys and open npbind.dat using HxD. In the decoded text section, your game's ID will show.
 * 12) *# Back in FileZilla, open your game's ID folder and copy TROPHY.TRP file to sce_sys > trophy folder.
 * 13) *# Simply delete the encrypted one and rename the file we just copied to trophy00.trp.
 * 14) Repeat the process if you have -patch folder and other.
 * 15) Open orbis-pub-gen.exe.
 * 16) Select CUSAxxx-app.gp4 made and select Build. Set the output folder and select Build again.
 * 17) Repeat for the CUSAxxx-patch.gp4.
 * 18) Install the pkg on your PS4 via Settings > GoldHEN > Package Installer (if desired).