PSP Hacks - Forums

Go Back   PSP Hacks - Forums > PSP Customization > Custom Theme Knowledge Base

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 03-19-2008, 11:29 PM
Oyabun's Avatar
Oyabun Oyabun is offline
Yamaguchi-gumi Administrator
PSP Titan
 
Join Date: Jan 2006
Location: 41.204N 73.13W
Posts: 10,002,658
Oyabun Is a PSP Hacks DeityOyabun Is a PSP Hacks DeityOyabun Is a PSP Hacks DeityOyabun Is a PSP Hacks DeityOyabun Is a PSP Hacks DeityOyabun Is a PSP Hacks DeityOyabun Is a PSP Hacks DeityOyabun Is a PSP Hacks DeityOyabun Is a PSP Hacks DeityOyabun Is a PSP Hacks DeityOyabun Is a PSP Hacks Deity
Default [Tutorial]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. I will update this tutorial with new offsets when i find them when a new custom firmware version is released.







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 Oyabun; 10-26-2009 at 06:15 PM. Reason: Thread needs updating
Reply With Quote
  #2  
Old 03-20-2008, 05:57 AM
mattrey94's Avatar
mattrey94 mattrey94 is offline
PSP Veteran
 

Join Date: Nov 2007
Posts: 1,038
mattrey94 Has a Beginner Reputation
Default

Good job robs1968,
I've been whating to know how to do this. Gonna go try it now.
__________________
Reply With Quote
  #3  
Old 03-20-2008, 07:11 PM
osnap1584 osnap1584 is offline
Senior Member
PSP Titan
 

Join Date: Nov 2007
Location: Brooklyn, NY
Posts: 4,824
osnap1584 has a spectacular aura aboutosnap1584 has a spectacular aura about
Default

thanks robs Im gonna try this now.
__________________


Click on Sig to View My Deviant Art Page
Reply With Quote
  #4  
Old 05-25-2008, 07:05 PM
xxxScorpion xxxScorpion is offline
PSP Newbie
 

Join Date: Apr 2006
Posts: 31
xxxScorpion Has a Beginner Reputation
Default

Where is the data inspector on HxD?
Reply With Quote
  #5  
Old 05-25-2008, 08:41 PM
Oyabun's Avatar
Oyabun Oyabun is offline
Yamaguchi-gumi Administrator
PSP Titan
 
Join Date: Jan 2006
Location: 41.204N 73.13W
Posts: 10,002,658
Oyabun Is a PSP Hacks DeityOyabun Is a PSP Hacks DeityOyabun Is a PSP Hacks DeityOyabun Is a PSP Hacks DeityOyabun Is a PSP Hacks DeityOyabun Is a PSP Hacks DeityOyabun Is a PSP Hacks DeityOyabun Is a PSP Hacks DeityOyabun Is a PSP Hacks DeityOyabun Is a PSP Hacks DeityOyabun Is a PSP Hacks Deity
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.
__________________
Reply With Quote
  #6  
Old 05-26-2008, 12:24 AM
xxxScorpion xxxScorpion is offline
PSP Newbie
 

Join Date: Apr 2006
Posts: 31
xxxScorpion Has a Beginner Reputation
Default

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

Not as straight forward as HxD.
Reply With Quote
  #7  
Old 05-26-2008, 12:30 AM
Oyabun's Avatar
Oyabun Oyabun is offline
Yamaguchi-gumi Administrator
PSP Titan
 
Join Date: Jan 2006
Location: 41.204N 73.13W
Posts: 10,002,658
Oyabun Is a PSP Hacks DeityOyabun Is a PSP Hacks DeityOyabun Is a PSP Hacks DeityOyabun Is a PSP Hacks DeityOyabun Is a PSP Hacks DeityOyabun Is a PSP Hacks DeityOyabun Is a PSP Hacks DeityOyabun Is a PSP Hacks DeityOyabun Is a PSP Hacks DeityOyabun Is a PSP Hacks DeityOyabun Is a PSP Hacks Deity
Default

Download Hex Workshop 5.0.2

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

It's a 30 day full trial.
__________________
Reply With Quote
  #8  
Old 05-26-2008, 01:02 AM
xxxScorpion xxxScorpion is offline
PSP Newbie
 

Join Date: Apr 2006
Posts: 31
xxxScorpion Has a Beginner Reputation
Default

How do I go about compressing the prx?
Reply With Quote
  #9  
Old 05-26-2008, 01:44 AM
Oyabun's Avatar
Oyabun Oyabun is offline
Yamaguchi-gumi Administrator
PSP Titan
 
Join Date: Jan 2006
Location: 41.204N 73.13W
Posts: 10,002,658
Oyabun Is a PSP Hacks DeityOyabun Is a PSP Hacks DeityOyabun Is a PSP Hacks DeityOyabun Is a PSP Hacks DeityOyabun Is a PSP Hacks DeityOyabun Is a PSP Hacks DeityOyabun Is a PSP Hacks DeityOyabun Is a PSP Hacks DeityOyabun Is a PSP Hacks DeityOyabun Is a PSP Hacks DeityOyabun Is a PSP Hacks Deity
Default

Quote:
Originally Posted by xxxScorpion
How do I go about compressing the prx?
---> PRX Compressor
__________________
Reply With Quote
  #10  
Old 05-26-2008, 01:55 AM
xxxScorpion xxxScorpion is offline
PSP Newbie
 

Join Date: Apr 2006
Posts: 31
xxxScorpion Has a Beginner Reputation
Default

No readme eh?
Reply With Quote
Reply

 



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:57 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
©