DirectX troubles - Running Civilisation IV: Beyond the Sword

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
WarKirby
Level 2
Level 2
Posts: 12
Joined: Sat Feb 27, 2010 10:02 am

DirectX troubles - Running Civilisation IV: Beyond the Sword

Post by WarKirby »

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/1 ... 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: Select all

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: Select all

warkirby@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?!
User avatar
dimesio
Moderator
Moderator
Posts: 13371
Joined: Tue Mar 25, 2008 10:30 pm

Re: DirectX troubles - Running Civilisation IV: Beyond the S

Post by dimesio »

WarKirby wrote: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/1 ... wine-1116/
Outside howtos aren't supported here. http://wiki.winehq.org/FAQ#head-05f345e ... cba0ba4112

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
Level 2
Level 2
Posts: 12
Joined: Sat Feb 27, 2010 10:02 am

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?
User avatar
dimesio
Moderator
Moderator
Posts: 13371
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

WarKirby wrote: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.p ... n&iId=2514
WarKirby
Level 2
Level 2
Posts: 12
Joined: Sat Feb 27, 2010 10:02 am

Post by WarKirby »

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.p ... &iId=16878

I await farther instruction. Any other ideas?
User avatar
dimesio
Moderator
Moderator
Posts: 13371
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

WarKirby wrote: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.p ... &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
User avatar
dimesio
Moderator
Moderator
Posts: 13371
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

WarKirby wrote: 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
Level 2
Level 2
Posts: 12
Joined: Sat Feb 27, 2010 10:02 am

Post by WarKirby »

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: Select all

warkirby@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
User avatar
dimesio
Moderator
Moderator
Posts: 13371
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

WarKirby wrote: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: Select all

warkirby@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
Level 2
Level 2
Posts: 12
Joined: Sat Feb 27, 2010 10:02 am

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
User avatar
dimesio
Moderator
Moderator
Posts: 13371
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

WarKirby wrote: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
Level 2
Level 2
Posts: 12
Joined: Sat Feb 27, 2010 10:02 am

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?
User avatar
dimesio
Moderator
Moderator
Posts: 13371
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

WarKirby wrote: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
Level 2
Level 2
Posts: 12
Joined: Sat Feb 27, 2010 10:02 am

Post by WarKirby »

Ok, thank you. I've updated video drivers and now all works as intended. Hooray for Civ
Locked