Template:RCO TOC entry common area: Difference between revisions

From PS3 Developer wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(20 intermediate revisions by the same user not shown)
Line 4: Line 4:
! Offset !! Length !! <abbr title="Data type">Type</abbr> !! Name !! {{icon content psp|50px}} !! {{icon content ps3|50px}} !! Example (TOC) !! Example (XML) !! Notes
! Offset !! Length !! <abbr title="Data type">Type</abbr> !! Name !! {{icon content psp|50px}} !! {{icon content ps3|50px}} !! Example (TOC) !! Example (XML) !! Notes
|-
|-
</noinclude>| 0x00 || 0x04 || int || '''entry_type''' || {{yes}} || {{yes}} || {{{1|01 / 01 / 00 00}}} || rowspan="2" | {{{4|<MainTree <span style="color:#000099;">name</span><span style="color:#990000;">="label"</span>>}}} || First byte = type, second byte = id, last 2 bytes = padding
</noinclude>| 0x00 || 0x04 || int || '''entry_type''' || {{yes}} || {{yes}} || {{{1|01 01}}} / <abbr title="Padding, always 0x00 0x00">00 00</abbr> || rowspan="2" class="nowrap" | {{#tag:syntaxhighlight|<{{{3|Element}}}{{#if:{{{6|}}}||<nowiki> </nowiki>name="label"}}/>|lang=xml|inline=yes}} || [[Template:RCO TOC entry types|entry_type]][2], padding[2]
|-
|-
| 0x04 || 0x04 || int || '''entry_label_offset''' || {{yes}} || {{yes}} || {{{2|00 00 00 00}}} || Label offset relative to the start of the label table (<abbr title="0xFFFFFFFF means the label doesn't exist for this entry">optional</abbr>)
| 0x04 || 0x04 || int || '''entry_label_offset''' || {{yes}} || {{yes}} || {{{2|00 00 00 00}}} || [[Resource_Container_(RCO)|label_string_table_offset]][4] (<abbr title="0xFFFFFFFF means the label doesn't exist for this entry">optional</abbr>)
|-
|-
| 0x08 || 0x04 || int || '''attributes_offset''' || {{yes}} || {{yes}} || 00 00 00 28 || rowspan="2" {{cellcolors|lightgrey}} no XML representation || Attributes offset relative to the start of the entry (<abbr title="Only used by entries with attributes. ie not ''tree'' entries">optional</abbr>)
| 0x08 || 0x04 || int || '''attributes_offset''' || {{yes}} || {{yes}} || {{{4|00 00 00 00}}} || rowspan="6" {{cellcolors|lightgrey}} represents XML hierarchy || Attributes offset relative to the start of this entry (<abbr title="Only used by entries with attributes. ie not ''tree'' entries">optional</abbr>)
|-
|-
| 0x0C || 0x04 || int || '''children_offset''' || {{yes}} || {{yes}} || {{{3|00 00 00 00}}} || First children offset relative to the start of the entry (<abbr title="Only used by entries with childrens. ie ''tree'' entries">optional</abbr>)
| 0x0C || 0x04 || int || '''children_offset''' || {{yes}} || {{yes}} || {{{5|00 00 00 28}}} || First children offset relative to the start of this entry (<abbr title="Only used by entries with childrens. ie ''tree'' entries">optional</abbr>)
|-
|-
| 0x10 || 0x04 || int || '''children_number''' || {{yes}} || {{yes}} || 00 00 00 00 || rowspan="4" {{cellcolors|lightgrey}} represents XML hierarchy || Number of subentries
| 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 the entry (<abbr title="Only used by entries with siblings">optional</abbr>)
| 0x14 || 0x04 || int || '''next_sibling_offset''' || {{yes}} || {{yes}} || 00 00 00 00 || Next sibling offset relative to the start of this entry (<abbr title="Only used by entries with siblings">optional</abbr>)
|-
|-
| 0x18 || 0x04 || int || '''prev_sibling_offset''' || {{yes}} || {{yes}} || 00 00 00 00 || Previous sibling offset relative to the start of the entry (<abbr title="this is usually 0x0 however, only used by the last sibling">optional</abbr>)
| 0x18 || 0x04 || int || '''prev_sibling_offset''' || {{yes}} || {{yes}} || 00 00 00 00 || Previous sibling offset relative to the start of this entry (<abbr title="this is usually 0x0 however, only used by the last sibling">optional</abbr>)
|-
|-
| 0x1C || 0x04 || int || '''parent_offset''' || {{yes}} || {{yes}} || 00 00 00 28 || Entry offset relative to the start of the parent entry
| 0x1C || 0x04 || int || '''parent_offset''' || {{yes}} || {{yes}} || 00 00 00 00 || This entry offset relative to the start of the parent entry
|-
|-
| 0x20 || 0x04 || unk || {{cellcolors|#ff9999}} ''toc_entry_unk_1'' || {{yes}} || {{yes}} || <abbr title="Always seems to be 0x00000000">00 00 00 00</abbr> || rowspan="2" {{cellcolors|lightgrey}} no XML representation || Unknown
| 0x20 || 0x08 || unk || {{cellcolors|#ff9999}} ''toc_entry_unk'' || {{yes}} || {{yes}} || <abbr title="Always seems to be 0x00000000 0x00000000">00 00 00 00 .. .</abbr> || {{cellcolors|lightgrey}} no XML representation || Unknown
|-<noinclude>
|}
 
 
*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: <nowiki><syntaxhighlight lang="xml" inline><MainTree name="label" /></syntaxhighlight></nowiki>
**As example the code <nowiki>{{RCO TOC entry common area|1|2|MainTree|4|5|unnamed}}</nowiki> when called from inside a table will result:
{| class="wikitable" style="font-size:small;"
|-
|-
| 0x24 || 0x04 || unk || {{cellcolors|#ff9999}} ''toc_entry_unk_2'' || {{yes}} || {{yes}} || <abbr title="Always seems to be 0x00000000">00 00 00 00</abbr> || Unknown
! Offset !! Length !! <abbr title="Data type">Type</abbr> !! Name !! {{icon content psp|50px}} !! {{icon content ps3|50px}} !! Example (TOC) !! Example (XML) !! Notes
|-<noinclude>
|-
| colspan="9" {{cellcolors|lightgrey}}
|-
| {{RCO TOC entry common area|1|2|MainTree|4|5|unnamed}}
|}
|}


[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Latest revision as of 16:48, 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"/> 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


  • 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" inline><MainTree name="label" /></syntaxhighlight>
    • As example the code {{RCO TOC entry common area|1|2|MainTree|4|5|unnamed}} 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/> entry_type[2], padding[2]
0x04 0x04 int entry_label_offset Yes Yes 2 label_string_table_offset[4] (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