Editing XMB Layouts

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 1: Line 1:
{{wikify}}  
{{wikify}}
=Description=
=Description=
This files contains a list of values that defines the global coordinates of the <abbr title="The full lists has not been scanned and identifyed completly, but so far only was found positions and sizes">positions and sizes</abbr>  loaded by some [[RCOXML Objects]]. Are divided in 4 [http://manuals.playstation.net/document/en/ps3/current/settings/videooutput.html video resolution modes] by its heigths: ('''1080''', '''720''', '''480''', '''272'''), and its types: ('''grid''', and '''factor''')<br>
This files contains a list of numeric values that seems to define the positions, sizes, etc of most/all the items displayed in XMB. Are divided in 4 resolution modes by its heigths: (272, 480, 720, 1080), and its types: (factor, and grid). Factor ones contains less values and seems to be derivated from Grid ones (grid ones are much bigger).
The values inside the '''grid''' tables contains the positions and sizes, while the '''factor''' tables contains multiplyers that are applyed to the '''grid''' values<br>
Everytime a [[RCOXML Objects|RCOXML Object]] loads a value from the '''grid''' table is also loading another value from the '''factor''' table associated with it, then is applyed a math formula to calculate the resulting positions and sizes<br>
This design is intended to reconfigure the position and sizes of all [[RCOXML Objects]] dinamically for the 4 different screen resolutions supported by [[XMB]]


Some of the values seems to be related with the [http://manuals.playstation.net/document/en/ps3/current/settings/videooutput.html video resolution/settings]
{{XMB Layout Tables}}
{{XMB Layout Tables}}
*The values at grid lines 8 & 9 are loaded by the object '''ps3logo_back_color''' that belongs to '''page_gameboot''' from inside '''[[gamelib_plugin]].rco'''. Are the '''sizeX''' and '''sizeY''' of a full screen plane recolored to pure black


=Versions=
=Versions=
Line 19: Line 19:
==Factor==
==Factor==
{{layout_factor_tables}}
{{layout_factor_tables}}
*Speculation
**Lines 4, 5 are the screen resolution (width * height)
**Lines 6,7, 8 seems to be a general scale factor (a multiplyer that allows decimals used to scale sizes), and maybe related with X,Y,Z axis scales


=RCO override attributes=
=RCO override attributes=
'''All "Override" attributes are pointers to a value stored in a line of [[XMB Layouts]] .txt files, the override indicates the line number in the .txt and the value in that line is loaded by the .rco
'''All "Override" attributes are pointers to a value stored in a line of [[XMB Layouts]] .txt files, the override indicates the line number in the .txt and the value in that line is loaded by the .rco
**Some values used by [[RCOXML Objects]] and [[RCOXML Animations]] are loaded externally to be able to scale the whole XMB interface for different screen resolution modes. Sony was adding more stuff in the XMB along the different firmware versions, and some of this "new" items used this same method, the result is more "override" values was added to the [[XMB Layouts]] .txt files, and as a consequence some of the other "old" values was "displaced" a few lines down in the [[XMB Layouts]] .txt files. This is the reason why in the changelog of custom_render_plugin.rco (and i bet most of the others .rco's using overrides) the value increases just a few units for every new version of the .rco (that units are a few lines that was added for that firmware in the .txt)
**Some values used by [[RCOXML Objects]] are loaded externally to be able to scale the whole XMB interface for different screen resolution modes. Sony was adding more stuff in the XMB along the different firmware versions, and some of this "new" items used this same method, the result is more "override" values was added to the [[XMB Layouts]] .txt files, and as a consequence some of the other "old" values was "displaced" a few lines down in the [[XMB Layouts]] .txt files. This is the reason why in the changelog of custom_render_plugin.rco (and i bet most of the others .rco's using overrides) the value increases just a few units for every new version of the .rco (that units are a few lines that was added for that firmware in the .txt)
**The reason why the new values added in the .txt displaces the old values... is because the list of values inside the .txt are ordered "by rco ownership". First are stored all the values for rco nº1... then all the values for rco nº2... and so on... obviouslly custom_render_plugin is not at top of the list because it stores his values around line 500. It has other values from other rco's before it and when that others had some addition this made the values of custom_render_plugins to be displaced some lines down in the list
**The reason why the new values added in the .txt displaces the old values... is because the list of values inside the .txt are ordered "by rco ownership". First are stored all the values for rco nº1... then all the values for rco nº2... and so on... obviouslly custom_render_plugin is not at top of the list because it stores his values around line 500. It has other values from other rco's before it and when that others had some addition this made the values of custom_render_plugins to be displaced some lines down in the list
***I have no idea wich position in the [[XMB Layouts]] .txt files uses every .rco probably are ordered by using one of the lists from a .sprx or vsh.self... or maybe the order depends of the compilation enviroment sony uses for the official firmware
***I have no idea wich position in the [[XMB Layouts]] .txt files uses every .rco probably are ordered by using one of the lists from a .sprx or vsh.self... or maybe the order depends of the compilation enviroment sony uses for the official firmware
*Usually the override values from a specific .rco file are stored consecutivelly in the [[XMB Layouts]] files
*But other values can be loaded by several .rco files. As example, the "plane" object "ps3logo" (children of "page" object "page_gameboot") is defined inside custom_render_plugin.rco and inside gamelib_plugin.rco both uses overrides to scale the playstation logo in size and the overrides of both are pointing to the same line number in the [[XMB Layouts]] files
*There are 122 .rco files in firmware 4.76, the order of how are stored here the groups of values for every .rco is not clear, some posible options:
**Based in a identifyer from the associated module.srpx
**Based on a list in vsh.self
**Alphabetical order
**Based on a "messed up because suffered lot of changes" script used in the official compilation enviroment for PS3 firmware. In other words, the firmware doesnt cares and doesnt knows about the order and simply loads individual values after reading the position from the .rco file
{{custom_render_plugin.rco changelog}}
{{custom_render_plugin.rco changelog}}
**It seems the values stored in the [[XMB Layouts]] .txt files for custom_render_plugin.rco never changed (verifyed only in 2.00, 3.55, 4.46, 4.70), below are the real values, taken from  layout_grid_table_1080.txt (for other resolutions the values are different)
**It seems the values stored in the [[XMB Layouts]] .txt files for custom_render_plugin.rco never changed (verifyed only in 2.00, 3.55, 4.46, 4.70), below are the real values, taken from  layout_grid_table_1080.txt (for other resolutions the values are different)
Line 53: Line 39:
In firmware 4.76 custom_render_plugin.rco contains 3 '''plane''' [[RCOXML Objects]] using the 21 standard attributes and 2 specific attributes:
In firmware 4.76 custom_render_plugin.rco contains 3 '''plane''' [[RCOXML Objects]] using the 21 standard attributes and 2 specific attributes:
*Page object '''page_coldboot''' - is the old/classic coldboot from firmware 1.00 used when the console boots
*Page object '''page_coldboot''' - is the old/classic coldboot from firmware 1.00 used when the console boots
**Plane object '''scelogo''' - is an image of 1024x64 pixels size. Uses grid pointers
**Plane object '''scelogo''' - is an image of 512x32 pixels size. Uses grid pointers
*Page object '''page_coldboot2''' - is the new coldboot introduced in firmware 2.70
*Page object '''page_coldboot2''' - is the new coldboot introduced in firmware 2.70
**Plane object '''coldboot_ps3logo''' - is a placeholder for the [[coldboot.raf]] animation. Doesnt uses grid pointers
**Plane object '''coldboot_ps3logo''' - is a placeholder for the [[coldboot.raf]] animation. Doesnt uses grid pointers
*Page object '''page_gameboot''' - used when a game boots
*Page object '''page_gameboot''' - used when a game boots
**Plane object '''ps3logo''' - is an image of 1200x128 pixels size. Uses grid pointers
**Plane object '''ps3logo''' - is an image of 512x54 pixels size. Uses grid pointers
 
{{spoiler|custom_render_plugin.rco.xml (cropped)|
{{Boxcode|title=custom_render_plugin.rco.xml (cropped)|code=<syntaxhighlight lang="xml">
{{Boxcode|content=<syntaxhighlight lang="xml">
<RcoFile>
<RcoFile>
<MainTree>
<MainTree>
Line 76: Line 62:
</RcoFile>
</RcoFile>
</syntaxhighlight>}}
</syntaxhighlight>}}
}}


{{Boxcode|title=This is the same code, using linefeeds and tabs for a better overview of the attributes|code=<syntaxhighlight lang="xml">
This is the same code, using linefeeds and tabs for a better overview of the attributes
{{Boxcode|content=<syntaxhighlight lang="xml">
<RcoFile>
<RcoFile>
<MainTree>
<MainTree>
Line 137: Line 125:
*'''page_coldboot'''
*'''page_coldboot'''
**'''scelogo'''
**'''scelogo'''
***stdPositionX="0" stdPositionY="0" stdPositionZ="0" <------------------------------------------------------------------------ positions are empty !
***stdPositionX="0" stdPositionY="0" stdPositionZ="0" <--------------------------------------------------------------- '''positions are empty !'''
***stdSizeX="0" stdSizeY="0" stdSizeZ="0" <-------------------------------------------------------------------------------------- sizes are empty !
***stdSizeX="0" stdSizeY="0" stdSizeZ="0" <------------------------------------------------------------ '''sizes are empty !'''
***stdOverridePositionX="0x98020000" stdOverridePositionY="0x99020000" stdOverridePositionZ="0x0" <------- grid & factor pointers, overrides the values of attributes '''stdPositionX''' and '''stdPositionY'''
***stdOverridePositionX="0x98020000" stdOverridePositionY="0x99020000" stdOverridePositionZ="0x0" <------- This ones are grid pointers, overrides the values for position
***stdOverrideSizeX="0x9a020100" stdOverrideSizeY="0x9b020100" stdOverrideSizeZ="0x100" <------------------- grid & factor pointers, overrides the values of attributes '''stdSizeX''' and '''stdSizeY'''
***stdOverrideSizeX="0x9a020100" stdOverrideSizeY="0x9b020100" stdOverrideSizeZ="0x100" <---- This ones are grid pointers, overrides the values for sizes


*'''page_coldboot2'''
*'''page_coldboot2'''
**'''coldboot_ps3logo'''
**'''coldboot_ps3logo'''
***stdPositionX="0" stdPositionY="0" stdPositionZ="0" <------------------------------------------------------------------------ positions are empty !
***stdPositionX="0" stdPositionY="0" stdPositionZ="0" <--------------------------------------------------------------- '''positions are empty !'''
***stdSizeX="0" stdSizeY="0" stdSizeZ="0" <-------------------------------------------------------------------------------------- sizes are empty !
***stdSizeX="0" stdSizeY="0" stdSizeZ="0" <------------------------------------------------------------ '''sizes are empty !'''
***stdOverridePositionX="0x0" stdOverridePositionY="0x0" stdOverridePositionZ="0x0" <------------------------------ override positions are empty !
***stdOverridePositionX="0x0" stdOverridePositionY="0x0" stdOverridePositionZ="0x0" <------------------------------ This is reserved for a grid pointer, but is doubtfull how this values are working
***stdOverrideSizeX="0x100" stdOverrideSizeY="0x100" stdOverrideSizeZ="0x100" <----------------------------------- override sizes are empty !
***stdOverrideSizeX="0x100" stdOverrideSizeY="0x100" stdOverrideSizeZ="0x100" <--------------------- This is reserved for a grid pointer, but is doubtfull how this values are working


*'''page_gameboot'''
*'''page_gameboot'''
**'''ps3logo'''
**'''ps3logo'''
***stdPositionX="0" stdPositionY="0" stdPositionZ="0" <------------------------------------------------------------------------ positions are empty !
***stdPositionX="0" stdPositionY="0" stdPositionZ="0" <--------------------------------------------------------------- '''positions are empty !'''
***stdSizeX="0" stdSizeY="0" stdSizeZ="0" <-------------------------------------------------------------------------------------- sizes are empty !
***stdSizeX="0" stdSizeY="0" stdSizeZ="0" <------------------------------------------------------------ '''sizes are empty !'''
***stdOverridePositionX="0x0" stdOverridePositionY="0x0" stdOverridePositionZ="0x0" <------------------------------ override positions are empty !
***stdOverridePositionX="0x0" stdOverridePositionY="0x0" stdOverridePositionZ="0x0" <------------------------------- This ones are grid pointers, overrides the values for position
***stdOverrideSizeX="0x9c020100" stdOverrideSizeY="0x9d020100" stdOverrideSizeZ="0x100" <------------------- grid & factor pointers, overrides the values of attributes '''stdSizeX''' and '''stdSizeY'''
***stdOverrideSizeX="0x9c020100" stdOverrideSizeY="0x9d020100" stdOverrideSizeZ="0x100" <------ This ones are grid pointers, overrides the values for sizes


----
----
Before calculating the grid pointers is needed to convert the values manually to the correct format. Every one of the attributes used for grid pointers is composed by 2 values, the first one is the grid pointer (first 2 bytes), and the second is the factor pointer (last 2 bytes). Is needed to cut the attribute at half and swap the bytes
Before calculating the grid pointers is needed to convert the values manually to the correct format. Every one of the attributes used for grid pointers is composed by 2 values, the first one is the grid pointer itself (first 2 bytes), and the second one is unknown (last 2 bytes). Is needed to cut the attribute at half and swap the bytes


*'''scelogo''' grid pointers
*'''scelogo''' grid pointers
**position
**position
***stdOverridePositionX="0x98020000" <----------- this is 0x0'''298''' (grid pointer) and 0x0000 (factor pointer to line 1)
***stdOverridePositionX="0x98020000" <----------- this is 0x0'''298''' (grid pointer) and 0x0000 (unknown)
***stdOverridePositionY="0x99020000" <----------- this is 0x0'''299''' (grid pointer) and 0x0000 (factor pointer to line 1)
***stdOverridePositionY="0x99020000" <----------- this is 0x0'''299''' (grid pointer) and 0x0000 (unknown)
***stdOverridePositionZ="0x0" <---------------------- this is 0x0000 (grid pointer to line 1) and 0x0000 (factor pointer to line 1)
***stdOverridePositionZ="0x0" <---------------------- this is 0x0000 (grid pointer ?) and 0x0000 (unknown)
**size
***stdOverrideSizeX="0x9a020100" <----------- this is 0x0'''29a''' (grid pointer) and 0x000'''1''' (unknown)
***stdOverrideSizeY="0x9b020100" <----------- this is 0x0'''29b''' (grid pointer) and 0x000'''1''' (unknown)
***stdOverrideSizeZ="0x100" <------------------- this is 0x0000 (grid pointer ?) and 0x000'''1''' (unknown)
 
*'''coldboot_ps3logo''' grid pointers
**position
***stdOverridePositionX="0x0" <---------------------- this is 0x0000 (grid pointer ?) and 0x0000 (unknown)
***stdOverridePositionY="0x0" <---------------------- this is 0x0000 (grid pointer ?) and 0x0000 (unknown)
***stdOverridePositionZ="0x0" <---------------------- this is 0x0000 (grid pointer ?) and 0x0000 (unknown)
**size
**size
***stdOverrideSizeX="0x9a020100" <----------- this is 0x0'''29a''' (grid pointer) and 0x000'''1''' (factor pointer to line 2)
***stdOverrideSizeX="0x100" <------------------- this is 0x0000 (grid pointer ?) and 0x000'''1''' (unknown)
***stdOverrideSizeY="0x9b020100" <----------- this is 0x0'''29b''' (grid pointer) and 0x000'''1''' (factor pointer to line 2)
***stdOverrideSizeY="0x100" <------------------- this is 0x0000 (grid pointer ?) and 0x000'''1''' (unknown)
***stdOverrideSizeZ="0x100" <------------------- this is 0x0000 (grid pointer to line 1) and 0x000'''1''' (factor pointer to line 2)
***stdOverrideSizeZ="0x100" <------------------- this is 0x0000 (grid pointer ?) and 0x000'''1''' (unknown)


*'''ps3logo''' grid pointers
*'''ps3logo''' grid pointers
**position
***stdOverridePositionX="0x0" <---------------------- this is 0x0000 (grid pointer ?) and 0x0000 (unknown)
***stdOverridePositionY="0x0" <---------------------- this is 0x0000 (grid pointer ?) and 0x0000 (unknown)
***stdOverridePositionZ="0x0" <---------------------- this is 0x0000 (grid pointer ?) and 0x0000 (unknown)
**size
**size
***stdOverrideSizeX="0x9c020100" <----------- this is 0x0'''29c''' (grid pointer) and 0x000'''1''' (factor pointer to line 2)
***stdOverrideSizeX="0x9c020100" <----------- this is 0x0'''29c''' (grid pointer) and 0x000'''1''' (unknown)
***stdOverrideSizeY="0x9d020100" <----------- this is 0x0'''29d''' (grid pointer) and 0x000'''1''' (factor pointer to line 2)
***stdOverrideSizeY="0x9d020100" <----------- this is 0x0'''29d''' (grid pointer) and 0x000'''1''' (unknown)
***stdOverrideSizeZ="0x100" <------------------- this is 0x0000 (grid pointer to line 1) and 0x000'''1''' (factor pointer to line 2)
***stdOverrideSizeZ="0x100" <------------------- this is 0x0000 (grid pointer ?) and 0x000'''1''' (unknown)


----
----
Now to get the correct value from the grid pointers is needed to look at the [[XMB Layouts]] files '''from the same firmware !!!'''
Now to get the correct value from the grid pointers is needed to look at the [[XMB Layouts]] files '''from the same firmware !!!'''


The pointer values needs to be converted to decimal, and added a +1 (in other words... value 0 represents the first line of the .txt file)
The grid pointer value needs to be converted to decimal, and added a +1 (because it seems inside the .txt file the lines are counted starting with zero, so first line is number 0)


*'''scelogo''' grid pointers
*'''scelogo''' grid pointers
Line 184: Line 186:
***stdOverridePositionX="0x98020000" <----------- the first 2 bytes 0x0'''298''' swapped and converted to decimal = 664 + 1 = '''line 665''' of [[XMB Layouts]] files
***stdOverridePositionX="0x98020000" <----------- the first 2 bytes 0x0'''298''' swapped and converted to decimal = 664 + 1 = '''line 665''' of [[XMB Layouts]] files
***stdOverridePositionY="0x99020000" <----------- the first 2 bytes 0x0'''299''' swapped and converted to decimal = 665 + 1 = '''line 666''' of [[XMB Layouts]] files
***stdOverridePositionY="0x99020000" <----------- the first 2 bytes 0x0'''299''' swapped and converted to decimal = 665 + 1 = '''line 666''' of [[XMB Layouts]] files
***stdOverridePositionZ="0x0" <---------------------- the first 2 bytes 0x0000 swapped and converted to decimal = 0
**size
**size
***stdOverrideSizeX="0x9a020100" <----------- the first 2 bytes 0x0'''29a''' swapped and converted to decimal = 666 + 1 = '''line 667''' of [[XMB Layouts]] files
***stdOverrideSizeX="0x9a020100" <----------- the first 2 bytes 0x0'''29a''' swapped and converted to decimal = 666 + 1 = '''line 667''' of [[XMB Layouts]] files
***stdOverrideSizeY="0x9b020100" <----------- the first 2 bytes 0x0'''29b''' swapped and converted to decimal = 667 + 1 = '''line 668''' of [[XMB Layouts]] files
***stdOverrideSizeY="0x9b020100" <----------- the first 2 bytes 0x0'''29b''' swapped and converted to decimal = 667 + 1 = '''line 668''' of [[XMB Layouts]] files
***stdOverrideSizeZ="0x100" <------------------- the first 2 bytes 0x0000 swapped and converted to decimal = 0


*'''ps3logo''' grid pointers
*'''ps3logo''' grid pointers
**position
***stdOverridePositionX="0x0" <---------------------- the first 2 bytes 0x0000 swapped and converted to decimal = 0
***stdOverridePositionY="0x0" <---------------------- the first 2 bytes 0x0000 swapped and converted to decimal = 0
***stdOverridePositionZ="0x0" <---------------------- the first 2 bytes 0x0000 swapped and converted to decimal = 0
**size
**size
***stdOverrideSizeX="0x9c020100" <----------- the first 2 bytes 0x0'''29c''' swapped and converted to decimal = 668 + 1 = '''line 669''' of [[XMB Layouts]] files
***stdOverrideSizeX="0x9c020100" <----------- the first 2 bytes 0x0'''29c''' swapped and converted to decimal = 668 + 1 = '''line 669''' of [[XMB Layouts]] files
***stdOverrideSizeY="0x9d020100" <----------- the first 2 bytes 0x0'''29d''' swapped and converted to decimal = 669 + 1 = '''line 670''' of [[XMB Layouts]] files
***stdOverrideSizeY="0x9d020100" <----------- the first 2 bytes 0x0'''29d''' swapped and converted to decimal = 669 + 1 = '''line 670''' of [[XMB Layouts]] files
***stdOverrideSizeZ="0x100" <------------------- the first 2 bytes 0x0000 swapped and converted to decimal = 0


{| class="wikitable" style="font-size:small;"
{| class="wikitable" style="font-size:small;"
|+ [[XMB]] Layout grid tables (from 4.76 firmware)
|+ [[XMB]] Layout grid tables (from 4.76 firmware)
! Line number !! layout_grid_table_272.txt !! layout_grid_table_480.txt !! layout_grid_table_720.txt !! layout_grid_table_1080.txt
! Line number !! layout_grid_table_272.txt !! layout_grid_table_480.txt !! layout_grid_table_720.txt !! layout_grid_table_1080.txt
|-
! 1
| 0 || 0 || 0 || 0
|-
! 2
| 1 || 1 || 1 || 1
|-
|-
! 665
! 665
Line 225: Line 240:
****Y=0
****Y=0
****Z=0
****Z=0
***size (the image tex_scelogo.gim is 1024x64 pixels)
***size (the original image tex_scelogo.gim is 512x32 pixels, but is displayed exactlly at double his size 1024x64)
****X=1024
****X=1024
****Y=64
****Y=64
Line 236: Line 251:
****Y=0
****Y=0
****Z=0
****Z=0
***size (the image tex_ps3logo.gim is 1200x128 pixels)
***size (the original image tex_ps3logo.gim is 512x54 pixels, but displayed at 1200x128<!--aspect ratio broken (by a sony mistake or on purpose ?), the correct size to preserve the aspect ratio of the original after scaling is 1200x127-->)
****X=1200
****X=1200
****Y=128
****Y=128
Line 243: Line 258:
{| class="wikitable"
{| class="wikitable"
|-
|-
| [[File:Page coldboot 1080.png|635px|thumb|left|coldboot]]
| {{#ev:youtube|tgPXlMbchFM}} || {{#ev:youtube|GUb1gIKhwMU}}
|-
| {{#ev:youtube|tgPXlMbchFM}}
|-
| [[File:Page gameboot 1080.png|635px|thumb|left|gameboot]]
|}
|}


{{File Formats}}<noinclude>[[Category:Main]]</noinclude>
{{File Formats}}<noinclude>[[Category:Main]]</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)