Emulator Issues #13861
openRiivolution Code Cache Error (Codes not loading properly)
0%
Description
Game Name?
[Teenage Mutant Ninja Turtles: Smash-Up]
Game ID? (right click the game in the game list, Properties, Info tab)
[R2TE41]
MD5 Hash? (right click the game in the game list, Properties, Verify tab, Verify Integrity button)
[29237aee3325787cab85595f82f13ab6]
What's the problem? Describe what went wrong.
[I believe the code cache when starting the game (and potentially other games) with Riivolution properties is not being flushed properly. Loading the same code in the "gecko codes" section of the game's properties works just fine and when booted through homebrew launchers such as gecko. The function is called in normal gameplay, and right after boot, before the patch is applied. After the patch is applied though, unlike the other methods, a cache flush isn't performed, causing dolphin to not consider the patch after the initial boot run through. When paused through a breakpoint, dolphin correctly refreshes the cache and the code works just fine. The code is a simple line replacement (code 0x4). Riivolution is run with AXNextFrame for compatibility purposes, but using the same setting through the gecko launcher elf works just fine as well, unlike Riivolution.]
What steps will reproduce the problem?
[Go into the game with Riivolution patches on (specifically "Codes", "File Replacement" should be off but it doesn't really matter) and then after making a save file (doesn't have to happen every time), scroll up in the main menu until you get to "Practice", open that menu, and all characters should be unlocked. If they aren't there will be a sillouette of a character in the bottom right instead and only a few characters unlocked.]
Is the issue present in the latest development version? For future reference, please also write down the version number of the latest development version.
[Yes/No and version number here]
Is the issue present in the latest release? For future reference, please also write down the version number of the latest release.
[Yes, 2506a]
If the issue isn't present in the latest release, which is the first broken version? (You can find the first broken version by bisecting. Windows users can use the tool https://forums.dolphin-emu.org/Thread-green-notice-development-thread-unofficial-dolphin-bisection-tool-for-finding-broken-builds and anyone who is building Dolphin on their own can use git bisect.)
[No clue]
If your issue is a graphical issue, please attach screenshots and record a three frame fifolog of the issue if possible. Screenshots showing what it is supposed to look like from either console or older builds of Dolphin will help too. For more information on how to use the fifoplayer, please check here: https://wiki.dolphin-emu.org/index.php?title=FifoPlayer
[N/A]
What are your PC specifications? (CPU, GPU, Operating System, more)
[AMD Ryzen 5 5600x 6-Core, NVIDIA GeForce RTX 3060 Ti, Windows 10, 32 GB RAM]
Is there anything else that can help developers narrow down the issue? (e.g. logs, screenshots,
configuration files, savefiles, savestates)
[I've included my Riivolution files. If the issue is fixed, all characters will be unlocked on a new save file. If not, then only the default number of characters will be unlocked on a new save file]
Game Name?
[Put Game Name here]
Game ID? (right click the game in the game list, Properties, Info tab)
[Put Game ID here]
MD5 Hash? (right click the game in the game list, Properties, Verify tab, Verify Integrity button)
[Put MD5 Hash here]
What's the problem? Describe what went wrong.
[Description here]
What steps will reproduce the problem?
[Reproduction steps here]
Is the issue present in the latest development version? For future reference, please also write down the version number of the latest development version.
[Yes/No and version number here]
Is the issue present in the latest release? For future reference, please also write down the version number of the latest release.
[Yes/No and version number here]
If the issue isn't present in the latest release, which is the first broken version? (You can find the first broken version by bisecting. Windows users can use the tool https://forums.dolphin-emu.org/Thread-green-notice-development-thread-unofficial-dolphin-bisection-tool-for-finding-broken-builds and anyone who is building Dolphin on their own can use git bisect.)
[First broken version number here (if applicable)]
If your issue is a graphical issue, please attach screenshots and record a three frame fifolog of the issue if possible. Screenshots showing what it is supposed to look like from either console or older builds of Dolphin will help too. For more information on how to use the fifoplayer, please check here: https://wiki.dolphin-emu.org/index.php?title=FifoPlayer
[Attach any fifologs if possible, write a description of fifologs and screenshots here to assist people unfamiliar with the game.]
What are your PC specifications? (CPU, GPU, Operating System, more)
[PC specs here]
Is there anything else that can help developers narrow down the issue? (e.g. logs, screenshots,
configuration files, savefiles, savestates)
[Anything else here]
Files
No data to display