The VG Resource
A VBA Question - Printable Version

+- The VG Resource (https://www.vg-resource.com)
+-- Forum: Archive (https://www.vg-resource.com/forum-65.html)
+--- Forum: July 2014 Archive (https://www.vg-resource.com/forum-139.html)
+---- Forum: Other Stuff (https://www.vg-resource.com/forum-6.html)
+----- Forum: Questions, Info, and Tutorials (https://www.vg-resource.com/forum-89.html)
+----- Thread: A VBA Question (/thread-22832.html)



A VBA Question - -Bwar- - 03-30-2013

In the OAM viewer for VisualBoyAdvanced, is there any way to possibly change the black background places that the sprites are viewed on into another color?

I'm ripping a game with several black areas in the sprites and doing this would save me alot of time


RE: A VBA Question - Garamonde - 03-30-2013

http://www.spriters-resource.com/community/showthread.php?tid=21050


RE: A VBA Question - -Bwar- - 03-30-2013

Ah thanks, I appreciate it. Sorry I didn't search the forums first


RE: A VBA Question - Garamonde - 03-30-2013

it's okay, that thread is would be easy to miss without knowing what to look for. in fact, I stickied it in the GBA rip forum since I don't want to lose that information myself. Big Grin


RE: A VBA Question - -Bwar- - 03-30-2013

It seems that the method you showed me just changes the BG in-game, I was actually just looking for a way to edit it in the OAM viewer, like this area:

[Image: m8xynGA.png]


RE: A VBA Question - Garamonde - 03-30-2013

oh I figured it would work, huh... well, I'll see if Previous knows, sorry. :s


RE: A VBA Question - -Bwar- - 03-30-2013

Nah I appreciate the help, I could use that bit of info you already posted as well later on thank you :y


RE: A VBA Question - Deathbringer - 03-30-2013

I found a method but it's a bit time consuming. Basically you make a savestate of an area, decompress it (add .gz + extract it with WinRAR or something), and opening it in Tile Molester (or anything capable of viewing and editing 15bpp) or PSPad (or any hex editor). The offset for the palette is 81DF.

Tile Molester -> Basically you bring the number of columns down to 2 and use the line tool to make the first column in the palette to one color (255,0,255), then save.

PSPad -> If you understand hex editing then you should be able to figure this out. FF00FF = 255,0,255

Then load the savestate up and the OAM should display with the altered palette. If you're doing this for something with a flashing palette, this won't work since it'll to the original quickly.


RE: A VBA Question - -Bwar- - 03-30-2013

I'll give that a shot, thanks!


RE: A VBA Question - Previous - 03-31-2013

Well, this, though for sprites you'll want 05000200 to 050003E0 as those are the sprite palettes' addresses;
these change the sprite's alpha colour (palette index 0 of each 16 colour ramp) to some odd blue (you can replace 5AA2 with something else to get some other colour).
They affect both the scene and the OAM viewer (you'll have to [Refresh] though) and map and tile and everything because they change the actually used palettes.

If it does not work, then the black used by the sprites is not palette index 0 (alpha). In that case, a look at this may help you - it's written for DeSmuME but applies to VBA as well, except there are no sub screen palettes. It's not exactly working towards what you want to do, but covers the information you need.