PS3 [IDEA] Showing Lots of CFW/HEN Information on the XMB

Discussion in 'XMB Modifications' started by DeViL303, May 1, 2019.

  1. 5,789
    5,404
    622
    sandungas

    sandungas Moderator Developer

    Joined:
    Dec 31, 2014
    Messages:
    5,789
    Likes Received:
    5,404
    Trophy Points:
    622
    Location:
    Babylon 20xxE series
    Ok, that <Scroll> is confusing because it seems to have a X displacement everytime is displayed
    Lets say... if you try to display it a position X=0 and Y=0 (the center of the screen)... the result is the scrollbar is displayed like 150 pixels to left or so
    There are 2 unknonwn values in the <Scroll> object (named scrollUnkFloat23, and scrollUnkFloat24), that uses to be 100... so not sure if the X displacement is related with that values... or that X displacement is just something weird because sony wanted to have the scrollbar always displaced to left

    Also, the texts of the <IItem> inside the <IList> (anchored to left) we see in the xml are aligned to right, and keeps a margin of lets say... 10 pixels to right border
    By looking at the unknowns the only posible candidates are the ilistUnkFloat23 (that is an attribute of <IList>, so all his childrens should be aligned in the same way), or is the <iitemUnk1> (that is an attribute of <IItem>, so this would allows to align every text individually)

    Those are the 2 bigest doubts i have about how is going to look
    Is because the xml code is "supervised" by the sprx, in other words, the sprx is creating lot of restrictions in the:
    <IList name="ilist_console_information">
    And the sprx recognizes it by his name
    What im saying is to add 2 <IList> with custom names, located inmediatly before the <Text> objects
    This way we have full control of them :)
     
    Last edited: Sep 16, 2019
    Algol and DeViL303 like this.
  2. 5,789
    5,404
    622
    sandungas

    sandungas Moderator Developer

    Joined:
    Dec 31, 2014
    Messages:
    5,789
    Likes Received:
    5,404
    Trophy Points:
    622
    Location:
    Babylon 20xxE series
    Let me show you the most important values to understand how is aligned, later i could show how i made the value conversions, but by now just believe me to short this explain

    This is the official code from firmware 4.85
    Code:
    <RcoFile UMDFlag="0" rcomageXmlVer="1.1" type="ps3" minFirmwareVer="unknownId0x130">
    	<MainTree name="sysconf_plugin">
    		<ObjectTree>
    			<Page name="page_console_information">
    				<Plane name="plane_console_information" positionX="0" positionY="0" positionZ="0" colorScaleR="0" colorScaleG="0" colorScaleB="0" colorScaleA="0" sizeX="0" sizeY="0" sizeZ="0" sizeScaleX="1" sizeScaleY="1" sizeScaleZ="1" anchorMode="0x0" onInit="nothing" positionOverrideX="0x4000100" positionOverrideY="0x5000100" positionOverrideZ="0x6000100" sizeOverrideX="0x7000100" sizeOverrideY="0x8000100" sizeOverrideZ="0x0" planeImage="nothing" planeResizeMode="0x0">
    					<IList name="ilist_console_information" positionX="0" positionY="0" positionZ="0" colorScaleR="1" colorScaleG="1" colorScaleB="1" colorScaleA="1" sizeX="0" sizeY="0" sizeZ="0" sizeScaleX="1" sizeScaleY="1" sizeScaleZ="1" anchorMode="0x100" onInit="nothing" positionOverrideX="0x100" positionOverrideY="0x100" positionOverrideZ="0x100" sizeOverrideX="0x0" sizeOverrideY="0x1b040100" sizeOverrideZ="0x0" ilistUnkFloat23="0" ilistOverrideUnk24="0x0" ilistOnFocusIn="nothing" ilistOnFocusOut="nothing" ilistOnFocusLeft="nothing" ilistOnFocusRight="nothing" ilistOnFocusUp="nothing" ilistOnFocusDown="nothing" ilistOnPush="nothing">
    						<Scroll name="scroll_console_information" positionX="0" positionY="0" positionZ="0" colorScaleR="1" colorScaleG="1" colorScaleB="1" colorScaleA="1" sizeX="8" sizeY="172" sizeZ="1" sizeScaleX="1" sizeScaleY="1" sizeScaleZ="1" anchorMode="0x0" onInit="nothing" positionOverrideX="0x0" positionOverrideY="0x0" positionOverrideZ="0x0" sizeOverrideX="0x0" sizeOverrideY="0x0" sizeOverrideZ="0x0" scrollUnkFloat23="100" scrollUnkFloat24="100" scrollUnk25="0x0" scrollImageBase="nothing" scrollImageSlider="nothing" scrollImageArrow="nothing" scrollImageBaseShadow="nothing" scrollImageArrowShadow="nothing"></Scroll>
    						<IItem name="item_console_information_system_software" iitemUnk1="0x0" iitemText="text:msg_system_software" iitemTextAlt="text:msg_info_none"></IItem>
    						<IItem name="item_console_information_ipaddress" iitemUnk1="0x0" iitemText="text:msg_ipaddress" iitemTextAlt="text:msg_info_none"></IItem>
    						<IItem name="item_console_information_macaddress" iitemUnk1="0x0" iitemText="text:msg_macaddress" iitemTextAlt="text:msg_info_none"></IItem>
    						<IItem name="item_console_information_free_space" iitemUnk1="0x0" iitemText="text:msg_space" iitemTextAlt="text:msg_info_none"></IItem>
    						<IItem name="item_console_information_system_storage" iitemUnk1="0x0" iitemText="text:msg_system_storage_in_use" iitemTextAlt="text:msg_info_none"></IItem>
    					</IList>
    					<Text name="text_ps3_information_version" positionX="0" positionY="0" positionZ="0" colorScaleR="1" colorScaleG="1" colorScaleB="1" colorScaleA="1" sizeX="0" sizeY="0" sizeZ="1" sizeScaleX="1" sizeScaleY="1" sizeScaleZ="1" anchorMode="0x2200" onInit="nothing" positionOverrideX="0xf7030100" positionOverrideY="0xf8030100" positionOverrideZ="0x0" sizeOverrideX="0x0" sizeOverrideY="0x0" sizeOverrideZ="0x0" textMessage="nothing" textFontStyle="nothing" textFontMode="0x1000002" textUnk29="0x1" textFontSizeY="10" textTopColorScaleR="1" textTopColorScaleG="1" textTopColorScaleB="1" textBottomColorScaleR="1" textBottomColorScaleG="1" textBottomColorScaleB="1" textLineSpacing="0" textUnk37="0x0" textUnk38="0x0" textUnk39="0x0" textCharacterSpacing="0" textShadowOffsetX="4" textShadowOffsetY="-5" textShadowOffsetZ="0" textShadowColorScaleR="0.25" textShadowColorScaleG="0.25" textShadowColorScaleB="0.25" textShadowColorScaleA="1" textUnk48="0x0" textUnk49="0x0" textUnk50="0x0" textUnkFloat51="1" textUnkFloat52="1" textUnkFloat53="1" textUnkFloat54="1" textResizeMode="0xffffffff" textOverrideUnk56="0x14000100" textOverrideUnk57="0x3000000" textOverrideUnk58="0x0"></Text>
    					<Text name="text_ps3_information_product_code" positionX="0" positionY="0" positionZ="0" colorScaleR="1" colorScaleG="1" colorScaleB="1" colorScaleA="1" sizeX="0" sizeY="0" sizeZ="1" sizeScaleX="1" sizeScaleY="1" sizeScaleZ="1" anchorMode="0x3200" onInit="nothing" positionOverrideX="0xf9030100" positionOverrideY="0xfa030100" positionOverrideZ="0x0" sizeOverrideX="0x0" sizeOverrideY="0x0" sizeOverrideZ="0x0" textMessage="nothing" textFontStyle="nothing" textFontMode="0x1000002" textUnk29="0x1" textFontSizeY="10" textTopColorScaleR="1" textTopColorScaleG="1" textTopColorScaleB="1" textBottomColorScaleR="1" textBottomColorScaleG="1" textBottomColorScaleB="1" textLineSpacing="0" textUnk37="0x0" textUnk38="0x0" textUnk39="0x0" textCharacterSpacing="0" textShadowOffsetX="4" textShadowOffsetY="-5" textShadowOffsetZ="0" textShadowColorScaleR="0.25" textShadowColorScaleG="0.25" textShadowColorScaleB="0.25" textShadowColorScaleA="1" textUnk48="0x0" textUnk49="0x0" textUnk50="0x0" textUnkFloat51="1" textUnkFloat52="1" textUnkFloat53="1" textUnkFloat54="1" textResizeMode="0xffffffff" textOverrideUnk56="0x14000100" textOverrideUnk57="0x3000000" textOverrideUnk58="0x0"></Text>
    				</Plane>
    			</Page>
    		</ObjectTree>
    	</MainTree>
    </RcoFile>
    
    Every screen resolution uses a different layout, HD resolution loads this values from layout_grid_table_1080.txt & layout_factor_table_1080.txt: (firmware 4.85)



    plane_console_information
    anchorMode="0x0" (anchor is at the center of the plane... in this case the center of the plane is the center of the screen)
    positionOverrideX/Y/Z= 0 (center of the screen)
    sizeOverrideX= 1920 (the plane covers the whole screen)
    sizeOverrideY= 1080 (the plane covers the whole screen)
    colorScaleR/G/B/A="0" (is a transparent/empty plane)

    ilist_console_information
    anchorMode="0x100" (this is a relative position, located at middle left of half the plane... in this case is the left half of the screen)
    positionOverrideX/Y/Z= 0 (center of the screen)
    sizeOverrideX= 0
    sizeOverrideY= 423 (this sets the height of the IList, also matches with the scrollbar height, because the scrollbar is a "children" of the IList)


    ----------
    Notes:
    The anchorMode="0x100" of the IList creates a displacement in the positions of the <Iitem> childrens
    If you want to move it to right half of the screen (simmetrically) is needed to use the value "0x200"
    *There are other values of the anchorMode that could be handy to use to relocate everythng
     
    Last edited: Sep 16, 2019

Share This Page