Emulation Homebrew Garbage Data visual bug for Pokemon Red/Blue VC

  • Thread starter Thread starter Captain_Tid
  • Start date Start date
  • Views Views 338
  • Replies Replies 0

Captain_Tid

Member
Newcomer
Joined
Feb 8, 2022
Messages
23
Reaction score
11
Trophies
0
Age
29
Location
New South Wales, Australia
Website
www.tidfriction.com
XP
110
Country
Australia
Hi all, I'm new-ish to the homebrew scene, but I've done quite a bit of research over the last several days in order to resolve my issue and I can't find a solution documented anywhere.
Apologies if I've missed something, and I hope this is the right place to ask!

It's a very minor issue, ultimately, but resolving it might push our knowledge of emulation software further, and it'd be nice to fix it anyway. Excuse the long-ish post, I'd like to provide as clear a description as possible, and help avoid-in-advance answers that do not actually resolve our problem. I'll do my best to be succinct.

My partner and I are attempting to play through Pokemon Red/Blue on our 3DSes, and are using the official VC releases in order to maintain easy reliable use of link play features, as well as eventually Pokemon Bank support once we've finished the games.

I'm nostalgic for the GBC pallet support in particular (and I think it's the best looking way to play the games), so I've used NSUI to essentially recreate that look for both roms.
Those technically in-the-know will be aware that NSUI accomplishes this by modifying the 0143 address in the rom to 'c0', which tricks the official VC emulator into thinking it's looking at a rom that REQUIRES GBC emulation mode. It disables the L+R+Y pallet swapping and instead uses the GBC feature to colorize obj and BG tiles separately based on a pallet determined by the rom's header.

This ALMOST entirely works. The issue is that on some occasions (best examples are pressing B on the select file screen, or closing the party menu in-game), the screen is not cleared to 'blank LCD' mode properly, and so garbage data appears on the screen during what should be a blank loading screen. I believe this is because the GBC has slightly different behaviour for graphical instructions relating to the LCD control compared to the regular GB, and the VC emulator is not properly accounting for this when playing what is ACTUALLY a gameboy rom but THINKS it is a GBC rom, but my understanding here could be wrong.

Does anyone have any knowledge about how to approach resolving this? Either by editing some settings in the config.ini file for the cia, applying a patch to the rom itself to alter screen clear function behaviour, or, worst-case, editing the code.bin file for the emulator somehow?

Thank you!
 

Site & Scene News

Popular threads in this forum