Template:RCO TOC entry common area: Difference between revisions

From PS3 Developer wiki
Jump to navigation Jump to search
m (test)
m (working :)
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}}} / <abbr title="Padding, always 0x00 0x00">00 00</abbr> || rowspan="2" | {{{4|<syntaxhighlight lang="xml" enclose="none"><MainTree name="label"></syntaxhighlight>}}} || 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" | {{{3|<syntaxhighlight lang="xml" enclose="none"><MainTree name="label" /></syntaxhighlight>}}} || First byte = type, second byte = id, last 2 bytes = padding
|-
|-
| 0x04 || 0x04 || int || '''entry_label_offset''' || {{yes}} || {{yes}} || {{{2|00 00 00 00}}} || Label offset relative to the start of the '''label_string_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}}} || Label offset relative to the start of the '''label_string_table''' (<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="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>)
| 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 this 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 00}}} || 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 || Number of subentries
| 0x10 || 0x04 || int || '''children_number''' || {{yes}} || {{yes}} || 00 00 00 00 || Number of subentries
Line 23: Line 23:
|-<noinclude>
|-<noinclude>
|}
|}
*Example
**This template is intended to represent any entry, and to be used from inside a table, when calling it can be specifyed 5 fields, for example:
{| class="wikitable" style="font-size:small;"
|-
! Offset !! Length !! <abbr title="Data type">Type</abbr> !! Name !! {{icon content psp|50px}} !! {{icon content ps3|50px}} !! Example (TOC) !! Example (XML) !! Notes
|-
| colspan="9" {{cellcolors|lightgrey}}
|-
| {{RCO TOC entry common area|AA AA|BB BB BB BB|CCCCCCCC|DD DD DD DD|EE EE EE EE}}
|}


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

Revision as of 04:17, 23 October 2016

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 <MainTree 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 00 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 entry, and to be used from inside a table, when calling it can be specifyed 5 fields, for example:
Offset Length Type Name PSP icon PS3 icon Example (TOC) Example (XML) Notes
0x00 0x04 int entry_type Yes Yes AA AA / 00 00 CCCCCCCC First byte = type, second byte = id, last 2 bytes = padding
0x04 0x04 int entry_label_offset Yes Yes BB BB BB BB Label offset relative to the start of the label_string_table (optional)
0x08 0x04 int attributes_offset Yes Yes DD DD DD DD represents XML hierarchy Attributes offset relative to the start of this entry (optional)
0x0C 0x04 int children_offset Yes Yes EE EE EE EE 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