Editing Resource Container (RCO)
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 1: | Line 1: | ||
=Description= | =Description= | ||
The file extension in PSP and PS3 is '''RCO''' that seems to be the acronym of '''R'''esource '''C'''ontainer '''O''' | The file extension in PSP and PS3 is '''RCO''' that seems to be the acronym of '''R'''esource '''C'''ontainer '''O'''bjet | ||
The file signature (aka [https://en.wikipedia.org/wiki/Magic_number_(programming) magic number]) from PSP (in little endian) is '''PRF''' that seems to be the acronym of '''P'''laystation '''R'''esource '''F'''ile | The file signature (aka [https://en.wikipedia.org/wiki/Magic_number_(programming) magic number]) from PSP (in little endian) is '''PRF''' that seems to be the acronym of '''P'''laystation '''R'''esource '''F'''ile | ||
Line 8: | Line 8: | ||
==Contents== | ==Contents== | ||
*RCO contents (See [[Multimedia Formats and Tools]]): <!--and see rcomage miscmap.ini for a list of the supported formats--> | *RCO contents (See [[Multimedia Formats and Tools]]): <!--and see rcomage miscmap.ini for a list of the supported formats--> | ||
Text for all [[Template: | Text for all [[Template:XMB_languages|languages]], textures, sounds (for cursor navigation, trophy unlocking, etc...) and models | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 26: | Line 26: | ||
! Toc trees !! Toc compression !! Other Notes | ! Toc trees !! Toc compression !! Other Notes | ||
|- | |- | ||
| 0x55 || {{icon content psp|50px}} 0.6.5 || pre-retail || 9 || uncompressed || archaic rco format, header is 16 bytes smaller | |||
| | |||
|- | |- | ||
| 0x70 || {{icon content psp|50px}} 1.00 || 2004 / 12 / 12 || 10 || uncompressed || | |||
| | |||
|- | |- | ||
| 0x71 || {{icon content psp|50px}} 1.50~2.50 || 2005 / 3 / 24 || 10 || uncompressed || normal toc up to this version | |||
| | |||
|- | |- | ||
| 0x90 || {{icon content psp|50px}} 2.60 || 2005 / 11 / 29 || 10 || || zlib compressed toc implemented | |||
| | |||
|- | |- | ||
| 0x95 || {{icon content psp|50px}} 2.70~2.71 || 2006 / 4 / 25 || 10 || || rlz compressed toc implemented | |||
| | |||
|- | |- | ||
| 0x96 || {{icon content psp|50px}} 2.80~3.40 || 2006 / 7 / 27 || 10 || || the toc seems to be compressed in parts | |||
| | |||
|- | |- | ||
| 0x97 || {{icon content ps3|50px}} 1.00~1.54 || 2006 / 11 / 11 || 10 || || | |||
| | |||
|- | |- | ||
| | | 0x100 || {{icon content psp|50px}} 3.50~6.61 || 2007 / 5 / 31 || 10 || || | ||
|- | |- | ||
| 0x102 || {{icon content ps3|50px}} 1.60~1.70 || 2007 / 3 / 22 || 10 || || | |||
| | |||
|- | |- | ||
| 0x104 || {{icon content ps3|50px}} 1.80~1.82 || 2007 / 5 / 24 || 10 || || | |||
| | |||
|- | |- | ||
| 0x105 || {{icon content ps3|50px}} 1.90~1.94 || 2007 / 7 / 24 || 10 || || | |||
| | |||
|- | |- | ||
| 0x106 || {{icon content ps3|50px}} 2.00~2.17 || 2007 / 11 / 8 || 10 || || | |||
| | |||
|- | |- | ||
| 0x107 || {{icon content ps3|50px}} 2.20~2.80 || 2008 / 3 / 25 || 10 || || | |||
| | |||
|- | |- | ||
| 0x108 || {{icon content ps3|50px}} 3.00~3.01 || 2009 / 9 / 1 || 10 || || | |||
| | |||
|- | |- | ||
| 0x110 || {{icon content ps3|50px}} 3.10~3.74 || 2009 / 11 / 19 || 10 || || | |||
| | |||
|- | |- | ||
| 0x120 || {{icon content ps3|50px}} 4.00~4.25 || 2011 / 11 / 29 || 10 || || | |||
| | |||
|- | |- | ||
| 0x130 || {{icon content ps3|50px}} 4.30~4.76 || 2012 / 10 / 24 || 10 || || | |||
| | |||
| | |||
|} | |} | ||
Line 93: | Line 68: | ||
|- | |- | ||
! Offset !! Length !! Example !! Name !! Notes | ! Offset !! Length !! Example !! Name !! Notes | ||
|-{{cellcolors|# | |-{{cellcolors|#000000|#ffffff}} | ||
| 0x00 || 0x04 || 46 52 50 00 || '''prf_signature''' || In PS3 is "FRP" (big endian). In PSP is "PRF" (little endian) | | 0x00 || 0x04 || 46 52 50 00 || '''prf_signature''' || In PS3 is "FRP" (big endian). In PSP is "PRF" (little endian) | ||
|-{{cellcolors|# | |-{{cellcolors|#000000|#ffffff}} | ||
| 0x04 || 0x04 || 00 00 00 97 || '''prf_version''' || | | 0x04 || 0x04 || 00 00 00 97 || '''prf_version''' || named ''minFirmwareVer'' in [[Rcomage]], see {{talk}} page | ||
|-{{cellcolors|# | |-{{cellcolors|#000000|#ffffff}} | ||
| 0x08 || 0x04 || <abbr title="Always seems to be 0x00000000">00 00 00 00</abbr> || {{cellcolors|#ff7777}} <abbr title=" | | 0x08 || 0x04 || <abbr title="Always seems to be 0x00000000">00 00 00 00</abbr> || {{cellcolors|#ff7777}} <abbr title="minor_version ?">''prf_unknown''</abbr> || | ||
|-{{cellcolors|# | |-{{cellcolors|#000000|#ffffff}} | ||
| 0x0C || 0x04 || 00 00 00 00 || <abbr title="compress everything except the header and '''dat''' data tables to store files">''' | | 0x0C || 0x04 || 00 00 00 00 || <abbr title="compress everything except the header and '''dat''' data tables to store files">'''prf_compression'''</abbr> || 0x00=uncompressed, 0x10=ZLIB, 0x20=RLZ<br>It can be combined with ''UMDflag'', see {{talk}} page | ||
|-{{cellcolors|#7777ff}} | |-{{cellcolors|#7777ff}} | ||
| 0x10 || 0x04 || 00 00 00 A4 || ''' | | 0x10 || 0x04 || 00 00 00 A4 || '''toc_maintree_absolute_offset''' || | ||
|-{{cellcolors|#8888ff}} | |-{{cellcolors|#8888ff}} | ||
| 0x14 || 0x04 || FF FF FF FF || ''' | | 0x14 || 0x04 || FF FF FF FF || '''toc_scripttree_absolute_offset''' || | ||
|-{{cellcolors|#8888ff}} | |-{{cellcolors|#8888ff}} | ||
| 0x18 || 0x04 || FF FF FF FF || ''' | | 0x18 || 0x04 || FF FF FF FF || '''toc_languagetree_absolute_offset''' || | ||
|-{{cellcolors|#8888ff}} | |-{{cellcolors|#8888ff}} | ||
| 0x1C || 0x04 || FF FF FF FF || ''' | | 0x1C || 0x04 || FF FF FF FF || '''toc_soundtree_absolute_offset''' || | ||
|-{{cellcolors|#8888ff}} | |-{{cellcolors|#8888ff}} | ||
| 0x20 || 0x04 || FF FF FF FF || ''' | | 0x20 || 0x04 || FF FF FF FF || '''toc_modeltree_absolute_offset''' || | ||
|-{{cellcolors|#8888ff}} | |-{{cellcolors|#8888ff}} | ||
| 0x24 || 0x04 || FF FF FF FF || ''' | | 0x24 || 0x04 || FF FF FF FF || '''toc_imagetree_absolute_offset''' || | ||
|-{{cellcolors|#8888ff}} | |-{{cellcolors|#8888ff}} | ||
| 0x28 || 0x04 || <abbr title="Always seems to be 0xFFFFFFFF">FF FF FF FF</abbr> || {{cellcolors|#ff7777}} <abbr title=" | | 0x28 || 0x04 || <abbr title="Always seems to be 0xFFFFFFFF">FF FF FF FF</abbr> || {{cellcolors|#ff7777}} <abbr title="toc_unknowntree_absolute_offset">''toc_unknowntree''</abbr> || | ||
|-{{cellcolors|#8888ff}} | |-{{cellcolors|#8888ff}} | ||
| 0x2C || 0x04 || FF FF FF FF || ''' | | 0x2C || 0x04 || FF FF FF FF || '''toc_fonttree_absolute_offset''' || | ||
|-{{cellcolors|#8888ff}} | |-{{cellcolors|#8888ff}} | ||
| 0x30 || 0x04 || 00 00 00 CC || ''' | | 0x30 || 0x04 || 00 00 00 CC || '''toc_objecttree_absolute_offset''' || | ||
|-{{cellcolors|#8888ff}} | |-{{cellcolors|#8888ff}} | ||
| 0x34 || 0x04 || FF FF FF FF || ''' | | 0x34 || 0x04 || FF FF FF FF || '''toc_animationtree_absolute_offset''' || | ||
|-{{cellcolors|#66ff66}} | |-{{cellcolors|#66ff66}} | ||
| 0x38 || 0x04 || 00 00 01 D4 || ''' | | 0x38 || 0x04 || 00 00 01 D4 || '''str_language_table_absolute_offset''' || | ||
|-{{cellcolors|#66ff66}} | |-{{cellcolors|#66ff66}} | ||
| 0x3C || 0x04 || 00 00 00 00 || ''' | | 0x3C || 0x04 || 00 00 00 00 || '''str_language_table_length''' || | ||
|-{{cellcolors|#99ff99}} | |-{{cellcolors|#99ff99}} | ||
| 0x40 || 0x04 || 00 00 01 D4 || ''' | | 0x40 || 0x04 || 00 00 01 D4 || '''str_label_table_absolute_offset''' || | ||
|-{{cellcolors|#99ff99}} | |-{{cellcolors|#99ff99}} | ||
| 0x44 || 0x04 || 00 00 00 1C || '''str_label_table_length''' || | | 0x44 || 0x04 || 00 00 00 1C || '''str_label_table_length''' || | ||
|-{{cellcolors|#bbffbb}} | |-{{cellcolors|#bbffbb}} | ||
| 0x48 || 0x04 || 00 00 01 F0 || ''' | | 0x48 || 0x04 || 00 00 01 F0 || '''str_event_table_absolute_offset''' || | ||
|-{{cellcolors|#bbffbb}} | |-{{cellcolors|#bbffbb}} | ||
| 0x4C || 0x04 || 00 00 00 04 || '''str_event_table_length''' || | | 0x4C || 0x04 || 00 00 00 04 || '''str_event_table_length''' || | ||
|-{{cellcolors|#770077}} | |-{{cellcolors|#770077}} | ||
| 0x50 || 0x04 || FF FF FF FF || ''' | | 0x50 || 0x04 || FF FF FF FF || '''ptr_language_table_absolute_offset''' || | ||
|-{{cellcolors|#770077}} | |-{{cellcolors|#770077}} | ||
| 0x54 || 0x04 || 00 00 00 00 || ''' | | 0x54 || 0x04 || 00 00 00 00 || '''ptr_language_table_length''' || | ||
|-{{cellcolors|#880088}} | |-{{cellcolors|#880088}} | ||
| 0x58 || 0x04 || FF FF FF FF || ''' | | 0x58 || 0x04 || FF FF FF FF || '''ptr_image_table_absolute_offset''' || | ||
|-{{cellcolors|#880088}} | |-{{cellcolors|#880088}} | ||
| 0x5C || 0x04 || 00 00 00 00 || '''ptr_image_table_length''' || | | 0x5C || 0x04 || 00 00 00 00 || '''ptr_image_table_length''' || | ||
|-{{cellcolors|#990099}} | |-{{cellcolors|#990099}} | ||
| 0x60 || 0x04 || FF FF FF FF || ''' | | 0x60 || 0x04 || FF FF FF FF || '''ptr_model_table_absolute_offset''' || | ||
|-{{cellcolors|#990099}} | |-{{cellcolors|#990099}} | ||
| 0x64 || 0x04 || 00 00 00 00 || '''ptr_model_table_length''' || | | 0x64 || 0x04 || 00 00 00 00 || '''ptr_model_table_length''' || | ||
|-{{cellcolors|#aa00aa}} | |-{{cellcolors|#aa00aa}} | ||
| 0x68 || 0x04 || FF FF FF FF || ''' | | 0x68 || 0x04 || FF FF FF FF || '''ptr_sound_table_absolute_offset''' || | ||
|-{{cellcolors|#aa00aa}} | |-{{cellcolors|#aa00aa}} | ||
| 0x6C || 0x04 || 00 00 00 00 || '''ptr_sound_table_length''' || | | 0x6C || 0x04 || 00 00 00 00 || '''ptr_sound_table_length''' || | ||
|-{{cellcolors|#bb00bb}} | |-{{cellcolors|#bb00bb}} | ||
| 0x70 || 0x04 || 00 00 01 CC || ''' | | 0x70 || 0x04 || 00 00 01 CC || '''ptr_object_table_absolute_offset''' || | ||
|-{{cellcolors|#bb00bb}} | |-{{cellcolors|#bb00bb}} | ||
| 0x74 || 0x04 || 00 00 00 08 || '''ptr_object_table_length''' || | | 0x74 || 0x04 || 00 00 00 08 || '''ptr_object_table_length''' || | ||
|-{{cellcolors|#cc00cc}} | |-{{cellcolors|#cc00cc}} | ||
| 0x78 || 0x04 || FF FF FF FF || ''' | | 0x78 || 0x04 || FF FF FF FF || '''ptr_animation_table_absolute_offset''' || | ||
|-{{cellcolors|#cc00cc}} | |-{{cellcolors|#cc00cc}} | ||
| 0x7C || 0x04 || 00 00 00 00 || ''' | | 0x7C || 0x04 || 00 00 00 00 || '''ptr_animation_table_length''' || | ||
|-{{cellcolors|#ccaa88}} | |-{{cellcolors|#ccaa88}} | ||
| 0x80 || 0x04 || FF FF FF FF || ''' | | 0x80 || 0x04 || FF FF FF FF || '''dat_image_table_absolute_offset''' || | ||
|-{{cellcolors|#ccaa88}} | |-{{cellcolors|#ccaa88}} | ||
| 0x84 || 0x04 || 00 00 00 00 || '''dat_image_table_length''' || | | 0x84 || 0x04 || 00 00 00 00 || '''dat_image_table_length''' || | ||
|-{{cellcolors|#ddbb99}} | |-{{cellcolors|#ddbb99}} | ||
| 0x88 || 0x04 || FF FF FF FF || ''' | | 0x88 || 0x04 || FF FF FF FF || '''dat_sound_table_absolute_offset''' || | ||
|-{{cellcolors|#ddbb99}} | |-{{cellcolors|#ddbb99}} | ||
| 0x8C || 0x04 || 00 00 00 00 || '''dat_sound_table_length''' || | | 0x8C || 0x04 || 00 00 00 00 || '''dat_sound_table_length''' || | ||
|-{{cellcolors|#eeccaa}} | |-{{cellcolors|#eeccaa}} | ||
| 0x90 || 0x04 || FF FF FF FF || ''' | | 0x90 || 0x04 || FF FF FF FF || '''dat_model_table_absolute_offset''' || | ||
|-{{cellcolors|#eeccaa}} | |-{{cellcolors|#eeccaa}} | ||
| 0x94 || 0x04 || 00 00 00 00 || '''dat_model_table_length''' || | | 0x94 || 0x04 || 00 00 00 00 || '''dat_model_table_length''' || | ||
|-{{cellcolors|#ffddbb}} | |-{{cellcolors|#ffddbb}} | ||
| 0x98 || | | 0x98 || 0x04 || <abbr title="Always seems to be 0xFFFFFFFF">FF FF FF FF</abbr> || {{cellcolors|#ff7777}} <abbr title="dat_unknown_table_absolute_offset">''dat_unknown_1''</abbr> || | ||
|-{{cellcolors|#ffddbb}} | |||
| 0x9C || 0x04 || <abbr title="Always seems to be 0xFFFFFFFF">FF FF FF FF</abbr> || {{cellcolors|#ff7777}} <abbr title="dat_unknown_table_length">''dat_unknown_2''</abbr> || | |||
|-{{cellcolors|#ffddbb}} | |||
| 0xA0 || 0x04 || <abbr title="Always seems to be 0xFFFFFFFF">FF FF FF FF</abbr> || {{cellcolors|#ff7777}} <abbr title="dat_unknown_table_absolute_offset">''dat_unknown_3''</abbr> || | |||
|} | |} | ||
==TOC== | |||
The TOC (table of contents) works as an index of all the .RCO contents, is composed by entries that follows a hierarchy of parent/children/brothers, it can be represented as an .XML file composed by '''elements''' and its '''attributes''' (see [[RCOXML Coding]]) | |||
This .XML file that represents the RCO contents is also known as an RCOXML and is the main file generated by [[rcomage]] when extracting the contents of a .RCO. Contains all the needed info from the original .RCO file plus some more needed to rebuild the .RCO file accuratelly keeping the original settings | |||
Every entry starts with an area of 0x28 length that represents an XML '''element''', it specifyes the '''entry_type''' and a '''label''' identifyer for this entry (optional) plus some info related with the TOC internal structure and its hierarchy relationship with other entries | |||
Every entry starts with an area of 0x28 length that represents an XML '''element''', it specifyes the '''entry_type''' | |||
{| class="wikitable" style="font-size:small;" | {| class="wikitable" style="font-size:small;" | ||
Line 189: | Line 167: | ||
|} | |} | ||
After the common area (at entry relative offset 0x28) appears the '''attributes''', the attributes are different for every '''entry_type''' and are explained in detail in other wiki pages, see the links in the table below | |||
An special mention is needed to the [[RCOXML Objects]] (entry_types starting with 0x08) and [[RCOXML Animations]] (entry_types starting with 0x09) where the attributes can be grouped in standard attributes (used by most entryes of this type) and specific attributes (different for every entry_type). The standard attributes are always located before the specific attributes | |||
{{RCO TOC entry types}} | {{RCO TOC entry types}} | ||
Some of the attributes are a ''' | Some of the attributes are a reference to load other entry, are composed by two values, the first specifyes the '''reference_type''' and the second is a pointer to a text string that contains the '''tree''' location and the '''label''' of the other entry that will be loaded | ||
{{RCO TOC reference types}} | {{RCO TOC reference types}} | ||
= | *(0x1) MainTree | ||
Main tree doesnt uses specific attributes, only uses the default ones explained above that indicates his position at top of the [[RCOXML Structure]] hierarchy and gives it a "label" name<!-- Doesn't have parent, and doesn't have any previous or next "brother", the number of childrens indicates how many of the '''entry_type''' explained below are under it (max number of childrens should be 8 for an .rco containing at least one of each) --> | |||
* | |||
*(0x2) Script | |||
This is named "ScriptTree" for simplification purposes, but is not actually a tree, only one [[VSMX]] file can be stored inside an RCO | |||
{| class="wikitable" | |||
|- | |||
! Offset !! Length !! Name !! Example !! Notes | |||
|- | |||
| 0x00 || 0x04 || '''file_offset''' || || VSMX file offset, relative to the start offset of the vsmx data table (always 0) | |||
|- | |||
| 0x04 || 0x04 || '''file_size''' || || VSMX file length | |||
|} | |||
*(0x3) Text | |||
"TextTree" could be renamed to LanguageTree, is more intuitive, the point is every entry here is the "parent" of several string texts, but the entry itself is not a text (is the parent of a group of texts), so is better to use a name more abstract like "LanguageTree" | |||
For a [[Languages|Language]] first are specified the '''language_id''' and the number of "children" text strings | |||
{| class="wikitable" | |||
|- | |||
! Offset !! Length !! Name !! Example !! Notes | |||
|- | |||
| 0x00 || 0x02 || '''language_id''' || || 0x00=Japanese<br>0x01=English (United States)<br>0x02=French<br>0x03=Spanish (Spain)<br>0x04=German<br>0x05=Italian<br>0x06=Dutch<br>0x07=Portuguese (Portugal)<br>0x08=Russian<br>0x09=Korean<br>0x0A=Chinese (Traditional)<br>0x0B=Chinese (Simplified)<br>0x0C=Finnish<br>0x0D=Swedish<br>0x0E=Danish<br>0x0F=Norwegian<br>0x10=Polish<br>0x11=Portuguese (Brazil)<br>0x12=English (United Kingdom)<br>0x13=Turkish | |||
|- | |||
| 0x02 || 0x02 || '''strings_format''' || || 0x00=UTF8<br>0x01=UTF16<br>0x02=UTF32 | |||
|- | |||
| 0x04 || 0x04 || '''strings_number''' || || number of text strings for this '''language_id''' | |||
|} | |||
Now for every '''strings_number''' are repeated 12 bytes to define every string that are references to other tables | |||
{| class="wikitable" | |||
|- | |||
! Offset !! Length !! Name !! Example !! Notes | |||
|- | |||
| 0x00 || 0x04 || '''label_offset''' || || Offset to label, relative of the label table | |||
|- | |||
| 0x04 || 0x04 || '''string_length''' || || Length of the text | |||
|- | |||
| 0x08 || 0x04 || '''string_offset''' || || Offset of the text, relative to the text data start address | |||
|} | |||
*(0x4) Image | |||
The values marked in red are optional, the presence of the '''unknown''' specific for PS3 can be deduced based on the "rco version" in the rco header, only exists in PS3 RCO's (PSP doesnt uses it). See [[Talk:Rcomage|rcomage talk page]]. The presence of the other optional value '''file_uncompressed_size''' can be deduced by reading the entry itself | |||
The '''file_compression''' feature adds a compression layer over the file format (pointless for image formats that are nativelly compressed like GIM or JPG) | |||
{| class="wikitable" | |||
|- | |||
! Offset !! Length !! Name !! Example !! Notes | |||
|- | |||
| 0x00 || 0x02 || '''file_format''' || || 0x0=PNG<br>0x1=JPEG<br>0x2=TIFF<br>0x3=GIF<br>0x4=BMP<br>0x5=GIM | |||
|- | |||
| 0x02 || 0x02 || '''file_compression''' || || 0x0=NONE<br>0x1=ZLIB<br>0x2=RLZ | |||
|- | |||
| 0x04 || 0x04 || '''file_size''' || || either compressed or uncompressed, this is the final size of the file stored inside the rco | |||
|- | |||
| 0x08 || 0x04 || '''file_offset''' || || | |||
|- | |||
| 0x0C || 0x04 || {{cellcolors|#ff9999}} ''unknown'' || || PS3 RCOs seem to have this extra value - probably something to do with planes/frames?? usually 0x1 | |||
|- | |||
| 0x10 || 0x04 || {{cellcolors|#9999ff}} '''file_uncompressed_size''' || || Optional. Doesn't exist if '''file_compression''' = '''NONE''', for PSP is located 4 bytes before because the previous value doesn't exists | |||
|} | |||
*(0x5) Model | |||
ModelTree uses the same values than ImageTree with a couple of differences, the table is repeated here for comparison purposes | |||
The presence of the '''unknown''' (specific for PS3) is completlly speculative because never has been found a GMO file used on PS3 official firmware, is not even known if PS3 firmware has some function able to manage GMO files | |||
== | {| class="wikitable" | ||
|- | |||
! Offset !! Length !! Name !! Example !! Notes | |||
|- | |||
| 0x00 || 0x02 || '''file_format''' || || 0x0=GMO | |||
|- | |||
| 0x02 || 0x02 || '''file_compression''' || || 0x0=NONE<br>0x1=ZLIB<br>0x2=RLZ | |||
|- | |||
| 0x04 || 0x04 || '''file_size''' || || either compressed or uncompressed, this is the final size of the file stored inside the rco | |||
|- | |||
| 0x08 || 0x04 || '''file_offset''' || || Offset of data relative to the beginning of the image data section | |||
|- | |||
| 0x0C || 0x04 || {{cellcolors|#ff9999}} ''unknown'' || || PS3 RCOs seem to have this extra value - probably something to do with planes/frames?? usually 0x1 | |||
|- | |||
| 0x10 || 0x04 || {{cellcolors|#9999ff}} '''file_uncompressed_size''' || || Optional. Doesn't exist if '''file_compression''' = '''NONE''', for PSP is located 4 bytes before because the previous value doesn't exists | |||
|} | |||
*(0x6) Sound | |||
{| class="wikitable" | |||
|- | |||
! Offset !! Length !! Name !! Example !! Notes | |||
|- | |||
| 0x00 || 0x02 || '''file_format''' || || <span style="background:#ff9999;">0x0=''unknown'' ([http://assemblergames.com/l/threads/playstation-sound-artist-dtl-h700-dtl-s710-docs.10146/ SEQ] ?)</span><br>0x1=VAG | |||
|- | |||
| 0x02 || 0x02 || '''audio_channels''' || || 0x1=MONO<br>0x2=STEREO | |||
|- | |||
| 0x04 || 0x04 || '''file_size''' || || either one or two channels, this is the final size of the file stored inside the rco | |||
|- | |||
| 0x08 || 0x04 || '''file_offset''' || || Offset of the sound data to the beginning of the sound data section | |||
|- | |||
| 0x0C || 0x04 || '''left_channel_size''' || || <!--If '''audio_channels''' = '''MONO''' this is the size of the whole audio file, if '''STEREO''' -->This is the size of left channel file | |||
|- | |||
| 0x10 || 0x04 || '''left_channel_offset''' || || Offset of left channel VAG to the beginning of the sound data section | |||
|- | |||
| 0x0C || 0x04 || {{cellcolors|#9999ff}} '''right_channel_size''' || || Optional. Only exists if '''audio_channels''' = '''STEREO''' | |||
|- | |||
| 0x10 || 0x04 || {{cellcolors|#9999ff}} '''right_channel_offset''' || || Optional. Only exists if '''audio_channels''' = '''STEREO''' | |||
|} | |||
* | *(0x7) Font | ||
* | *(0x8) Object | ||
*(0x9) Animation | |||
== | ==Pointer tables== | ||
==String tables== | |||
==Data tables== | |||
=RCO compression methods= | =RCO compression methods= | ||
Line 251: | Line 308: | ||
|} | |} | ||
{{File Formats}} | {{File Formats}} | ||
<noinclude>[[Category:Main]]</noinclude> | <noinclude>[[Category:Main]]</noinclude> |