Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ai Shimai for windows 3.1 won't start properly #1137

Closed
mochicchi opened this issue Mar 23, 2022 · 6 comments · Fixed by #1138
Closed

Ai Shimai for windows 3.1 won't start properly #1137

mochicchi opened this issue Mar 23, 2022 · 6 comments · Fixed by #1138

Comments

@mochicchi
Copy link

Hello, when I try to start this game, I get a popup error after the intro plays (see the screenshot). When I click "retry" the same message appears and when i click "ignore" the game shows a blank screen. It's supposed to go to the main menu after the intro.
aisimai error
The error message says:
"Failed to read FLAG5 file.
It is recommended that you reload the game to resolve this error.
If this message appears again after reloading, the necessary file might be corrupted.
In that case, please reinstall the game."

Enivironment: Windows 10 x64 19042
Version: otvdm version 2281

trace.zip

@cracyc
Copy link
Contributor

cracyc commented Mar 23, 2022

3b64:Call KERNEL.88: LSTRCPY(12173738,1217244c ".") ret=120f:55e3 ds=1217
3b64:Ret  KERNEL.88: LSTRCPY() retval=12173738 ret=120f:55e3 ds=1217
3b64:Call KERNEL.89: LSTRCAT(1217:3738 ".",1217081c "FLAG5") ret=120f:55f9 ds=1217
3b64:Ret  KERNEL.89: LSTRCAT() retval=12173738 ret=120f:55f9 ds=1217
3b64:Call KERNEL.85: _LOPEN(12173738 ".FLAG5",0000) ret=120f:5606 ds=1217
3b64:Ret  KERNEL.85: _LOPEN() retval=ffffffff ret=120f:5606 ds=1217
3b64:Call KERNEL.84: _LLSEEK(ffff,00000020,0000) ret=120f:5613 ds=1217
3b64:Ret  KERNEL.84: _LLSEEK() retval=ffffffff ret=120f:5613 ds=1217
3b64:Call KERNEL.82: _LREAD(ffff,772fe020,0236) ret=120f:5625 ds=1217
30c8:3b64:trace:file:WIN16_hread 65535 772fe020 566
3b64:Ret  KERNEL.82: _LREAD() retval=ffffffff ret=120f:5625 ds=1217

You need to look in silwin.ini and fix any relative paths.

@mochicchi
Copy link
Author

silwin
This is all I could find inside silwin.ini. What should I change?

@cracyc
Copy link
Contributor

cracyc commented Mar 23, 2022

3b64:Call KERNEL.128: GETPRIVATEPROFILESTRING(12170078 "Config",1217007f "SaveDirectory",1217008d ".",1217:244c,0104,12173a00 "./SILWIN.INI") ret=120f:0292 ds=1217
30c8:3b64:trace:file:GetPrivateProfileString16 ./SILWIN.INI Config SaveDirectory
30c8:3b64:trace:file:GetPrivateProfileString16 ("Config", "SaveDirectory", ".", 02B90444, 260, "C:\\OTVDM-~1\\OTVDM-~1\\WINDOWS\\./SILWIN.INI")
3b64:Ret  KERNEL.128: GETPRIVATEPROFILESTRING() retval=00000001 ret=120f:0292 ds=1217

SaveDirectory sets the default to "." which is the same as the bad one used above. If that doesn't fix it then I can't tell what it's doing without working on it directly.

@cracyc
Copy link
Contributor

cracyc commented Mar 24, 2022

Fixed in #1138 which also fixes the graphical output. My testing showed it didn't work in xp/ntvdm or win98 in qemu either.

@mochicchi
Copy link
Author

It works now! Thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants