[Bug 35748] Blazing Angels 2: Secret Missions of WWII v1.01 fails with 'cannot initialize 3D engine' in 800x600 virtual desktop mode

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Sep 13 14:51:07 CDT 2015


https://bugs.winehq.org/show_bug.cgi?id=35748

Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Blazing Angels 2: cannot    |Blazing Angels 2: Secret
                   |initialize 3D engine        |Missions of WWII v1.01
                   |                            |fails with 'cannot
                   |                            |initialize 3D engine' in
                   |                            |800x600 virtual desktop
                   |                            |mode

--- Comment #9 from Anastasius Focht <focht at gmx.net> ---
Hello folks,

so you are complaining the game doesn't run in 800x600 desktop mode by default?

--- snip ---
$ pwd
/home/focht/.wine/drive_c/Program Files/Ubisoft/Blazing Angels 2 Secret
Missions of WWII/Bin

$ WINEDEBUG=+tid,+msgbox wine explorer /desktop=foo,800x600 BA2.exe 
...
0033:fixme:win:EnumDisplayDevicesW ((null),0,0x33e284,0x00000000), stub!
0033:err:x11settings:X11DRV_ChangeDisplaySettingsEx No matching mode found
1024x768x32 @75! (desktop)
0033:fixme:win:EnumDisplayDevicesW ((null),0,0x33e2b4,0x00000000), stub!
0033:err:x11settings:X11DRV_ChangeDisplaySettingsEx No matching mode found
1024x768x32 @75! (desktop)
0033:err:d3d:context_create Failed to set pixel format 29 on device context
0x60030.
0033:err:d3d:context_choose_pixel_format Can't find a suitable iPixelFormat
0033:err:d3d:context_create Failed to set pixel format 21 on device context
0xe003d.
0033:fixme:d3d:wined3d_get_format Can't find format
WINED3DFMT_R24_UNORM_X8_TYPELESS (0x49) in the format lookup table
0033:fixme:d3d:getDepthStencilBits Unsupported depth/stencil format
WINED3DFMT_UNKNOWN.
0033:err:d3d:context_create Failed to set pixel format 5 on device context
0x1003f.
0033:err:d3d:context_create Failed to set pixel format 13 on device context
0x10041.
0033:err:d3d:context_choose_pixel_format Can't find a suitable iPixelFormat
0033:err:d3d:context_create Failed to set pixel format 13 on device context
0x10043.
0033:fixme:win:EnumDisplayDevicesW ((null),0,0x33e2b4,0x00000000), stub!
0033:err:x11settings:X11DRV_ChangeDisplaySettingsEx No matching mode found
1024x768x32 @75! (desktop)
0033:err:d3d:context_create Failed to set pixel format 29 on device context
0x10045.
0033:err:d3d:context_choose_pixel_format Can't find a suitable iPixelFormat
0033:err:d3d:context_create Failed to set pixel format 21 on device context
0x20046.
0033:fixme:d3d:wined3d_get_format Can't find format
WINED3DFMT_R24_UNORM_X8_TYPELESS (0x49) in the format lookup table
0033:fixme:d3d:getDepthStencilBits Unsupported depth/stencil format
WINED3DFMT_UNKNOWN.
0033:err:d3d:context_create Failed to set pixel format 5 on device context
0x10049.
0033:err:d3d:context_create Failed to set pixel format 13 on device context
0x1004b.
0033:err:d3d:context_choose_pixel_format Can't find a suitable iPixelFormat
0033:err:d3d:context_create Failed to set pixel format 13 on device context
0x1004d.
0033:fixme:win:EnumDisplayDevicesW ((null),0,0x33e2b4,0x00000000), stub!
0033:fixme:d3d:wined3d_check_device_format_conversion wined3d 0x145da0,
adapter_idx 0, device_type WINED3D_DEVICE_TYPE_HAL, src_format
WINED3DFMT_B8G8R8A8_UNORM, dst_format WINED3DFMT_B8G8R8X8_UNORM stub!
0033:err:d3d:context_create Failed to set pixel format 29 on device context
0x1004f.
0033:err:d3d:context_choose_pixel_format Can't find a suitable iPixelFormat
0033:err:d3d:context_create Failed to set pixel format 21 on device context
0x20050.
0033:fixme:d3d:wined3d_get_format Can't find format
WINED3DFMT_R24_UNORM_X8_TYPELESS (0x49) in the format lookup table
0033:fixme:d3d:getDepthStencilBits Unsupported depth/stencil format
WINED3DFMT_UNKNOWN.
0033:err:d3d:context_create Failed to set pixel format 5 on device context
0x10053.
0033:err:d3d:context_create Failed to set pixel format 13 on device context
0x10055.
0033:err:d3d:context_choose_pixel_format Can't find a suitable iPixelFormat
0033:err:d3d:context_create Failed to set pixel format 13 on device context
0x10057.
0033:trace:msgbox:MSGBOX_OnInit L"Can not initialize 3D engine"
--- snip ---

