Editing PKG files
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
See also {{talk}} page, [ | See also {{talk}} page, [http://www.psdevwiki.com/ps4/PKG_files PS4 PKG], [[PKG_DIGEST.DAT]], [https://playstationdev.wiki/psvitadevwiki/index.php?title=System_File_Object_(SFO)_(PSF)]. | ||
There are two kinds of SCE package files (.pkg): | There are two kinds of SCE package files (.pkg): | ||
* System Software Update Packages (.pkg) | * System Software Update Packages (.pkg) | ||
* NPDRM Packages (.pkg) | * NPDRM Packages (.pkg) | ||
= System Software Update Packages = | = System Software Update Packages = | ||
Line 280: | Line 280: | ||
! Identifier !! PKG type !! Category name !! Possible size !! Possible values | ! Identifier !! PKG type !! Category name !! Possible size !! Possible values | ||
|- | |- | ||
|0x1 || All || | |0x1 || All || DRM Type || 4 || 0/5/6/7/8/9/0xA/0xB/0xC (unknown), 0x1 (network), 0x2 (local), 0x3 (DRMfree no license), 0x4 (PSP), 0xD (DRMfree with license), 0xE (PSM) | ||
|- | |- | ||
|0x2 || All || [[PKG_files#ContentType|ContentType]] || 4 || 00 00 00 07 | |0x2 || All || [[PKG_files#ContentType|ContentType]] || 4 || 00 00 00 07 | ||
Line 292: | Line 292: | ||
|0x6 || PSP || Version + App Version / [[TitleID]] (on size 0xC) || 0xC || "NPEG00005\0\0\0" | |0x6 || PSP || Version + App Version / [[TitleID]] (on size 0xC) || 0xC || "NPEG00005\0\0\0" | ||
|- | |- | ||
|0x7 || PSP | |0x7 || PSP and PS3 || QA Digest (described as "This is a digest of packaged files and attributes.")|| 0x18 || 00 00 00 00 00 00 00 00 B5 76 E1 D9 00 EE 9B BC 8E 24 17 91 5D BC 5A CB | ||
|- | |- | ||
|0x8 || All || unk (1 byte) + PS3/PSP/PSP2 System Version (3 bytes) + Package Version (2 bytes) + App Version (2 bytes) || 8 || 00 00 00 00 00 00 00 00, 00 00 00 00 01 00 01 00, 44 01 70 00 01 01 00 00, 81 01 90 00 01 00 01 00, 81 04 75 00 01 02 01 00 (4.7500, 1.02, 1.00) --> unk: 44 maybe PSP and 02/80/81 PS3 | |0x8 || All || unk (1 byte) + PS3/PSP/PSP2 System Version (3 bytes) + Package Version (2 bytes) + App Version (2 bytes) || 8 || 00 00 00 00 00 00 00 00, 00 00 00 00 01 00 01 00, 44 01 70 00 01 01 00 00, 81 01 90 00 01 00 01 00, 81 04 75 00 01 02 01 00 (4.7500, 1.02, 1.00) --> unk: 44 maybe PSP and 02/80/81 PS3 | ||
Line 331: | Line 331: | ||
|0x3 || || || || | |0x3 || || || || | ||
|- | |- | ||
|0x4 || GameData || /dev_hdd0/game/ || || | |0x4 || GameData (also patches) || /dev_hdd0/game/ || || | ||
|- | |- | ||
|0x5 || GameExec || /dev_hdd0/game/ || || | |0x5 || GameExec || /dev_hdd0/game/ || || | ||
Line 337: | Line 337: | ||
|0x6 || PS1emu || /dev_hdd0/game/ || ux0:pspemu/PSP/GAME/ || | |0x6 || PS1emu || /dev_hdd0/game/ || ux0:pspemu/PSP/GAME/ || | ||
|- | |- | ||
|0x7 || PSP || /dev_hdd0/game/ || ux0:pspemu/PSP/GAME/ || | |0x7 || PSP & PCEngine || /dev_hdd0/game/ || ?ux0:pspemu/PSP/GAME/? || | ||
|- | |- | ||
|0x8 || || || || | |0x8 || || || || | ||
Line 353: | Line 353: | ||
|0xE || PSPgo || /dev_hdd0/game/ || || Displayed as Unknown Album: Corrupted Data | |0xE || PSPgo || /dev_hdd0/game/ || || Displayed as Unknown Album: Corrupted Data | ||
|- | |- | ||
|0xF || | |0xF || Minis || /dev_hdd0/game/ || ux0:pspemu/PSP/GAME/ || | ||
|- | |- | ||
|0x10 || NEOGEO || /dev_hdd0/game/ || ux0:pspemu/PSP/GAME/ || | |0x10 || NEOGEO || /dev_hdd0/game/ || ux0:pspemu/PSP/GAME/ || | ||
Line 369: | Line 369: | ||
|0x16 || PSP2AC (PS Vita Additional Content) || || ux0:addcont/ || | |0x16 || PSP2AC (PS Vita Additional Content) || || ux0:addcont/ || | ||
|- | |- | ||
|0x17 || PSP2LA (PS Vita LiveArea) || || ux0: | |0x17 || PSP2LA (PS Vita LiveArea) || || ?ux0:livearea/? || | ||
|- | |- | ||
|0x18 || PSM (PS Vita PSM) || || ux0:psm/ || [https://www.playstation.com/en-ca/explore/playstation-mobile/ PlayStation Mobile] | |0x18 || ?PSM? (PS Vita PSM) || || ux0:psm/ || [https://www.playstation.com/en-ca/explore/playstation-mobile/ PlayStation Mobile] | ||
|- | |- | ||
|0x19 || WT || /dev_hdd0/game/ || || | |0x19 || WT (?Web TV?) || /dev_hdd0/game/ || || | ||
|- | |- | ||
|0x1D || PSM | |0x1D || ?PSM? (PS Vita PSM) || || || | ||
|- | |- | ||
|0x1F || PSP2Theme (PS Vita Theme) || || ux0:theme/ || | |0x1F || PSP2Theme (PS Vita Theme) || || ux0:theme/ || | ||
Line 709: | Line 709: | ||
| data_size || 0x10 || u64 || | | data_size || 0x10 || u64 || | ||
|- | |- | ||
| flags || 0x18 || u32 || The file type | | flags || 0x18 || u32 || The file type | ||
|- | |- | ||
| padding || 0x1C || u32 || zero | | padding || 0x1C || u32 || zero | ||
Line 733: | Line 733: | ||
==== package.conf (PSP/PS3/PS Vita) ==== | ==== package.conf (PSP/PS3/PS Vita) ==== | ||
{| class="wikitable" | {| class="wikitable" | ||
! Configuration name !! Usage !! Expected value !! Example !! Notes | ! Configuration name !! Usage !! Expected value !! Example !! Notes | ||
|- | |- | ||
| | | Content_ID || needed || XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX || EP4153-NPEZ00314_00-0000111122223333 || | ||
|- | |- | ||
| | | K_licensee (PS3) || needed (can be set to 0x00000...) || 0x00000000000000000000000000000000 || 0x0123456789ABCDEF0123456789ABCDEF || | ||
|- | |- | ||
| DRMType || needed || Network / Free / Local | | DRMType || needed || Network / Free / Local || Free || | ||
|- | |- | ||
| ContentType || needed || See [[PKG_files#ContentType]] || minis || | | ContentType || needed || See [[PKG_files#ContentType]] || minis || | ||
|- | |- | ||
| PackageVersion || needed || | | PackageVersion || needed || XX.XX || 01.02 || | ||
|- | |- | ||
| PackageType || || See [[PKG_files#PackageType]] || DiscGamePatch || | | PackageType || || See [[PKG_files#PackageType]] || DiscGamePatch || | ||
Line 764: | Line 762: | ||
|- | |- | ||
| ForcedInstallTo || Allows installing packages to any HDD directory (and even flash memory if it is mounted RW). || || || | | ForcedInstallTo || Allows installing packages to any HDD directory (and even flash memory if it is mounted RW). || || || | ||
|} | |} | ||
Line 840: | Line 834: | ||
==== PSP SDK official tool: make_package_npdrm (2006-2014) ==== | ==== PSP SDK official tool: make_package_npdrm (2006-2014) ==== | ||
* latest version: rev 1642 | * latest version: rev 1642 from 6.60 PSP SDK | ||
==== PS3 SDK official tool: make_package_npdrm (2006- | ==== PS Vita SDK official tool: make_pkg.exe (2011-2014) ==== | ||
* latest version: make_pkg.exe rev 1972 (2014-06-29) from PublishingTools version 2.31.0.1669 in 3.55/3.57 PS Vita SDK. | |||
==== PS3 SDK official tool: make_package_npdrm (2006-2017) ==== | |||
* oldest known version: rev 1061 in ?.?? PS3 SDK | * oldest known version: rev 1061 in ?.?? PS3 SDK | ||
Line 849: | Line 847: | ||
* most famous version: rev 1732 in 3.40 PS3 SDK (also found under unofficial patched form) | * most famous version: rev 1732 in 3.40 PS3 SDK (also found under unofficial patched form) | ||
* rev 1754 in 3.60 PS3 SDK | * rev 1754 in 3.60 PS3 SDK | ||
* latest known version: rev 1972 in 4.75 PS3 SDK | |||
* latest version: rev 1972 in 4.75 PS3 SDK | |||
==== Make Package Npdrm Patcher (revision 1732) by SubZero Dezigns (2012) ==== | ==== Make Package Npdrm Patcher (revision 1732) by SubZero Dezigns (2012) ==== | ||
Line 1,025: | Line 944: | ||
[https://github.com/st4rk/PkgDecrypt Source code] | [https://github.com/st4rk/PkgDecrypt Source code] | ||
==== PKGrip by qwikrazor87 (2018) ==== | ==== PKGrip by qwikrazor87 (2018) ==== |