RCOXML Coding: Difference between revisions

From PS3 Developer wiki
Jump to navigation Jump to search
 
(46 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Description=
=Description=
RCOXML files are the XML descriptor files implicit inside [[Resource Container (RCO)]] files (.rco)
An RCOXML file is a XML file that represents the contents of a RCO file. This RCOXML files doesnt exists inside the RCO file (are just a representation of it). In the compilation enviroment used officially by sony this RCOXML files "should" work as a "pre-build" layout, contains all the info and settings needed to build an RCO file


This RCOXML files doesnt exists inside the .rco container, tools like [[Rcomage]] extracts the info as XML as a representation of the data inside the .rco container
Tools like [[Rcomage]] generates this RCOXML files that can be used to rebuild the RCO, or to build a custom RCO from scratch, this RCOXML files generated by rcomage "should" be pretty similar to the officials because all the info is based in the TOC area of the RCO that is structured as an XML so the conversion from TOC to XML format is direct (also, rcomage adds some info for rebuilding purposes that is not part of the TOC), see [[Resource Container (RCO)]]
{{RCOXML contents PS3}}


Are composed by tables, some of this tables works simply as an index of the contents inside the container (texts, sounds, languages), and others tables contains "pages" that builds the XMB items, animations, effects, dialog menues, selection windows, widgets, etc...
= RCOXML Structure =
This is a '''not-working''' example intended to place all together as an overview. Not all nodes below are required, and various object/anim entries are omitted.


Note the name "page" here in wiki is used as a generic name for all types of pages, rcomage uses specific names for some types of pages wich purpose was identifyed, this names can vary between different versions of rcomage tool
{{Boxcode|code=<syntaxhighlight lang="xml">
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- This XML representation of an RCO structure was generated by Rcomage v1.1.2 -->
<RcoFile UMDFlag="0" rcomageXmlVer="1.1" type="psp" minFirmwareVer="1.5"> <!-- XML root element, generally does not need to be modified -->
<MainTree name="sample"> <!-- root RCO node from which everything must descend from -->
<VSMXFile name="main" src="main.vsmx"></VSMXFile> <!-- attached virtual machine instruction code, only one may exist in an RCO file -->
<ImageTree> <!-- parent node from which all image resources descend from -->
<Image name="texture" src="texture.gim" format="gim" compression="zlib" unknownByte="0" />
</ImageTree>
<FontTree> <!-- parent node from which all fonts descend from -->
<FontStyle name="fontstyle_default" unknownShort1="0x0" unknownShort2="0x0" unknownInt3="0x0" unknownInt4="0x41600000" />
</FontTree>
<TextTree> <!-- parent node from which all text language resources descend from -->
<TextLang src="00_Japanese.xml" language="00_Japanese" format="utf16" />
</TextTree>
<ModelTree> <!-- parent node from which all model resources descend from -->
<Model name="page_model" src="page_model.gmo" format="gmo" compression="zlib" unknownByte="0" />
</ModelTree>
<SoundTree> <!-- parent node from which all sound resources descend from -->
<Sound name="sound" src="sound.ch*.vag" format="vag" channels="2" />
</SoundTree>
<ObjectTree> <!-- parent node from which all object pages descend from -->
<Page name="main_page" pageMode="0x111" pageOnInit="event:script:/main/onInitMainPage" pageOnCancel="nothing" pageOnContext="nothing" pageOnActivate="nothing">
<Plane name="main_page_plane" ...standard object attributes here... planeImage="image:texture" planeResizeMode="0x0">
<ModelObject name="main_page_model"  ...standard object attributes here...  modelobjectModel="model:page_model"></ModelObject>
<Action name="go" actionText="text:msg_go"></Action>
</Plane>
</Page>
</ObjectTree>
<AnimTree> <!-- parent node from which all animation sequences descend from -->
<Animation name="main_page_fade">
<Fade object="object:main_page_plane" duration="100" accelMode="0x0" transparency="1" />
<FireEvent event="anim:main_page_fade" />
</Animation>
</AnimTree>
</MainTree>
</RcoFile>
</syntaxhighlight>}}


For specific examples of the contents of this rcoxml files see the [[Plugin Interfaces]] page, most resource containers (.rco) uses the same name than his associated plugin (.sprx), but there are a few that doesnt follows this rule so is a bit harder to know from how many plugins .sprx can be called (and this is a problem for wiki by now because the way pages are ordered and named)
==MainTree==
All RCOXML files starts with the tag:
<MainTree name="label">
MainTree represents the root of the container, so it seems the label is the name of the .rco container and is working as an identifyer of it


audioplayer_plugin_util.rco
*Is unknown how this labels works and his purpose, but follows a few rules:
avc_game_plugin.rco
**The same label can be used by several .rco's that shares functions
checker_plugin.rco
**This label names doesnt appears in the associated .sprx
explore_plugin_full.rco
friendim_plugin_game.rco
friendml_plugin_game.rco
friendtrophy_plugin_game.rco
game_plugin.rco
impose_plugin.rco
msgdialog_plugin.rco
profile_plugin_mini.rco
search_service.rco
subdisplay_plugin.rco
sv_pseudoaudioplayer_plugin.rco
system_plugin.rco
xmb_plugin_normal.rco


= RCOXML Contents (PS3) =
*Other .rco files from previous firmwares (not present in latest firmwares) using the MainTree name '''sample'''
There are 122 .rco files in PS3 firmware 4.76
**xai_plugin.rco
**In PSP firmware there are also some .rco files using the MainTree name '''sample'''


{| class="wikitable" style="font-size:x-small;"
===VSMXFile===
|-
None of the PS3 rco's uses a VSMXFile. But some PSP .rco's uses it
! rowspan="2" | filename.rco !! colspan="6" | RCOXML contents !! rowspan="2" | notes
|-
! MainTree<br>Name !! ImageTree !! TextTree !! SoundTree !! ObjectTree !! AnimTree
|-
| [[ap_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[audioplayer_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[audioplayer_plugin_dummy]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[audioplayer_plugin_mini]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[audioplayer_plugin_util]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[auth_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[autodownload_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[autoupdateconf_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[avc2_game_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[avc2_game_video_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[avc2_text_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[avc_game_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[avc_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[bdp_disccheck_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[bdp_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[bdp_storage_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[campaign_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[category_setting_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[checker_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[closedcaption_config_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[comboplay_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[custom_render_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[data_copy_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[deviceconf_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[dlna_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[download_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[dtcpip_util]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[edy_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[eula_cddb_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[eula_hcopy_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[eula_net_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[explore_category_friend]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[explore_category_game]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[explore_category_music]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[explore_category_network]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[explore_category_photo]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[explore_category_psn]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[explore_category_sysconf]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[explore_category_tv]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[explore_category_user]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[explore_category_video]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[explore_plugin_ft]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[explore_plugin_full]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[explore_plugin_game]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[explore_plugin_np]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[filecopy_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[friendim_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[friendim_plugin_game]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[friendml_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[friendml_plugin_game]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[friendtrophy_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[friendtrophy_plugin_game]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[game_ext_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[game_indicator_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[game_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[gamedata_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[gamelib_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[gameupdate_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[hknw_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[idle_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[impose_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[ingame_manual_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[kensaku_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[msgdialog_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[mtpinitiator_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[musicbrowser_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[nas_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[netconf_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[newstore_effect]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[newstore_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[np_eula_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[np_matching_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[np_multisignin_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[np_sns_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[np_trophy_ingame]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[np_trophy_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[npsignin_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[osk_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[oskfullkeypanel_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[oskpanel_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[pesm_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[photo_network_sharing_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[photolist_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[photoupload_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[photoviewer_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[playlist_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[podl_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[poweroff_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[premo_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[print_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[profile_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[profile_plugin_mini]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[ps3_savedata_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[ps3_savedata_plugin_game_mini]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[rec_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[regcam_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[remotedownload_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[sacd_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[scenefolder_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[screenshot_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[search_service]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[software_update_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[soundvisualizer_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[strviewer_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[subdisplay_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[sv_pseudoaudioplayer_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[sysconf_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[system_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[thumthum_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[upload_util]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[user_info_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[user_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[videoeditor_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[videoplayer_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[videoplayer_util]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[vmc_savedata_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[wboard_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[webbrowser_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[webrender_plugin]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[xmb_ingame]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[xmb_plugin_normal]].rco || label || images || texts || sounds || objects || animations ||
|-
| [[ycon_manual_plugin]].rco || label || images || texts || sounds || objects || animations ||
|}


*'''VSMXfile''' and '''ModelTree''' are not included in the table above because none of the PS3 .rco files includes them<!--or rcomage is not able to extract them-->
*rough explain of how it works
**The purpose of this script is to communicate with the associated module/sprx, the code inside the script is [[PlayStation JavaScript]] based (see also [[VSMX]] format) and it can call functions with parameters from the module/sprx. It works as a simple way to store predefined actions for the .sprx inside the .rco with a bit of code control involved. The [[RCOXML Objects]] captures the button presses from the controller and based on them loads the script using the buttons as parameters, then the code inside the script is processed and triggers the .sprx
**An script can contain several different actions (are actually .js code functions) and his names are the same than the action names used in [[RCOXML Objects]], as example: '''OnFocusRight''' (action triggered when moving right in the controller)


= RCOXML Structure =
===ImageTree===
Not all nodes below are required, and various object/anim entries are omitted.


RcoFile - XML root element; generally does not need to be modified
===FontTree===
MainTree - root RCO node from which everything must descend from
Only used in PS3, only used in sysconf_plugin.rco and hknw_plugin.rco
VSMXFile - attached UMD virtual machine instruction code, for UMD and some LFTV RCOs.  Only one may exist in an RCO file
ImageTree - parent node from which all image resources descend from
Image
Image
...
TextTree - parent node from which all text language resources descend from
TextLang
TextLang
...
ModelTree - parent node from which all model resources descend from
Model
Model
...
SoundTree - parent node from which all sound resources descend from
Sound
Sound
...
ObjectTree - parent node from which all object pages descend from
<Page>
page objects go here
<Page>
page objects go here
...
AnimTree - parent node from which all animation sequences descend from
<Animation>
animation entries go here
<Animation>
animation entries go here
...
==VSMXFile==
None of the PS3 rco's uses a VSMXFile
==ImageTree==
*All PS3 rco's uses a ImageTree except:
**[[ap_plugin]].rco
**[[audioplayer_plugin_dummy]].rco
**[[audioplayer_plugin_mini]].rco
**[[audioplayer_plugin_util]].rco
**[[avc2_game_plugin]].rco
**[[bdp_disccheck_plugin]].rco
**[[bdp_storage_plugin]].rco
**[[checker_plugin]].rco
**[[data_copy_plugin]].rco
**[[dtcpip_util]].rco
**[[game_plugin]].rco
**[[gamedata_plugin]].rco
**[[gameupdate_plugin]].rco
**[[idle_plugin]].rco
**[[ingame_manual_plugin]].rco
**[[msgdialog_plugin]].rco
**[[musicbrowser_plugin]].rco
**[[newstore_effect]].rco
**[[pesm_plugin]].rco
**[[photolist_plugin]].rco
**[[podl_plugin]].rco
**[[poweroff_plugin]].rco
**[[ps3_savedata_plugin_game_mini]].rco
**[[rec_plugin]].rco
**[[remotedownload_plugin]].rco
**[[scenefolder_plugin]].rco
**[[screenshot_plugin]].rco
**[[search_service]].rco
**[[strviewer_plugin]].rco
**[[subdisplay_plugin]].rco
**[[thumthum_plugin]].rco
**[[user_info_plugin]].rco
**[[videoplayer_util]].rco


==TextTree==
===TextTree===
*All PS3 rco's uses a TextTree except:
**[[ap_plugin]].rco
**[[avc2_game_video_plugin]].rco
**[[checker_plugin]].rco
**[[custom_render_plugin]].rco
**[[game_indicator_plugin]].rco
**[[gamelib_plugin]].rco
**[[idle_plugin]].rco
**[[musicbrowser_plugin]].rco
**[[newstore_effect]].rco
**[[osk_plugin]].rco
**[[pesm_plugin]].rco
**[[photolist_plugin]].rco
**[[podl_plugin]].rco
**[[rec_plugin]].rco
**[[scenefolder_plugin]].rco
**[[subdisplay_plugin]].rco


==ModelTree==
===ModelTree===
None of the PS3 rco's uses a ModelTree
None of the PS3 rco's uses a ModelTree
==SoundTree==
*Rco files in PS3 firmware 4.76 using a SoundTree:
**[[edy_plugin]].rco
**[[eula_net_plugin]].rco
**[[osk_plugin]].rco
**[[regcam_plugin]].rco
**[[system_plugin]].rco
**[[videoeditor_plugin]].rco
==ObjectTree==
*All PS3 rco's uses a ObjectTree except:
**[[audioplayer_plugin_dummy]].rco
**[[avc2_game_plugin]].rco
**[[category_setting_plugin]].rco
**[[newstore_effect]].rco <------- this file is a wtf, it seems to be empty
**[[search_service]].rco
==AnimTree==
*Rco files in PS3 firmware 4.76 using a AnimTree:
**[[bdp_plugin]].rco
**[[custom_render_plugin]].rco
**[[friendim_plugin]].rco
**[[friendim_plugin_game]].rco
**[[gamelib_plugin]].rco
**[[impose_plugin]].rco
**[[npsignin_plugin]].rco
**[[premo_plugin]].rco
**[[sacd_plugin]].rco
**[[system_plugin]].rco
=RCOXML Modifications=
All modifications made in the main XML file that represents the structure of the RCO extracted by [[rcomage]] belongs to this category
==Changing color, size & shadow of TEXTS== <!-- iirc there is a setting for the font type too -->
Tutorial link: [http://www.tortuga-cove.com/forums/viewtopic.php?f=128&t=5361&p=28094#p28094 Changing the XMB Colour]
Located into .xml files of .rco files, scale <span style="color:#ff0000"> R </span><span style="color:#008000"> G </span><span style="color:#0000ff"> B </span>α colors go between 0 to 1.


e.g.: Decimal value divided by 255 to get into this scale.
===SoundTree===


==Gameboot Animation==
===ObjectTree===
In [[gamelib_plugin]].rco
*in [http://ctfs.wiki.fc2.com/wiki/RCOmageXML this page] under the section "ObjectTree" are explained what seems to be a few golden rules related to:
{{Boxcode|content=<syntaxhighlight lang="xml">
**object display priority
<Animation name="anim_gameboot">
**children objects inherited attributes from parent object
<Lock unknownInt0="0xffffffff" />
<Fade object="object:ps3logo" duration="0" accelMode="0x0" transparency="0" />
<Resize object="object:ps3logo" duration="0" accelMode="0x0" width="0.938" height="0.938" depth="1" />
<Delay time="500" />
<Fade object="object:ps3logo" duration="863" accelMode="0x3" transparency="1" />
<Resize object="object:ps3logo" duration="863" accelMode="0x4" width="1" height="1" depth="1" />
<Delay time="1100" />
<Fade object="object:ps3logo" duration="174" accelMode="0x1" transparency="0" />
<Resize object="object:ps3logo" duration="174" accelMode="0x1" width="1.284" height="1.284" depth="1" />
<Delay time="1000" />
<Delay time="200" />
<FireEvent event="event:native:/GameLibApp_OnBootAnimationFinished" />
</Animation>
</syntaxhighlight>}}
 
In [[custom_render_plugin]].rco
{{Boxcode|content=<syntaxhighlight lang="xml">
<Animation name="anim_gameboot">
<Lock unknownInt0="0xffffffff" />
<Fade object="object:ps3logo" duration="0" accelMode="0x0" transparency="0" />
<Resize object="object:ps3logo" duration="0" accelMode="0x0" width="0.938" height="0.938" depth="1" />
<FireEvent event="event:native:/anim_gameboot_BG2" />
<Delay time="500" />
<Fade object="object:ps3logo" duration="863" accelMode="0x3" transparency="1" />
<Resize object="object:ps3logo" duration="863" accelMode="0x4" width="1" height="1" depth="1" />
<FireEvent event="event:native:/anim_gameboot_BG3" />
<Delay time="1100" />
<Fade object="object:ps3logo" duration="174" accelMode="0x1" transparency="0" />
<Resize object="object:ps3logo" duration="174" accelMode="0x1" width="1.284" height="1.284" depth="1" />
<Delay time="1000" />
<Delay time="200" />
<FireEvent event="event:native:/anim_gameboot_Finished" />
</Animation>
</syntaxhighlight>}}


===AnimTree===


{{System Firmware}}<noinclude>[[Category:Main]]</noinclude>
{{File Formats}}
<noinclude>[[Category:Main]]</noinclude>

Latest revision as of 17:56, 11 February 2022

Description[edit | edit source]

An RCOXML file is a XML file that represents the contents of a RCO file. This RCOXML files doesnt exists inside the RCO file (are just a representation of it). In the compilation enviroment used officially by sony this RCOXML files "should" work as a "pre-build" layout, contains all the info and settings needed to build an RCO file

Tools like Rcomage generates this RCOXML files that can be used to rebuild the RCO, or to build a custom RCO from scratch, this RCOXML files generated by rcomage "should" be pretty similar to the officials because all the info is based in the TOC area of the RCO that is structured as an XML so the conversion from TOC to XML format is direct (also, rcomage adds some info for rebuilding purposes that is not part of the TOC), see Resource Container (RCO)

RCOXML contents PS3 firmware 4.76 (122 .rco files)  · 
filename name VSMXFile ImageTree FontTree TextTree ModelTree SoundTree ObjectTree AnimTree Notes
ap_plugin.rco ap_plugin No No No No No No Yes No
audioplayer_plugin.rco sample No Yes (gim) No Yes No No Yes No
audioplayer_plugin_dummy.rco sample No No No Yes No No No No
audioplayer_plugin_mini.rco sample No No No Yes No No Yes No
audioplayer_plugin_util.rco sample No No No Yes No No Yes No Associated .sprx has a different name.
auth_plugin.rco auth_plugin No Yes (gim) No Yes No No Yes No
autodownload_plugin.rco autodownload_plugin No Yes (gim) No Yes No No Yes No
autoupdateconf_plugin.rco autoupdateconff_plugin No Yes (gim) No Yes No No Yes No
avc2_game_plugin.rco sample No No No Yes No No No No
avc2_game_video_plugin.rco sample No Yes (gim) No No No No Yes No
avc2_text_plugin.rco tcgui No Yes (gim) No Yes No No Yes No
avc_game_plugin.rco sample No Yes (gim) No Yes No No Yes No Associated .sprx has a different name.
avc_plugin.rco sample No Yes (gim) No Yes No No Yes No
bdp_disccheck_plugin.rco bdp_disccheck_plugin No No No Yes No No Yes No
bdp_plugin.rco bdp_plugin No Yes (gim) No Yes No No Yes Yes
bdp_storage_plugin.rco bdp_storage_plugin No No No Yes No No Yes No
campaign_plugin.rco campaign_plugin No Yes (gim, png) No Yes No No Yes No
category_setting_plugin.rco category_setting_plugin No Yes (gim) No Yes No No No No
checker_plugin.rco checker No No No No No No Yes No Associated .sprx has a different name.
closedcaption_config_plugin.rco closedcaption_config_plugin No Yes (gim) No Yes No No Yes No
comboplay_plugin.rco comboplay_plugin No Yes (gim) No Yes No No Yes No
custom_render_plugin.rco custom_render_plugin No Yes (gim) No No No No Yes Yes
data_copy_plugin.rco sample No No No Yes No No Yes No
deviceconf_plugin.rco deviceconf_plugin No Yes (gim) No Yes No No Yes No
dlna_plugin.rco dlna No Yes (gim) No Yes No No Yes No
download_plugin.rco download No Yes (gim) No Yes No No Yes No
dtcpip_util.rco dtcpip_util No No No Yes No No Yes No
edy_plugin.rco edy_plugin No Yes (gim) No Yes No Yes Yes No
eula_cddb_plugin.rco eula_cddb_plugin No Yes (gim) No Yes No No Yes No
eula_hcopy_plugin.rco eula_hcopy No Yes (gim) No Yes No No Yes No
eula_net_plugin.rco regcam_plugin No Yes (gim, png, jpg) No Yes No Yes Yes No
explore_category_friend.rco explore_plugin No Yes (gim) No Yes No No Yes No
explore_category_game.rco explore_plugin No Yes (gim) No Yes No No Yes No
explore_category_music.rco explore_plugin No Yes (gim) No Yes No No Yes No
explore_category_network.rco explore_plugin No Yes (gim) No Yes No No Yes No
explore_category_photo.rco explore_plugin No Yes (gim) No Yes No No Yes No
explore_category_psn.rco explore_plugin No Yes (gim) No Yes No No Yes No
explore_category_sysconf.rco explore_plugin No Yes (gim) No Yes No No Yes No
explore_category_tv.rco explore_plugin No Yes (gim) No Yes No No Yes No
explore_category_user.rco explore_plugin No Yes (gim) No Yes No No Yes No
explore_category_video.rco explore_plugin No Yes (gim) No Yes No No Yes No
explore_plugin_ft.rco explore_plugin No Yes (gim) No Yes No No Yes No
explore_plugin_full.rco explore_plugin No Yes (gim) No Yes No No Yes No Associated .sprx has a different name.
explore_plugin_game.rco explore_plugin No Yes (gim) No Yes No No Yes No
explore_plugin_np.rco explore_plugin No Yes (gim) No Yes No No Yes No
filecopy_plugin.rco sample No Yes (gim) No Yes No No Yes No
friendim_plugin.rco friendim No Yes (gim) No Yes No No Yes Yes
friendim_plugin_game.rco friendim No Yes (gim) No Yes No No Yes Yes Associated .sprx has a different name.
friendml_plugin.rco friendml_plugin No Yes (gim) No Yes No No Yes No
friendml_plugin_game.rco friendml_plugin No Yes (gim) No Yes No No Yes No Associated .sprx has a different name.
friendtrophy_plugin.rco friendtrophy_plugin No Yes (gim) No Yes No No Yes No
friendtrophy_plugin_game.rco friendtrophy_plugin No Yes (gim) No Yes No No Yes No Associated .sprx has a different name.
game_ext_plugin.rco game_ext_plugin No Yes (gim, png) No Yes No No Yes No
game_indicator_plugin.rco user_info_plugin No Yes (gim) No No No No Yes No
game_plugin.rco game_plugin No No No Yes No No Yes No Associated .sprx has a different name.
gamedata_plugin.rco gamedata_plugin No No No Yes No No Yes No
gamelib_plugin.rco gamelib_plugin No Yes (gim) No No No No Yes Yes
gameupdate_plugin.rco sample No No No Yes No No Yes No
hknw_plugin.rco hknw_plugin No Yes (gim) Yes Yes No No Yes No
idle_plugin.rco idle No No No No No No Yes No
impose_plugin.rco impose_plugin No Yes (gim) No Yes No No Yes Yes Associated .sprx has a different name.
ingame_manual_plugin.rco ingame_manual No No No Yes No No Yes No
kensaku_plugin.rco kensaku No Yes (gim) No Yes No No Yes No
msgdialog_plugin.rco msgdialog_plugin No No No Yes No No Yes No Associated .sprx has a different name.
mtpinitiator_plugin.rco sample No Yes (gim) No Yes No No Yes No
musicbrowser_plugin.rco sample No No No No No No Yes No
nas_plugin.rco nas_plugin No Yes (gim) No Yes No No Yes No
netconf_plugin.rco sample No Yes (gim) No Yes No No Yes No
newstore_effect.rco skeleton_plugin No No No No No No No No Empty file.
newstore_plugin.rco newstore_plugin No Yes (gim, png, jpg) No Yes No No Yes No
np_eula_plugin.rco npeula No Yes (gim) No Yes No No Yes No
np_matching_plugin.rco np_matching_plugin No Yes (gim) No Yes No No Yes No
np_multisignin_plugin.rco np_multisignin_plugin No Yes (gim) No Yes No No Yes No
np_sns_plugin.rco npsns No Yes (gim) No Yes No No Yes No
np_trophy_ingame.rco np_achiev No Yes (gim) No Yes No No Yes No
np_trophy_plugin.rco np_achiev No Yes (gim) No Yes No No Yes No
npsignin_plugin.rco npsignin_plugin No Yes (gim) No Yes No No Yes Yes
osk_plugin.rco sample No Yes (gim) No No No Yes Yes No
oskfullkeypanel_plugin.rco ime_osk_base_resouce No Yes (gim) No Yes No No Yes No
oskpanel_plugin.rco ime_osk_base_resouce No Yes (gim) No Yes No No Yes No
pesm_plugin.rco pesm No No No No No No Yes No
photo_network_sharing_plugin.rco pesm No Yes (gim) No Yes No No Yes No
photolist_plugin.rco sample No No No No No No Yes No
photoupload_plugin.rco dlna No Yes (gim) No Yes No No Yes No
photoviewer_plugin.rco photoviewer_plugin No Yes (gim, png) No Yes No No Yes No
playlist_plugin.rco sample No Yes (gim) No Yes No No Yes No
podl_plugin.rco podl_plugin No No No No No No Yes No
poweroff_plugin.rco poweroff No No No Yes No No Yes No
premo_plugin.rco premo_plugin No Yes (gim) No Yes No No Yes Yes
print_plugin.rco print_plugin No Yes (gim) No Yes No No Yes No
profile_plugin.rco profile_plugin No Yes (gim) No Yes No No Yes No
profile_plugin_mini.rco profile_plugin_mini No Yes (gim) No Yes No No Yes No Associated .sprx has a different name.
ps3_savedata_plugin.rco sample No Yes (gim) No Yes No No Yes No
ps3_savedata_plugin_game_mini.rco sample No No No Yes No No Yes No
rec_plugin.rco rec_plugin No No No No No No Yes No
regcam_plugin.rco regcam_plugin No Yes (gim, png, jpg) No Yes No Yes Yes No
remotedownload_plugin.rco remotedownload No No No Yes No No Yes No
sacd_plugin.rco sample No Yes (gim) No Yes No No Yes Yes
scenefolder_plugin.rco sample No No No No No No Yes No
screenshot_plugin.rco screenshot_plugin No No No Yes No No Yes No
search_service.rco search_service No No No Yes No No No No Associated .sprx has a different name.
software_update_plugin.rco software_update_plugin No Yes (gim) No Yes No No Yes No
soundvisualizer_plugin.rco soundvisualizer No Yes (gim) No Yes No No Yes No
strviewer_plugin.rco strviewer No No No Yes No No Yes No
subdisplay_plugin.rco ap_plugin No No No No No No Yes No Associated .sprx has a different name.
sv_pseudoaudioplayer_plugin.rco sv_pseudoaudioplayer No Yes (gim) No Yes No No Yes No Associated .sprx has a different name.
sysconf_plugin.rco sysconf_plugin No Yes (gim) Yes Yes No No Yes No
system_plugin.rco system_plugin No Yes (gim) No Yes No Yes Yes Yes Associated .sprx has a different name.
thumthum_plugin.rco sample No No No Yes No No Yes No
upload_util.rco upload_util No Yes (gim) No Yes No No Yes No
user_info_plugin.rco user_info_plugin No No No Yes No No Yes No
user_plugin.rco user No Yes (gim) No Yes No No Yes No
videoeditor_plugin.rco skeleton_plugin No Yes (gim, png, jpg) No Yes No Yes Yes No
videoplayer_plugin.rco videoplayer No Yes (gim) No Yes No No Yes No
videoplayer_util.rco videoplayer No No No Yes No No Yes No
vmc_savedata_plugin.rco sample No Yes (gim) No Yes No No Yes No
wboard_plugin.rco sample No Yes (gim) No Yes No No Yes No
webbrowser_plugin.rco sample No Yes (gim) No Yes No No Yes No
webrender_plugin.rco sample No Yes (gim) No Yes No No Yes No
xmb_ingame.rco xmb_plugin No Yes (gim) No Yes No No Yes No
xmb_plugin_normal.rco xmb_plugin No Yes (gim) No Yes No No Yes No Associated .sprx has a different name.
ycon_manual_plugin.rco ycon_plugin No Yes (gim) No Yes No No Yes No

RCOXML Structure[edit | edit source]

This is a not-working example intended to place all together as an overview. Not all nodes below are required, and various object/anim entries are omitted.

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- This XML representation of an RCO structure was generated by Rcomage v1.1.2 -->
<RcoFile UMDFlag="0" rcomageXmlVer="1.1" type="psp" minFirmwareVer="1.5">				<!-- XML root element, generally does not need to be modified -->
	<MainTree name="sample">									<!-- root RCO node from which everything must descend from -->
		<VSMXFile name="main" src="main.vsmx"></VSMXFile>					<!-- attached virtual machine instruction code, only one may exist in an RCO file -->
		<ImageTree>										<!-- parent node from which all image resources descend from -->
			<Image name="texture" src="texture.gim" format="gim" compression="zlib" unknownByte="0" />
		</ImageTree>
		<FontTree>										<!-- parent node from which all fonts descend from -->
			<FontStyle name="fontstyle_default" unknownShort1="0x0" unknownShort2="0x0" unknownInt3="0x0" unknownInt4="0x41600000" />
		</FontTree>
		<TextTree>										<!-- parent node from which all text language resources descend from -->
			<TextLang src="00_Japanese.xml" language="00_Japanese" format="utf16" />
		</TextTree>
		<ModelTree>										<!-- parent node from which all model resources descend from -->
			<Model name="page_model" src="page_model.gmo" format="gmo" compression="zlib" unknownByte="0" />
		</ModelTree>
		<SoundTree>										<!-- parent node from which all sound resources descend from -->
			<Sound name="sound" src="sound.ch*.vag" format="vag" channels="2" />
		</SoundTree>
		<ObjectTree>										<!-- parent node from which all object pages descend from -->
			<Page name="main_page" pageMode="0x111" pageOnInit="event:script:/main/onInitMainPage" pageOnCancel="nothing" pageOnContext="nothing" pageOnActivate="nothing">
				<Plane name="main_page_plane" ...standard object attributes here... planeImage="image:texture" planeResizeMode="0x0">
					<ModelObject name="main_page_model"  ...standard object attributes here...  modelobjectModel="model:page_model"></ModelObject>
					<Action name="go" actionText="text:msg_go"></Action>
				</Plane>
			</Page>
		</ObjectTree>
		<AnimTree>										<!-- parent node from which all animation sequences descend from -->
			<Animation name="main_page_fade">
				<Fade object="object:main_page_plane" duration="100" accelMode="0x0" transparency="1" />
				<FireEvent event="anim:main_page_fade" />
			</Animation>
		</AnimTree>
	</MainTree>
</RcoFile>

MainTree[edit | edit source]

All RCOXML files starts with the tag:

	<MainTree name="label">

MainTree represents the root of the container, so it seems the label is the name of the .rco container and is working as an identifyer of it

  • Is unknown how this labels works and his purpose, but follows a few rules:
    • The same label can be used by several .rco's that shares functions
    • This label names doesnt appears in the associated .sprx
  • Other .rco files from previous firmwares (not present in latest firmwares) using the MainTree name sample
    • xai_plugin.rco
    • In PSP firmware there are also some .rco files using the MainTree name sample

VSMXFile[edit | edit source]

None of the PS3 rco's uses a VSMXFile. But some PSP .rco's uses it

  • rough explain of how it works
    • The purpose of this script is to communicate with the associated module/sprx, the code inside the script is PlayStation JavaScript based (see also VSMX format) and it can call functions with parameters from the module/sprx. It works as a simple way to store predefined actions for the .sprx inside the .rco with a bit of code control involved. The RCOXML Objects captures the button presses from the controller and based on them loads the script using the buttons as parameters, then the code inside the script is processed and triggers the .sprx
    • An script can contain several different actions (are actually .js code functions) and his names are the same than the action names used in RCOXML Objects, as example: OnFocusRight (action triggered when moving right in the controller)

ImageTree[edit | edit source]

FontTree[edit | edit source]

Only used in PS3, only used in sysconf_plugin.rco and hknw_plugin.rco

TextTree[edit | edit source]

ModelTree[edit | edit source]

None of the PS3 rco's uses a ModelTree

SoundTree[edit | edit source]

ObjectTree[edit | edit source]

  • in this page under the section "ObjectTree" are explained what seems to be a few golden rules related to:
    • object display priority
    • children objects inherited attributes from parent object

AnimTree[edit | edit source]