Resource Container (RCO): Difference between revisions

From PS3 Developer wiki
Jump to navigation Jump to search
mNo edit summary
Line 23: Line 23:
The container structure can be represented as an XML (see [[RCOXML Coding|RCOXML]]), with [[rcomage]] is posible to generate this XML when extracting, and for rebuilding the rco using the XML as a layout
The container structure can be represented as an XML (see [[RCOXML Coding|RCOXML]]), with [[rcomage]] is posible to generate this XML when extracting, and for rebuilding the rco using the XML as a layout


http://endlessparadigm.com/forum/showthread.php?tid=231 (outdated)
==Header==
==Header==
RCO Fileformat magic in PSP is "PRF" (little endian). In PS3 is "FRP" (big endian)
{| class="wikitable"
|-
! Offset !! Length !! Name !! Example !! Notes
|-
| 0x00 || 0x04 || '''magic''' || FRP || In PS3 is "FRP" (big endian). In PSP is "PRF" (little endian)
|-
| 0x04 || 0x04 || '''version''' || 00 00 01 30 || named ''minFirmwareVer'' in rcomage, see {{talk}} page
|-
| 0x08 || 0x04 || ''unknown'' || 00 00 00 00 ||
|-
| 0x0C || 0x04 || '''compress_header''' || 00 00 00 00 || *0x00 no compress<br>*0x10 zlib<br>*0x20 rlz ?
|-
| 0x10 || 0x04 || '''info_table_offset''' || 00 00 00 A4 || usually 0xA4
|-
| 0x14 || 0x04 || ''unknown'' || FF FF FF FF || Always seems to be 0xFFFFFF
|-
| 0x18 || 0x04 || '''text_table_offset''' ||  ||
|-
| 0x1C || 0x04 || '''sound_table_offset''' ||  ||
|-
| 0x20 || 0x04 || '''model_table_offset''' ||  ||
|-
| 0x24 || 0x04 || '''image_table_offset''' ||  ||
|-
| 0x28 || 0x04 || ''unknown'' || FF FF FF FF || Always seems to be 0xFFFFFF
|-
| 0x2C || 0x04 || ''unknown'' || FF FF FF FF || Always seems to be 0xFFFFFF
|-
| 0x30 || 0x04 || '''page_table_offset''' ||  ||
|-
| 0x34 || 0x04 || '''anim_table_offset''' ||  ||
|}


==Tables==
==Tables==

Revision as of 17:28, 6 September 2016

Description

Resource Container Objet (RCO) contents are loaded by XMB modules (also known as .sprx plugins), see Plugin Interfaces and VSH

  • Compression types availables:
    • ZLIB
    • RLZ
    • Uncompressed

Contents

Text for all languages, textures, sounds (for cursor navigation, trophy unlocking, etc...) and models

RCO format Embedded code Text Textures Sounds Models Script
Generic RCOXML utf8, utf16, utf32 gim, png, jpg, tif, gif, bmp vag, unknown0x0 gmo PlayStation JavaScript
PS3 specific RCOXML utf16 gim, png, jpg vag n/a n/a

RCO Structure

The container structure can be represented as an XML (see RCOXML), with rcomage is posible to generate this XML when extracting, and for rebuilding the rco using the XML as a layout

http://endlessparadigm.com/forum/showthread.php?tid=231 (outdated)

Header

Offset Length Name Example Notes
0x00 0x04 magic FRP In PS3 is "FRP" (big endian). In PSP is "PRF" (little endian)
0x04 0x04 version 00 00 01 30 named minFirmwareVer in rcomage, see Discussion page
0x08 0x04 unknown 00 00 00 00
0x0C 0x04 compress_header 00 00 00 00 *0x00 no compress
*0x10 zlib
*0x20 rlz ?
0x10 0x04 info_table_offset 00 00 00 A4 usually 0xA4
0x14 0x04 unknown FF FF FF FF Always seems to be 0xFFFFFF
0x18 0x04 text_table_offset
0x1C 0x04 sound_table_offset
0x20 0x04 model_table_offset
0x24 0x04 image_table_offset
0x28 0x04 unknown FF FF FF FF Always seems to be 0xFFFFFF
0x2C 0x04 unknown FF FF FF FF Always seems to be 0xFFFFFF
0x30 0x04 page_table_offset
0x34 0x04 anim_table_offset

Tables

Etc...