Talk:PKG files

From PS3 Developer wiki
Revision as of 22:53, 10 August 2013 by Ada L0ve Lace (talk | contribs) (little re order)
Jump to navigation Jump to search

pkg_type

pkg_type 	0x4 	u32 	The package type is 1 for PS3 pkg and 2 for PSP/Vita packages. the flag 0x80000000 is used for retail.
  • Type 1: PS3, NEOGEO...
  • Type 2: PS1 Classic, PS VITA, PSP, MINIS...

Examples

PS3

PS2 HDD Utility (Retail):

Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000000  7F 50 4B 47 80 00 00 01 00 00 00 C0 00 00 00 05  .PKG€......À....
00000010  00 00 00 80 00 00 00 05 00 00 00 00 00 67 AE 80  ...€.........g®€
00000020  00 00 00 00 00 00 01 40 00 00 00 00 00 67 AC E0  [email protected]¬à
00000030  49 50 39 31 30 30 2D 4E 50 49 41 30 30 30 30 31  IP9100-NPIA00001
00000040  5F 30 30 2D 50 53 32 48 44 44 53 59 53 44 41 54  _00-PS2HDDSYSDAT
00000050  30 30 30 31 00 00 00 00 00 00 00 00 00 00 00 00  0001............

Life With Playstation (Retail):

Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000000  7F 50 4B 47 80 00 00 01 00 00 00 C0 00 00 00 07  .PKG€......À....
00000010  00 00 00 A0 00 00 02 7F 00 00 00 00 07 CE D7 C0  ... .........Î×À
00000020  00 00 00 00 00 00 01 60 00 00 00 00 07 CE D6 00  .......`.....ÎÖ.
00000030  49 50 39 31 30 30 2D 4E 50 49 41 30 30 30 30 32  IP9100-NPIA00002
00000040  5F 30 30 2D 30 30 30 30 31 31 31 31 32 32 32 32  _00-000011112222
00000050  33 33 33 33 00 00 00 00 00 00 00 00 00 00 00 00  3333............

PSVita

Ridgeracers (Retail):

Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000000  7F 50 4B 47 80 00 00 02 00 00 02 80 00 00 00 0D  .PKG€......€....
00000010  00 00 02 10 00 00 00 10 00 00 00 00 04 BA 76 70  .............ºvp
00000020  00 00 00 00 00 00 10 D0 00 00 00 00 04 BA 63 C0  .......Ð.....ºcÀ
00000030  4A 50 30 37 30 30 2D 50 43 53 47 30 30 30 30 31  JP0700-PCSG00001
00000040  5F 30 30 2D 52 49 44 47 45 52 41 43 45 52 50 53  _00-RIDGERACERPS
00000050  56 49 54 41 00 00 00 00 00 00 00 00 00 00 00 00  VITA............

Links:

See also Project_Database_(PDB)


Mega-Thread HACKING a PS3 - Tutorials and Explanations by Deroad : on ps3hax, on psx-scene or on nextgenupdate


Make Package: by DrEB

"This post can be updated to add any new package type/discovery." 
//should be since this was published January 8, 2011 or we
erase this because archaic, tooled many times, and in with other pages?


- Main Packages Type :


  • Game Data Package
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Free
ContentType = GameData
PackageVersion = 01.00


  • HDD Game Package
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Free
ContentType = GameExec
PackageVersion = 01.00


  • HDD Game Patch Package
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Free
ContentType = GameExec
PackageType = HDDGamePatch
PackageVersion = 01.00


  • Disc Game Patch Package
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Free
ContentType = GameData
PackageType = DiscGamePatch
PackageVersion = 01.00


  • License
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Local
ContentType = License
PackageVersion = 01.00


ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Local
ContentType = Theme
PackageVersion = 01.00


ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Free
ContentType = VSHModule
PackageVersion = 01.00


  • PS1 Game
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Local
ContentType = PS1Game
TitleID = XXXXYYYYY
PackageVersion = 00.00


  • Minis
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Local
ContentType = minis
TitleID = XXXXYYYYY
PackageVersion = 01.00


- Advanced Packages Items :


  • Demo with Key Package
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Free
ContentType = GameExec
PackageType = Demo
PackageVersion = 01.00
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Free
ContentType = GameExec
PackageType = Key
PackageVersion = 01.00


  • Date limitations
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Local
ContentType = GameExec
LimitedTimeStart = YYYY-MM-DDThh:mmTZD
LimitedTimeEnd = YYYY-MM-DDThh:mmTZD
PackageVersion = 01.00


- Specials Packages Items : /! Be carefull /!


  • ForcedInstallTo
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Free
ContentType = GameExec
ForcedInstallTo =
PackageVersion = 01.00


  • InstallDirectory
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Free
ContentType = GameExec
InstallDirectory =
PackageVersion = 01.00


  • PackageFlag
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Free
ContentType = GameExec
PackageFlag =
PackageVersion = 01.00


Misc:

  • Serial number folder type name (on UTC) on /dev_hdd0/game/ :

_INST_YYYYMMDDHHMMSSSSSSSSSS (failure can also create regular folder id)

_GDATA_YYYYMMDDHHMMSSSSSSSSSS

_DEL_YYYYMMDDHHMMSSSSSSSSSS/USRDIR/JITGenerated (empty folder tree structure created after a error when trying to erase a content from "game data"). The folder "JITGenerated" was the responsible of the problem, not posible to erase from XMB (with triangle over the "corrupted data icon" replying with an "not possible to access HDD") neither from FTP (replying with an error "not posible to display folder contents")... after several "restore filesystem" and "rebuild database" the corrupted icon was moved out of "game data" and his timestamp changed (the YYYYMMDDHHMMSSSSSSSSSS in the main folder name was updated to an actual timestamp so it was "regenerated"). The only way to erase it is with a filemanager running in PS3 (is not possible to erase the "corrupted data" icon in an official firmware until you format the HDD)

  • Other system names in path dev_hdd0/home/<user_id>/trophy/

_BU_NPWR12345_00 (this is a "BackUp" of a trophy installation folder), is created when there is a installation of an update for the game containing a TROPHY.TRP installer (to avoid overwriting the trophy installation folder the system creates a backup of the "old" folder, it seems this _BU_ folders are not erased later only overwrited when the update process is repeated)