http://bugs.winehq.org/show_bug.cgi?id=30137
Bug #: 30137 Summary: Depth Hunter unable to take photos without native d3dx9_36 (D3DXSaveSurfaceToFileA not implemented) Product: Wine Version: 1.4 Platform: x86 URL: http://www.biart7.com/dh_demo.zip OS/Version: Linux Status: NEW Keywords: download Severity: minor Priority: P2 Component: directx-d3dx9 AssignedTo: wine-bugs@winehq.org ReportedBy: gyebro69@gmail.com CC: wine-bugs@winehq.org Classification: Unclassified
Depth Hunter is an underwater fishing game. The game starts and runs fine using only built-in d3dx9* dlls, but taking photos in the game doesn't work without native d3dx9_36. There is no error message or crash, photos are simply not saved.
These messages are showing up in the console when I take a picture in the game:
fixme:d3dx:D3DXSaveSurfaceToFileA (0x32fa58, 0, 0x29e9520, (nil), 0x32f848): stub fixme:d3dx:D3DXSaveSurfaceToFileA (0x32f858, 0, 0x2745b40, (nil), 0x32f838): stub
Steps to reproduce the problem with the demo version: 1. winetricks mfc42 2. install the demo. At the end of installation choose to *not* to install DirectX. 3. start the demo with depthhunter.exe. Start a new game. While in the game press 'r' to bring up the photo camera and press the left mouse button to take a photo. Although the demo version lacks the in-game photo gallery feature, you can find the pictures in ~/DepthHunter/Photos directory. Pictures are in bmp format.
Native d3dx9_36.dll is a workaround.
http://bugs.winehq.org/show_bug.cgi?id=30137
--- Comment #1 from Józef Kucia joseph.kucia@gmail.com 2012-04-29 08:04:07 CDT --- Created attachment 39958 --> http://bugs.winehq.org/attachment.cgi?id=39958 Implement D3DXSaveSurfaceToFile
http://bugs.winehq.org/show_bug.cgi?id=30137
--- Comment #2 from GyB gyebro69@gmail.com 2012-04-29 14:18:02 CDT --- (In reply to comment #1)
Created attachment 39958 [details] Implement D3DXSaveSurfaceToFile
Thanks, with the attached patch photos are saved on disk in bmp format. However, they don't appear in the game photo album without native d3dx9_36. There is nothing relevant in the terminal when opening the photo album, but the game's own log file shows these errors:
Can't load image texture c:\users\gyebro\my documents\depthhunter\photos\small\photo_t_0000.bmp 0x8876086a Can't render image: TextureInstance*
This could be a different problem though.
http://bugs.winehq.org/show_bug.cgi?id=30137
Józef Kucia joseph.kucia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |joseph.kucia@gmail.com
--- Comment #3 from Józef Kucia joseph.kucia@gmail.com 2012-05-07 14:49:21 CDT --- Fixed by commit http://source.winehq.org/git/wine.git/commit/f0bb42551615f1601c318be81d04d5a...
http://bugs.winehq.org/show_bug.cgi?id=30137
GyB gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |f0bb42551615f1601c318be81d0 | |4d5af6fb95806 Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #4 from GyB gyebro69@gmail.com 2012-05-07 21:35:48 CDT --- Fixed
http://bugs.winehq.org/show_bug.cgi?id=30137
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alexandre Julliard julliard@winehq.org 2012-05-11 13:22:37 CDT --- Closing bugs fixed in 1.5.4.