Join Us and become a Member for a Verified Badge to access private areas with the latest PS4 PKGs.
Status
Not open for further replies.
Following my previous release, after learning How to Change PS4 DLC Region for FPKG Games by Jr550 I made a PS4 PKG DLC Region Batch Script for Windows to change the Region / TitleID of the original PS4 DLC PKG based on orbis-pub-gen and sfo by Hippie68.

Download: ps4-pkg-dlc-region.cmd / GIT

From the README.md: PS4 PKG DLC Region

ps4-pkg-dlc-region
is windows batch script can batch change the region and TitleID of the original ps4 dlc Pkg, and it is base on orbis-pub-gen and sfo by Hippie68.

It will automatically determine that the volume_type of the original pkg is pkg_ps4_ac_data or pkg_ps4_ac_nodata, pkg_ps4_patch, pkg_ps4_app:
  • pkg_ps4_ac_data:
    • DLC with extra files
  • pkg_ps4_ac_nodata:
    • DLC without extra files (unlockable)
  • pkg_ps4_patch:
    • PS4 Game Update (during the parsing, you will be prompted to enter the original PS4 Game PKG path)
  • pkg_ps4_app:
    • PS4 Game
Note: The experimental features of pkg_ps4_patch and pkg_ps4_app have not been tested...

User Defined

Before the first execution, the user needs to determine several defined values in ps4-pkg-dlc-region.cmd:
  • orbisPubPath
    Determines the path of orbis-pub, nullable if it has been set in the path of windows
  • sfoPath
    Determines the path of sfo(hippie68), nullable if it has been set in the path of windows
  • pkgPath
    Determine the path to the original pkg
  • newRegion (length is 2)
    Determine the Region of the generated pkg
    JP: Japanese, EP: European, UP: American, HP: Hong Kong, KP: Korean
  • newTitleID (length is 9)
    Determine the TitleID of the generated pkg
  • genDirName
    Determines the directory name for the generated output
  • icon0Path
    Determine the path of icon0.png when the original pkg has no preview image, the generated pkg will use this file
  • cleanup
    y: remove all temporary files, n: don't delete anything
  • passcode
    Determine the passcode value for pkg
  • overwriteUnpackedArchives (New)
    Determines whether to still extract when an unpacked PKG archive already exists,
    y: perform extract and overwrite, n: use existing unpacked file
  • overwriteExistGP4 (New)
    Determines whether to override gp4 configuration, when gp4 archive already exists,
    y: generate new gp4 file, n: use existing gp4 file
  • pkgCreate (New)
    Determines whether to automatically generate a new PKG after extract,
    y: generate new PKG, n: extract only
Reference
PS4 PKG DLC Region Batch Script to Change Region TitleID by Avan06.png
 

Comments

@esme
I'm glad you successfully extracted.

from the log, it seems that the script cannot find the base game path,
can you confirm that the path is correct?
Code:
CUSA00433-app path: f:\ps4-pkg-dlc-region-main\update\ep002-cusa00433_00-d3ultimateevil00-a0100-v0101.pkg
Does not exist...
 
@avan
Yes, the base game is in this path, otherwise it would be extracted after pressing a button. Two more folders have now been created in the ps4-pkg-dlc-mainupdate folder:

1. EP0002-CUSA00433_00-D3ULTIMATEEVIL00-A0100-V0101 [37,8 GB]
2. EP0002-CUSA00433_00-D3ULTIMATEEVIL00-A0142-V0101 [7,9 GB]

it looks like these are the extracted files from the base game and update. they are also as big as the pgk's.

now in folder ps4-pkg-dlc-region-main\update have i
- the two mentioned folders with the extracted data,
- folder new\EP0002-CUSA00433_00-D3ULTIMATEEVIL00-A0100-V0101.pkg
- Diablo.III.Reaper.of.Souls-Ultimate.Evil.Edition_CUSA00242_v1.42_[4.00]_OPOISSO893.pkg
- EP0002-CUSA00433_00-D3ULTIMATEEVIL00-A0100-V0101.pkg

now that i take a closer look at your post (the code), it seems i forgot the third 0 on ep last night, so EP0002..., I deleted all folders and tried again

now it seems to be working, a new pkg file named EP0002-CUSA00433_00-D3ULTIMATEEVIL00-A0142-V0101.pkg is created under ps4-pkg-dlc-main\update\new

but why does he extract the base game after completing step two?

Spoiler: cmd txt

now the update folder is 136 gb in size with the following folders and files

- the two mentioned folders with the extracted data,
- folder new\EP0002-CUSA00433_00-D3ULTIMATEEVIL00-A0100-V0101.pkg, EP0002-CUSA00433_00-D3ULTIMATEEVIL00-A0100-V0101.pkg and EP0002-CUSA00433_00-D3ULTIMATEEVIL00-A0142-V0101.pkg.compare_delta.log
- Diablo.III.Reaper.of.Souls-Ultimate.Evil.Edition_CUSA00242_v1.42_[4.00]_OPOISSO893.pkg
- EP0002-CUSA00433_00-D3ULTIMATEEVIL00-A0100-V0101.pkg

However, now I can no longer close the cmd line by pressing a key, but only via the cross at the top right
 
@esme
because you set the read path to ".\update", the script will convert all pkgs under this path.

if you don't want to change the base game, you don't need to put it in the "ps4-pkg-dlc-region-main\update" path.

under the "new\" path, the file you need is "EP0002-CUSA00433_00-D3ULTIMATEEVIL00-A0142-V0101.pkg".
 
I will now test the newly created update pkg and give feedback as to whether it works.

@avan
so, i tested the created patch pkg for diablo3 v1.42. it installed, but now the game starts with missing files on the screen and i can't start the game. so i had to delete and reinstall the game + update v1.40.

This is probably due to the fact that it does not support certain languages, since the extracted folder EP0002-CUSA00433_00-D3ULTIMATEEVIL00-A0142-V0101\image0\update\cpks only seems to contain enUS, esMEX and frFR patch files, such as frFR_Patch2_6_0b.cpk to frFR_Patch2_7_4. cpk (also applies to the other languages).. really very sad.

I also tested whether the base game can also be in the root or in another folder. this is also the case, but after the successful creation, he always wants to extract a second time and the cmd line just breaks at some point and disappears.

Spoiler: cmd txt
 
It's a pity that it failed due to missing files,
after all, modifying the patch is more difficult than dlc.

the extract behavior at the end is really incredible, and I'm not sure why.

thank you @esme for taking the time to test and give back!
 
Status
Not open for further replies.
Back
Top