Baekalfen / PyBoy

Game Boy emulator written in Python
Other
4.59k stars 474 forks source link

GBStudio game stuck on white screen #320

Open evanjmcafee opened 6 months ago

evanjmcafee commented 6 months ago

Hello. I am trying to load a ROM file from GB studio that I have verified to work, and I get a white screen. I tested an old Tetris rom and it worked fine.

Baekalfen commented 6 months ago

Thank you for reporting. I didn't know of GB Studio. There might be some incompatibility that PyBoy needs to look at.

Baekalfen commented 6 months ago

Can you determine if this happens for any game produced by GBStudio, or does something specific trigger this?

evanjmcafee commented 6 months ago

It appears to happen when I try to address 0xFF56, 0xFF01, 0xFF02. These are the GBC IR and the link cable's addresses. It appears to be out of bounds for reading. I need address these.

evanjmcafee commented 6 months ago

It needs to be able to read those values anyway, not freezing the game.

Baekalfen commented 6 months ago

It needs to be able to read those values anyway, not freezing the game.

I haven't looked yet, but my bet is that it's not PyBoy freezing, it's the game that locks up, until it gets the value it expects. But since neither IR nor serial is implemented, it'll wait forever.

evanjmcafee commented 6 months ago

My investigation shows that you are in all likelihood right. I my need to implement a way to send those values

daivikbhatia commented 3 months ago

Hi, I would like to take this up as my first issue

Baekalfen commented 3 months ago

Hi, I would like to take this up as my first issue

Should good. My suspicion is that it might have something to do with general-purpose DMA https://gbdev.io/pandocs/CGB_Registers.html

Maybe it's best if you join Discord. We can better help you from there

daivikbhatia commented 3 months ago

@evanjmcafee I tried a bunch of GB studio ROMs and all of them are working fine. So the issue is surely related to ROMs using IR or Serial addresses and not specific to GB studio. Can you share the ROM you are trying to run if it's available on itch?

Baekalfen commented 3 months ago

@evanjmcafee I tried a bunch of GB studio ROMs and all of them are working fine. So the issue is surely related to ROMs using IR or Serial addresses and not specific to GB studio.

Thank you! This is great work!