PS3 [TUTORIAL] How to split a large PKG file for OFW

Small update: PS3GameExtractor_v1.8

Changelog:
  • Added packaging of PS1/PS2/PSP game folders in PKG less than 4 GB.
  • Other minor fixes.
Hi ErikPshat, just testing this tool; you made it?

I am asking because I noticed it only includes psn_package_npdrm, which, in my experience, refuses to pack together protected files (I think it was a .sprx) with the raw files. However, the version bundled with PS3GameExtractor_v1.8 isn't the same I have; do you know if the version included will handle all the files included in a game?
 
Hi ErikPshat, just testing this tool; you made it?

I am asking because I noticed it only includes psn_package_npdrm, which, in my experience, refuses to pack together protected files (I think it was a .sprx) with the raw files. However, the version bundled with PS3GameExtractor_v1.8 isn't the same I have; do you know if the version included will handle all the files included in a game?
Well, yes, these are my works as PS3GameExtractor_v1.8, PS3GameConvert_v091 and some others ...

Yes, most likely this version of psn_package_npdrm will pack any folders and files, including the SCE system files - BIN / SELF / SPRX / EDAT, and also should pack in PKG folders that are missing EBOOT.BIN, PARAM.SFO, ICON0.PNG , It just happens that sometimes you have to use hacking methods to achieve the desired result.
 
Well, yes, these are my works as PS3GameExtractor_v1.8, PS3GameConvert_v091 and some others ...

Yes, most likely this version of psn_package_npdrm will pack any folders and files, including the SCE system files - BIN / SELF / SPRX / EDAT, and also should pack in PKG folders that are missing EBOOT.BIN, PARAM.SFO, ICON0.PNG , It just happens that sometimes you have to use hacking methods to achieve the desired result.
Great, good to know, and thanks for sharing!
 
Great, good to know, and thanks for sharing!
OK, then please test the packing of the folders of PS1/PS2/PSP games. And pay attention, what is different from the usual packaging games.
And also, no one has yet tested how to unpack PSARC/MSELF, and then assemble it back. You can unpack a large PSARC/MSELF, reduce the bitrate of video and audio, make pictures easier, and then pack them back. For these purposes, an INI file is created in the folder, in which the original PSARC/MSELF parameters are saved = this is the compression format, block size, etc. Also, a list of all the files is immediately created in order in XML, so that everything can be returned back to keeping order. Files from the list can not be deleted! You can only reduce or reset. Each file must always remain in its position by numbering.
If you want to pull out the program files, then during the operation of a function, you can look at the files in the temporary folder %TEMP% - is-xxxx .
 
OK, then please test the packing of the folders of PS1/PS2/PSP games. And pay attention, what is different from the usual packaging games.
And also, no one has yet tested how to unpack PSARC/MSELF, and then assemble it back. You can unpack a large PSARC/MSELF, reduce the bitrate of video and audio, make pictures easier, and then pack them back. For these purposes, an INI file is created in the folder, in which the original PSARC/MSELF parameters are saved = this is the compression format, block size, etc. Also, a list of all the files is immediately created in order in XML, so that everything can be returned back to keeping order. Files from the list can not be deleted! You can only reduce or reset. Each file must always remain in its position by numbering.
If you want to pull out the program files, then during the operation of a function, you can look at the files in the temporary folder %TEMP% - is-xxxx .
Yeah, I noticed it bundled several tools in the temp folder, and that's were I looked for.

Aaaand, well, I tested it with Assassins Creed 3, and it gave me this error when repacking:
Code:
>> !ERROR!: C:\Users\X\AppData\Local\Temp\is-D9SEJ.tmp\SPLITTED\chunk-03\NPU
B30826/USRDIR/scimitar_final.self is not a non NPDRM FILE.
'
When the previous error happens, it does not pack the file that is causing the error.

As I mentioned before, I sort that with this:
Code:
dir /b /s "temp" | robocopy "temp\%game_id%" "%temp%\%game_id%_main" "*.self" "*.sprx" "eboot.bin" /s
I avoid the .edat and .sdat files because some games (GTA V) have very large files with that format.

