GBC: Metal Gear Solid freezes in elevator
-
- Posts: 17
- Joined: Fri Jul 13, 2018 11:56 pm
- languages_spoken: english, german
- ODROIDs: Odroid Go
- Contact:
GBC: Metal Gear Solid freezes in elevator
Hi,
Metal Gear Solid freezes after the elevator starts to move upwards. It's exactly in this situation: https://youtu.be/qOIe1bcWAn0?t=52m48s
I have the latest firmware installed 20180712-302b7c23fa
What could be the issue? What can I do to provide more information to fix this?
Edit: I think the freeze happens when the screen should shake when the elevator stops.
Cheers
odie
Metal Gear Solid freezes after the elevator starts to move upwards. It's exactly in this situation: https://youtu.be/qOIe1bcWAn0?t=52m48s
I have the latest firmware installed 20180712-302b7c23fa
What could be the issue? What can I do to provide more information to fix this?
Edit: I think the freeze happens when the screen should shake when the elevator stops.
Cheers
odie
-
- Posts: 4223
- Joined: Tue Dec 30, 2014 8:42 pm
- languages_spoken: english
- ODROIDs: C1
- Contact:
Re: GBC: Metal Gear Solid freezes in elevator
A copy of the save game before the issue occurs along with directions to reproduce it are required to investigate it.odie wrote:What can I do to provide more information to fix this?
To get a copy of the save game:
1) Before the issue the occurs, pause the game.
2) Hit the "Menu" button to save the game.
3) Load any other ROM to flush the save game to SD card.
4) Insert the SD card in a PC an navigate to the "odroid/data/" folder. Open the folder for the system being emulated; in this case "gbc".
5) Locate the save game file ({name of the rom].gbc.sav) and upload it somewhere public.
6) Post a link to the save game here in this forum topic along with instructions to reproduce it.
-
- Posts: 17
- Joined: Fri Jul 13, 2018 11:56 pm
- languages_spoken: english, german
- ODROIDs: Odroid Go
- Contact:
Re: GBC: Metal Gear Solid freezes in elevator
Thank you for the great instructions! I uploaded the sav file here: http://odie.sdf.org/mgs.zip
You will find yourself standing in an elevator. Just trigger the right elevator button (red triangle) with button A and wait 2 or 3 seconds.
You will find yourself standing in an elevator. Just trigger the right elevator button (red triangle) with button A and wait 2 or 3 seconds.
-
- Posts: 4223
- Joined: Tue Dec 30, 2014 8:42 pm
- languages_spoken: english
- ODROIDs: C1
- Contact:
Re: GBC: Metal Gear Solid freezes in elevator
I can reproduce the issue using the provided game save.
- mad_ady
- Posts: 5226
- Joined: Wed Jul 15, 2015 5:00 pm
- languages_spoken: english
- ODROIDs: XU4, C1+, C2, N1
- Location: Bucharest, Romania
- Contact:
Re: GBC: Metal Gear Solid freezes in elevator
A bit offtopic, but I'm curious: how are you debugging these kinds of issues? Can you hook-up gdb and analyze a crash? Do you "printf" to serial?
-
- Posts: 17
- Joined: Fri Jul 13, 2018 11:56 pm
- languages_spoken: english, german
- ODROIDs: Odroid Go
- Contact:
Re: GBC: Metal Gear Solid freezes in elevator
That's great news! Thanks for looking into itcrashoverride wrote:I can reproduce the issue using the provided game save.
-
- Posts: 4223
- Joined: Tue Dec 30, 2014 8:42 pm
- languages_spoken: english
- ODROIDs: C1
- Contact:
Re: GBC: Metal Gear Solid freezes in elevator
It depends on the issue. The gdb will provide a backtrace if its a crash. However, since there is no interactive debugger (and no JTAG), printf is typically used extensively.mad_ady wrote:how are you debugging these kinds of issues? Can you hook-up gdb and analyze a crash? Do you "printf" to serial?
-
- Posts: 4223
- Joined: Tue Dec 30, 2014 8:42 pm
- languages_spoken: english
- ODROIDs: C1
- Contact:
Re: GBC: Metal Gear Solid freezes in elevator
The nature of this issue is emulation performing an illegal instruction:
Prior to this occurring, a series of invalid mapper writes are made when entering or leaving the elevator:
I originally suspected issues with CPU emulation. This led me to patch some issue reported by CPU test roms, but it did not correct the crash.
http://gbdev.gg8.se/wiki/articles/Test_ROMs
I confirmed MBC5 mapper operation against various source of documentation as well as source code from other GBC emulators. None appear to handle the handle the address range of 0x6a94 - 0x0x6aa1.
If someone has the free time, it would be helpful to know if this issue occurs on the USA version of the game too.
Code: Select all
invalid opcode 0xFD at address 0x568F, rombank = 2
Code: Select all
MBC_MBC5: invalid write to 0x6a94 (0x0)
MBC_MBC5: invalid write to 0x6a95 (0x0)
MBC_MBC5: invalid write to 0x6a96 (0x0)
MBC_MBC5: invalid write to 0x6a97 (0x0)
MBC_MBC5: invalid write to 0x6a98 (0x0)
MBC_MBC5: invalid write to 0x6a99 (0x0)
MBC_MBC5: invalid write to 0x6a9a (0x0)
MBC_MBC5: invalid write to 0x6a9b (0x0)
MBC_MBC5: invalid write to 0x6a9c (0x0)
MBC_MBC5: invalid write to 0x6a9d (0x0)
MBC_MBC5: invalid write to 0x6a9e (0x0)
MBC_MBC5: invalid write to 0x6a9f (0x0)
MBC_MBC5: invalid write to 0x6aa0 (0x0)
MBC_MBC5: invalid write to 0x6aa1 (0x0)
http://gbdev.gg8.se/wiki/articles/Test_ROMs
I confirmed MBC5 mapper operation against various source of documentation as well as source code from other GBC emulators. None appear to handle the handle the address range of 0x6a94 - 0x0x6aa1.
If someone has the free time, it would be helpful to know if this issue occurs on the USA version of the game too.
-
- Posts: 17
- Joined: Fri Jul 13, 2018 11:56 pm
- languages_spoken: english, german
- ODROIDs: Odroid Go
- Contact:
Re: GBC: Metal Gear Solid freezes in elevator
Thank you very much for your investigation.
I'll play the US verion to this point and check if the freeze will occur there, too. If it makes sense, I could try the Japanese version instead.crashoverride wrote: If someone has the free time, it would be helpful to know if this issue occurs on the USA version of the game too.
-
- Posts: 4223
- Joined: Tue Dec 30, 2014 8:42 pm
- languages_spoken: english
- ODROIDs: C1
- Contact:
Re: GBC: Metal Gear Solid freezes in elevator
I did find a report of this issue for a different system/emulator. It may be some kind of anti-counterfeit protection in the game.
-
- Posts: 17
- Joined: Fri Jul 13, 2018 11:56 pm
- languages_spoken: english, german
- ODROIDs: Odroid Go
- Contact:
Re: GBC: Metal Gear Solid freezes in elevator
So you think it might not make any sense to try the US version?crashoverride wrote:I did find a report of this issue for a different system/emulator. It may be some kind of anti-counterfeit protection in the game.
-
- Posts: 4223
- Joined: Tue Dec 30, 2014 8:42 pm
- languages_spoken: english
- ODROIDs: C1
- Contact:
Re: GBC: Metal Gear Solid freezes in elevator
Testing the USA versions reduces the probability of a bad ROM dump for the EU version.
If the USA (or any other region) version fails in the same place, then that failure is likely to be part of the expected operation of the title.
If the USA (or any other region) version fails in the same place, then that failure is likely to be part of the expected operation of the title.
-
- Posts: 17
- Joined: Fri Jul 13, 2018 11:56 pm
- languages_spoken: english, german
- ODROIDs: Odroid Go
- Contact:
Re: GBC: Metal Gear Solid freezes in elevator
The game crashes at the same point with the following version: Metal Gear Solid (U)
[!]
-
- Posts: 17
- Joined: Fri Jul 13, 2018 11:56 pm
- languages_spoken: english, german
- ODROIDs: Odroid Go
- Contact:
Re: GBC: Metal Gear Solid freezes in elevator
I want to play this game so bad that I just bought myself a cartridge. Anyway, it would be great if it would run on the Odroid out of several reasons (Display, Saving). Any chance to get it running?
-
- Posts: 17
- Joined: Fri Jul 13, 2018 11:56 pm
- languages_spoken: english, german
- ODROIDs: Odroid Go
- Contact:
Re: GBC: Metal Gear Solid freezes in elevator
The Japanese version freezes as well 

