Emulator Issues #13605
openIkenie no Yoru: In-game boot error
0%
Description
Game Name?
Ikenie no Yoru (イケニエノヨル)
Game ID? (right click the game in the game list, Properties, Info tab)
SEKJ99
MD5 Hash? (right click the game in the game list, Properties, Verify tab, Verify Integrity button)
81b8961825dd188fdc2101bdebdee259
wbfs format.
What's the problem? Describe what went wrong.
The game shows an in-game error message in Japanese.
According to some posts, the game refuses to boot in a non-Japanese console. The only workaround is transferring a save file before booting.
Dolphin couldn't boot the game even after setting Wii's System Language to Japanese and Fallback Region to Japanese.
What steps will reproduce the problem?
Run the game.
Is the issue present in the latest development version? For future reference, please also write down the version number of the latest development version.
2407-264
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)
Ryzen 7 4800H (Radeon iGPU disabled)
Nvidia RTX 2060 (driver 560.94)
Windows 10 x64 (22H2)
16GB RAM
Is there anything else that can help developers narrow down the issue? (e.g. logs, screenshots,
configuration files, savefiles, savestates)
[Anything else here]
Files
Updated by flacs 4 months ago · Edited
The game tries to validate the size of savefile.dat by opening the file and then getting the size. Opening fails because the save file does not exist, as expected when the game runs for the first time. Dolphin correctly returns -106 for this IPC call which some SDK wrapper code converts to -12. However, the game's error handler does not check for -12 and the calling code doesn't check the return value of the error handler anyway. The game assumes everything is fine and tries to get the file size of file descriptor 0 (some uninitialized stack value?). Dolphin maps fd 0 to /dev/stm/immediate which might be the root cause of the issue. (STM then doesn't have the corresponding ioctl and returns error -9 which the wrapper code maps to -64. This error code is actually handled by the game's error handler and triggers the error screen.) I suspect there is some subtle difference between Dolphin and real IOS in how file descriptors are allocated/freed.
The game will successfully create the save file as long as ioctl 11:
- returns 0 or an error code that after remapping is ignored by the game's error handler
- either does not write the output buffer or writes a value that is not the expected save file size of 320.
This means you can also work around the issue by just creating an empty save file at "/title/00010000/53454b4a/data/savefile.dat".
Updated by flacs 4 months ago
According to http://blackcapsule.blog107.fc2.com/blog-entry-119.html this issue can also happen on homebrewed Japanese consoles.