dolphin-memory-engine icon indicating copy to clipboard operation
dolphin-memory-engine copied to clipboard

Dolphin Memory Engine occasionally fails to look for the correct memory addresses

Open Jujstme opened this issue 2 years ago • 3 comments

The way Dolphin Memory Engine looks for the memory address of the emulated game in Dolphin is, at least for gamecube games, essentially by checking if a certain memory page is flagged as MEM_MAPPED and has a fixed size of 0x2000000.

This, however, occasionally results in the program finding a wrong memory region if any other memory page has the same features and has been allocated at a lower address.

This issue is easily solvable by checking for the gamecube magic number (0xC2339F3D) at offset 0x1C in the emulated memory.

Jujstme avatar Sep 12 '23 19:09 Jujstme

May be relevant to #47

dreamsyntax avatar Nov 02 '23 22:11 dreamsyntax

I think in a similar issue, I was having trouble hooking the latest version of Dolphin Memory Engine with the latest version of Dolphin (5.0-21543). It would just say no emulation was running but the actual problem was I had a different memory override setting set which didn't match the memory engine's memory region. The error message could be a bit more helpful as that would explain why it couldn't hook to the running emulator.

StackOverflow0x avatar May 18 '24 04:05 StackOverflow0x

I've never run into this myself, but if I understand Jujustme's proposal it wouldnt be necessary to specify mem sizes.

dreamsyntax avatar May 18 '24 05:05 dreamsyntax