Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2013-04-08 19:03:02

YORAMRW
Member
From: The Netherlands
Registered: 2013-03-29
Post 51/1,194
Website

Hex Color to Game Boy Palette

I need help. I want to edit the palettes of Pokémon Red/Blue. That's very easy, but I want to add palettes from Pokémon Gold/Silver. So I have got a site with Super Game Boy palettes from Gen II: http://magicstone.de/rhwiki/article/SGB_COLORS_PKMN_GSK. But I have seen that the palettes are coded in 6-number hex color. An example: Red is written as #FF0000. I opened up PaletteEd GB, and I typed in $FF00. When I did that, there came a sort of red out, which looks a little bit more orange than the 6-number code.
The question is: Do someone know:

  • Where the SGB Palette offsets of Pokémon Gold.Silver are,

Or:

  • How you can calculate a hex color into a 4-number Game Boy palette.

I have already looked in DataCrystal, for it, but I didn't find anything about the SGB palettes.

Thanks.

Last edited by YORAMRW (2013-04-08 19:06:50)


Hacks Gameboy 8-bit music in Pokémon Gen I & II, composes 8-bit music in FamiTracker

Offline

#2 2013-04-08 19:19:15

comet
Member
Registered: 2012-04-09
Post 200/679

Re: Hex Color to Game Boy Palette

To fit into two bytes each color is 5 bits long instead of 8. Just shift each color three bits right and put them together in order 0 bbbbb ggggg rrrrr. The reason $FF00 makes red is that the program's input takes little endian values.

Offline

#3 2013-04-08 19:20:29

comet
Member
Registered: 2012-04-09
Post 201/679

Re: Hex Color to Game Boy Palette

That said, you are better off looking for those values in the rom and copying them as opposed to calculating each one yourself.

Offline

#4 2013-04-09 10:42:35

YORAMRW
Member
From: The Netherlands
Registered: 2013-03-29
Post 52/1,194
Website

Re: Hex Color to Game Boy Palette

But I can't find where the SGB palettes are in the Pokémon Gold/Silver:ROM Map. Only GBC palettes are told.


Hacks Gameboy 8-bit music in Pokémon Gen I & II, composes 8-bit music in FamiTracker

Offline

#5 2013-04-09 10:46:20

YORAMRW
Member
From: The Netherlands
Registered: 2013-03-29
Post 53/1,194
Website

Re: Hex Color to Game Boy Palette

comet wrote:

To fit into two bytes each color is 5 bits long instead of 8.

I think you mean 4 bits long.


Hacks Gameboy 8-bit music in Pokémon Gen I & II, composes 8-bit music in FamiTracker

Offline

#6 2013-04-09 11:35:50

YORAMRW
Member
From: The Netherlands
Registered: 2013-03-29
Post 58/1,194
Website

Re: Hex Color to Game Boy Palette

I have found the start offset of the SGB Map Palettes: $BB9E.


Hacks Gameboy 8-bit music in Pokémon Gen I & II, composes 8-bit music in FamiTracker

Offline

#7 2013-04-09 11:40:28

YORAMRW
Member
From: The Netherlands
Registered: 2013-03-29
Post 59/1,194
Website

Re: Hex Color to Game Boy Palette

But I can't find the Night Palette (19). :(


Hacks Gameboy 8-bit music in Pokémon Gen I & II, composes 8-bit music in FamiTracker

Offline

#8 2013-04-09 12:18:07

FroggestSpirit
Member
Registered: 2012-03-12
Post 161/299
Website

Re: Hex Color to Game Boy Palette

He does mean 5 bits. and here, this may help. I made it back when I was hacking Bugs Bunny Crazy Castle 2 to be a color game
https://anonfiles.com/file/605c74410f65 … 3242c812e2
With 5 bits, the color values range from 0-31, though since each color is 2 bytes, it will have an unused bit.


This isn't easy to say, but…
Music and ASM hacker

Offline

#9 2013-04-09 16:12:30

YORAMRW
Member
From: The Netherlands
Registered: 2013-03-29
Post 66/1,194
Website

Re: Hex Color to Game Boy Palette

Thanks, but that isn't really needed anymore. Look at this thread: http://hax.iimarck.us/topic/3220/.


Hacks Gameboy 8-bit music in Pokémon Gen I & II, composes 8-bit music in FamiTracker

Offline

Board footer

Powered by FluxBB