View Single Post
Old January 13th, 2013 (1:35 AM).
miksy91's Avatar
miksy91 miksy91 is offline
Dark Energy is back in action! ;)
Join Date: Oct 2008
Location: A small country in the North
Gender: Male
Nature: Relaxed
Posts: 1,354
Originally Posted by tajaros View Post
Ok, I got a question...

So I have succesfully replaced the FireRed Battle Background! Yay!

Now here's the problem when I enter the battle it looks like this.

So anyone having the same problem and have a way to fix this? I think this is something with the raw pallete map right? Or maybe something to do with the palletes.
This might be a complicated job but maybe not. In any way, you're possibly going to have to re-code something with assembly.

If you open VBA's "Palette Viewer", you can notice the palettes are loaded to ram starting at 0x05000000. I might be able to help you out better if I knew what the palette map would look like in your hack but in original FireRed, it looks like the battle background palette starts at 0x05000042 (I noticed this by checking how the palette ram was affected in the first rival battle in Oak's lab when the palettes turn gray during Oak's speech.

So somewhere in that region, probably before 0x050000C0 (where some black palette data is located, again in original FireRed) you have some tiles using their palette as 0x7FFF (FF 7F) or values similar to that, leading into the white screen being part of battle background.

You should somehow debug how those palettes are loaded and by modifying some routines, change them into similar values that represent the new battle background you have got there.

And this job is far from impossible but it is actual rom hacking
My Rom Hack

Learn how to hack GB/C games:

Check my GameBoy/Color hacking videos in Youtube
-The video set uses Pokemon Silver (U) rom for demonstrations