PS3 DISC.SFB: Difference between revisions

From PS3 Developer wiki
Jump to navigation Jump to search
mNo edit summary
(Structure, hybrid flags, explains of extra content)
Line 1: Line 1:
[[Category:Software]]
[[Category:Software]]
=PS3_DISC.SFB=
Used on disc only


== Info/Layout ==
Main file of a PS3 game disc, used as a descriptor of the title and contents.
Disk content variable <br />
 
Offset: 0x200 <br />
The hybrid flags says to the PS3 to look for [[PARAM.SFO]]'s in specific folders, can be used several flags at the same time (but the order is not clear)
Type: UTF-8 <br />
 
Max lenght: undefined <br />
----
Flags order: aligned left (not alphabetically ?) <br />
 
==Internal structure==
 
The file has a lot of padding, probably to avoid forcing the laser lens to read a "too tiny" file
 
{| class="wikitable"
|-
! Offset !! Length !! Example !! Description
|-
| 0x0 || 0x4 || .SFB ||
|-
| 0x4 || 0x4 || 00010000 || File version ?
|-
| 0x8 || 0x18 ||  || Unknown (zeroes)
|-
| 0x20 || 0xF || HYBRID_FLAG || Disc Content Name
|-
| 0x30 || 0x4 || 00000200 || Disc Content Data Offset (0x200)
|-
| 0x34 || 0x4 || 00000020 || Disc Content Data Length (0x20)
|-
| 0x38 || 0x8 || TITLE_ID || Disc Title Name
|-
| 0x50 || 0x4 || 00000220 || Disc Title Data Offset (0x220)
|-
| 0x54 || 0x4 || 00000010 || Disc Title Data Length (0x10)
|-
| 0x58 || 0x1A8 ||  || Unknown (zeroes)
|-
| 0x200 || 0x20 || gVu || '''Disc Content''' (Hybrid Flags)
|-
| 0x220 || 0x10 || ABCD-12345 || '''Disc Title'''
|-
| 0x230 || 0x3D0 ||  || Unknown (zeroes)
|-
|}
 
===Hybrid Flags===
 
The order of the flags its not clear (is not alphabetically) but there are 16 bytes reserved for them, so probably any combination is valid
 
{| class="wikitable"
|-
! Hex !! ASCII !! Description !! Path
|-
| 54 || T || THEME || TITLE_ID\'''PS3_CONTENT'''\THEMEDIR\PARAM.SFO
|-
| 56 || V || VIDEO || TITLE_ID\'''PS3_CONTENT'''\VIDEODIR\PARAM.SFO
|-
| 67 || g || GAME/EXTRA || TITLE_ID\'''PS3_GAME'''\USRDIR\PARAM.SFO and/¿or? TITLE_ID\'''PS3_EXTRA'''\PARAM.SFO
|-
| 75 || u || UPDATE || TITLE_ID\'''PS3_UPDATE'''\UPDATE.PUP
|-
| 76 || v || BDMOVIE/BDAUDIO || TITLE_ID\BDMV\index.bdmv? or TITLE_ID\BDAV\?
|-
|}
 
*Notes
 
The flag "'''g'''" activates two subfolders '''PS3_GAME''' (main game) and '''PS3_EXTRA''' (one of the 3 ways to include extras in a disc)
 
Games are marked as "'''gu'''" (because there is always an UPDATE.PUP), if you want to remove the folder '''PS3_UPDATE''' is good to remove the flag "u" from here
 
The flags "'''T'''" and "'''V'''" activates subfolders inside '''PS3_CONTENT''' (the second way to include extras in a disc)
 
The third way to include extras in a disc depends of "'''g'''" but its needed to activate another different flag in TITLE_ID\'''PS3_GAME'''\[[PARAM.SFO]] (in his ATTRIBUTE parameter)
 
 
==Untested/Not standard formats==