-
- Posts: 4223
- Joined: Tue Dec 30, 2014 8:42 pm
- languages_spoken: english
- ODROIDs: C1
- Contact:
Re: GBC: Metal Gear Solid freezes in elevator
If there is an open source emulator that can run it, I can look for clues in its source code.odie wrote:Any chance to get it running?
-
- Posts: 17
- Joined: Fri Jul 13, 2018 11:56 pm
- languages_spoken: english, german
- ODROIDs: Odroid Go
- Contact:
Re: GBC: Metal Gear Solid freezes in elevator
It works with Visual-Boy-Advance-M 2.1.0.
Here's a link to the binary: https://github.com/visualboyadvance-m/v ... -64bit.zip
Here's the save state: http://odie.sdf.org/mgs2.zip
Thanks again for looking into it.
Here's a link to the binary: https://github.com/visualboyadvance-m/v ... -64bit.zip
Here's the save state: http://odie.sdf.org/mgs2.zip
Thanks again for looking into it.
-
- Posts: 1
- Joined: Thu Oct 25, 2018 4:26 am
- languages_spoken: english
- Contact:
Re: GBC: Metal Gear Solid freezes in elevator
Has anybody had any leads on this? I have been chomping to play Metal Gear Solid GBC on my everdrive, but am having the same issue with the elevators. As far as I know, it seems like Goomba Color hasn't been updated since 2014, and I can't seem to find any alternatives.
Who is online
Users browsing this forum: No registered users and 0 guests