http://bugs.winehq.org/show_bug.cgi?id=28351
Summary: Hundred Swords demo: Fails to initialize Direct3D Product: Wine Version: 1.3.28 Platform: x86-64 URL: http://www.fileplanet.com/57573/50000/fileinfo/Hundred -Swords-Demo-(Japanese) OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3d AssignedTo: wine-bugs@winehq.org ReportedBy: asb@asbradbury.org
Created an attachment (id=36341) --> (http://bugs.winehq.org/attachment.cgi?id=36341) 1.3.28: WINEDEBUG="+d3d,+tid,+ddraw"
The demo for the Sega game RTS fails to start ("Initialize error!"). I have the exact same problem with the full game install from retail CD, giving the more meaningful error string "Failed to initialize Direct3D". ProtectionID shows no DRM). I can only find a Japanese version of the demo, but it shows the problem and the logs I've taken are essentially identical.
I tried changing the reported windows version, virtual desktop, changing the reported video card memory all with no effect. I am on Ubuntu 11.04 x86_64 with Nvidia 270.41.06. Both the full game and load on Windows 7 x64 on the same hardware.
Tested with wine 1.2.3, 1.3.28, 1.3.28-86-g9b729bb, and a few random 1.3.xx releases.
To reproduce, download and install the linked demo (<50MB so quite small), then try to launch the installed exe.
$ sha1sum 100swords.exe fa15d9af88d8ef7cb799620c52fd78bf1c9ab707 100swords.exe
I attach a log taken with WINEDEBUG="+d3d,+tid,+ddraw" wine H_SWORDS_demo.exe
http://bugs.winehq.org/show_bug.cgi?id=28351
Alex Bradbury asb@asbradbury.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
http://bugs.winehq.org/show_bug.cgi?id=28351
--- Comment #1 from Sagawa sagawa.aki+winebugs@gmail.com 2011-10-02 07:48:43 CDT --- Created attachment 36650 --> http://bugs.winehq.org/attachment.cgi?id=36650 proposed patch
I downloaded a demo executable from SEGA's official web site(*) and ran it on my wine environment. After the installation, as reported comment #1, it shows an error message that means "Failed to initialize Direct3D".
I made a patch which turns Wine's Direct3D device name into Windows one. Becuase this game seems to check against the D3D device *name* via IDirect3D::EnumDevices callbacks. This is a unusual way to look for a D3D device. Generally, an application calls IDirect3D7::CreateDevice directly with known IIDs.
* .. http://sega.jp/pc/hundreds/trial.shtml, the page is written in Japanese. sha1sum of 100swords.exe is 839509940718ec5db72c57f45a5a1bee06622c7f.
http://bugs.winehq.org/show_bug.cgi?id=28351
--- Comment #2 from Henri Verbeet hverbeet@gmail.com 2011-10-02 08:16:06 CDT --- Makes sense to me if it works. The patch could probably do with a small explanation in a comment though.
http://bugs.winehq.org/show_bug.cgi?id=28351
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #3 from Austin English austinenglish@gmail.com 2011-10-03 17:29:27 CDT --- http://source.winehq.org/git/wine.git/commitdiff/f2044702fa442ca513a720536b8...
http://bugs.winehq.org/show_bug.cgi?id=28351
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |f2044702fa442ca513a720536b8 | |8ba77d9d4a970
http://bugs.winehq.org/show_bug.cgi?id=28351
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alexandre Julliard julliard@winehq.org 2011-10-10 13:12:03 CDT --- Closing bugs fixed in 1.3.30.