For me it looks the game has a hard-coded initial 1024x768 at 75 setting (before
any in-game menu tweaks) which can be worked around using:

--- snip ---
$ wine explorer /desktop=foo,1024x768 BA2.exe 
--- snip ---

The requested 75hz refresh rate is ignored unless configured/forced by other
means.

Which leads to another crash that can be worked around using 'winetricks -q
d3dx9_36' (not subject to this bug)

With that override in place game starts fine:

* intro video plays
* in-game menu
* gameplay
* profit!

If you change the video resolution via in-game menu to 800x600, this also
works:

--- snip ---
$ wine explorer /desktop=foo,800x600 BA2.exe 
--- snip ---

Game forums indicate this also occurs on Windows.

http://forums.ubi.com/showthread.php/509438-Cannot-Initialize-3D-Engine-Error-Message-Assistance-Please!-Forums

http://www.thegamesmachine.it/forum/showthread.php?171810-ufficiale-Per-chi-ha-problemi-con-Blazing-Angels-2

Did you try this 800x600 after fresh installation on Windows (with same low
desktop setting)?
This bug report looks rather invalid in first place hence I'm not confirming.

Unrelated (for my documentation), ProtectionID scan:

--- snip ---
-=[ ProtectionID v0.6.6.7 DECEMBER]=-
(c) 2003-2015 CDKiLLER & TippeX
Build 24/12/14-22:48:13

Scanning -> C:\Program Files\Ubisoft\Blazing Angels 2 Secret Missions of
WWII\Bin\BA2.exe
File Type : 32-Bit Exe (Subsystem : Win GUI / 2), Size : 5216224 (04F97E0h)
Byte(s)
Compilation TimeStamp : 0x4700F756 -> Mon 01st Oct 2007 13:34:14 (GMT)
[TimeStamp] 0x4700F756 -> Mon 01st Oct 2007 13:34:14 (GMT) | PE Header | - |
Offset: 0x00000110 | VA: 0x00400110 | -
[TimeStamp] 0x4700F756 -> Mon 01st Oct 2007 13:34:14 (GMT) | DebugDirectory | -
| Offset: 0x002C5C54 | VA: 0x006C5C54 | -
-> File Appears to be Digitally Signed @ Offset 04F8000h, size : 017E0h / 06112
byte(s)
[!] Executable uses SEH Tables (/SAFESEH) (654 calculated 654 recorded... 0
invalid addresses) 
[File Heuristics] -> Flag #1 : 00000100000000001000000000000100 (0x04008004)
[Entrypoint Section Entropy] : 6.62 (section #0) ".text   " | Size : 0x2C3613
(2897427) byte(s)
[DllCharacteristics] -> Flag : (0x0000) -> NONE
[SectionCount] 4 (0x4) | ImageSize 0x59F000 (5894144) byte(s)
[VersionInfo] Company Name : Ubisoft
[VersionInfo] Product Name : Blazing Angels 2
[VersionInfo] Product Version : 1. 1. 0. 1
[VersionInfo] File Description : Blazing Angels 2
[VersionInfo] File Version : 1. 1. 0. 1
[VersionInfo] Original FileName : BA2.exe
[VersionInfo] Internal Name : Blazing Angels 2
[VersionInfo] Legal Trademarks : Blazing Angels. Ubisoft. and the Ubisoft logo
are trademarks of Ubisoft Entertainment in the U.S. and/or other countries.
[VersionInfo] Legal Copyrights : Blazing Angels™ 2: Secret Missions of WWII ©
2007 Ubisoft Entertainment. All Rights Reserved.
[Debug Info] (record 1 of 1) (file offset 0x2C5C50)
Characteristics : 0x0 | TimeDateStamp : 0x4700F756 (Mon 01st Oct 2007 13:34:14
(GMT)) | MajorVer : 0 / MinorVer : 0 -> (0.0)
Type : 2 (0x2) -> CodeView | Size : 0x4D (77) 
AddressOfRawData : 0x384E18 | PointerToRawData : 0x384E18
CvSig : 0x53445352 | SigGuid 63A24778-4EDA-4E4D-882CB544AF04FD4B
Age : 0x1 | Pdb : D:\Projects\Ba2_PC\build\Main\Release_Win32\Main.pdb
[CdKeySerial] found "Unregistered" @ VA: 0x00369269 / Offset: 0x00369269
[CdKeySerial] found "Unregistered" @ VA: 0x0036B970 / Offset: 0x0036B970
[CompilerDetect] -> Visual C++ 8.0 (Visual Studio 2005)
[!] File appears to have no protection or is using an unknown protection
- Scan Took : 1.429 Second(s) [000000623h (1571) tick(s)] [499 of 573 scan(s)
done]
--- snip ---

$ wine --version
wine-1.7.51-102-ga7e294c

Regards

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


More information about the wine-bugs mailing list