Template:RCO TOC entry common area: Difference between revisions

From PS3 Developer wiki
Jump to navigation Jump to search
(Test, trying to simplify the usage)
No edit summary
Line 28: Line 28:
**This template is intended to represent any RCO TOC entry, and to be used from inside a table, when calling it can be specifyed 5 fields
**This template is intended to represent any RCO TOC entry, and to be used from inside a table, when calling it can be specifyed 5 fields
**The field 3 is intended to display code with syntax higlight as example: <nowiki><syntaxhighlight lang="xml" enclose="none"><MainTree name="label" /></syntaxhighlight></nowiki>
**The field 3 is intended to display code with syntax higlight as example: <nowiki><syntaxhighlight lang="xml" enclose="none"><MainTree name="label" /></syntaxhighlight></nowiki>
**As example the code <nowiki>{{RCO TOC entry common area|1|2|3|4|5}}</nowiki> when called from inside a table will result:
**As example the code <nowiki>{{RCO TOC entry common area|1|2|MainTree|4|5}}</nowiki> when called from inside a table will result:
{| class="wikitable" style="font-size:small;"
{| class="wikitable" style="font-size:small;"
|-
|-
Line 35: Line 35:
| colspan="9" {{cellcolors|lightgrey}}
| colspan="9" {{cellcolors|lightgrey}}
|-
|-
| {{RCO TOC entry common area|1|2|3|4|5}}
| {{RCO TOC entry common area|1|2|MainTree|4|5}}
|}
|}



Revision as of 03:42, 23 April 2023

RCO TOC entry common area
Offset Length Type Name PSP icon PS3 icon Example (TOC) Example (XML) Notes
0x00 0x04 int entry_type Yes Yes 01 01 / 00 00 <Element name="label"/> First byte = type, second byte = id, last 2 bytes = padding
0x04 0x04 int entry_label_offset Yes Yes 00 00 00 00 Label offset relative to the start of the label_string_table (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


  • Example
    • This template is intended to represent any RCO TOC entry, and to be used from inside a table, when calling it can be specifyed 5 fields
    • The field 3 is intended to display code with syntax higlight as example: <syntaxhighlight lang="xml" enclose="none"><MainTree name="label" /></syntaxhighlight>
    • As example the code {{RCO TOC entry common area|1|2|MainTree|4|5}} when called from inside a table will result:
Offset Length Type Name PSP icon PS3 icon Example (TOC) Example (XML) Notes
0x00 0x04 int entry_type Yes Yes 1 / 00 00 <MainTree name="label"/> First byte = type, second byte = id, last 2 bytes = padding
0x04 0x04 int entry_label_offset Yes Yes 2 Label offset relative to the start of the label_string_table (optional)
0x08 0x04 int attributes_offset Yes Yes 4 represents XML hierarchy Attributes offset relative to the start of this entry (optional)
0x0C 0x04 int children_offset Yes Yes 5 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