Editing Param.sfo
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 4: | Line 4: | ||
Samples: [[param.sfo/samples]] | Samples: [[param.sfo/samples]] | ||
'''SFO''' ('''S'''ystem '''F'''ile '''O'''bject) file format can be also found on [http://www.psdevwiki.com/ps3/Eboot.PBP#PARAM.SFO PSP], [http://www. | '''SFO''' ('''S'''ystem '''F'''ile '''O'''bject) file format can be also found on [http://www.psdevwiki.com/ps3/Eboot.PBP#PARAM.SFO PSP], [http://www.vitadevwiki.com/index.php?title=System_File_Object_%28SFO%29_%28PSF%29 PSVITA], [http://www.psdevwiki.com/ps3/PARAM.SFO PS3]. This page, as well as talk page, is mostly speculation about this [[Content_Information_Files|content information file]]. | ||
The values contained in a parameter (other naming: key) of the SFO can be simplified as inputs/outputs for/from the content: | The values contained in a parameter (other naming: key) of the SFO can be simplified as inputs/outputs for/from the content: | ||
Line 13: | Line 13: | ||
*length: 0x800 always? | *length: 0x800 always? | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 27: | Line 25: | ||
| style="background-color:#66ff66;" | 0x08 || style="background-color:#66ff66;" | 0x08 || '''Version ?''' || 01 00 00 00 01 00 00 00 || v1.1? || ? | | style="background-color:#66ff66;" | 0x08 || style="background-color:#66ff66;" | 0x08 || '''Version ?''' || 01 00 00 00 01 00 00 00 || v1.1? || ? | ||
|- | |- | ||
| style="background-color:# | | style="background-color:#ffff66;" | 0x10 || style="background-color:#ffff66;" | 0x16 || - || 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 || ? || ? | ||
|- | |- | ||
| style="background-color:#6666ff;" | 0x20 || style="background-color:#6666ff;" | 0x08 || - || 02 00 00 00 00 00 00 00 || ? || ? | | style="background-color:#6666ff;" | 0x20 || style="background-color:#6666ff;" | 0x08 || - || 02 00 00 00 00 00 00 00 || ? || ? | ||
|- | |- | ||
| style="background-color:# | | style="background-color:#dd00dd;" | 0x28 || style="background-color:#dd00dd;" | 0x08 || '''Length total ?''' || AC 09 00 00 00 00 00 00 || 09 AC || total length of the file? (container+param.sfo) | ||
|- | |- | ||
| style="background-color:# | | style="background-color:#dddd00;" | 0x38 || style="background-color:#dddd00;" | 0x08 || '''Length first chunk?''' || D0 01 00 00 00 00 00 00 || 01 D0 || length first chunk | ||
|- | |- | ||
| style="background-color:#dddddd;" | 0x40 || style="background-color:#dddddd;" | 0x08 || - || 30 04 00 00 00 00 00 00 || ? || ? | | style="background-color:#dddddd;" | 0x40 || style="background-color:#dddddd;" | 0x08 || - || 30 04 00 00 00 00 00 00 || ? || ? | ||
|- | |- | ||
| style=" | |colspan="9" style="text-align:center; background-color:#e2e2ff;" | ... | ||
|- | |- | ||
| style="background-color:# | | style="background-color:#ddaadd;" | 0x90 || style="background-color:#ddaadd;" | 0x08 || '''PARAM.SFO length ?''' || AC 01 00 00 00 00 00 00 || 01 AC || Length PARAM.SFO? | ||
|- | |- | ||
| | |colspan="9" style="text-align:center; background-color:#e2e2ff;" | ... | ||
|- | |- | ||
|colspan="9" style="text-align:center; background-color:#e2ffe2;" | '''Second chunk''' | |colspan="9" style="text-align:center; background-color:#e2ffe2;" | '''Second chunk''' | ||
|- | |- | ||
| style="background-color:#d0000d;" | 0x1D6 || style="background-color:#d0000d;" | 0x02? || '''FW version ?''' || 52 01 || 1.52 || [[System Firmware]] should be similar to one of the SFO parameter? | |||
| style="background-color:#d0000d;" | | |||
|- | |- | ||
| style="background-color:# | | style="background-color:#d0000d;" | 0x1D8 || style="background-color:#d0000d;" | 0x09? || '''Product code ?''' || 43 55 53 41 30 30 32 35 30 || CUSA00250 || [http://www.psdevwiki.com/ps4/IDs_%2B_labels Productcode] should be similar to the Title id parameter | ||
|- | |- | ||
|colspan="9" style="text-align:center; background-color:#e2e2ff;" | ... | |colspan="9" style="text-align:center; background-color:#e2e2ff;" | ... | ||
Line 90: | Line 56: | ||
==== Header SFO ==== | ==== Header SFO ==== | ||
This is the Header of a SFO file. | This is the Header of a SFO file. | ||
{| class="wikitable sortable" style="text-align: center;border:2px solid #53464F;" | {| class="wikitable sortable" style="text-align: center;border:2px solid #53464F;" | ||
|- | |- | ||
Line 112: | Line 75: | ||
|} | |} | ||
typedef struct{ | |||
typedef struct | |||
int magic; //PSF | int magic; //PSF | ||
int version; //1.1 | int version; //1.1 | ||
Line 120: | Line 82: | ||
int indexTableEntries; | int indexTableEntries; | ||
} sfo_header_t; | } sfo_header_t; | ||
==== Index table ==== | ==== Index table ==== | ||
Line 144: | Line 105: | ||
|} | |} | ||
typedef struct{ | |||
typedef struct | u16 keyOffset; //offset of keytable + keyOffset | ||
u16 param_fmt; //enum (see below) | |||
u32 paramLen; | |||
u32 paramMaxLen; | |||
u32 dataOffset; //offset of datatable + dataOffset | |||
} indexTableEntry_t; | } indexTableEntry_t; | ||
Used on index table, type of data are: | Used on index table, type of data are: | ||
Line 183: | Line 142: | ||
====APP_TYPE==== | ====APP_TYPE==== | ||
{{Boxinfo3|content='''param_fmt''': uint32_t<br />'''param_max_len''': 0x4 (4 bytes)<br />'''param_len''': 0x4 (4 bytes)}} | {{Boxinfo3|content='''param_fmt''': uint32_t<br />'''param_max_len''': 0x4 (4 bytes)<br />'''param_len''': 0x4 (4 bytes)}} | ||
{{Boxtip1|content='''Used by''': PS4 Game (Digital), PS4 Game Patch | {{Boxtip1|content='''Used by''': PS4 Game (Digital), PS4 Game Patch }} | ||
... | |||
====APP_VER==== | ====APP_VER==== | ||
{{Boxinfo3|content='''param_fmt''': utf-8<br />'''param_max_len''': 0x8 (8 bytes)<br />'''param_len''': 0x6 (6 bytes)}} | {{Boxinfo3|content='''param_fmt''': utf-8<br />'''param_max_len''': 0x8 (8 bytes)<br />'''param_len''': 0x6 (6 bytes)}} | ||
{{Boxtip1|content='''Used by''': PS4 Game (Digital), PS4 Game Patch | {{Boxtip1|content='''Used by''': PS4 Game (Digital), PS4 Game Patch}} | ||
The format is '''XX.YY''' where "'''XX'''" and "'''YY'''" are numbers, and the point "'''.'''" is included in the string, e.g: '''01.00''' for the first stable version released. | The format is '''XX.YY''' where "'''XX'''" and "'''YY'''" are numbers, and the point "'''.'''" is included in the string, e.g: '''01.00''' for the first stable version released. | ||
Line 213: | Line 154: | ||
====ATTRIBUTE==== | ====ATTRIBUTE==== | ||
{{Boxinfo3|content='''param_fmt''': uint32_t<br />'''param_max_len''': 0x4 (4 bytes)<br />'''param_len''': 0x4 (4 bytes)}} | {{Boxinfo3|content='''param_fmt''': uint32_t<br />'''param_max_len''': 0x4 (4 bytes)<br />'''param_len''': 0x4 (4 bytes)}} | ||
{{Boxtip1|content='''Used by''': PS4 Game (Digital), PS4 Game Patch, Additional Content | {{Boxtip1|content='''Used by''': PS4 Game (Digital), PS4 Game Patch, Additional Content}} | ||
Can contains 32 flags that can be turned on/off to activate/deactivate features allowed for the game/apps content. | Can contains 32 flags that can be turned on/off to activate/deactivate features allowed for the game/apps content. | ||
====CATEGORY==== | ====CATEGORY==== | ||
{{Boxinfo3|content='''param_fmt''': utf-8<br />'''param_max_len''': 0x4 (4 bytes)<br />'''param_len''': 0x4 (4 bytes)}} | {{Boxinfo3|content='''param_fmt''': utf-8<br />'''param_max_len''': 0x4 (4 bytes)<br />'''param_len''': 0x4 (4 bytes)}} | ||
{{Boxtip1|content='''Used by''': | {{Boxtip1|content='''Used by''': PS4 Game (Blu-ray Disc), PS4 Game (Digital), PS4 Game Patch, Additional Content}} | ||
See [http://www.vitadevwiki.com/index.php?title=System_File_Object_%28SFO%29_%28PSF%29#Category PS Vita Category] | |||
{| class="wikitable" style="text-align: center;border:2px | {| class="wikitable" style="text-align: center;border:2px solid #000EEE;" | ||
|- | |- | ||
| style="background-color:#505346; color:#FFFFFF;" |'''Value''' | |||
| style="background-color:#505346; color:#FFFFFF;" |'''Standard name''' | |||
| | |||
|- | |- | ||
| | | ac || '''A'''dditional '''C'''ontent? | ||
|- | |- | ||
| | | bd || '''B'''lu-ray '''D'''isc? | ||
|- | |- | ||
| | | gd || '''G'''ame '''D'''igital?? | ||
|- | |- | ||
| | | gdk || Non-'''G'''ame Application '''D'''igital_'''k'''?? | ||
|- | |- | ||
| | | gp || '''G'''ame '''P'''atch? | ||
|- | |- | ||
|} | |} | ||
Line 458: | Line 182: | ||
====CONTENT_ID==== | ====CONTENT_ID==== | ||
{{Boxinfo3|content='''param_fmt''': utf-8<br />'''param_max_len''': 0x30 (48 bytes)<br />'''param_len''': 0x25 (37 bytes)}} | {{Boxinfo3|content='''param_fmt''': utf-8<br />'''param_max_len''': 0x30 (48 bytes)<br />'''param_len''': 0x25 (37 bytes)}} | ||
{{Boxtip1|content='''Used by''': PS4 Game (Digital), PS4 Game Patch, Additional Content | {{Boxtip1|content='''Used by''': PS4 Game (Digital), PS4 Game Patch, Additional Content}} | ||
See [[Content ID]] | See [[Content ID]] | ||
====DISC_NUMBER==== | ====DISC_NUMBER==== | ||
Line 490: | Line 202: | ||
{{Boxtip1|content='''Used by''': PS4 Game (Digital)}} | {{Boxtip1|content='''Used by''': PS4 Game (Digital)}} | ||
DISP_LOCATION_1 | DISP_LOCATION_1 & DISP_LOCATION_2 | ||
DISP_LOCATION_2 | |||
====DOWNLOAD_DATA_SIZE==== | ====DOWNLOAD_DATA_SIZE==== | ||
{{Boxinfo3|content='''param_fmt''': uint32_t<br />'''param_max_len''': 0x4 (4 bytes)<br />'''param_len''': 0x4 (4 bytes)}} | {{Boxinfo3|content='''param_fmt''': uint32_t<br />'''param_max_len''': 0x4 (4 bytes)<br />'''param_len''': 0x4 (4 bytes)}} | ||
{{Boxtip1|content='''Used by''': PS4 Game Patch | {{Boxtip1|content='''Used by''': PS4 Game Patch}} | ||
... | |||
====FORMAT==== | ====FORMAT==== | ||
{{Boxinfo3|content='''param_fmt''': utf-8<br />'''param_max_len''': 0x4 (4 bytes)<br />'''param_len''': | {{Boxinfo3|content='''param_fmt''': utf-8<br />'''param_max_len''': 0x4 (4 bytes)<br />'''param_len''': 0x4? (4 bytes)}} | ||
{{Boxtip1|content='''Used by''': PS4 Game (Blu-ray Disc), PS4 Game (Digital), PS4 Game Patch, Additional Content | {{Boxtip1|content='''Used by''': PS4 Game (Blu-ray Disc), PS4 Game (Digital), PS4 Game Patch, Additional Content}} | ||
"obs" | "obs" | ||
====PARENTAL_LEVEL==== | ====PARENTAL_LEVEL==== | ||
{{Boxinfo3|content='''param_fmt''': uint32_t<br />'''param_max_len''': 0x4 (4 bytes)<br />'''param_len''': 0x4 (4 bytes)}} | {{Boxinfo3|content='''param_fmt''': uint32_t<br />'''param_max_len''': 0x4 (4 bytes)<br />'''param_len''': 0x4 (4 bytes)}} | ||
{{Boxtip1|content='''Used by''': PS4 Game (Digital), PS4 Game Patch | {{Boxtip1|content='''Used by''': PS4 Game (Digital), PS4 Game Patch}} | ||
It is a [http://en.wikipedia.org/wiki/Video_game_content_rating_system scale to rate the content] for the different users based in user profile settings and international rating systems as: [http://en.wikipedia.org/wiki/Pan_European_Game_Information PEGI], [http://en.wikipedia.org/wiki/Entertainment_Software_Rating_Board ESRB], [http://en.wikipedia.org/wiki/Computer_Entertainment_Rating_Organization CERO], etc... | It is a [http://en.wikipedia.org/wiki/Video_game_content_rating_system scale to rate the content] for the different users based in user profile settings and international rating systems as: [http://en.wikipedia.org/wiki/Pan_European_Game_Information PEGI], [http://en.wikipedia.org/wiki/Entertainment_Software_Rating_Board ESRB], [http://en.wikipedia.org/wiki/Computer_Entertainment_Rating_Organization CERO], etc... | ||
====PUBTOOLINFO==== | ====PUBTOOLINFO==== | ||
{{Boxinfo3|content='''param_fmt''': utf-8<br />'''param_max_len''': 0x200 (512 bytes)<br />'''param_len''':variable}} | {{Boxinfo3|content='''param_fmt''': utf-8<br />'''param_max_len''': 0x200 (512 bytes)<br />'''param_len''':variable}} | ||
{{Boxtip1|content='''Used by''': PS4 Game (Digital), Additional Content | {{Boxtip1|content='''Used by''': PS4 Game (Digital), Additional Content}} | ||
Contains infos: | |||
*c_date= | |||
*sdk_ver= | |||
*st_type= | |||
*asa= | *asa= | ||
*img0_l0_size= | *img0_l0_size= | ||
*img0_l1_size= | *img0_l1_size= | ||
*img0_ch_size= | *img0_ch_size= | ||
====SERVICE_ID_ADDCONT_ADD_x==== | ====SERVICE_ID_ADDCONT_ADD_x==== | ||
{{Boxinfo3|content='''param_fmt''': utf-8<br />'''param_max_len''': 0x14 (20 bytes)<br />'''param_len''':Not used?}} | {{Boxinfo3|content='''param_fmt''': utf-8<br />'''param_max_len''': 0x14 (20 bytes)<br />'''param_len''':Not used?}} | ||
{{Boxtip1|content='''Used by''': PS4 Game (Digital), PS4 Game Patch | {{Boxtip1|content='''Used by''': PS4 Game (Digital), PS4 Game Patch}} | ||
Same parameter outnumbered from _1 to _7. | Same parameter outnumbered from _1 to _7. | ||
====SYSTEM_ROOT_VER==== | ====SYSTEM_ROOT_VER==== | ||
Line 671: | Line 248: | ||
====SYSTEM_VER==== | ====SYSTEM_VER==== | ||
{{Boxinfo3|content='''param_fmt''': uint32_t<br />'''param_max_len''': 0x4 (4 bytes)<br />'''param_len''': 0x4 (4 bytes)}} | {{Boxinfo3|content='''param_fmt''': uint32_t<br />'''param_max_len''': 0x4 (4 bytes)<br />'''param_len''': 0x4 (4 bytes)}} | ||
{{Boxtip1|content='''Used by''': PS4 Game (Blu-ray Disc), PS4 Game (Digital), PS4 Game Patch | {{Boxtip1|content='''Used by''': PS4 Game (Blu-ray Disc), PS4 Game (Digital), PS4 Game Patch}} | ||
Minimum [[System Firmware]] needed to play this title (conveniently, the [PS4VOLUME]/PS4/UPDATE/PS4UPDATE.PUP file (Blu-ray Disc) will be at least this version) | Minimum [[System Firmware]] needed to play this title (conveniently, the [PS4VOLUME]/PS4/UPDATE/PS4UPDATE.PUP file (Blu-ray Disc) will be at least this version) | ||
Line 677: | Line 254: | ||
====TITLE==== | ====TITLE==== | ||
{{Boxinfo3|content='''param_fmt''': utf-8<br />'''param_max_len''': 0x80 (128 bytes)<br />'''param_len''': variable}} | {{Boxinfo3|content='''param_fmt''': utf-8<br />'''param_max_len''': 0x80 (128 bytes)<br />'''param_len''': variable}} | ||
{{Boxtip1|content='''Used by''': PS4 Game (Blu-ray Disc), PS4 Game Patch, | {{Boxtip1|content='''Used by''': PS4 Game (Blu-ray Disc), PS4 Game Patch, DLC}} | ||
Default "title of the game" for [[Languages|all languages]]. | Default "title of the game" for [[Languages|all languages]]. | ||
Line 693: | Line 270: | ||
====TITLE_ID==== | ====TITLE_ID==== | ||
{{Boxinfo3|content='''param_fmt''': utf-8<br />'''param_max_len''': 0x0C (12 bytes)<br />'''param_len''': 0xA (10 bytes)}} | {{Boxinfo3|content='''param_fmt''': utf-8<br />'''param_max_len''': 0x0C (12 bytes)<br />'''param_len''': 0xA (10 bytes)}} | ||
{{Boxtip1|content='''Used by''': PS4 Game (Blu-ray Disc), PS4 Game (Digital), PS4 Game Patch, Additional Content | {{Boxtip1|content='''Used by''': PS4 Game (Blu-ray Disc), PS4 Game (Digital), PS4 Game Patch, Additional Content}} | ||
Identifier ( [ | Identifier ( [http://www.psdevwiki.com/ps4/IDs_%2B_labels Productcode] ) of the content, in the format '''WXYZ12345'''. | ||
====VERSION==== | ====VERSION==== | ||
{{Boxinfo3|content='''param_fmt''': utf-8<br />'''param_max_len''': 0x8 (8 bytes)<br />'''param_len''': 0x6 (6 bytes)}} | {{Boxinfo3|content='''param_fmt''': utf-8<br />'''param_max_len''': 0x8 (8 bytes)<br />'''param_len''': 0x6 (6 bytes)}} | ||
{{Boxtip1|content='''Used by''': PS4 Game (Digital), PS4 Game Patch, Additional Content | {{Boxtip1|content='''Used by''': PS4 Game (Digital), PS4 Game Patch, Additional Content}} | ||
Version content of the game: Disc revision, or Package revision. The number increases when the content is re-released or re-packaged for whatever reason that doesn't affect the main executable (e.g. when a disc game reaches platinum sales, or "game of the year edition" including extra contents). | Version content of the game: Disc revision, or Package revision. The number increases when the content is re-released or re-packaged for whatever reason that doesn't affect the main executable (e.g. when a disc game reaches platinum sales, or "game of the year edition" including extra contents). | ||
=== Notes === | === Notes === | ||
See | See talk page. | ||
{{File Formats}} | {{File Formats}} | ||
<noinclude> | <noinclude>[[Category:Main]]</noinclude> | ||
[[Category:Main]] | |||
</noinclude> |