Talk:XMB Layouts: Difference between revisions

From PS3 Developer wiki
Jump to navigation Jump to search
m (moved to front)
m (moved from frontpage)
Line 7: Line 7:


Then is posible to search in the layout file for the value -395
Then is posible to search in the layout file for the value -395
==More Speculation==
The values belongs to .rco files, every .rco file has a group of values that are loaded from here, usually the values from a specific .rco file are stored consecutivelly. Other values can be loaded by several .rco files (as example, the position of ICON0.PNG is used by several firmware functions, every .rco associated with this functions can load the position from the same value, this allows for some coherence when designing XMB and to modify several display settings from different functions by a single change)
*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... so module_1.sprx uses the id 0x1 and is associated with module_1.rco... so his values are stored on top... and so on
**Based on a list in vsh.self
**Alphabetical order
**Based on a "messed up because suffered lot of changes" list used only in the 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
===scalation factors?===
Others values are decimal (scalation factors?), e.g:
The first 8 lines of '''layout_factor_table_720.txt'''
1
0
0
1280  <--- width
720    <--- heigth
0.6667 <--- scalation factor ?
0.6667 <--- scalation factor ?
0.6923 <--- scalation factor ?
===Other images===
The "XMB cross" also known as "XMB cursor". Is a position located always in the same place, defined in lines 258 and 259 of '''layout_factor_table_1080.txt'''
-395
35
By changing the values to -750 and 200 the result is the whole XMB is displaced to the left-top corner ---> https://www.youtube.com/watch?v=Tet5QwvGvgg
----
As a reference for known pixel sizes... all the values of the [[Content Information Files]] images appears in one or more of the "XMB Layout Tables"
In case of an standard image usually appears the width and the heigth in 2 consecutive lines, e.g:
In line 77 of: '''layout_factor_table_1080.txt'''
486
405
320
176
...320x176 is the size of ICON0.PNG and ICON1.PAM
...486x405 is the size of ICON2.PNG and ICON3.SWF (used in PS3_EXTRA disc structure)
...Is the only place inside this "layout tables" files where appears a 320 and in the next line a 176 consecutivelly
Some of the images are defined with 4 values, where the last one (unk2) is negative (width, heigth, unk1, unk2), e.g:
In line 2210 of '''layout_grid_table_1080.txt'''
1000
560
290
-157
310
250
115
-69
... 1000x560 is the size of PIC0.PNG... the value 290 (unk1) and -157 (unk2) seems to be associated with this image
... 310x250 is the size of PIC2.PNG... the value 115 (unk1) and -69 (unk2) seems to be associated with this image
===Notes===
*Some of the items in XMB are defined by a central point (not by an square composed by width and heigth where the image must fit)... like the main category icons of the XMB that uses a central point to scalate the icon proportionally in all directions when the cursor is focused on his column. Actually this icons are originally 128x128 pixels, but when displayed in XMB are reduced to half his size (64x64 or so), and when focused are displayed a bit bigger (100x100 or so)
*The most easy values to recognize are the resolution of the screen, always at top of the list (in the first lines)
*Sizes and positions of main XMB category icons should be at top of the lists because are something generic and the rest of XMB items is built around them
*When making tests with this files keep in mind the safest ones are the modes your TV doesnt uses by default and/or remoteplay layouts because after a reboot the PS3 doesnt loads them (only loaded when enabling remote play from XMB, not at boot time)... also keep in mind that the other layouts should be common with the "recovery menu" and "service mode" display modes... and you can change your TV resolution in the options in XMB settings column, then return to default resolution with a button combo at boot time

Revision as of 20:14, 28 November 2015

Discussion/Speculation

It seems the values inside layout files overrides values inside RCOXML Structure files (when present in the layout file, the value inside the rcoxml is ignored)

As example... by looking at xmb_plugin_normal where the definition for the "xmenu" is posible to see a position of:

<XMenu name="xmenu" posX="-395" posY="40"

Then is posible to search in the layout file for the value -395

More Speculation

The values belongs to .rco files, every .rco file has a group of values that are loaded from here, usually the values from a specific .rco file are stored consecutivelly. Other values can be loaded by several .rco files (as example, the position of ICON0.PNG is used by several firmware functions, every .rco associated with this functions can load the position from the same value, this allows for some coherence when designing XMB and to modify several display settings from different functions by a single change)

  • 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... so module_1.sprx uses the id 0x1 and is associated with module_1.rco... so his values are stored on top... and so on
    • Based on a list in vsh.self
    • Alphabetical order
    • Based on a "messed up because suffered lot of changes" list used only in the 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

scalation factors?

Others values are decimal (scalation factors?), e.g:

The first 8 lines of layout_factor_table_720.txt
1
0
0
1280   <--- width
720    <--- heigth
0.6667 <--- scalation factor ?
0.6667 <--- scalation factor ?
0.6923 <--- scalation factor ?

Other images

The "XMB cross" also known as "XMB cursor". Is a position located always in the same place, defined in lines 258 and 259 of layout_factor_table_1080.txt

-395
35

By changing the values to -750 and 200 the result is the whole XMB is displaced to the left-top corner ---> https://www.youtube.com/watch?v=Tet5QwvGvgg


As a reference for known pixel sizes... all the values of the Content Information Files images appears in one or more of the "XMB Layout Tables"

In case of an standard image usually appears the width and the heigth in 2 consecutive lines, e.g:

In line 77 of: layout_factor_table_1080.txt
486
405
320
176
...320x176 is the size of ICON0.PNG and ICON1.PAM
...486x405 is the size of ICON2.PNG and ICON3.SWF (used in PS3_EXTRA disc structure)
...Is the only place inside this "layout tables" files where appears a 320 and in the next line a 176 consecutivelly

Some of the images are defined with 4 values, where the last one (unk2) is negative (width, heigth, unk1, unk2), e.g:

In line 2210 of layout_grid_table_1080.txt
1000
560
290
-157
310
250
115
-69
... 1000x560 is the size of PIC0.PNG... the value 290 (unk1) and -157 (unk2) seems to be associated with this image
... 310x250 is the size of PIC2.PNG... the value 115 (unk1) and -69 (unk2) seems to be associated with this image

Notes

  • Some of the items in XMB are defined by a central point (not by an square composed by width and heigth where the image must fit)... like the main category icons of the XMB that uses a central point to scalate the icon proportionally in all directions when the cursor is focused on his column. Actually this icons are originally 128x128 pixels, but when displayed in XMB are reduced to half his size (64x64 or so), and when focused are displayed a bit bigger (100x100 or so)
  • The most easy values to recognize are the resolution of the screen, always at top of the list (in the first lines)
  • Sizes and positions of main XMB category icons should be at top of the lists because are something generic and the rest of XMB items is built around them
  • When making tests with this files keep in mind the safest ones are the modes your TV doesnt uses by default and/or remoteplay layouts because after a reboot the PS3 doesnt loads them (only loaded when enabling remote play from XMB, not at boot time)... also keep in mind that the other layouts should be common with the "recovery menu" and "service mode" display modes... and you can change your TV resolution in the options in XMB settings column, then return to default resolution with a button combo at boot time