The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > ROM Hacking > Research & Development
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

Notices

Research & Development Got a well-founded knack with ROM hacking? Love reverse-engineering the Pokémon games? Or perhaps you love your assembly language. This is the spot for polling and gathering your ideas, and then implementing them! Share your hypothesis, get ideas from others, and collaborate to create!
Research & Development programs in this forum are subject to moderator approval before they are displayed.


Reply
 
Thread Tools
  #1    
Old December 6th, 2007, 02:23 AM
Coolboyman's Avatar
Coolboyman
Veteran Hacker
 
Join Date: Sep 2003
Location: The East Bay
Age: 26
Gender: Male
Nature: Bold
Each palette has 2 bytes that tells it's color. You need to basically add up the values, so if you want 31 Red, you need to use 1F00. More of a color is lighter, and less of it is darker. You can find out what colors the game uses using the palette viewer in Visual Boy Advance. To find them, you need to flip the two variables displayed (if it's 5A27 then search for 275A)

First:
01 = R + 1
02 = R + 2
04 = R + 4
08 = R + 8
10 = R + 16
20 = G + 1
40 = G + 2
80 = G + 4

Second:
01 = G + 8
02 = G + 16
04 = B + 1
08 = B + 2
10 = B + 4
20 = B + 8
40 = B + 16

Examples (Basic Colors):
FF03 = Yellow
1F00 = Red
E003 = Green
007C = Blue
1F7C = Pink
C0FF = Cyan

1C7C = Purple
1F02 = Orange
1002 = Brown
FF7F = White
0001 = Dark Green
1042 = Grey/Silver

0000 = Black
__________________
Check out my Youtube channel. All about ROM Hacks, Indie Games and more!

Brown:


Prism : - Four Gym Summer 2010 Beta available now!

Twitter
Reply With Quote
  #2    
Old December 6th, 2007, 07:33 AM
Binary's Avatar
Binary
え?
 
Join Date: Aug 2007
Age: 19
Wow very confusing tutorial,
But all the more better, im sure this will help many advanced and beginning hackers.

~Celebi
__________________
Reply With Quote
  #3    
Old December 6th, 2007, 07:33 PM
SerenadeDS's Avatar
SerenadeDS
Trainer
 
Join Date: Feb 2007
No, not really confusing. Pretty basic if you ask me, but it is still nice to know! ;)

It would also depend on how people play the certin GB/GBC game on the VBA or other Emulator.. If they played Pokemon Red on VBA with it looking black and white it wouldn't really matter though..

Thanks for the info CBM!
Reply With Quote
  #4    
Old March 28th, 2008, 04:02 PM
Scream.Aim.Fire's Avatar
Scream.Aim.Fire
Beginning Trainer
 
Join Date: Mar 2008
Age: 23
Gender:
Nature: Lax
Thanks for the tutorial man.
Your stuff is always detailed.
__________________
Reply With Quote
  #5    
Old March 29th, 2008, 06:57 AM
Teh Baro's Avatar
Teh Baro
In my times...!
 
Join Date: Mar 2006
Location: Spain
Gender: Male
Nature: Quiet
I think it's clearer explaining it this way:
Each color is a word (2 bytes) with this format
RRRRRGGG GGBBBBBX

Where each color flows in the range 0..31. Comparing with 3-byte RGB (html), each value is divided by 8.

If I didn't know that from before, I wouldn't actually understand that tutorial.
__________________
what the fudge
Reply With Quote
  #6    
Old October 30th, 2011, 04:25 PM
Struedelmuffin
Beginning Trainer
 
Join Date: Sep 2011
Gender: Male
Really helpful stuff but i still have a question over this, even though this thread is incredibly old. I want to change the color of the main character sprite (HIRO) in silver version to green instead of red. I found the color i need to change but i do not know how to get to the sprite's offset in hex so that i can edit it properly. If someone could please tell me his offset that'd be great.
Reply With Quote
  #7    
Old November 21st, 2011, 01:08 PM
Sephiroth2009
Booted out - don't be like me!
 
Join Date: Oct 2011
Just use a sprite editor.
Reply With Quote
  #8    
Old November 29th, 2011, 07:42 PM
Struedelmuffin
Beginning Trainer
 
Join Date: Sep 2011
Gender: Male
Sephiroth I did use a sprite editor and the way the sprite looked changed but the game's coding makes it so that the pre-selected palette the game creators chose will always be loaded during the actual game. Coolboyman has been able to successfully alter the character's colors though so I was hoping he could help me with this.
Reply With Quote
Reply
Quick Reply

Sponsored Links
Thread Tools

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
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 10:49 AM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2014 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.