The forum

Combat Mission 2 Barbarossa to Berlin

could not intialize direct3d

Author Replies
TillEulenspiegel Tuesday 30 April 2019 at 23:44
TillEulenspiegelAnonymous

Hello everybody!

 

I've installed Combat mission 2; Barbarossa to Berlin from Battlefront, and i can't make it run.

I've always get this message "could not initialize direct3d".

Here the log:

 - Running wine- CombatMission2.exe (Working directory : /home/hugo/.PlayOnLinux/wineprefix/CMBB/drive_c/Program Files/Combat Mission 2)
0009:fixme:win:EnumDisplayDevicesW ((null),0,0x32f444,0x00000000), stub!
0009:fixme:win:EnumDisplayDevicesW ((null),0,0x32f054,0x00000000), stub!
0009:fixme:win:EnumDisplayDevicesW ((null),0,0x32f054,0x00000000), stub!
0009:fixme:ddraw:ddraw7_Initialize Ignoring guid {aeb2cdd4-6e41-43ea-941c-8361cc760781}.
0009:fixme:ddraw:DirectDrawEnumerateExA flags 0x00000004 not handled
0009:fixme:win:EnumDisplayDevicesW ((null),0,0x32f444,0x00000000), stub!
0009:fixme:win:EnumDisplayDevicesW ((null),0,0x32f714,0x00000000), stub!
0009:fixme:ddraw:ddraw7_FlipToGDISurface iface 0x1711d8 stub!
0009:fixme:win:EnumDisplayDevicesW ((null),0,0x32f714,0x00000000), stub!
0009:fixme:ddraw:ddraw7_Initialize Ignoring guid {aeb2cdd4-6e41-43ea-941c-8361cc760781}.
0009:fixme:ddraw:ddraw7_FlipToGDISurface iface 0x1540b8 stub!
0009:fixme:win:EnumDisplayDevicesW ((null),0,0x32f714,0x00000000), stub!
0009:fixme:ddraw:ddraw7_FlipToGDISurface iface 0x1540b8 stub!
0009:fixme:win:EnumDisplayDevicesW ((null),0,0x32f714,0x00000000), stub!
0009:fixme:ddraw:ddraw7_Initialize Ignoring guid {aeb2cdd4-6e41-43ea-941c-8361cc760781}.
0009:fixme:ddraw:ddraw7_FlipToGDISurface iface 0x1540b8 stub!
0009:fixme:win:EnumDisplayDevicesW ((null),0,0x32f714,0x00000000), stub!
0009:fixme:ddraw:ddraw7_FlipToGDISurface iface 0x1540b8 stub!
0009:fixme:win:EnumDisplayDevicesW ((null),0,0x32f714,0x00000000), stub!
0009:fixme:ddraw:ddraw7_Initialize Ignoring guid {aeb2cdd4-6e41-43ea-941c-8361cc760781}.
0009:fixme:ddraw:ddraw7_FlipToGDISurface iface 0x1540b8 stub!
0009:fixme:win:EnumDisplayDevicesW ((null),0,0x32f714,0x00000000), stub!
0009:fixme:ddraw:ddraw7_FlipToGDISurface iface 0x1540b8 stub!

I tried many directx versions (d3dx9 and now d3dx10_1) and it never works.

How could i do?

 

My computer:

laptop Dell XPS m1330 fr

Core2Duo T7500

RAM 4 GO

nvidia GeForece M8400 GS with nouveau driver

ubuntu 18;04.2 LTS  Bionic with xfce (xubuntu)

wine version 4.0

If someone can help me, thanks!

Dadu042 Wednesday 1 May 2019 at 9:07
Dadu042

In this page : http://wiki.playonlinux.com/index.php/Manual_Installations 
the step #1 show very bad reports on appdb.winehq.org frown

However as this is a 2002 game, perhaps it may run with some tricks (POL functions) or a newer Wine version.

Edited by Dadu042

Dadu042 Sunday 19 May 2019 at 19:01
Dadu042

I tried, and have the same problem (with Wine 4.1 and 4.8, with and without Dx3d9). sad

"Could not initialize Direct3D graphics. <OK>"

 

The script I wrote :

#!/usr/bin/env playonlinux-bash
# Date : (2019-05-19 18-12)
# Last revision : (2019-05-19 18-12)
# Wine version used : see below
# Distribution used to test : Ubuntu 19.04 x64
# Script licence : GPL3
# Program licence : Retail
#
# Playonlinux version used : 4.3.4
#
# Game version tested: v1.03 (april 2006)
#
# This game is based on DirectX 7.

[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Combat Mission 2 Barbarossa"
PREFIX="cm2b"
WORKING_WINE_VERSION="4.8"
AUTHOR="Dadu042"
EDITOR="CDV"
GAME_URL="https://en.wikipedia.org/wiki/Combat_Mission_II:_Barbarossa_to_Berlin"
  
POL_SetupWindow_Init
POL_Debug_Init
  
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
  
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$TITLE"

Set_OS "winxp"

POL_SetupWindow_VMS "16"

# Useless ?
# POL_Call POL_Install_d3dx9

#######################################
# Create a 'virtual desktop' (window) #
#######################################
 
# Without that, this game crash the OS screen resolution (tested with Ubuntu 19.04)
 
POL_SetupWindow_menu_list "$(eval_gettext "Choose the game resolution")" "$TITLE" "800x600-1152x864-1024x768-1280x720-1280x800-1280x900-1280x1024-1360x768-1440x900-1400x1050-1600x900-1600x1024-1680x1050-1920x1080" "-" "800x600"
   
resolution="$APP_ANSWER"
WIDTH="$(echo $resolution | cut -d"x" -f1)"
HEIGHT="$(echo $resolution | cut -d"x" -f2)"
 
Set_Desktop "On" "$WIDTH" "$HEIGHT"
Set_WineWindowTitle "$TITLE"

###############
# Go          #
###############

POL_SetupWindow_InstallMethod "LOCAL,CD"

POL_SetupWindow_message  "Please note: Do not run the game at the end of the installation, finish first.\n" "$TITLE"

if [ "$INSTALL_METHOD" == "LOCAL" ]; then
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        POL_Wine start /unix "$SETUP_EXE"
        POL_Wine_WaitExit "$TITLE"
        cd "$POL_System_TmpDir"
else
        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "setup.exe"
        POL_Wine start /unix "$CDROM/setup.exe"
        POL_Wine_WaitExit "setup.exe"
        cd "$POL_System_TmpDir"
fi

POL_Shortcut "Barbarossa to Berlin.exe" "$TITLE" ""

POL_Shortcut_Document "$TITLE" "CMBB Manual.pdf"


POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Edited by Dadu042