alyosha-tas / GBAHawk

Gameboy Advance Emulator fork of BizHawk
Other
12 stars 2 forks source link

Crash when attempting to boot Pokémon #5

Closed GoddessMaria15 closed 1 year ago

GoddessMaria15 commented 1 year ago

OS: Windows 11 Home 22H2 (22621.1992) Version: GBAHawk 1.5

So I have been trying to get the Gen 3 Pokemon games (Ruby/Sapphire/Emerald/FireRed/LeafGreen) to load... only for GBAHawk to crash on the BIOS screen when trying to load them. I was able to get an error message to appear once, but not again after this.


System.IndexOutOfRangeException: Index was outside the bounds of the array. at BizHawk.Emulation.Cores.Nintendo.GBA.GBAHawk.GetSamplesSync(Int16[]& samples, Int32& nsamp) at BizHawk.Client.Common.SoundOutputProvider.GetSamplesFromBase(Double& scaleFactor) at BizHawk.Client.Common.SoundOutputProvider.GetSamples(Int32 idealSampleCount) at BizHawk.Client.Common.SoundOutputProvider.GetSamples(Int32 idealSampleCount, Int16[]& samples, Int32& sampleCount) at BizHawk.Client.GBAHawk.Sound.UpdateSound(Single atten, Boolean isSecondaryThrottlingDisabled) at BizHawk.Client.GBAHawk.MainForm.StepRunLoop_Core(Boolean force) at BizHawk.Client.GBAHawk.MainForm.ProgramRunLoop() at BizHawk.Client.GBAHawk.Program.SubMain(String[] args)


Out of curiosity, I did try a few other games (Castlevania AoS, Castlevania HoD, Yu-Gi-Oh! Duel Monsters 6 Expert 2, and Sonic Advance). They all loaded without any problems. Is there any possible way to get Pokémon up and running?

alyosha-tas commented 1 year ago

Pokemon is the next thing I will be working on, as the RTC isn't emulated yet.

It shouldn't be crashing though, at the very least, so thanks for the report.

Fortranm commented 1 year ago

image Adding to this, the game actually boots in GBAHawkLink, but this shows up at the beginning and the game can't save.

alyosha-tas commented 1 year ago

I released version 1.5.1 which fixes the crashes. Gen 3 games don't have RTC yet, but shjould otherwise work.

GoddessMaria15 commented 1 year ago

Thank you so much for the work you do, alyosha! It's working fine now! I can do a little something to hold me over using the dry battery/lack of RTC until they're ready and implemented.

Fortranm commented 1 year ago

The games can now start, but they still get stuck (softlock?) when trying to save.

alyosha-tas commented 1 year ago

Hmm, looks like a mistake in the flash mapper, simple fix, thanks for the report. Fix will be out with the RTC fix.

alyosha-tas commented 1 year ago

Version 1.6 is released which has implementation for RTC.

You can also disable RTC from the settings.

Saving is also fixed.

Please test version 1.6.