Editing Project Database (PDB)

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:
'''PDB''' (Project Database) files are used by the PS3 to specify tasks for the XMB to do. They are stored in /dev_hdd0/vsh/task/ in 4 byte hex directories (e.g. 00000001/, 001ABCD0/)  
PDB (Package Database?) files are used by the PS3 to specify tasks for the XMB to do. They are stored in /dev_hdd0/vsh/task/ in 4 byte hex directories (e.g. 00000001/, 001ABCD0/)  


Each directory represents an task id and each task is defined by a couple of .pdb files. I believe pdb means package database, since the only place where these files appear is in /dev_hdd0/vsh/task and they seem to represent a .pkg download.  
Each directory represents a task and each task is defined by a couple of .pdb files. I believe pdb means package database, since the only place where these files appear is in /dev_hdd0/vsh/task and they seem to represent a .pkg download.  


There will always be a 00000001/ directory with no .pkg file in it. I suppose it's there to represent another task the PS3 has to do (maybe the 'check for push downloads' for PSN+ users?), and I suggest never to mess with it.  
There will always be a 00000001/ directory with no .pkg file in it. I suppose it's there to represent another task the PS3 has to do (maybe the 'check for push downloads' for PSN+ users?), and I suggest never to mess with it.  
Line 7: Line 7:
Every other directory seems to represent a .pkg file that is being downloaded or has been downloaded (but not installed) through PSN. In each directory you should find the .pkg, a PNG image to show (filename ICON_FILE), and two or three .pdb files (d0.pdb and d1.pdb and an empty f0.pdb, which may or may not be there).  
Every other directory seems to represent a .pkg file that is being downloaded or has been downloaded (but not installed) through PSN. In each directory you should find the .pkg, a PNG image to show (filename ICON_FILE), and two or three .pdb files (d0.pdb and d1.pdb and an empty f0.pdb, which may or may not be there).  


When there are unfinished/not installed (PS3 files, not for PSP or PSVITA) downloaded task, xmb/users/Turn Off System can appear the option to turn off the system automatically after background download.


=== Header ===   
=== Header ===   
Line 14: Line 13:


