Discussion:
[Wine] DirectX troubles - Running Civilisation IV: Beyond the Sword
WarKirby
2010-07-14 04:17:46 UTC
Permalink
Initialize Renderer failed. Check DirectX Installation, Latest Graphics Drivers and Graphics Settings
Parameters:
-width = 1024
-height = 768
-flags = 0xc
-hwnd = 0x21003a
-adaptrid = 0
-deviceid = 1
Error:

-------------------------------

mscorsvw.exe

Hello folks.

I'm trying to get the game Civ IV: BTS working under wine. All legal, from-disk copies.

First I've installed base Civ IV
Then I've installed the Beyond The Sword expansion pack, over it.
Then I've installed the BTS 3.19 patch, which has no copy protection because the developers chose to disable it in an update, so no cracked exe is needed.

I've been going on this for advice. Although it only covers the base game, it's as close as I can seem to find and should theoretically work: http://tombuntu.com/index.php/2009/03/10/civilization-iv-on-linux-with-wine-1116/

I've gotten it all installed without issue, then installed the required dlls and set msxml3 to native as required, but I can't seem to successfully start the game. When I attempt to do so by simply double clicking the exe, it loads for a minute or two then terminates with a program error without ever reaching the main menu.

Code:

Initialize Renderer failed. Check DirectX Installation, Latest Graphics Drivers and Graphics Settings
Parameters:
-width = 1024
-height = 768
-flags = 0xc
-hwnd = 0x21003a
-adaptrid = 0
-deviceid = 1
Error:


That's the end of the error message, there's nothing after. Or perhaps it gets cut off, but there's no scrollbar.

I've tried running it in the console though wine too. The resulting output is this:


Code:
warkirby at magotek-alpha:/media/Drive X/Games/Sid Meier's Civilisation IV(LINUX)/Beyond the Sword$ wine Civ4BeyondSword.exe
err:process:__wine_kernel_init boot event wait timed out
fixme:system:SystemParametersInfoW Unimplemented action: 55 (SPI_SETMOUSEKEYS)
fixme:system:SystemParametersInfoW Unimplemented action: 59 (SPI_SETSTICKYKEYS)
fixme:cursor:CURSORICON_CreateIconFromANI Loading all frames for .ani cursors not implemented.
err:ole:CoGetClassObject class {9a5ea990-3034-4d6f-9128-01f3c61022bc} not registered
err:ole:CoGetClassObject no class object {9a5ea990-3034-4d6f-9128-01f3c61022bc} could be created for context 0x1
fixme:cursor:CURSORICON_CreateIconFromANI Loading all frames for .ani cursors not implemented.
err:menubuilder:Process_Link unable to load L"Z:\\Games\\Sid Meier's Civilisation IV(LINUX)\\Beyond the Sword\\CivilizationIV.ini.lnk"
err:menubuilder:wWinMain failed to build menu item for L"Z:\\Games\\Sid Meier's Civilisation IV(LINUX)\\Beyond the Sword\\CivilizationIV.ini.lnk"
fixme:cursor:CURSORICON_CreateIconFromANI Loading all frames for .ani cursors not implemented.
fixme:cursor:CURSORICON_CreateIconFromANI Loading all frames for .ani cursors not implemented.
fixme:cursor:CURSORICON_CreateIconFromANI Loading all frames for .ani cursors not implemented.
fixme:cursor:CURSORICON_CreateIconFromANI Loading all frames for .ani cursors not implemented.
fixme:cursor:CURSORICON_CreateIconFromANI Loading all frames for .ani cursors not implemented.
fixme:wtsapi:WTSRegisterSessionNotification Stub 0x140028 0x00000000
fixme:cursor:CURSORICON_CreateIconFromANI Loading all frames for .ani cursors not implemented.
fixme:cursor:CURSORICON_CreateIconFromANI Loading all frames for .ani cursors not implemented.
fixme:cursor:CURSORICON_CreateIconFromANI Loading all frames for .ani cursors not implemented.
fixme:mixer:ALSA_MixerInit No master control found on MPU-401 UART, disabling mixer
fixme:dsalsa:IDsDriverBufferImpl_SetVolumePan (0x15f618,0x15f518): stub
fixme:cursor:CURSORICON_CreateIconFromANI Loading all frames for .ani cursors not implemented.
fixme:cursor:CURSORICON_CreateIconFromANI Loading all frames for .ani cursors not implemented.
'import site' failed; use -v for traceback
fixme:cursor:CURSORICON_CreateIconFromANI Loading all frames for .ani cursors not implemented.
fixme:cursor:CURSORICON_CreateIconFromANI Loading all frames for .ani cursors not implemented.
fixme:win:EnumDisplayDevicesW ((null),0,0x32ed18,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x32f250,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x32f25c,0x00000000), stub!
err:xrandr:X11DRV_XRandR_SetCurrentMode Resolution change not successful -- perhaps display has changed?
err:d3d9:device_parent_CreateSwapChain (0x1ba354) CreateAdditionalSwapChain failed, returning 0x8876086a
err:xrandr:X11DRV_XRandR_SetCurrentMode Resolution change not successful -- perhaps display has changed?
err:d3d9:device_parent_CreateSwapChain (0x1ba354) CreateAdditionalSwapChain failed, returning 0x8876086a
err:xrandr:X11DRV_XRandR_SetCurrentMode Resolution change not successful -- perhaps display has changed?
err:d3d9:device_parent_CreateSwapChain (0x1ba354) CreateAdditionalSwapChain failed, returning 0x8876086a
err:xrandr:X11DRV_XRandR_SetCurrentMode Resolution change not successful -- perhaps display has changed?
err:d3d9:device_parent_CreateSwapChain (0x1ba32c) CreateAdditionalSwapChain failed, returning 0x8876086a
err:xrandr:X11DRV_XRandR_SetCurrentMode Resolution change not successful -- perhaps display has changed?
err:d3d9:device_parent_CreateSwapChain (0x1ba32c) CreateAdditionalSwapChain failed, returning 0x8876086a
err:xrandr:X11DRV_XRandR_SetCurrentMode Resolution change not successful -- perhaps display has changed?
err:d3d9:device_parent_CreateSwapChain (0x1ba32c) CreateAdditionalSwapChain failed, returning 0x8876086a
err:xrandr:X11DRV_XRandR_SetCurrentMode Resolution change not successful -- perhaps display has changed?
err:d3d9:device_parent_CreateSwapChain (0x1ba32c) CreateAdditionalSwapChain failed, returning 0x8876086a
err:xrandr:X11DRV_XRandR_SetCurrentMode Resolution change not successful -- perhaps display has changed?
err:d3d9:device_parent_CreateSwapChain (0x1ba32c) CreateAdditionalSwapChain failed, returning 0x8876086a
err:xrandr:X11DRV_XRandR_SetCurrentMode Resolution change not successful -- perhaps display has changed?
err:d3d9:device_parent_CreateSwapChain (0x1ba32c) CreateAdditionalSwapChain failed, returning 0x8876086a
err:xrandr:X11DRV_XRandR_SetCurrentMode Resolution change not successful -- perhaps display has changed?
err:d3d9:device_parent_CreateSwapChain (0x182b5c) CreateAdditionalSwapChain failed, returning 0x8876086a
err:xrandr:X11DRV_XRandR_SetCurrentMode Resolution change not successful -- perhaps display has changed?
err:d3d9:device_parent_CreateSwapChain (0x182b5c) CreateAdditionalSwapChain failed, returning 0x8876086a
err:xrandr:X11DRV_XRandR_SetCurrentMode Resolution change not successful -- perhaps display has changed?
err:d3d9:device_parent_CreateSwapChain (0x182b5c) CreateAdditionalSwapChain failed, returning 0x8876086a
err:xrandr:X11DRV_XRandR_SetCurrentMode Resolution change not successful -- perhaps display has changed?
err:d3d9:device_parent_CreateSwapChain (0x182b84) CreateAdditionalSwapChain failed, returning 0x8876086a
err:xrandr:X11DRV_XRandR_SetCurrentMode Resolution change not successful -- perhaps display has changed?
err:d3d9:device_parent_CreateSwapChain (0x182b84) CreateAdditionalSwapChain failed, returning 0x8876086a
err:xrandr:X11DRV_XRandR_SetCurrentMode Resolution change not successful -- perhaps display has changed?
err:d3d9:device_parent_CreateSwapChain (0x182b84) CreateAdditionalSwapChain failed, returning 0x8876086a
err:xrandr:X11DRV_XRandR_SetCurrentMode Resolution change not successful -- perhaps display has changed?
err:d3d9:device_parent_CreateSwapChain (0x182b5c) CreateAdditionalSwapChain failed, returning 0x8876086a
err:xrandr:X11DRV_XRandR_SetCurrentMode Resolution change not successful -- perhaps display has changed?
err:d3d9:device_parent_CreateSwapChain (0x182b5c) CreateAdditionalSwapChain failed, returning 0x8876086a
err:xrandr:X11DRV_XRandR_SetCurrentMode Resolution change not successful -- perhaps display has changed?
err:d3d9:device_parent_CreateSwapChain (0x182b5c) CreateAdditionalSwapChain failed, returning 0x8876086a
err:xrandr:X11DRV_XRandR_SetCurrentMode Resolution change not successful -- perhaps display has changed?
err:d3d9:device_parent_CreateSwapChain (0x182b5c) CreateAdditionalSwapChain failed, returning 0x8876086a
err:xrandr:X11DRV_XRandR_SetCurrentMode Resolution change not successful -- perhaps display has changed?
err:d3d9:device_parent_CreateSwapChain (0x182b5c) CreateAdditionalSwapChain failed, returning 0x8876086a
err:xrandr:X11DRV_XRandR_SetCurrentMode Resolution change not successful -- perhaps display has changed?
err:d3d9:device_parent_CreateSwapChain (0x182b5c) CreateAdditionalSwapChain failed, returning 0x8876086a
err:xrandr:X11DRV_XRandR_SetCurrentMode Resolution change not successful -- perhaps display has changed?
err:d3d9:device_parent_CreateSwapChain (0x182b5c) CreateAdditionalSwapChain failed, returning 0x8876086a
err:xrandr:X11DRV_XRandR_SetCurrentMode Resolution change not successful -- perhaps display has changed?
err:d3d9:device_parent_CreateSwapChain (0x182b5c) CreateAdditionalSwapChain failed, returning 0x8876086a
err:xrandr:X11DRV_XRandR_SetCurrentMode Resolution change not successful -- perhaps display has changed?
err:d3d9:device_parent_CreateSwapChain (0x1d6fa4) CreateAdditionalSwapChain failed, returning 0x8876086a
err:xrandr:X11DRV_XRandR_SetCurrentMode Resolution change not successful -- perhaps display has changed?
err:d3d9:device_parent_CreateSwapChain (0x1d7004) CreateAdditionalSwapChain failed, returning 0x8876086a
err:xrandr:X11DRV_XRandR_SetCurrentMode Resolution change not successful -- perhaps display has changed?
err:d3d9:device_parent_CreateSwapChain (0x1d7004) CreateAdditionalSwapChain failed, returning 0x8876086a
err:xrandr:X11DRV_XRandR_SetCurrentMode Resolution change not successful -- perhaps display has changed?
err:d3d9:device_parent_CreateSwapChain (0x1d7004) CreateAdditionalSwapChain failed, returning 0x8876086a
err:xrandr:X11DRV_XRandR_SetCurrentMode Resolution change not successful -- perhaps display has changed?
err:d3d9:device_parent_CreateSwapChain (0x1d7004) CreateAdditionalSwapChain failed, returning 0x8876086a
err:xrandr:X11DRV_XRandR_SetCurrentMode Resolution change not successful -- perhaps display has changed?
err:d3d9:device_parent_CreateSwapChain (0x1d7004) CreateAdditionalSwapChain failed, returning 0x8876086a
err:xrandr:X11DRV_XRandR_SetCurrentMode Resolution change not successful -- perhaps display has changed?
err:d3d9:device_parent_CreateSwapChain (0x1d7004) CreateAdditionalSwapChain failed, returning 0x8876086a
err:xrandr:X11DRV_XRandR_SetCurrentMode Resolution change not successful -- perhaps display has changed?
err:d3d9:device_parent_CreateSwapChain (0x1d7004) CreateAdditionalSwapChain failed, returning 0x8876086a
err:xrandr:X11DRV_XRandR_SetCurrentMode Resolution change not successful -- perhaps display has changed?
err:d3d9:device_parent_CreateSwapChain (0x1d7004) CreateAdditionalSwapChain failed, returning 0x8876086a
err:xrandr:X11DRV_XRandR_SetCurrentMode Resolution change not successful -- perhaps display has changed?
err:d3d9:device_parent_CreateSwapChain (0x1d7004) CreateAdditionalSwapChain failed, returning 0x8876086a
err:mmtime:TIME_MMTimeStop Timer still active?!
dimesio
2010-07-14 15:35:20 UTC
Permalink
Post by WarKirby
I've been going on this for advice. Although it only covers the base game, it's as close as I can seem to find and should theoretically work: http://tombuntu.com/index.php/2009/03/10/civilization-iv-on-linux-with-wine-1116/
Outside howtos aren't supported here. http://wiki.winehq.org/FAQ#head-05f345e881bfc31ae77e902bd577dccba0ba4112

You didn't say what Wine version. I've never been able to reproduce it myself, but some people have apparently had problems with BTS in some Wine verions. http://bugs.winehq.org/show_bug.cgi?id=18873 So if you're not using the latest development release, upgrade.

FWIW, I used winetricks msxml3 d3dx9, and set it to run in a virtual desktop, and BTS works fine here. My version is the Civ IV Complete, no-DRM dvd.
WarKirby
2010-07-14 17:21:10 UTC
Permalink
Hi Dimesio, thank you for the reply.

Is there some internal how-to on getting this game working? A man has to work with what he's got.

My wine version is 1.2 rc6 according to winecfg.

I was unable to get winetricks working. IIRC it gave an error about not being able to find the DOS directory. Instead, I installed the dlls as the linked page mentions - by downloading the linked files and placing them in the game directory. Have I done something wrong here?

I just gave the Virtual Desktop a try. Same error as before.My version is Civilisation IV and Beyond the Sword on seperate disks.

The popup box cites "Initialize renderer failed" which would seem to indicate an issue with direct x. Does anyone have suggestions on how to improve/fix this?
dimesio
2010-07-14 19:00:52 UTC
Permalink
Post by WarKirby
Hi Dimesio, thank you for the reply.
Is there some internal how-to on getting this game working? A man has to work with what he's got.
My wine version is 1.2 rc6 according to winecfg.
I was unable to get winetricks working. IIRC it gave an error about not being able to find the DOS directory. Instead, I installed the dlls as the linked page mentions - by downloading the linked files and placing them in the game directory. Have I done something wrong here?
I just gave the Virtual Desktop a try. Same error as before.My version is Civilisation IV and Beyond the Sword on seperate disks.
The popup box cites "Initialize renderer failed" which would seem to indicate an issue with direct x. Does anyone have suggestions on how to improve/fix this?
There's a reason we don't support outside howtos: they are often wrong. Msxml3 can't simply be copied, it has to be installed. Winetricks does it properly. The problem you had with winetricks suggests that there's something wrong with your wineprefix or the way you are running winetricks.

Follow the instructions here for winetricks: http://wiki.winehq.org/winetricks

Start over with a clean wineprefix. Delete or rename ~/.wine, then run winecfg to force creation of a new wineprefix. If there are no problems with that, use winetricks to install msxml3 and d3dx9. If winetricks fails again on the clean wineprefix, post the terminal output.

If it works, then install Civ IV and BTS. Consult the AppDB for any specific instructions for your version of the game. http://appdb.winehq.org/objectManager.php?sClass=application&iId=2514
WarKirby
2010-07-14 20:08:03 UTC
Permalink
I have done a new wineprefix as stated. Winetricks worked correctly, and I installed d3dx9_26 and msxml3.

Civilisation still will not start, though. So I next tried installing:
d3dx9
d3dx9_28
directx9
msxml4

Still, not working. The error message is the same as it ever was, about failing to initialise the renderer.

I installed Civ4 on a different drive, not within the wine directory. So I did not reinstall it. Does this seem a necessary thing to do? I have no issues running Poser 7 and various other wine apps from additional drives.

The appdb does not appear too helpful: http://appdb.winehq.org/objectManager.php?sClass=version&iId=16878

I await farther instruction. Any other ideas?
dimesio
2010-07-14 20:19:10 UTC
Permalink
Post by WarKirby
I have done a new wineprefix as stated. Winetricks worked correctly, and I installed d3dx9_26 and msxml3.
d3dx9
d3dx9_28
directx9
msxml4
Still, not working. The error message is the same as it ever was, about failing to initialise the renderer.
I installed Civ4 on a different drive, not within the wine directory. So I did not reinstall it. Does this seem a necessary thing to do? I have no issues running Poser 7 and various other wine apps from additional drives.
The appdb does not appear too helpful: http://appdb.winehq.org/objectManager.php?sClass=version&iId=16878
I await farther instruction. Any other ideas?
Run it from a terminal and post the terminal output, including the command you use to start it. http://wiki.winehq.org/FAQ#run_from_terminal
dimesio
2010-07-14 20:23:34 UTC
Permalink
Post by WarKirby
I installed Civ4 on a different drive, not within the wine directory. So I did not reinstall it. Does this seem a necessary thing to do? I have no issues running Poser 7 and various other wine apps from additional drives.
Just noticed this. Being on a different drive should not be a problem, but not reinstalling after having deleted the original wineprefix would be, because any registry entries made by the installer would be gone. So reinstall.
WarKirby
2010-07-14 22:16:23 UTC
Permalink
Ok, reinstalled Civ. Not installed the expansions yet, going to see if we can get the base game working first.

Log from starting it in console:


Code:
warkirby at magotek-alpha:/media/Drive X/Games/Sid Meier's Civilisation IV(LINUX)$ wine Civilization4.exe
fixme:service:QueryServiceObjectSecurity 0x1331f0 4 0x133760 0 0x32eeb8 - semi-stub
fixme:service:QueryServiceObjectSecurity 0x1331f0 4 0x133760 28 0x32eeb8 - semi-stub
fixme:advapi:SetEntriesInAclA 1 0x32ee48 0x133774 0x32eeb4
fixme:service:SetServiceObjectSecurity 0x1331f0 4 0x32ee34
fixme:system:SystemParametersInfoW Unimplemented action: 55 (SPI_SETMOUSEKEYS)
fixme:system:SystemParametersInfoW Unimplemented action: 59 (SPI_SETSTICKYKEYS)
fixme:cursor:CURSORICON_CreateIconFromANI Loading all frames for .ani cursors not implemented.
fixme:font:WineEngRemoveFontResourceEx (L"Z:\\media\\Drive X\\Games\\Sid Meier's Civilisation IV(LINUX)\\assets\\res\\fonts\\sylfaen.ttf", 0, (nil)): stub




The initial loading floater appears, but the engine never seems to initialise, and it terminates silently before the main menu comes up.
Any idea what's wrong here? it looks like a font issue now, so I tried installing Corefonts through winetricks, but that hasn't helped
dimesio
2010-07-15 03:21:55 UTC
Permalink
Post by WarKirby
Ok, reinstalled Civ. Not installed the expansions yet, going to see if we can get the base game working first.
warkirby at magotek-alpha:/media/Drive X/Games/Sid Meier's Civilisation IV(LINUX)$ wine Civilization4.exe
fixme:service:QueryServiceObjectSecurity 0x1331f0 4 0x133760 0 0x32eeb8 - semi-stub
fixme:service:QueryServiceObjectSecurity 0x1331f0 4 0x133760 28 0x32eeb8 - semi-stub
fixme:advapi:SetEntriesInAclA 1 0x32ee48 0x133774 0x32eeb4
fixme:service:SetServiceObjectSecurity 0x1331f0 4 0x32ee34
fixme:system:SystemParametersInfoW Unimplemented action: 55 (SPI_SETMOUSEKEYS)
fixme:system:SystemParametersInfoW Unimplemented action: 59 (SPI_SETSTICKYKEYS)
fixme:cursor:CURSORICON_CreateIconFromANI Loading all frames for .ani cursors not implemented.
fixme:font:WineEngRemoveFontResourceEx (L"Z:\\media\\Drive X\\Games\\Sid Meier's Civilisation IV(LINUX)\\assets\\res\\fonts\\sylfaen.ttf", 0, (nil)): stub
The initial loading floater appears, but the engine never seems to initialise, and it terminates silently before the main menu comes up.
Any idea what's wrong here? it looks like a font issue now, so I tried installing Corefonts through winetricks, but that hasn't helped
It's not the font; I get the same fixme, and Civ IV runs fine. There's nothing obvious in this console output.

What graphics card and driver do you have?
WarKirby
2010-07-15 04:07:10 UTC
Permalink
Card: Nvidia 8800 GTS 512
Driver: Nvidia Accelerated Graphics Driver (version 185)

the above driver version is what's shown in the hardware drivers section under the system menu
dimesio
2010-07-15 04:12:44 UTC
Permalink
Post by WarKirby
Card: Nvidia 8800 GTS 512
Driver: Nvidia Accelerated Graphics Driver (version 185)
the above driver version is what's shown in the hardware drivers section under the system menu
Upgrade your graphics driver. There's a known bug in the 185 series that Wine can trigger.
WarKirby
2010-07-15 04:24:05 UTC
Permalink
I installed it though the hardware drivers menu mentioned previously. There are no newer drivers listed there, only an older one(173)

Is there a special method to upgrading video drivers on ubuntu? Is it worth trying the downgrade?
dimesio
2010-07-15 04:49:14 UTC
Permalink
Post by WarKirby
I installed it though the hardware drivers menu mentioned previously. There are no newer drivers listed there, only an older one(173)
Is there a special method to upgrading video drivers on ubuntu? Is it worth trying the downgrade?
The 173 is the legacy driver; it's for older cards. Ubuntu should have newer drivers for your card. The latest is 235.36. I don't use Ubuntu, though, so I can't help you with where to find it. Ask on the Ubuntu forum.
WarKirby
2010-07-18 21:12:35 UTC
Permalink
Ok, thank you. I've updated video drivers and now all works as intended. Hooray for Civ
Loading...