Editing Template:RCO TOC entry common area

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
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" 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]
</noinclude>| 0x00 || 0x04 || int || '''entry_type''' || {{yes}} || {{yes}} || {{{1|01 01 / <abbr title="Padding, always 0x00 0x00">00 00</abbr>}}} || 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
|-
|-
| 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>)
| 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}} || {{{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>)
| 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>)
|-
|-
| 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>)
| 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>)
|-
|-
| 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 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;"
|-
! 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|1|2|MainTree|4|5|unnamed}}
|}


[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>
Please note that all contributions to PS3 Developer wiki are considered to be released under the GNU Free Documentation License 1.2 (see PS3 Developer wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)