pkgrename v1.06d
Current release: Jul 23 2023
Changelog v1.06d:
- Fixed option -p, --pattern causing a segfault.
Changelog v1.06c:
- Added overflow checks to guard against corrupted PKG data.
- New command: [L] - Print existing changelog data.
Changelog v1.06b:
- More patch detection fixes.
- %true_ver% now works for update PKGs, too.
Changelog v1.06a:
- Fixed command [P] not resetting pattern variable %true_ver%.
Changelog v1.06:
- Improved backport detection.
- Fixed %true_ver% pattern being ignored.
- Other small bug fixes & improvements.
Changelog v1.06 Beta:
- Fixed a bug that caused PKGs to be skipped after user input.
- The tool now tries to detect apps that contain a merged patch (remaster or manually merged). Please report any false positives or wrong version numbers.
- New command: [P] - (Hidden) Toggle merged patch detection for app PKGs.
- Added pattern variables %merged_ver% and %true_ver%, which can be used to show a merged patch's version. If a merged patch is found, both %merged_ver% and %true_ver% are the patch version. If no patch is found, %merged_ver% is empty and %true_ver% is %app_ver%.
- The default pattern has been updated to include %merged_ver%.
Changelog v1.05f:
- Windows 11: fixed an issue that prevents the Windows 11 terminal from opening files whose filenames contain special characters.
- Windows 10/11: fixed filenames not displaying properly even if the Windows UTF-8 beta feature is enabled.
- Windows: fixed online search.
Changelog v1.05e:
- Unless manually specified, directories starting with "." or "$" (i.e. $RECYCLE.BIN) are now ignored when using option -r, --recursive.
- Pattern variable %region% is now displayed as either "AS", "EU", "JP", "US", or "IN".
Changelog v1.05d:
- Added pattern %region% (first two characters of the Content ID) as requested in #3.
- Fixed a bug that happened when using tag files that contain empty lines.
Changelog v1.05:
- Fixed a bug in word/release detection (most notably "HR").
- The same pattern variables can now be used more than once.
- New option -c, --compact: Hide files that are already renamed (esp. useful with option -n and large PKG collections).
- New option --tags: Load additional %release% tags from a string.
- New option --tagfile: Load additional %release% tags from a text file.
- Generally improved search/replace functions for better results.
This is a Windows release of the command line utility "pkgrename", which can help to organize PS4 PKG collections.
Type "pkgrename --version" to see your current release.
At least Windows 10 build 17063 is required to use the online search feature out-of-the-box.
Alternatively, install cURL for Windows: https://curl.se/download.html.
Please report bugs and unexpected behavior at https://github.com/hippie68/pkgrename/issues.
How to run pkgrename.exe from anywhere with modified arguments:
Put pkgrename.exe in a folder (you can also put other command line programs there). Inside that folder, create a new batch file named "pkgrename.bat" and open it with Notepad. Write the following lines, while replacing ARGUMENTS with your preferred arguments:
@echo off
pkgrename.exe ARGUMENTS %*
For example:
@echo off
pkgrename.exe --pattern "%%title%% [%%title_id%%]" --tagfile "C:\Users\Luigi\pkgrename_tags.txt" %*
As seen above, if the batch file contains pattern variables, their percent signs need to be escaped by doubling them. For example, %title% must be changed to %%title%%.
Now click Start, type "env" and select "Edit environment variables for your account". Select "Path" and click edit. Select "New" and enter the folder where you put pkgrename.bat into. Close and reopen any opened command line windows for the changes to apply.
How to fix character issues:
PS4 PKGs use UTF-8 strings. If some special characters are not displayed properly, on Windows 10/11 you can enable the UTF-8 beta feature: Settings - Time & Language - Language - Administrative language settings - Change system locale... - Beta: Use Unicode UTF-8 for worldwide language support.
If there are still problems after enabling the beta feature, please visit #5.
Downloads:
pkgrename.exe for 64-bit Windows
pkgrename_32.exe for 32-bit Windows