View Single Post
  #1    
Old August 27th, 2007, 02:48 AM
Christos's Avatar
Christos
Project Shinx
 
Join Date: Feb 2006
Location: Spain, Went's room
Nature: Serious
Send a message via Skype™ to Christos
Advanced Palette Editing Tutorial

Requirements:
  • VisualBoy Advance
  • A Hex Editor
  • Notepad
  • Your ROM
  • A-Colour



First, open your ROM with VBA and go to the place where there's something you want to change its colors. Then go to Tools -> Map Viewer.



There's 4 backgrounds, 0, 1, 2 and 3. The textbox is in BG0. Choose the colors you want to edit from the textbox and write its RGB down in notepad.
We want to edit the blue colors from the textbox, in notepad we should have:
19 25 31 and 15 23 28

Now go back, and go to Tools -> Palette Viewer.
Look at all the blue colors until you find two blue ones that their RGB numbers match with the ones from the textbox.



The blue colors of the textbox are there, so we'll have to search for the whole palette in the hex editor (the one in the red circle). If you just search for the two colors, you may edit something else.

The blue color's value that's selected in this picture is "7F33". To search for the palette in the hex editor, you have to write down the values of all the colors in the palette. But to work, you have to flip the first two digits with the last two digits of each value. For example, "7F33" should be "337F".

When you finish writing all the values down and flipping the first two digits with the last two digits you should have:
000029251F00E003007CFF03E07F1F7C5A67000000009C77FF7F337FEF72FF7F

Now, open your ROM in a hex editor, and search for that as a "hex string".



The hex editor finds the string at offset "1E66B0". Go to "337F" and "EF72", edit them and save. Now you'll need A-Color, find a picture with the colors you want to use, open it in Paint, and choose the colors with the colorpicker. Then go to Colors -> Edit Colors and you'll find the color's RGB numbers.



Now open A-Color, put the RGB numbers and select "Give Me My Color!".



Now, flip the first two digits with the last two of the Hex Value, and replace the textbox's blue colors in the hex editor with the two new orange ones.
At the offset "1E66B0", find the two blue colors ("337F" and "EF72") and replace them with "5F13" and "1F2F", the hex values of the two orange colors. Then save. Now open the ROM with VBA.

__________________
Cooltrainer♂ wants to battle!
Breloom (Lv. 47) - Technician - (Mach Punch, Bullet Seed)
Zangoose (Lv. 49) - Toxic Boost - (Slash, Close Combat)
November 28th / Staff Collab 2014

Last edited by Spherical Ice; April 15th, 2010 at 08:01 AM.
Reply With Quote