Talk:RCOXML Animations: Difference between revisions
Jump to navigation
Jump to search
m (not much happy with it but is not so bad... now is posible to represent a whole RCO TOC entry of any type) |
|||
Line 1: | Line 1: | ||
=Tests= | =Tests= | ||
= | =Triple table with common entry, standard, and specific attributes + using the same headers than the tables on [[Resource Container (RCO)]]= | ||
The purpose is to standarize a bit the tables used in wiki by creating tables that contains templates, and move all the info related to attribute entry types to separated wiki pages | The purpose is to standarize a bit the tables used in wiki by creating tables that contains templates, and move all the info related to attribute entry types to separated wiki pages | ||
Line 27: | Line 27: | ||
|- | |- | ||
| 0x44 || 0x04 || float || '''alpha''' || {{yes}} || {{yes}} || 3F 80 00 00 || <Recolour <span style="color:#000099;">alpha</span><span style="color:#990000;">="1"</span> /> || updates the value of attribute '''ColorScaleA''' from the animated [[RCOXML Objects|object]] | | 0x44 || 0x04 || float || '''alpha''' || {{yes}} || {{yes}} || 3F 80 00 00 || <Recolour <span style="color:#000099;">alpha</span><span style="color:#990000;">="1"</span> /> || updates the value of attribute '''ColorScaleA''' from the animated [[RCOXML Objects|object]] | ||
|} | |||
==Separated tables with edit links== | |||
{| class="wikitable" style="font-size:small;" | |||
|+RCO TOC entry common area {{ed right|RCO TOC entry common area}} | |||
! Offset !! Length !! Data type !! Name !! {{icon content psp|50px}} !! {{icon content ps3|50px}} !! Example (HEX) !! Example (RCOXML) !! Notes | |||
|- | |||
| {{RCO TOC entry common area}} | |||
|- | |||
|} | |||
{| class="wikitable" style="font-size:small;" | |||
|+RCO TOC Animations standard attributes {{ed right|RCO TOC Animations standard attributes}} | |||
! Offset !! Length !! Data type !! Name !! {{icon content psp|50px}} !! {{icon content ps3|50px}} !! Example (HEX) !! Example (RCOXML) !! Notes | |||
|- | |||
| {{RCO TOC Animations standard attributes}} | |||
|- | |||
|} | |} |
Revision as of 05:04, 25 September 2016
Tests
Triple table with common entry, standard, and specific attributes + using the same headers than the tables on Resource Container (RCO)
The purpose is to standarize a bit the tables used in wiki by creating tables that contains templates, and move all the info related to attribute entry types to separated wiki pages
Also, is needed to include in the table info about how are represented the values inside the TOC (raw values like in an hexeditor view with offset, length, etc...) and in the RCOXML (values converted to XML), also the data types that indicates the conversion method from TOC to XML for every value
Offset | Length | Data type | Name | Example (HEX) | Example (RCOXML) | Notes | ||
---|---|---|---|---|---|---|---|---|
0x00 | 0x04 | int | entry_type | Yes | Yes | 09 03 00 00 / 00 00 | <00 00 00 48 name="label"/> |
entry_type[2], padding[2] |
0x04 | 0x04 | int | entry_label_offset | Yes | Yes | FF FF FF FF | label_string_table_offset[4] (optional) | |
0x08 | 0x04 | int | attributes_offset | Yes | Yes | <Recolour /> | represents XML hierarchy | Attributes offset relative to the start of this entry (optional) |
0x0C | 0x04 | int | children_offset | Yes | Yes | 00 00 00 28 | First children offset relative to the start of this entry (optional) | |
0x10 | 0x04 | int | children_number | Yes | Yes | 00 00 00 00 | Number of subentries | |
0x14 | 0x04 | int | next_sibling_offset | Yes | Yes | 00 00 00 00 | Next sibling offset relative to the start of this entry (optional) | |
0x18 | 0x04 | int | prev_sibling_offset | Yes | Yes | 00 00 00 00 | Previous sibling offset relative to the start of this entry (optional) | |
0x1C | 0x04 | int | parent_offset | Yes | Yes | 00 00 00 00 | This entry offset relative to the start of the parent entry | |
0x20 | 0x08 | unk | toc_entry_unk | Yes | Yes | 00 00 00 00 .. . | no XML representation | Unknown |
0x28 | 0x08 | ref | object | Yes | Yes | 04 09 / 00 00 / 12 34 56 78 | <Recolour object="object:label"/> |
links the animation to an object (ref_type[2], padding[2], label_string_table_offset[4]) |
0x30 | 0x04 | float | time | Yes | Yes | 44 7A 00 00 | <Recolour time="1000"/> |
|
0x34 | 0x04 | int | accelMode | Yes | Yes | 00 00 00 03 | <Recolour accelMode="0x3"/> |
|
0x38 | 0x04 | float | red | Yes | Yes | 3F 80 00 00 | <Recolour red="1" /> | updates the value of attribute ColorScaleR from the animated object |
0x3C | 0x04 | float | green | Yes | Yes | 3F 80 00 00 | <Recolour green="1" /> | updates the value of attribute ColorScaleG from the animated object |
0x40 | 0x04 | float | blue | Yes | Yes | 3F 80 00 00 | <Recolour blue="1" /> | updates the value of attribute ColorScaleB from the animated object |
0x44 | 0x04 | float | alpha | Yes | Yes | 3F 80 00 00 | <Recolour alpha="1" /> | updates the value of attribute ColorScaleA from the animated object |
Separated tables with edit links
Offset | Length | Data type | Name | Example (HEX) | Example (RCOXML) | Notes | ||
---|---|---|---|---|---|---|---|---|
0x00 | 0x04 | int | entry_type | Yes | Yes | 01 01 / 00 00 | <Element name="label"/> |
entry_type[2], padding[2] |
0x04 | 0x04 | int | entry_label_offset | Yes | Yes | 00 00 00 00 | label_string_table_offset[4] (optional) | |
0x08 | 0x04 | int | attributes_offset | Yes | Yes | 00 00 00 00 | represents XML hierarchy | Attributes offset relative to the start of this entry (optional) |
0x0C | 0x04 | int | children_offset | Yes | Yes | 00 00 00 28 | First children offset relative to the start of this entry (optional) | |
0x10 | 0x04 | int | children_number | Yes | Yes | 00 00 00 00 | Number of subentries | |
0x14 | 0x04 | int | next_sibling_offset | Yes | Yes | 00 00 00 00 | Next sibling offset relative to the start of this entry (optional) | |
0x18 | 0x04 | int | prev_sibling_offset | Yes | Yes | 00 00 00 00 | Previous sibling offset relative to the start of this entry (optional) | |
0x1C | 0x04 | int | parent_offset | Yes | Yes | 00 00 00 00 | This entry offset relative to the start of the parent entry | |
0x20 | 0x08 | unk | toc_entry_unk | Yes | Yes | 00 00 00 00 .. . | no XML representation | Unknown |
Offset | Length | Data type | Name | Example (HEX) | Example (RCOXML) | Notes | ||
---|---|---|---|---|---|---|---|---|
0x28 | 0x08 | ref | object | Yes | Yes | 04 09 / 00 00 / 12 34 56 78 | <Element object="object:label"/> |
links the animation to an object (ref_type[2], padding[2], label_string_table_offset[4]) |
0x30 | 0x04 | float | time | Yes | Yes | 44 7A 00 00 | <Element time="1000"/> |
|
0x34 | 0x04 | int | accelMode | Yes | Yes | 00 00 00 03 | <Element accelMode="0x3"/> |