http://bugs.winehq.org/show_bug.cgi?id=23356
Summary: Napoleon Total War: black screen without winetricks d3d9x Product: Wine Version: 1.2-rc4 Platform: x86-64 URL: http://www.totalwar.com/napoleon/demo/ OS/Version: Linux Status: NEW Keywords: download Severity: normal Priority: P2 Component: directx-d3dx9 AssignedTo: wine-bugs@winehq.org ReportedBy: austinenglish@gmail.com CC: wine-bugs@winehq.org
The log shows several d3dx stubs are causing it trouble: implemented fixme:d3dx:D3DXGetImageInfoFromFileInMemory Invalid or unsupported image file fixme:d3dx:D3DXCreateTextureFromFileInMemoryEx (0x8eafae8, 0xd7ee731, 1440128, 4294967294, 4294967294, 1, 0, fffffffd, 1, 2, 5, 0, (nil), (nil), 0x8f53864): stub ... fixme:d3dx:ID3DXEffectImpl_SetMatrixTranspose (0x8f54f58)->(0x1642ea0, 0x8ea54fc): stub fixme:d3dx:ID3DXEffectImpl_SetTechnique (0x8f54f58)->(0x1642eac): stub ... d3d call failed, code: 0x80004001 d3d call failed, code: 0x80004001 d3d call failed, code: 0x80004001 d3d call failed, code: 0x80004001 d3d call failed, code: 0x80004001
winetricks d3dx9 lets it start with graphics.
http://bugs.winehq.org/show_bug.cgi?id=23356
--- Comment #1 from Austin English austinenglish@gmail.com 2010-06-24 07:02:51 --- Created an attachment (id=29107) --> (http://bugs.winehq.org/attachment.cgi?id=29107) terminal output
http://bugs.winehq.org/show_bug.cgi?id=23356
--- Comment #2 from Vincent Povirk madewokherd@gmail.com 2011-01-10 17:45:04 CST --- Anything from warn+wincodecs ?
http://bugs.winehq.org/show_bug.cgi?id=23356
--- Comment #3 from Austin English austinenglish@gmail.com 2011-01-10 18:48:25 CST --- Ran it through grep wincodecs | sort -u, since there were quite a few: warn:wincodecs:ImagingFactory_CreateDecoderFromStream failed to load from a stream warn:wincodecs:ImagingFactory_CreateDecoderFromStream first 4 bytes of stream=0 0 2 0 warn:wincodecs:ImagingFactory_CreateDecoderFromStream first 4 bytes of stream=44 44 53 20
http://bugs.winehq.org/show_bug.cgi?id=23356
Ori Avtalion ori@avtalion.name changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ori@avtalion.name
--- Comment #4 from Ori Avtalion ori@avtalion.name 2011-07-01 05:17:16 CDT --- (In reply to comment #3)
warn:wincodecs:ImagingFactory_CreateDecoderFromStream first 4 bytes of stream=44 44 53 20
This warning also appears in Puzzle Agent 2.
http://bugs.winehq.org/show_bug.cgi?id=23356
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #5 from joaopa jeremielapuree@yahoo.fr 2011-11-06 23:16:14 CST --- Looks like we really need a dds decoder :D
http://bugs.winehq.org/show_bug.cgi?id=23356
Christopher May maquis196@yahoo.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |maquis196@yahoo.co.uk
http://bugs.winehq.org/show_bug.cgi?id=23356
--- Comment #6 from Alexey Loukianov mooroon2@mail.ru 2012-05-27 22:21:13 CDT --- Created attachment 40310 --> http://bugs.winehq.org/attachment.cgi?id=40310 WINEDEBUG="-all,err+all,fixme+all,fixme-ntdll,fixme-class,fixme-msg,+d3dx,+tid,+loaddll,+fps"
OK, so we've got DDS support mostly implemented but this bug wasn't fixed with it. Had just downloaded Napoleon: Total War demo from Steam and tested it with Wine 1.5.5 + patch that implements D3DXSaveSurfaceToFileInMemory (attachment #40281). Still there's no output at all (i.e. the only thing I've got is a "black screen") unless I install native d3dx9_40.dll into the prefix. Installing native d3dx9_36.dll doesn't fix the problem completely (i.e. using Wine's bult-in forwarding from d3dx9_40 => d3dx9_36) - I've got starting informational screen displayed correctly but then the game simply hangs displaying nothing as soon as it progresses with its startup process up to the point when it's going to playback intro video sequences.
Pretty strange things happen if I install both native d3dx9_40 and d3dx9_36, start the game up at least once and then configure Wine to use built-in d3dx9_40 in winecfg. Doing so results in game starting up successfully and displaying everything as it should. In other words using built-in d3dx9_40 => native d3dx9_36 forwarding doesn't work until the game manages to successfully start up at least once using native d3dx9_40, but as soon as it had managed to successfully start up at least once - using aforementioned forwarding suddenly begins to work without hangs.
Nevertheless, it seems that now the game chokes on non-implemented D3DXCreateEffect* stuff - and that is bug #11675. I had captured relevant logs from game running with built-in d3dx9_36 and d3dx9_40 with d3dx debugging channel enabled. It might be reasonable to close this bug either as FIXED with a note that next one to fix is bug #11675 or simply mark this one as a duplicate of bug #11675.
http://bugs.winehq.org/show_bug.cgi?id=23356
Alexey Loukianov mooroon2@mail.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mooroon2@mail.ru
http://bugs.winehq.org/show_bug.cgi?id=23356
Christian Costa titan.costa@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |titan.costa@gmail.com
--- Comment #7 from Christian Costa titan.costa@gmail.com 2013-06-09 12:06:28 CDT --- Download link does not seem to work.
http://bugs.winehq.org/show_bug.cgi?id=23356
--- Comment #8 from Christian Costa titan.costa@gmail.com 2013-06-09 12:14:56 CDT --- Bug 11675 is related to d3dx9_36 and this one is related to d3dx9_40. So it is not the same bug. This bug should be kept open then.
http://bugs.winehq.org/show_bug.cgi?id=23356
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://www.totalwar.com/nap |http://store.steampowered.c |oleon/demo/ |om/app/34050/
--- Comment #9 from Austin English austinenglish@gmail.com 2013-06-25 23:14:11 CDT --- Steam has a demo: http://store.steampowered.com/app/34050/
current d3dx output is: fixme:d3dx:D3DXCreateEffectEx (0xaeb8e38, 0x3f0416, 2369, (nil), (nil), (nil), 0, (nil), 0xaeb0c20, 0x33f7cc): semi-stub fixme:d3dx:d3dx9_base_effect_init HLSL ascii effects not supported, yet fixme:d3dx:ID3DXEffectImpl_Begin iface 0xb06d148, passes 0x33f7c8, flags 0 partial stub fixme:d3dx:ID3DXEffectImpl_End (0xb06d148)->(): stub fixme:d3dx:d3dx9_base_effect_init HLSL ascii effects not supported, yet fixme:d3dx:ID3DXEffectCompilerImpl_CompileEffect iface 0x229423d0, flags 0x1000, effect 0x33e220, error_msgs 0x33e324 stub
Matteo, this doesn't seem like bug 25857, but correct me if I'm wrong (or point out which bug it is).
http://bugs.winehq.org/show_bug.cgi?id=23356
Matteo Bruni matteo.mystral@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |matteo.mystral@gmail.com
--- Comment #10 from Matteo Bruni matteo.mystral@gmail.com 2013-06-26 07:30:46 CDT --- (In reply to comment #9)
Steam has a demo: http://store.steampowered.com/app/34050/
current d3dx output is: fixme:d3dx:D3DXCreateEffectEx (0xaeb8e38, 0x3f0416, 2369, (nil), (nil), (nil), 0, (nil), 0xaeb0c20, 0x33f7cc): semi-stub fixme:d3dx:d3dx9_base_effect_init HLSL ascii effects not supported, yet fixme:d3dx:ID3DXEffectImpl_Begin iface 0xb06d148, passes 0x33f7c8, flags 0 partial stub fixme:d3dx:ID3DXEffectImpl_End (0xb06d148)->(): stub fixme:d3dx:d3dx9_base_effect_init HLSL ascii effects not supported, yet fixme:d3dx:ID3DXEffectCompilerImpl_CompileEffect iface 0x229423d0, flags 0x1000, effect 0x33e220, error_msgs 0x33e324 stub
Matteo, this doesn't seem like bug 25857, but correct me if I'm wrong (or point out which bug it is).
You're right, it complains about missing ASCII effects support. Bug 32124, bug 25017, bug 24931 and bug 28055 seem to be all about the same issue (although the last one seems to also require other improvements to the HLSL compiler, so that one is a bit different).
http://bugs.winehq.org/show_bug.cgi?id=23356
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Napoleon Total War: black |Napoleon Total War: needs |screen without winetricks |native d3dx9 (HLSL ascii |d3d9x |effects not supported)
--- Comment #11 from Austin English austinenglish@gmail.com 2013-06-26 13:28:55 CDT --- (In reply to comment #10)
(In reply to comment #9)
Steam has a demo: http://store.steampowered.com/app/34050/
current d3dx output is: fixme:d3dx:D3DXCreateEffectEx (0xaeb8e38, 0x3f0416, 2369, (nil), (nil), (nil), 0, (nil), 0xaeb0c20, 0x33f7cc): semi-stub fixme:d3dx:d3dx9_base_effect_init HLSL ascii effects not supported, yet fixme:d3dx:ID3DXEffectImpl_Begin iface 0xb06d148, passes 0x33f7c8, flags 0 partial stub fixme:d3dx:ID3DXEffectImpl_End (0xb06d148)->(): stub fixme:d3dx:d3dx9_base_effect_init HLSL ascii effects not supported, yet fixme:d3dx:ID3DXEffectCompilerImpl_CompileEffect iface 0x229423d0, flags 0x1000, effect 0x33e220, error_msgs 0x33e324 stub
Matteo, this doesn't seem like bug 25857, but correct me if I'm wrong (or point out which bug it is).
You're right, it complains about missing ASCII effects support. Bug 32124, bug 25017, bug 24931 and bug 28055 seem to be all about the same issue (although the last one seems to also require other improvements to the HLSL compiler, so that one is a bit different).
Thanks. I'll merge them.
http://bugs.winehq.org/show_bug.cgi?id=23356
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dank@kegel.com
--- Comment #12 from Austin English austinenglish@gmail.com 2013-06-26 13:32:05 CDT --- *** Bug 32124 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=23356
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |6yearold@gmail.com
--- Comment #13 from Austin English austinenglish@gmail.com 2013-06-26 13:32:06 CDT --- *** Bug 25017 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=23356
--- Comment #14 from Austin English austinenglish@gmail.com 2013-06-26 13:32:08 CDT --- *** Bug 24931 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=23356
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |russianneuromancer@ya.ru
--- Comment #15 from Austin English austinenglish@gmail.com 2013-06-26 13:32:34 CDT --- *** Bug 28055 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=23356
Andrey Gusev andrey.goosev@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |andrey.goosev@gmail.com
--- Comment #16 from Andrey Gusev andrey.goosev@gmail.com 2013-07-18 11:11:25 CDT --- Hitman: Blood Money demo also affected.
fixme:d3dx:d3dx9_base_effect_init HLSL ascii effects not supported, yet fixme:d3dx:ID3DXEffectCompilerImpl_CompileEffect iface 0x6fa63ac8, flags 0x500, effect 0x122a56c, error_msgs 0x122a564 stub
https://bugs.winehq.org/show_bug.cgi?id=23356
fjfrackiewicz@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fjfrackiewicz@gmail.com
--- Comment #17 from fjfrackiewicz@gmail.com --- Elminage Gothic also needs native d3dx9 otherwise it crashes with
fixme:d3dx:D3DXCreateTextureFromFileInMemoryEx Texture creation failed.
in Wine 1.9.20-92-g1dedd90.
Installing d3dx9 via winetricks works around this problem for me.
https://bugs.winehq.org/show_bug.cgi?id=23356
Jan Havran havran.jan@email.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |havran.jan@email.cz
https://bugs.winehq.org/show_bug.cgi?id=23356
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://store.steampowered.c |https://web.archive.org/web |om/app/34050/ |/20060509044603if_/http://d | |ownload.microsoft.com/downl | |oad/a/5/2/a525997e-8423-435 | |b-b694-08118d235064/aoe3tri | |al.exe CC| |focht@gmx.net Summary|Napoleon Total War: needs |Multiple games need HLSL |native d3dx9 (HLSL ascii |ascii effects support |effects not supported) |(Napoleon Total War, | |UnderGarden Demo, Age of | |Empires 3 demo, Gothic 3 | |demo, Hitman: Blood Money | |demo)
--- Comment #18 from Anastasius Focht focht@gmx.net --- Hello folks,
if you start merging dupes into one collector always reflect this in the summary field. Refining the summary of this bug accordingly.
Stable link via Internet Archive to AoE 3 demo:
https://web.archive.org/web/20060509044603if_/http://download.microsoft.com/...
$ sha1sum aoe3trial.exe 2b0a123243092d79f910db5691d99d469f7c17c3 aoe3trial.exe
$ du -sh aoe3trial.exe 427M aoe3trial.exe
Regards
https://bugs.winehq.org/show_bug.cgi?id=23356
--- Comment #19 from Gijs Vermeulen gijsvrm@gmail.com --- Still present with wine-8.12.
0024:fixme:d3dx:d3dx9_effect_compiler_init ID3DXEffectCompiler implementation is only a stub.
AoE3:
0024:fixme:d3dx:ID3DXEffectCompilerImpl_CompileShader iface 02D66600, function 04CF9180, target "vs_3_0", flags 0x520, shader 08C25C94, error_msgs 08C2502C, constant_table 00E0F7A0 stub! 0024:fixme:d3dx:ID3DXEffectCompilerImpl_CompileShader iface 02D66600, function 04CFEEE0, target "ps_3_0", flags 0x520, shader 08C25C94, error_msgs 08C2502C, constant_table 00E0F7A0 stub!
The UnderGarden:
0024:fixme:d3dx:ID3DXEffectCompilerImpl_CompileEffect iface 159F1C48, flags 0x1000, effect 0A8B3A1C, error_msgs 00000000 stub!