<pre>
(HYBRID_FLAG)
----------------------------------------------------
HEX == UTF-8 ---> content type ------> file activated
----------------------------------------------------
4D == M -------> MUSIC -------------> (dev_bd\GAME-ID\PS3_CONTENT\MUSICDIR\PARAM.SFO)
4D == M -------> MUSIC -------------> (dev_bd\GAME-ID\PS3_CONTENT\MUSICDIR\PARAM.SFO)
50 == P -------> PHOTO -------------> (dev_bd\GAME-ID\PS3_CONTENT\PHOTODIR\PARAM.SFO)
50 == P -------> PHOTO -------------> (dev_bd\GAME-ID\PS3_CONTENT\PHOTODIR\PARAM.SFO)
54 == T -------> THEME -------------> (dev_bd\GAME-ID\PS3_CONTENT\THEMEDIR\PARAM.SFO)
 
56 == V -------> VIDEO -------------> (dev_bd\GAME-ID\PS3_CONTENT\VIDEODIR\PARAM.SFO)
BD-J <----- java ?... BDMV/JAR/00000.jar
67 == g -------> GAME/EXTRA --------> (dev_bd\GAME-ID\PS3_GAME\USRDIR\PARAM.SFO) and/¿or? (GAME-ID\PS3_EXTRA\PARAM.SFO)
 
75 == u -------> UPDATE ------------> (dev_bd\GAME-ID\PS3_UPDATE\UPDATE.PUP)
 
76 == v -------> BDMOVIE/BDAUDIO ---> (dev_bd\BDMV\index.bdmv) or (dev_bd\BDAV\?????)
PS3_VPRM = Video P. R. M.
</pre>

Revision as of 01:25, 24 January 2012


Main file of a PS3 game disc, used as a descriptor of the title and contents.

The hybrid flags says to the PS3 to look for PARAM.SFO's in specific folders, can be used several flags at the same time (but the order is not clear)


Internal structure

The file has a lot of padding, probably to avoid forcing the laser lens to read a "too tiny" file

Offset Length Example Description
0x0 0x4 .SFB
0x4 0x4 00010000 File version ?
0x8 0x18 Unknown (zeroes)
0x20 0xF HYBRID_FLAG Disc Content Name
0x30 0x4 00000200 Disc Content Data Offset (0x200)
0x34 0x4 00000020 Disc Content Data Length (0x20)
0x38 0x8 TITLE_ID Disc Title Name
0x50 0x4 00000220 Disc Title Data Offset (0x220)
0x54 0x4 00000010 Disc Title Data Length (0x10)
0x58 0x1A8 Unknown (zeroes)
0x200 0x20 gVu Disc Content (Hybrid Flags)
0x220 0x10 ABCD-12345 Disc Title
0x230 0x3D0 Unknown (zeroes)

Hybrid Flags

The order of the flags its not clear (is not alphabetically) but there are 16 bytes reserved for them, so probably any combination is valid

Hex ASCII Description Path
54 T THEME TITLE_ID\PS3_CONTENT\THEMEDIR\PARAM.SFO
56 V VIDEO TITLE_ID\PS3_CONTENT\VIDEODIR\PARAM.SFO
67 g GAME/EXTRA TITLE_ID\PS3_GAME\USRDIR\PARAM.SFO and/¿or? TITLE_ID\PS3_EXTRA\PARAM.SFO
75 u UPDATE TITLE_ID\PS3_UPDATE\UPDATE.PUP
76 v BDMOVIE/BDAUDIO TITLE_ID\BDMV\index.bdmv? or TITLE_ID\BDAV\?
  • Notes

The flag "g" activates two subfolders PS3_GAME (main game) and PS3_EXTRA (one of the 3 ways to include extras in a disc)

Games are marked as "gu" (because there is always an UPDATE.PUP), if you want to remove the folder PS3_UPDATE is good to remove the flag "u" from here

The flags "T" and "V" activates subfolders inside PS3_CONTENT (the second way to include extras in a disc)

The third way to include extras in a disc depends of "g" but its needed to activate another different flag in TITLE_ID\PS3_GAME\PARAM.SFO (in his ATTRIBUTE parameter)


Untested/Not standard formats

4D == M -------> MUSIC -------------> (dev_bd\GAME-ID\PS3_CONTENT\MUSICDIR\PARAM.SFO)

50 == P -------> PHOTO -------------> (dev_bd\GAME-ID\PS3_CONTENT\PHOTODIR\PARAM.SFO)

BD-J <----- java ?... BDMV/JAR/00000.jar


PS3_VPRM = Video P. R. M.