Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 29

Thread: How To Recolor Your XMB Font & Option Bar Using a Hex Editor

  
  1. #1
    Rob S.'s Avatar
    Rob S. is offline Senior Member -Hacks Titan
    Join Date
    Jan 2006
    Location
    41° 11' 3" N / 73° 8' 1" W
    Posts
    7,695
    Rep Power
    50523

    Default How To Recolor Your XMB Font & Option Bar Using a Hex Editor

    Here's an easy to follow tutorial that will allow you to recolor your XMB font and option bar for 3.90 M33 using a Hex Editor.

    Even if you have little to no experience hex editing, I designed this tutorial to make it as easy as possible for you to recolor your XMB font and option bar on your PSP.



    Tools you will need:

    1. A Hex Editor !

    In this tutorial I will be using Hex Workshop. Note that Hex Workshop is not free.

    Free Hex Editors can be found ---> Here

    I would personally recommend either HxD or XVI32


    2. A decompressed/decrypted 3.90 vshmain.prx:

    ----> 3.90 vshmain.prx


    If you're using a custom theme with a compressed vshmain.prx and you want to recolor your font & option bar, use PRX compressor 0.41 and the header i supplied to decompress vshmain.prx so you can edit it:

    ---> PRX Compressor & 3.90 Header



    On To the Tutorial !



    Step 1. Getting RGB Values.

    Colors are made up of 3 sets of RGB numbers representing the amount of Red, Green and Blue contained within a color.

    A color in the RGB color model is described by indicating how much of each of the red, green, and blue is included. The color is expressed as an RGB triplet (r,g,b), each component of which can vary from 0 to a defined maximum value of 255. If all the components are at 0 the result is black; if all are at 255, the result is the brightest representable white.

    I'm sure most of you know how to obtain RGB values. Any image editing program will show RGB values for your selected color.

    You can also use a color wheel to get RGB values for a particular color you want to use.


    To make it easier for you, here's a Wiki link that provides a List of Colors, and each color's RGB values:

    ---> Wiki List Of Colors



    I'll be using the color "Pale Blue" as an example.



    Notice the different RGB values for Pale Blue:

    Red= 175 Green= 238 Blue= 238


    Important Note:


    When we input these values into vshmain.prx, we will be inputting them as floating point numbers. Floating point numbers allow the use of decimal points.


    In order to input the correct floating point numbers, you must change the RGB values into 4 byte values.

    The maximum color channel strength is 1.

    If you input any number greater than 1, It will just look like you just changed it to 1, regardless of the value you enter.



    In order to get the correct color channel strength values, simply divide each value by 255:

    Red= 175 Green= 238 Blue= 238

    After dividing each value by 255:


    Red= 0.686 Green= 0.933 Blue= 0.933



    These values will be inputted as floating point numbers at specific offsets in vshmain.prx.



    An offset is basically a location, or position in a file, in this case, vshmain.prx.




    The Color Offset Locations In vshmain.prx 3.90


    These offsets will change with the release of a new custom firmware. These are for 3.90 only.







    Note there a total of 72 offsets.

    All of the months follow the same offset pattern. Of course you don't have to change every float. If you just want to change one month to "Pale Blue", you can just change the values for the month of January, Or you can change everyone of them to any color you want.

    Lets start with the offsets (locations) for the font color, the month of January:

    0x41298 is the offset location for Red
    0x4129C is the offset location for Green
    0x412A0 is the offset location for Blue


    Open your decrypted/decompressed vshmain.prx in your hex editor.


    In the left column, you will see the offset list.


    I'm going to scroll down to offset 41290.


    Now use your mouse to move the cursor to select the byte where the float starts, just in front of 0000 on the 41290 offset line.


    This is offset 41298


    If you look in the pane directly below the offset pane, you will see the data inspector.

    In the data inspector, you can see that i'm at offset 41298



    Now refer to the RGB color channel strengths for Pale Blue:

    Red= 0.686 Green= 0.933 Blue= 0.933

    Looking at your RGB values for Pale Blue, we want to change the float to the Red value, 0.686:




    Now you want to do them same thing for the Green value. Referring to the offset font list, notice 4129C is the offset for green color channel strength for the month of January. On the same offset line, move the mouse cursor over just in front of 17D9 and change the 32 bit float to 0.933:




    And finally color channel strengths for Blue for the month of January. Go to offset 412A0, and change the 32 bit float to 0.933:

    Offset 412A0 is on the next offset line, directly below 41290


    Just move the cursor directly in front of 0000 on offset line 412A0:




    Now flash your vshmain.prx to see the changes:





    Follow the exact same procedure for every other month for the font offsets, and for the infobar offsets.

    If you prefer different color fonts and option bars for each month, just remember to divide your RGB values by 255 to get the correct floating point values.

    With a little practice you'll be able to change all of the offsets in no time at all.

    Last edited by dbrums; 04-13-2013 at 12:38 PM. Reason: updating

  2. #2
    mattrey94's Avatar
    mattrey94 is offline -Hacks Hacker
    Join Date
    Nov 2007
    Posts
    997
    Rep Power
    11

    Default

    Good job robs1968,
    I've been whating to know how to do this. Gonna go try it now.

  3. #3
    osnap1584 is offline Senior Member -Hacks Titan
    Join Date
    Nov 2007
    Location
    Brooklyn, NY
    Posts
    4,383
    Rep Power
    15

    Default

    thanks robs Im gonna try this now.


    Click on Sig to View My Deviant Art Page

  4. #4
    xxxScorpion is offline -Hacks Newbie
    Join Date
    Apr 2006
    Posts
    26
    Rep Power
    0

    Default

    Where is the data inspector on HxD?

  5. #5
    Rob S.'s Avatar
    Rob S. is offline Senior Member -Hacks Titan
    Join Date
    Jan 2006
    Location
    41° 11' 3" N / 73° 8' 1" W
    Posts
    7,695
    Rep Power
    50523

    Default

    Quote Originally Posted by xxxScorpion
    Where is the data inspector on HxD?
    It's supposed to be implemented into 1.8

    No release yet :/


    Use XVI32.

  6. #6
    xxxScorpion is offline -Hacks Newbie
    Join Date
    Apr 2006
    Posts
    26
    Rep Power
    0

    Default

    Yea I downloaded it also but it looks a tad confusing.

    Not as straight forward as HxD.

  7. #7
    Rob S.'s Avatar
    Rob S. is offline Senior Member -Hacks Titan
    Join Date
    Jan 2006
    Location
    41° 11' 3" N / 73° 8' 1" W
    Posts
    7,695
    Rep Power
    50523

    Default

    Download Hex Workshop 5.0.2

    http://www.softpedia.com/get/Program...Workshop.shtml

    It's a 30 day full trial.

  8. #8
    xxxScorpion is offline -Hacks Newbie
    Join Date
    Apr 2006
    Posts
    26
    Rep Power
    0

    Default

    How do I go about compressing the prx?

  9. #9
    Rob S.'s Avatar
    Rob S. is offline Senior Member -Hacks Titan
    Join Date
    Jan 2006
    Location
    41° 11' 3" N / 73° 8' 1" W
    Posts
    7,695
    Rep Power
    50523

    Default

    Quote Originally Posted by xxxScorpion
    How do I go about compressing the prx?
    ---> PRX Compressor

  10. #10
    xxxScorpion is offline -Hacks Newbie
    Join Date
    Apr 2006
    Posts
    26
    Rep Power
    0

    Default

    No readme eh?

Page 1 of 3 1 2 3 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •