http://bugs.winehq.com/show_bug.cgi?id=1198
------- Additional Comments From winebug@flonet.net 2003-28-06 07:20 ------- Bug comments restored from Gmane.org:
Wine 20021125 (cvs; wine-cvs-opengl-121502-1.i386.rpm) RedHat 8 Some windows .dlls installed by windows programs, however none related to directx (I think)
Game info: http://appdb.winehq.com/appview.php?appId=1097 Using game version 1.1
Steps to reproduce: 1) Install the game (it has a windows-based installer, works ok) 2) Run setup (wine winsetup.exe, works ok) 3) run the game (wine KQ2VGA.exe) The game loads (slowly), with some errors appearing in the console and in the game. When the main screen finally appears, the mouse is not usable. Thus the game cannot be played. The game is working, though, try for example pressing ctrl-q
Note: The game is based on Adventure Game Studio (AGS), which is closed source, but free (http://www.adventuregamestudio.co.uk). Furthermore, AGS is using Allegro game library (http://alleg.sourceforge.net) for multimedia. Allegro is open-source.
Although Allegro is available for linux as well, the author of AGS is not willing to port it to linux (http://www.agsforums.com/acfaq.htm). Since the backend (Allegro) is available in open source, it should be relatively easy to understand what is not working in wine in respect to AGS and King's Quest 2...
Solving problems with this particular game many other AGS/Allegro games would probably work as well.
Will attach debug-logs later...
------- Additional Comments From moxh <at> hotmail.com 2002-12-22 09:26 ------- Here are the error messages: -------------------- When running the game, it displays following error: "Video playing error: Could not create a CLSID_MultiMediaStream object. Check you have run regsvr32 amstream.dll" --------------------- The console shows following errors: fixme:ddraw:Main_DirectDraw_SetCooperativeLevel (0x40267968)->(00000000,00000008) err:dinput:SysMouseAImpl_Unacquire Unacquiring a not-acquired device !!! fixme:ddraw:Main_DirectDraw_SetCooperativeLevel (0x4026c380)->(00010022,00000008) fixme:ddraw:Main_DirectDraw_SetCooperativeLevel (0x4026c380)->(00010022,00000008) fixme:ddraw:Main_DirectDraw_SetCooperativeLevel (0x4026c380)->(00010022,00000008) fixme:ddraw:Main_DirectDraw_SetCooperativeLevel (0x4026c380)->(00010022,00000008) fixme:ddraw:Main_DirectDraw_GetMonitorFrequency (0x4026c380)->(0x407923dc) returns 60 Hz always fixme:ddraw:Main_DirectDrawClipper_Initialize (0x4026c318)->(0x4026c38c,0x00000000),stub! fixme:ddraw:DIB_DirectDrawSurface_Blt dwFlags DDBLT_WAIT and/or DDBLT_ASYNC: can't handle right now. err:dinput:SysMouseAImpl_Unacquire Unacquiring a not-acquired device !!! fixme:file:DeviceIoControl Unimplemented control 256 for VxD device NWLINK
------- Additional Comments From andi <at> rhlx01.fht-esslingen.de 2002-12-22 09:39 ------- Well, then have you run it ? Is there an amstream.dll at all ?
------- Additional Comments From moxh <at> hotmail.com 2002-12-22 10:43 ------- Wine doesn't have such file. I tried to run the game with that amstream.dll copied from win98se, but it didn't help much.
Now the game complains that: "Video playing error: AddMediaStream failed"
and the console log says:
fixme:ddraw:Main_DirectDraw_SetCooperativeLevel (0x40267970)->(00000000,00000008) err:dinput:SysMouseAImpl_Unacquire Unacquiring a not-acquired device !!! fixme:ddraw:Main_DirectDraw_SetCooperativeLevel (0x4026c388)->(00010024,00000008) fixme:ddraw:Main_DirectDraw_SetCooperativeLevel (0x4026c388)->(00010024,00000008) fixme:ddraw:Main_DirectDraw_SetCooperativeLevel (0x4026c388)->(00010024,00000008) fixme:ddraw:Main_DirectDraw_SetCooperativeLevel (0x4026c388)->(00010024,00000008) fixme:ddraw:Main_DirectDraw_GetMonitorFrequency (0x4026c388)->(0x407923dc) returns 60 Hz always fixme:ddraw:Main_DirectDrawClipper_Initialize (0x4026cb40)->(0x4026c394,0x00000000),stub! err:dinput:SysMouseAImpl_Unacquire Unacquiring a not-acquired device !!! fixme:ddraw:DIB_DirectDrawSurface_Blt dwFlags DDBLT_WAIT and/or DDBLT_ASYNC: can't handle right now. fixme:file:DeviceIoControl Unimplemented control 256 for VxD device NWLINK fixme:ddraw:Main_DirectDraw_QueryInterface (0x4026c388)->({b502d1bd-9a57-11d0-8fde-00c04fd9189d},0x407919fc): no interface fixme:ddraw:Main_DirectDraw_QueryInterface (0x4026c388)->({bebe595d-9a6f-11d0-8fde-00c04fd9189d},0x40791a00): no interface fixme:ddraw:Main_DirectDraw_QueryInterface (0x4026c388)->({b502d1bd-9a57-11d0-8fde-00c04fd9189d},0x407919fc): no interface fixme:ddraw:Main_DirectDraw_QueryInterface (0x4026c388)->({bebe595d-9a6f-11d0-8fde-00c04fd9189d},0x40791a00): no interface fixme:ddraw:Main_DirectDraw_SetCooperativeLevel (0x4026c388)->(00010024,00000008) err:dinput:SysMouseAImpl_Unacquire Unacquiring a not-acquired device !!! err:dinput:SysMouseAImpl_Unacquire Unacquiring a not-acquired device !!! err:dinput:SysMouseAImpl_Unacquire Unacquiring a not-acquired device !!!
-------------- Anyways, although that media stream (video clips) thing would be worked out, the bigger problem right now is that the mouse doesn't work...
------- Additional Comments From moxh <at> hotmail.com 2002-12-22 10:58 ------- Grr, the attachment submitting isn't working for me (w/ mozilla or galeon)
Here are the debug-logs:
The first one is a full log upto first error message given by the program http://aiesec.tky.hut.fi/test/full1.log.bz2
The second one is a full log all the way to the main menu, with some mouse movement and clicking (does not do anything, even the cursor in the game does not move) http://aiesec.tky.hut.fi/test/full2.log.bz2
The last one is a tail -100 of the full2 -log http://aiesec.tky.hut.fi/test/last100.log
(and these are without the amstream.dll)
------- Additional Comments From dclark <at> akamail.com 2002-12-22 11:09 ------- Have you tried this patch (it is not yet in CVS): http://www.winehq.com/hypermail/wine-patches/2002/12/0327.html
------- Additional Comments From andi <at> rhlx01.fht-esslingen.de 2002-12-22 11:22 ------- Most likely dinput bug. Get latest CVS and apply not-yet-committed wine-patches mailing list dinput patch.
------- Additional Comments From moxh <at> hotmail.com 2002-12-22 15:13 ------- I used the sources from the winehq page (20021229) and the patch that was mentioned in the previous comments. It does seem to work a bit better now: The cursor is "locked" into the cursor of the game. However, the cursor does not move anywhere (no matter how much you move the mouse)...
Here's the error output... fixme:ddraw:Main_DirectDraw_SetCooperativeLevel (0x4025ced0)->(00000000,00000008) err:dinput:SysMouseAImpl_Unacquire Unacquiring a not-acquired device !!! fixme:ddraw:Main_DirectDraw_SetCooperativeLevel (0x40260cd0)->(00020024,00000008) fixme:ddraw:Main_DirectDraw_SetCooperativeLevel (0x40260cd0)->(00020024,00000008) fixme:ddraw:Main_DirectDraw_SetCooperativeLevel (0x40260cd0)->(00020024,00000008) fixme:ddraw:Main_DirectDraw_SetCooperativeLevel (0x40260cd0)->(00020024,00000008) fixme:ddraw:Main_DirectDraw_GetMonitorFrequency (0x40260cd0)->(0x40792400) returns 60 Hz always fixme:ddraw:Main_DirectDrawClipper_Initialize (0x40261590)->(0x40260cdc,0x00000000),stub! err:dinput:SysMouseAImpl_Unacquire Unacquiring a not-acquired device !!! fixme:ddraw:DIB_DirectDrawSurface_Blt dwFlags DDBLT_WAIT and/or DDBLT_ASYNC: can't handle right now. fixme:file:DeviceIoControl Unimplemented control 256 for VxD device NWLINK fixme:ddraw:Main_DirectDraw_QueryInterface (0x40260cd0)->({b502d1bd-9a57-11d0-8fde-00c04fd9189d},0x40791a20): no interface fixme:ddraw:Main_DirectDraw_QueryInterface (0x40260cd0)->({bebe595d-9a6f-11d0-8fde-00c04fd9189d},0x40791a24): no interface fixme:ddraw:Main_DirectDraw_QueryInterface (0x40260cd0)->({b502d1bd-9a57-11d0-8fde-00c04fd9189d},0x40791a20): no interface fixme:ddraw:Main_DirectDraw_QueryInterface (0x40260cd0)->({bebe595d-9a6f-11d0-8fde-00c04fd9189d},0x40791a24): no interface
------- Additional Comments From andi <at> rhlx01.fht-esslingen.de 2002-12-22 15:24 ------- Create a --debugmsg +relay,+dinput,+x11drv,+event log file and check out via http://search.microsoft.com why your mouse movements don't seem to get through...
------- Additional Comments From moxh <at> hotmail.com 2002-12-22 17:11 ------- Ho hum. Apparently it's a bit unstable, but I actually can get mouse working by using the patch. When I put Wine to use desktop-mode and the game setup to use full screen, I'm able to play the game, whee :)
The videos might not work still, but the game is playable...