https://bugs.winehq.org/show_bug.cgi?id=43180
Bug ID: 43180 Summary: KnightOfKnights crashes without native d3dxof Product: Wine Version: 2.10 Hardware: x86 URL: http://ftp.vector.co.jp/34/19/1946/Knight050.lzh OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3dxof Assignee: wine-bugs@winehq.org Reporter: dark.shadow4@web.de Distribution: ---
Created attachment 58451 --> https://bugs.winehq.org/attachment.cgi?id=58451 Logfile
This is an old freeware game that seems to use DirectX7. It has a lot of issues, black textures are addressed in Bug 43159.
Without native d3dxof, when starting the game, the game crashes.
When testing the game, it's advised to check "emulate a virtual desktop" in winecfg, since it only supports low-resolution fullscreen mode and is prone to crashes. Also, when you have a gamepad plugged in it might not accept keyboard input, keep that in mind when testing.
To work around other issues that crash the game, please run "winetricks gmdls directmusic".
How to test: To select an option, press x. Just click through your way through. When in "Stage Select", move left with the arrow keys, then press x. Press x again to start the game.
It then crashes. Logfile attached, but it's pretty useless I think. Download link attached.
There is a way to make it start without crashes, by patching the executable. If you turn the conditional branch at 0x00424474 into an unconditional jump, the game will load. Please note that this hack makes the game start, but the character models are visibly broken. If the same change is applied while the native d3dxof is used, it still renders fine.
I'm trying to find the cause, but I'm not yet very good at this, and don't really know how to go about it, so help is appreciated.
https://bugs.winehq.org/show_bug.cgi?id=43180
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
https://bugs.winehq.org/show_bug.cgi?id=43180
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |leslie_alistair@hotmail.com
https://bugs.winehq.org/show_bug.cgi?id=43180
--- Comment #1 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- a log of +d3dxof,d3dxof_dump,d3dxof_parsing might give some hints.
https://bugs.winehq.org/show_bug.cgi?id=43180
--- Comment #2 from Fabian Maurer dark.shadow4@web.de --- Created attachment 58453 --> https://bugs.winehq.org/attachment.cgi?id=58453 Archive containing a log and debug files ~33MB
Attached a log with "WINEDEBUG=+d3dxof,+d3dxof_dump,+d3dxof_parsing" and all the files it produced during running the command.
https://bugs.winehq.org/show_bug.cgi?id=43180
--- Comment #3 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- (In reply to Fabian Maurer from comment #2)
Created attachment 58453 [details] Archive containing a log and debug files ~33MB
Attached a log with "WINEDEBUG=+d3dxof,+d3dxof_dump,+d3dxof_parsing" and all the files it produced during running the command.
I've been unable to reproduce the issue you are seeing.
From the log, function IDirectXFileImpl_CreateEnumObject would be where I would
started by Adding a FIXME in the error: section (line ~275 of d3dxof.c). Run the test again, and see if its hit.
If it is, then you'll just have to keep adding traces in the code until you work out what isn't being parsed correctly.
https://bugs.winehq.org/show_bug.cgi?id=43180
--- Comment #4 from Fabian Maurer dark.shadow4@web.de --- Thanks for the tips. What do you mean with "unable to reproduce the issue you are seeing"? Doesn't it crash for you or does it crash sooner? You might need native d3drm too, but somehow it seemed to sometimes work without, too.
https://bugs.winehq.org/show_bug.cgi?id=43180
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #5 from joaopa jeremielapuree@yahoo.fr --- Bug still occurs with wine-6.0-RC1.
https://bugs.winehq.org/show_bug.cgi?id=43180
--- Comment #6 from joaopa jeremielapuree@yahoo.fr --- Bug still occurs with wine-7.0-rc5.
https://bugs.winehq.org/show_bug.cgi?id=43180
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW
--- Comment #7 from Fabian Maurer dark.shadow4@web.de --- Still present as of wine-7.20. Still needs d3drm as well.