=== Data Entries ===
=== Data Entries ===
{| class="wikitable"
{| border="1"
!Offset
!Offset
!Length
!Length
Line 43: Line 42:


=== Entry IDs ===
=== Entry IDs ===
{| class="wikitable"
{| border="1"
!File Entry ID
!File Entry ID
!Filename   
!Filename   
|-
|-
|0x64
|
|- 
|0x65
| Task active (0=paused, 1=downloading)
|- 
|0x66
| Task unregister auto.
|- 
|0x68
|
|- 
|0x69  
|0x69  
|Package Name (Task Title)
|Package Name
|-   
|-   
|0x6A   
|0x6A   
|Icon Path
|Icon Patch
|-  
|-  
|0x6B
|Task Subtype (0=photo,1=music,2=video,4=patch?)
|- 
|0x6C
|
|- 
|0xC8
| Authentication UserName
|- 
|0xC9
| Authentication Password
|- 
|0xCA   
|0xCA   
|Server URL/URI  
|Server URL   
|-
|-
|0xCB  
|0xCB  
Line 84: Line 59:
|-   
|-   
|0xCC  
|0xCC  
  |Package Last-Modified
  |Package Creation Date  
|-
|0xCD
  |  Move XCB
|-
|-
|0xCE  
|0xCE  
  |Package File Size   
  |Package File Size   
|-
|0xCF
|
|-
|-
|0xD0
|0xD0
  |Downloaded Size/Received Length
  |Downloaded Size   
|-
|0xD1
  |Referer?
|-
|0xD2
|
|-
|0xD3
|
|-
|0xD5
|(Video) PlayCount
|-
|0xD6
|(Video) StopPointInfo
|-
|0xD7
|(Video) StopPointInfoSuppl
|-
|0xD8
| File Download In Progress
|-
|-
|0xD9  
|0xD9  
Line 123: Line 71:
|-
|-
|0xDA  
|0xDA  
  |Download Completed / Video:Video.reserved30
  |Download Completed   
|-
|0xDB
 
|-
|0xDC
|-
|0xDD
|-
|0xDE
|(String)
|-
|0xDF
|
|-
|0xE0
|(String)
|-
|0xE1
|(String)
|-
|0xE2
|(String)
|-
|0xE3
|(String)
|-
|0xE4
|
|-
|0xE5
|
|-
|0xE6
|
|-
|0xE7
|Title ID
|-
|0xEA
| Video:Common.reserved24
|-
|0xEB
| Log URL
|-
|0xEC
|
|-
|0xED
|
|-
|0xEE
|
|-
|0xEF
|Video:Video.reserved29
|-
|0xF0
|
|-
|0xF1
|
|-
|0xF2
|
|-
|0xF3
|preordered
|-
|0xF4
|
|-
|0xF5
|(drmcontent)
|-
|-
|}
|}
Line 206: Line 79:




{| class="wikitable"
{| border="1"
!ID
!ID
  !Length  
  !Length  
Line 256: Line 129:
Here are the values seen in a game task :  
Here are the values seen in a game task :  


  {| class="wikitable"
  {| border="1"


  !Type
  !Type
Line 303: Line 176:




{| class="wikitable"
{| border="1"
!Type
!Type
   !Length
   !Length
Line 310: Line 183:
  |-
  |-


|0x000000D0   
|0x000000D0  |8  |64bit value  |current file size or total file size of .pkg in Big Endian
|8   
|64bit value   
|current file size or total file size of .pkg in Big Endian  
|-


|0x000000CE   
|0x000000CE  |8  |64bit value  |current file size or total file size of .pkg in Big Endian  
|8  
  |64bit value  
  |current file size or total file size of .pkg in Big Endian  
(same value as D0 for a fully downloaded title, need partial downloads to determine which key represents what)  
(same value as D0 for a fully downloaded title, need partial downloads to determine which key represents what)  
|-
   
   
|0x000000CC   
|0x000000CC  |variable  |"Thu, 02 Sep 2010 02:05:50 GMT" (qore)  |Date of when the .pkg was created (apparently since it's almost 1 week before it appeared on PSN)   
|variable   
|"Thu, 02 Sep 2010 02:05:50 GMT" (qore)   
|Date of when the .pkg was created (apparently since it's almost 1 week before it appeared on PSN)   
|-


|0x0000006A  
|0x0000006A  
Line 376: Line 237:
|}
|}


This is all the information we have so far.. unfortunately, since Sony decided to block access to PSN, we can't test more downloading, so it's hard to get new .pdb files, and so it's hard to extrapolate more.
= Tools  =
* [http://github.com/kakaroto/ps3utils PS3Utils] - by KaKaRoTo (link not working) - forks with pdb_gen.c: [https://github.com/shadowbladeZ/ps3utils] [https://github.com/omgneeq/ps3utils]<br />
* [https://raw.github.com/wargio/ps3utils/master/pdb_gen.c PS3Utils pdb_gen.c] - old fork from KaKaRoTo (Deroad)
= Files  =
Heavy Rain Episode 1: [http://stoker25.com/files/hre1/d0.pdb d0] [http://stoker25.com/files/hre1/d1.pdb d1] [http://stoker25.com/files/hre1/ICON_FILE ICON_FILE]


This is all the information we have so far.. unfortunately, since Sony decided to block access to PSN, we can't test more downloading, so it's hard to get new .pdb files, and so it's hard to extrapolate more.


=== Tools === 
PS3Utils - by KaKaRoTo


{{File Formats}}<noinclude>[[Category:Main]]</noinclude>
=== Files === 
Heavy Rain Episode 1: d0 d1 ICON_FILE
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)