Then, I used the other PKG packer for a folder called NPxxxxxx_main, which contains all the protected files.
Can you fix this in PS3GameExtractor_v1.9?

Anyway, your tool handle very nice the folder split :P
 
Last edited:
Yeah, I noticed it bundled several tools in the temp folder, and that's were I looked for.

Aaaand, well, I tested it with Assassins Creed 3, and it gave me this error when repacking:
Code:
>> !ERROR!: C:\Users\X\AppData\Local\Temp\is-D9SEJ.tmp\SPLITTED\chunk-03\NPU
B30826/USRDIR/scimitar_final.self is not a non NPDRM FILE.
'
When the previous error happens, it does not pack the file that is causing the error.

As I mentioned before, I sort that with this:
Code:
dir /b /s "temp" | robocopy "temp\%game_id%" "%temp%\%game_id%_main" "*.self" "*.sprx" "eboot.bin" /s
I avoid the .edat and .sdat files because some games (GTA V) have very large files with that format.

Then, I used the other PKG packer for a folder called NPxxxxxx_main, which contains all the protected files.
Can you fix this in PS3GameExtractor_v1.9?

Anyway, your tool handle very nice the folder split :P
Um, I do not understand. It's the same game from PSN, why divide it into parts, if such games can be downloaded directly to the PS3 with "HAN Toolbox Mod", bypassing the installation from a USB flash drive. Well, anyway, I downloaded this game NPUB30826, unpacked and checked. I have no problems with packing and there were no errors.

Maybe your files were simply blocked, "Read Only", they were opened in another program, for example, in a hex editor or in a torrent. Well, and then, you should try to avoid paths with spaces, with special characters, so that the computer name and user profile name meet these conditions.

So I collected a small folder for the tests with the same files from this game, and also added files of different formats there. There turned out files SELF / SPRX / BIN / EDAT / PSARC / MSELF and other types. Download the archive and try to test with the packaging: NPUB30826_for_testing.7z (39.42 MB)

And of course, I think everyone understands that large files, more than 4 GB, if they are present in the game, you can not divide into smaller parts )))
 
Last edited:
Hello ErikPshat, thanks for your answer!

I literally have game backups, just in case. I remember when in 2010 / 2011 the S0n4 servers were down for months, so, I have my own HDD with backups. Also, I do not use any HAN Toolbox Mod because I haven't find a clean one, the ones I have seen load my XBM with AdWare (unrequested forums propaganda) and other stuff I do not like to see there.

Regarding the file being unaccessible, I can guarantee to you that's not the case, but can't say if my processor speed is the problem, but I heavily doubt it. However, I do noticed that the error occurs ONLY when many files are packed together, mixed protected and raw data. So, if I try to pack any .self / .sprx / .edat with only a few other files using your modded tool, as the package you share here, there will be no problem.

Anyway, I am impressed that the error is not happening to you. Did you check the console screen? Can you please check again? Be aware that the program will not stop neither cancel the process, the package just will be created without the file, and I think the .log file does not include the error; in fact, the error occurs at the very execution of psn_package_npdrm. The console type the information like this: (For this test, I just unpacked the original .pkg file in another HDD patch using the PS3_extractor button, after I clean the %temp% folder in order to force PS3_extractor to unpack his tools again):
Code:
Making DEBUG PKG...
TITLE : Assassin's Creedr III
TITLE_ID : NPUB30826
GAME_DIR : NPUB30826 : chunk-030

>> !ERROR!: C:\Users\X\AppData\Local\Temp\is-0C9CJ.tmp\SPLITTED\chunk-03\NPU
B30826/USRDIR/scimitar_final.self is not a non NPDRM FILE.
Package Configuration:

