RCOXML Coding: Difference between revisions
m (→Examples) |
mNo edit summary |
||
Line 86: | Line 86: | ||
===Gameboot Animation=== | ===Gameboot Animation=== | ||
In gamelib_plugin.rco | |||
{{Boxcode|content=<syntaxhighlight lang="xml"> | {{Boxcode|content=<syntaxhighlight lang="xml"> | ||
< | <AnimTree> | ||
<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" /> | |||
<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> | |||
</AnimTree> | |||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||
{{System Firmware}}<noinclude>[[Category:Main]]</noinclude> | {{System Firmware}}<noinclude>[[Category:Main]]</noinclude> |
Revision as of 05:42, 14 November 2015
Description
RCOXML files are the XML descriptor files implicit inside Resource Container (RCO) files (.rco)
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
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...
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
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)
audioplayer_plugin_util.rco avc_game_plugin.rco checker_plugin.rco 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 Structure
Not all nodes below are required, and various object/anim entries are omitted.
RcoFile - XML root element; generally does not need to be modified MainTree - root RCO node from which everything must descend from 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 ...
Examples
Code Sample
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
Tutorial link: Changing the XMB Colour
Located into .xml files of .rco files, scale R G B α colors go between 0 to 1.
e.g.: Decimal value divided by 255 to get into this scale.
Gameboot Animation
In gamelib_plugin.rco
Code Sample