http://bugs.winehq.org/show_bug.cgi?id=22682
Summary: Far Cry 2 fails to start Product: Wine Version: 1.1.44 Platform: x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3d AssignedTo: wine-bugs@winehq.org ReportedBy: gugamilare@gmail.com
Created an attachment (id=27941) --> (http://bugs.winehq.org/attachment.cgi?id=27941) Terminal output
Far Cry 2 downloaded from Steam fails to initialize. When launching for the first time, Steam tries to install DirectX, .NET 2.0, Punkbuster and MS Visual C++ 2005 SP1. I had to manually delete the DirectX installer and recreate the wine prefix in order to avoid the installer to try installing DirectX. Either way, letting it install DIrectX or not, Far Cry 2 fails to initialize. It starts by showing a black box in the middle of the screen (probably where the logo should appear) and a warning window is shown:
"Your video card drivers are too old. Please update them."
Pressing OK, the executable continues for a few seconds until a message in the terminal output states that the function d3dx9_36.dll.D3DXGetShaderInputSemantics is missing. Then the application crashes.
On a side note, I have a Radeon HD 4770 512MB and the latest stable fglrx drivers from Ubuntu repositories.
http://bugs.winehq.org/show_bug.cgi?id=22682
Gustavo gugamilare@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #27941|Terminal output |Backtrace description| |
http://bugs.winehq.org/show_bug.cgi?id=22682
--- Comment #1 from Gustavo gugamilare@gmail.com 2010-05-13 17:12:55 --- Created an attachment (id=27943) --> (http://bugs.winehq.org/attachment.cgi?id=27943) Terminal output
It seems I sent the Backtrace before, sending the terminal output.
http://bugs.winehq.org/show_bug.cgi?id=22682
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dank@kegel.com
--- Comment #2 from Dan Kegel dank@kegel.com 2010-05-13 18:12:37 --- Does 'sh winetricks d3dx9_36" help?
http://bugs.winehq.org/show_bug.cgi?id=22682
--- Comment #3 from Gustavo gugamilare@gmail.com 2010-05-13 19:45:24 --- It helps... in a sense.
After "winetricks d3dx9_36", it starts and shows the menu. After trying to start a game, a music plays, many random corrupted pictures are shown in the screen, until the application crashes.
Is there any reason for winetricks having switched my Windows version to 2000 instead of XP (I tried with both version to be sure, same result).
http://bugs.winehq.org/show_bug.cgi?id=22682
--- Comment #4 from Gustavo gugamilare@gmail.com 2010-05-13 19:55:18 --- Looks like the graphic corruption bug after "winetricks d3dx9_36" is bug 20194.
http://bugs.winehq.org/show_bug.cgi?id=22682
Gustavo gugamilare@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gugamilare@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=22682
--- Comment #5 from Gustavo gugamilare@gmail.com 2010-08-03 20:34:15 --- Created an attachment (id=29995) --> (http://bugs.winehq.org/attachment.cgi?id=29995) Output of Far Cry 2 under Steam
Now, with or without "winetricks d3dx9_36" I'm getting an error trying to start Far Cry 2. Looks like it's a bug introduced with drag and drop:
err:ole:RevokeDragDrop invalid hwnd (nil)
Should I do a regression test?
http://bugs.winehq.org/show_bug.cgi?id=22682
--- Comment #6 from Dan Kegel dank@kegel.com 2010-08-03 20:43:19 --- Yes, please, a regression test would be nice.
http://bugs.winehq.org/show_bug.cgi?id=22682
--- Comment #7 from Gustavo gugamilare@gmail.com 2010-08-04 19:54:40 --- Something happened here, wine version 1.1.44 is also not working anymore. I'm sad.
http://bugs.winehq.org/show_bug.cgi?id=22682
--- Comment #8 from Gustavo gugamilare@gmail.com 2010-10-08 07:36:30 CDT --- Now I have found out how it behaves.
In a clean .wine prefix and without installing anything (you have to rename / remove the folders inside installers/ in the games directory), it does not work and gives the error messages without showing that black box:
Install script executed.fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.VC80.CRT" (8.0.50727.762) fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.VC80.CRT" (8.0.50727.762) CellID: Connecting to 79.141.165.2:27031. . . err:ole:RevokeDragDrop invalid hwnd (nil)
Installing VCRedist gives the errors described in the bug.
Finally, if you let it install DirectX (the one that comes with Far Cry 2), at least now it works and is quite playable :). Installing by winetricks instead also works, but I can't tell you exactly what steps are necessary in this case.
http://bugs.winehq.org/show_bug.cgi?id=22682
Xavier Vachon xvachon@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |xvachon@gmail.com
--- Comment #9 from Xavier Vachon xvachon@gmail.com 2011-03-09 01:36:08 CST --- Is this bug about the lack of D3DXGetShaderInputSemantics, or a wined3d bug?
If it is about the d3dx9 dependency, it also affects Deathspank.
wine: Call from 0x7ed76832 to unimplemented function d3dx9_36.dll.D3DXGetShaderInputSemantics, aborting
http://bugs.winehq.org/show_bug.cgi?id=22682
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download Status|UNCONFIRMED |NEW URL| |http://news.bigdownload.com | |/2009/11/17/download-james- | |camerons-avatar-the-game-de | |mo/ Summary|Far Cry 2 fails to start |Far Cry 2/Avatar | |Demo/Deathspank fail to | |start, want | |d3dx9_36.dll.D3DXGetShaderI | |nputSemantics Ever Confirmed|0 |1 Severity|normal |minor
--- Comment #10 from Austin English austinenglish@gmail.com 2011-04-18 20:46:45 CDT --- Also affects Avatar demo.
http://bugs.winehq.org/show_bug.cgi?id=22682
--- Comment #11 from Austin English austinenglish@gmail.com 2011-06-27 20:14:40 CDT --- And 'Faery: Legends of Avalon Demo', http://www.gamershell.com/download_73944.shtml
http://bugs.winehq.org/show_bug.cgi?id=22682
GyB gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gyebro69@gmail.com
--- Comment #12 from GyB gyebro69@gmail.com 2012-07-13 11:34:33 CDT --- Also affects UAZ Racing 4x4
wine-1.5.8-134-g9fce6a3
http://bugs.winehq.org/show_bug.cgi?id=22682
GyB gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |thanoulas@gmail.com
--- Comment #13 from GyB gyebro69@gmail.com 2012-12-16 12:08:34 CST --- *** Bug 32460 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=22682
Brandon Corujo haku08879@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |haku08879@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=22682
--- Comment #14 from Rico kgbricola@web.de 2013-07-18 05:44:29 CDT --- Also effects Civ4 (demo).
http://bugs.winehq.org/show_bug.cgi?id=22682
Andrey Gusev andrey.goosev@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |andrey.goosev@gmail.com
--- Comment #15 from Andrey Gusev andrey.goosev@gmail.com 2013-11-24 15:20:59 CST --- Far Cry 3 affected. Wine 1.7.7 Btw, it's a d3dx9 component.
http://bugs.winehq.org/show_bug.cgi?id=22682
Henri Verbeet hverbeet@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wine-bugs@winehq.org Component|directx-d3d |directx-d3dx9
http://bugs.winehq.org/show_bug.cgi?id=22682
--- Comment #16 from Andrey Gusev andrey.goosev@gmail.com --- Call of Juarez: Bound in Blood demo need this function too.
http://bugs.winehq.org/show_bug.cgi?id=22682
Roland Haeder roland@mxchange.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |roland@mxchange.org
--- Comment #17 from Roland Haeder roland@mxchange.org --- Still there, it needs the mentioned function (GOG version).
http://bugs.winehq.org/show_bug.cgi?id=22682
--- Comment #18 from Roland Haeder roland@mxchange.org --- Can someone please add a stub?
http://bugs.winehq.org/show_bug.cgi?id=22682
Jarkko K jarkko_korpi@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jarkko_korpi@hotmail.com
--- Comment #19 from Jarkko K jarkko_korpi@hotmail.com --- I havent submited patches into wine...
But I read
http://msdn.microsoft.com/en-us/library/windows/desktop/bb172872%28v=vs.85%2...
which is about "D3DXGetShaderInputSemantics".
Basically you just need to add the D3DXGetShaderInputSemantics function to return
"D3D_OK"
And add some stub message.
Could someone try if adding fucntion which returns D3D_OK fixes the issue?
http://bugs.winehq.org/show_bug.cgi?id=22682
--- Comment #20 from Roland Haeder roland@mxchange.org --- Thank you for adding it. But I have read that unimplemented functions should return E_NOTIMPL and not D3D_OK. With the native DLL in place I could play for hours but not fully flawless.
If a lot enemies are shooting at you, the sound cracks a lot and framerate drops below playable (2-5 FPS). But maybe that is a side effect of using the native DLL.
This above all was without your added stub. I now recompile and test it after it.
http://bugs.winehq.org/show_bug.cgi?id=22682
--- Comment #21 from Roland Haeder roland@mxchange.org --- How do I do that? Can you somewhere pastebin your patch? I am no C++ programmer here.
http://bugs.winehq.org/show_bug.cgi?id=22682
--- Comment #22 from Jarkko K jarkko_korpi@hotmail.com --- I downloaded
Faery: Legends of Avalon Demo
It wanted to install dx, physx and I couldnt see the issue. Didnt do debug this time. I quess I should have canceled the dx part somehow.
I have far cry 2 (steam version) and I have played it without any issues around 1 year ago. Don't have it installed right now so I can't test that game.
Roland what game are you talking about?
http://bugs.winehq.org/show_bug.cgi?id=22682
--- Comment #23 from Béla Gyebrószki gyebro69@gmail.com --- The game Red Johnson's Chronicles also needs this function.
wine-1.7.17-175-gc1bf61e
http://bugs.winehq.org/show_bug.cgi?id=22682
--- Comment #24 from Jarkko K jarkko_korpi@hotmail.com --- Roland you misunderstood. I haven't made patch for this. But if someone is skillfull enough he could modify the source code to return D3D_OK and see if it bypass this problem. I did similar thing for just cause 2 and it skipped the issue which was reported in some bugzilla thread.
http://bugs.winehq.org/show_bug.cgi?id=22682
Robert Munteanu robert.munteanu@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |robert.munteanu@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=22682
Guillaume Charifi guillaume.charifi@sfr.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |guillaume.charifi@sfr.fr
--- Comment #25 from Guillaume Charifi guillaume.charifi@sfr.fr --- Here is a implementation of D3DXGetShaderInputSemantics from wine-staging, not committed at this time, perhaps you could try it.
https://github.com/wine-compholio/wine-staging/blob/master/patches/d3dx9_36-...
https://bugs.winehq.org/show_bug.cgi?id=22682
Sebastian Lackner sebastian@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sebastian@fds-team.de
https://bugs.winehq.org/show_bug.cgi?id=22682
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |30244
https://bugs.winehq.org/show_bug.cgi?id=22682
--- Comment #26 from Béla Gyebrószki gyebro69@gmail.com --- The game 'Of Orcs and Men' also needs this function.
wine-1.7.43-123-g90ed96a
https://bugs.winehq.org/show_bug.cgi?id=22682
Michael Müller michael@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |STAGED CC| |michael@fds-team.de Staged patchset| |https://github.com/wine-com | |pholio/wine-staging/tree/ma | |ster/patches/d3dx9_36-GetSh | |aderSemantics
https://bugs.winehq.org/show_bug.cgi?id=22682
K1773R K1773R@darkgamex.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |K1773R@darkgamex.ch
https://bugs.winehq.org/show_bug.cgi?id=22682
Adam Bolte abolte@systemsaviour.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |abolte@systemsaviour.com
https://bugs.winehq.org/show_bug.cgi?id=22682
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
https://bugs.winehq.org/show_bug.cgi?id=22682
fjfrackiewicz@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fjfrackiewicz@gmail.com
--- Comment #27 from fjfrackiewicz@gmail.com --- Created attachment 58091 --> https://bugs.winehq.org/attachment.cgi?id=58091 Terminal output Wine-2.7-94-g10db51d5c2
Way of the Samurai 4 also needs this function in d3dx9_38.dll. Terminal output from Wine-2.7-94-g10db51d5c2 attached.
https://bugs.winehq.org/show_bug.cgi?id=22682
--- Comment #28 from fjfrackiewicz@gmail.com --- Created attachment 58092 --> https://bugs.winehq.org/attachment.cgi?id=58092 Backtrace Wine-2.7-94-g10db51d5c2
Backtrace of the crash in Wine-2.7-94-g10db51d5c2
https://bugs.winehq.org/show_bug.cgi?id=22682
fjfrackiewicz@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |41837
https://bugs.winehq.org/show_bug.cgi?id=22682
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Far Cry 2/Avatar |Multiple games need |Demo/Deathspank fail to |function |start, want |d3dx9_36.dll.D3DXGetShaderI |d3dx9_36.dll.D3DXGetShaderI |nputSemantics (Far Cry 2/3, |nputSemantics |Avatar, Faery: Legends of | |Avalon, Civilization 4, | |Deathspank, Of Orcs and | |Men)
https://bugs.winehq.org/show_bug.cgi?id=22682
Paul Gofman gofmanp@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gofmanp@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=22682
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|STAGED |RESOLVED Resolution|--- |FIXED Fixed by SHA1| |50734ad54f4212b8e522d0acf7c | |616e51df19644
--- Comment #29 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Fixed by http://source.winehq.org/git/wine.git/?a=commit;h=50734ad54f4212b8e522d0acf7...
https://bugs.winehq.org/show_bug.cgi?id=22682
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #30 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 3.0-rc2.
https://bugs.winehq.org/show_bug.cgi?id=22682
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |2.0.x
https://bugs.winehq.org/show_bug.cgi?id=22682
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|2.0.x |---
--- Comment #31 from Michael Stefaniuc mstefani@winehq.org --- Removing the 2.0.x milestone from bugs included in 2.0.5.
https://bugs.winehq.org/show_bug.cgi?id=22682
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net URL|http://news.bigdownload.com |https://web.archive.org/web |/2009/11/17/download-james- |/20140927222022if_/http://g |camerons-avatar-the-game-de |amedaily.newaol.com/pub/Ava |mo/ |tar_The_Game_Demo.exe