ContentID        = 1HGCAT-NPUB30826_00-NPUB308260000003
Klicensee        = 0x00000000000000000000000000000000
DRMType          = Free
ContentType      = GameExec
PackageType      = HDDGamePatch (without USRDIR/EBOOT.BIN)
PackageFlag      = RenameDirectory (during install for consistency)
InstallDirectory = NPUB30826
PackageVersion   = 01.00
# TITLE_ID       : NPUB30826
# CATEGORY       : HG
# BOOTABLE       : YES
# VERSION        : 01.00
# APP_VER        : 01.00
# PS3_SYSTEM_VER : 04.1000
# QA_Digest      : 0x721E27C54268E686AD40E59D4E2AFA0C
# Packaged by    : MODDED V1.2 - Original Rev. 9998  !!ONLY FOR INTERNAL USE!!
# Modified by    : This package was modified by hexcsl & ErikPshat.
# Modified by    : Packing PSN or DISK games in PKG with a LICDIR folder.

Allocating disk space for the package: 3,311,580,704 bytes.
Generate Package : "D:\3WB/1HGCAT-NPUB30826_00-NPUB308260000003.pkg"
 
Entry list: [193 entries]
   raw data: PARAM.SFO
   raw data: ICON0.PNG
  directory: USRDIR
   raw data: USRDIR/bunch of files I erased to resume, but the file that generates the error will not be there . . .


Notice: raw data is NOT protected by DRM.
        please use NPDRM EDATA if you need to protect.

Notice: Patch package should be same ID and types with the original package.
        please double check it because it can violate DRM protection.

Press any key to continue . . .
 
First post updated in order to include PS3GameExtractor. Also, it was reformatted so the instructions are more clear and easy to follow.
 
First post updated in order to include PS3GameExtractor. Also, it was reformatted so the instructions are more clear and easy to follow.
OK, thank you!
Well, I apologize that the picture of the program advertising forum. Just this program was originally intended for internal use.
Every day there were many questions: "And how to unpack the archives 001 002 003 ...?" or "How to install and what to do with the files part1.rar, part2.rar, par3.rar? " :tears of joy: As for your mistake, I haven't found anything yet and, accordingly, have not fixed anything.
 
Minor update: PS3GameExtractor_v1.8.1

Changelog:
  1. Fixed bug with the "Unpack PKG" button if there were spaces in the paths.
  2. Changed program behavior using the "Pack folder in PKG by 4 GB" button. Now, when saved the name of the PKG, the name is assigned depending on the type of PKG. Packaging to PKG packs not only folders larger than 4 GB, but also small folders, as well as folders from PS1/PS2/PSP games and of course PS3 games.
 
Last edited:
Hahahaha, my apologies, I do not try to criticizes the program and its forum advertising; I am ok with that. I was talking about the PKGs that install the propaganda in your PS3 so your XMB gets loads of it, I do not like it, but I am not against it either; people is doing it for free, a bit of advertising isn't bad.

Thanks for the new release! Appreciate it.
 
Wait, if i split a signed PKG, will the separate parts still install properly like normal?

Or if not, do i need to split an unsigned PKG first, THEN sign all the split PKG parts?
 
Wait, if i split a signed PKG, will the separate parts still install properly like normal?

Or if not, do i need to split an unsigned PKG first, THEN sign all the split PKG parts?
Signing a PKG is not required. All files are unpacked on PS3 without any loss.
You do not sign the game, but only the installation PKG.

Simply unsigned PKGs need to be installed from under the HAN -> Debug Package mode or on CFW as usual.
A signed PKG must be placed from under the HAN -> Han Enable mode, but such a PKG is not installed on the CFW.
That's the whole difference.

But PSN games still need to be run when HAN Enable is activated.
That is, if you installed unsigned PKG naturally in the HAN -> Debug Package mode, then to start the game you must switch to the HAN Enable mode, and you must restart the console when changing the mode from Debug Package to HAN Enable. When changing in the reverse order, the console does not need to be rebooted.
 
Minor update: PS3GameExtractor_v1.8.2

Changelog:
  • Small Changes. Fixed bug when program could not create PKG.
Ease manual:
  1. Unpack a large PKG using the "Unpack PKG" button.
  2. Split a folder into parts less than 4 GB using the "Split Folder by 4 GB" button.
  3. Ready to install PKGs you will see in the same folder as the program.
 
Last edited:
Back
Top