RCOXML Models: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (moved from Resource Container (RCO)) |
||
Line 3: | Line 3: | ||
.gmo format | .gmo format | ||
=Model= | |||
Uses the same values than Images 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 | |||
|} | |||
{{File Formats}} | {{File Formats}} | ||
<noinclude>[[Category:Main]]</noinclude> | <noinclude>[[Category:Main]]</noinclude> |
Revision as of 06:00, 17 October 2016
Description
The models inside .rco files are indexed in the embedded RCOXML code of the .rco container under the XML element ModelTree. See Resource Container (RCO) and RCOXML Coding
.gmo format
Model
Uses the same values than Images 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
Offset | Length | Name | Example | Notes |
---|---|---|---|---|
0x00 | 0x02 | file_format | 0x0=GMO | |
0x02 | 0x02 | file_compression | 0x0=NONE 0x1=ZLIB 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 | unknown | PS3 RCOs seem to have this extra value - probably something to do with planes/frames?? usually 0x1 | |
0x10 | 0x04 | 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 |
|