Editing Talk:PKG files

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

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:
= Examples =
== 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.


== PS3 ==
=== Examples ===
 
==== PS3 ====
[[Emulation#PS2_System_Data_.28PSN_HDD_Tool_package.29|PS2 HDD Utility (Finalized)]]:
[[Emulation#PS2_System_Data_.28PSN_HDD_Tool_package.29|PS2 HDD Utility (Retail)]]:
  Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
  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€......À....
  00000000  7F 50 4B 47 80 00 00 01 00 00 00 C0 00 00 00 05  .PKG€......À....
Line 12: Line 13:
  00000050  30 30 30 31 00 00 00 00 00 00 00 00 00 00 00 00  0001............
  00000050  30 30 30 31 00 00 00 00 00 00 00 00 00 00 00 00  0001............


[[Life_with_PlayStation|Life With Playstation (Finalized)]]:
[[Life_with_PlayStation|Life With Playstation (Retail)]]:
  Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
  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€......À....
  00000000  7F 50 4B 47 80 00 00 01 00 00 00 C0 00 00 00 07  .PKG€......À....
Line 20: Line 21:
  00000040  5F 30 30 2D 30 30 30 30 31 31 31 31 32 32 32 32  _00-000011112222
  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............
  00000050  33 33 33 33 00 00 00 00 00 00 00 00 00 00 00 00  3333............
 
==== PSVita ====
== PSP ==
[http://gs.ww.np.dl.playstation.net/ppkg/np/PCSG00001/PCSG00001_T1/c653f481544f8b19/JP0700-PCSG00001_00-RIDGERACERPSVITA-A0101-V0100-fd9baf01343b2db6df0d434b17ef822a9699c6da-PE.pkg  Ridgeracers (Retail)]:
 
[http://zeus.dl.playstation.net/cdn/JP9000/NPJG00034_00/OGaeWJ5U4GNM3SH9xwYqVf1Tr4dkQuqAPisX6uIvf7WdUNiscK9j2IarRt9AAHqEnB31mhUPv1YD0YIogEUipSRTee3iGlxfc3C9m.pkg Locoroco -Midnight Carnival- Demo (Finalized)]:
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 09  .PKG€......€....
00000010  00 00 00 E0 00 00 00 0A 00 00 00 00 0A 72 6B F0  ...à.........rkð
00000020  00 00 00 00 00 00 04 E0 00 00 00 00 0A 72 65 30  .......à.....re0
00000030  4A 50 39 30 30 30 2D 4E 50 4A 47 30 30 30 33 34  JP9000-NPJG00034
00000040  5F 30 30 2D 4C 4F 43 4F 52 4F 43 4F 4D 43 47 41  _00-LOCOROCOMCGA
00000050  4D 45 30 31 00 00 00 00 00 00 00 00 00 00 00 00  ME01............
 
== PSVita ==
 
[http://gs.ww.np.dl.playstation.net/ppkg/np/PCSG00001/PCSG00001_T1/c653f481544f8b19/JP0700-PCSG00001_00-RIDGERACERPSVITA-A0101-V0100-fd9baf01343b2db6df0d434b17ef822a9699c6da-PE.pkg  Ridgeracers (Finalized)]:
  Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
  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€......€....
  00000000  7F 50 4B 47 80 00 00 02 00 00 02 80 00 00 00 0D  .PKG€......€....
Line 43: Line 31:
  00000050  56 49 54 41 00 00 00 00 00 00 00 00 00 00 00 00  VITA............
  00000050  56 49 54 41 00 00 00 00 00 00 00 00 00 00 00 00  VITA............


=== Infos from deroad's pkgtool ===
==Misc:==
 
https://pastebin.com/pBGUHz5g
 
=== JP0365-PCSG90004_00-SKP2TRIAL0000000 ===
 
dead multiupload link (110.63 MB)
 
But we have the .pkg of full version here (JP0365-PCSG00020_00-SKP2SKP200000000) :
http://zeus.dl.playstation.net/cdn/JP0365/PCSG00020_00/fAREUmIgLtRvGdSjrOvCZoYeVmnHCSrjANZHEavyGZIvhruYikDWrypBneaiYvVEMEnfqAeZcbVKlouoCKiLqIWjgfjcWwrEYypTl.pkg (1.2GB)
 
=== JA0003-PCSC80003_00-UKETORNE00000000 ===
 
http://zeus.dl.playstation.net/cdn/JA0003/PCSC80003_00/XhpjkGuFzSbYuYcCbHexUVrpxNSySjnqpmgtsJPUOMQesaLjFaKQrCKxfXVAlUdUQqISGaJVFOdppaZKRGzfGdEMdtCeCzubpWClM.pkg (12.6 MB)
 
= Some dump of PSP .ext header =
 
<pre>
000000c0  7f 65 78 74 00 00 00 01  00 00 00 40 00 00 01 80  |.ext.......@....|
000000d0  00 00 01 00 00 00 03 90  00 00 00 00 00 02 ab 60  |...............`|
000000e0  00 00 00 00 00 00 00 01  00 00 00 00 00 00 00 00  |................|
000000f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000100  4b fd f5 10 e1 22 4e 37  d6 27 f7 15 36 fe 4f f4  |K...."N7.'..6.O.|
00000110  5a 34 41 63 c7 c4 ea fa  c2 c5 34 42 12 6e 70 f5  |Z4Ac......4B.np.|
00000120  0e 6b 53 56 6c 4b 35 32  53 59 07 d7 13 6b 54 99  |.kSVlK52SY...kT.|
00000130  4e 92 8e d4 fd 16 99 82  cb 3b ed 78 61 00 9d cf  |N........;.xa...|
00000140  6a 53 7c 58 b6 10 9c c9  32 ed 61 fc f1 1f ab 2e  |jS|X....2.a.....|
00000150  3c 3c 6a d3 94 f0 13 af  69 53 71 6c 0a 8f 8f 25  |<<j.....iSql...%|
00000160  3e b7 75 63 cd a7 43 a3  20 8a 68 7f 08 39 b4 54  |>.uc..C. .h..9.T|
00000170  34 f5 f2 59 5b 4c ef f0  2a aa 45 b1 6a e3 88 f4  |4..Y[L..*.E.j...|
00000180  59 27 fc 75 c0 d6 ad c6  d8 76 27 4f f9 e2 d3 ff  |Y'.u.....v'O....|
00000190  49 da 09 3a b5 4c 60 04  66 2a 3c 68 2c 8c 14 08  |I..:.L`.f*<h,...|
000001a0  c8 1b 1a e0 61 1a 70 cb  7c d2 d1 a5 ca 56 c4 b7  |....a.p.|....V..|
000001b0  4d 58 40 50 38 67 80 0e  43 86 b2 90 28 78 e1 ee  |[email protected]...(x..|
000001c0  1a 70 4a ab 27 9d a4 53  63 3b 9c e2 76 35 7e 66  |.pJ.'..Sc;..v5~f|
000001d0  43 f3 39 27 70 5d c9 7c  51 ae 3a 03 e6 82 38 de  |C.9'p].|Q.:...8.|
000001e0  7e 8d e2 a8 a0 da 79 c0  bf 3b ab fd 72 e2 ac d1  |~.....y..;..r...|
000001f0  9f c8 91 ad 98 77 34 8c  79 d5 6e e3 3e fb d0 96  |.....w4.y.n.>...|
00000200  71 1f 98 16 b7 6a 3b 99  7c e7 d4 b6 b4 77 5b a4  |q....j;.|....w[.|
00000210  e8 78 2f a0 5e 9e 37 65  ac 85 7b d2 66 8d a6 02  |.x/.^.7e..{.f...|
00000220  ee fb 23 95 ea 77 31 d3  00 16 f8 25 23 87 e0 75  |..#..w1....%#..u|
00000230  8e 5b 79 d9 e1 fc 2c 15  ad 9e 47 6f 15 00 4a 04  |.[y...,...Go..J.|
00000240  b9 29 bb af 9c b6 c6 c4  8a 59 cc ad f7 cc c1 9c  |.).......Y......|
00000250  2b 65 00 86 81 fe 2e 58  34 3c a0 49 e2 6e d9 d5  |+e.....X4<.I.n..|
00000260  e5 ab 27 1e 9d c7 76 00  08 a3 39 e0 65 e1 4c a8  |..'...v...9.e.L.|
00000270  cb 61 e6 6d f1 0d 97 ae  4f 4c a0 aa 53 93 e7 38  |.a.m....OL..S..8|</pre>
 
== Dump of finalized PSVita Ridge Racer (JP0700-PCSG00001_00-RIDGERACERPSVITA) ==
 
<pre>
000000c0  7f 65 78 74 00 00 00 01  00 00 00 40 00 00 01 80  |.ext.......@....|
000000d0  00 00 01 00 00 00 04 90  00 00 00 00 04 ba 74 d0  |..............t.|
000000e0  00 00 00 00 c0 00 00 02  00 00 09 30 00 00 00 00  |...........0....|
000000f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000100  93 f8 1c 4f 31 9d 7d f9  d4 8c fe 55 65 15 34 eb  |...O1.}....Ue.4.|
00000110  1e 06 c4 de 82 d8 25 85  e5 5c 29 4a 80 97 88 ff  |......%..\)J....|
00000120  74 c2 79 6b 70 56 44 33  47 42 1b e6 a5 0d f9 12  |t.ykpVD3GB......|
00000130  31 7c 2f a8 d3 35 84 84  52 b4 9f eb 37 2b 75 9d  |1|/..5..R...7+u.|
00000140  bd 36 20 ac af 57 85 18  c6 e7 74 44 fc 7c 62 12  |.6 ..W....tD.|b.|
00000150  6f a9 88 3c b1 a0 72 91  22 b8 4c fb 5c 8f 51 60  |o..<..r.".L.\.Q`|
00000160  47 92 f5 34 4e c9 3c 1c  e2 2d a1 b8 9c f3 8d 8c  |G..4N.<..-......|
00000170  f1 11 b3 7c e3 28 4f 8b  ab 53 bd c1 ea 09 98 e6  |...|.(O..S......|
00000180  6f c6 eb c1 44 25 8d 22  44 2c c0 41 bd bb 52 76  |o...D%."D,.A..Rv|
00000190  70 cd 88 cb 39 93 9e a8  a6 db 1e a3 29 2f fb 6f  |p...9.......)/.o|
000001a0  3c d1 43 ca 2c bc c6 46  54 ce ed b6 21 22 54 9e  |<.C.,..FT...!"T.|
000001b0  09 8d 9a 59 2e 3a 2d 76  0b 0d d4 6d eb 54 b3 70  |...Y.:-v...m.T.p|
000001c0  cb eb f7 96 d0 7c f4 c5  71 2f d7 c1 a4 af 77 cd  |.....|..q/....w.|
000001d0  e0 9b df 58 e3 6b cd eb  e2 31 d7 89 7c 2b 4f ba  |...X.k...1..|+O.|
000001e0  03 f3 cd f9 a5 fa 77 c5  95 6f 90 b6 f6 fa c3 92  |......w..o......|
000001f0  48 48 3e 59 b6 ef 1f 89  1f a1 f2 1f c4 93 96 af  |HH>Y............|
00000200  44 3e 21 b8 cb ab ab a1  d2 0f 91 dc 9c f1 9b 32  |D>!............2|
00000210  10 89 80 2c 90 ec f7 4e  8e 62 3a 1a 4e 39 3f 02  |...,...N.b:.N9?.|
00000220  49 3a 35 8d e5 94 3d 8d  00 15 21 44 5d 65 d1 7c  |I:5...=...!D]e.||
00000230  5b 10 fb 54 e4 29 66 46  58 67 b3 7c a7 00 13 58  |[..T.)fFXg.|...X|
00000240  f6 ae ae 06 86 f7 81 d4  0e d0 02 b5 18 2f be 4b  |............./.K|
00000250  99 49 00 60 60 06 40 73  34 ee c7 83 1f 3c 50 72  |.I.``.@s4....<Pr|
00000260  7c 3f ab 86 c0 22 67 00  66 14 bc 26 f5 16 67 df  ||?..."g.f..&..g.|
00000270  4d 48 ce 93 d4 5b 46 92  32 ea d4 12 b2 06 a8 36  |MH...[F.2......6|
</pre>
 
= More infos =
 
=== Link with PDB ===
 
See also [[Project_Database_%28PDB%29]].
 
=== Deroad tutorial ===
 
Mega-Thread HACKING a PS3 - Tutorials and Explanations by Deroad : [http://www.ps3hax.net/showthread.php?t=23771 on ps3hax], [http://psx-scene.com/forums/f149/%5Bmega-thread%5D-hacking-ps3-tutorials-explanations-88209/ on psx-scene] or [http://www.nextgenupdate.com/forums/ps3-cheats-customization/343956-mega-thread-hacking-ps3-tutorials-explanations-8.html on nextgenupdate]
 
=== make_package_npdrm reverse engineering ===
 
Make Package infos [http://jerem73.wordpress.com/2011/01/08/make-package/ by DrEB (alias jerem73)].
<div style="height:405px; overflow:auto">
'''- Main Packages Type :'''
 
* Update (seams to be a revision of Disc Game Patch Package)
 
** Warning: needs a custom argument: ```./make_package_npdrm --patch-for-discgame <path>```
 
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Free
ContentType = Update
PackageVersion = 01.00
 
* Game Data
 
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Free
ContentType = GameData
PackageVersion = 01.00
 
 
* Disc Game Patch
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Free
ContentType = GameData
PackageType = DiscGamePatch
PackageVersion = 01.00
 
 
* Disc Game Patch without EBOOT.BIN
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Free
ContentType = GameData
PackageType = DiscGamePatch
PackageType = NoEBOOTBIN
PackageVersion = 01.00
 
 
* HDD Game
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Free
ContentType = GameExec
PackageVersion = 01.00
 
 
* HDD Game Patch
 
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Free
ContentType = GameExec
PackageType = HDDGamePatch
PackageVersion = 01.00
 
 
* License
 
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Local
ContentType = License
PackageVersion = 01.00
 
 
* [[PlayStation 3 Theme (P3T)| Custom Theme]]
 
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Local
ContentType = Theme
PackageVersion = 01.00
 
 
* [[XMBML module-action|VSH Module]] (See also [[VSH|VSH page]])
 
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 along with Key
 
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 :'''
<span style="background:red; color:#FFFFFF;">'''! Be carefull !'''</span>
 
 
* ForcedInstallTo
 
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Free
ContentType = GameExec
ForcedInstallTo =
PackageVersion = 01.00
 
** Allows installing packages to any hdd directory (and flash if it's writable).
 
 
* 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
</div>
 
== 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)
 
== Header Types statistics ==


=== Header Type 1 ===
*From network: see [[Project_Database_%28PDB%29]]


Primarily for PS3 packages.
*Serial number folder type name (on UTC): _INST_YYYYMMDDHHMMSSSSSSSSSS (for HDD0/game/ but failure can also create regular folder id)
Found with different header sizes:
* 0x80: 121x
* 0xa0:  847x
* 0xc0: 5920x
* 0xd0:  62x
* 0xe0:    7x
* 0xf0:  70x


=== Header Type 2 ===
*Type 1: PS3, NEOGEO...


Found with different header sizes:
*Type 2: PS1 Classic, PS VITA, PSP, MINIS...
* 0xa0: 348x
* 0xe0: 2600x
* 0xc0: 258x
* 0xf0: 176x
* 0x110: 576x
* 0x120: 5x
* 0x160: 683x
* 0x1d0: 6570x
* 0x1e0: 14x
* 0x210: 4177x
* 0x220: 569x
* 0x250: 12x
Please note that all contributions to PS3 Developer wiki are considered to be released under the GNU Free Documentation License 1.2 (see PS3 Developer wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)