Tombuntu

Civilization IV on Linux, Updated How-to

This guide is now out of date. An updated post is now available.

This is the second edition of my Civilization IV (Civ 4) on Linux how-to. With this guide you can run Civ 4 almost flawlessly on Ubuntu or any other Linux distribution using Wine.

At the time when Civ 4 was released, DirectX 9 was not well enough supported in Wine to run it. In the first how-to I got Civ 4 running just after DX9 support was added to Wine. Since then Wine has continued to improve and I got a computer with a better Nvidia graphics card.

In this how-to I am using an Nvidia Geforce 8600GT graphics card, Wine version 0.9.44, and Ubuntu 7.10.

You should be familiar with the terminal and know basic Wine usage. When I say to run something in Wine you have to cd into the directory and run wine filename.exe.

This is a screenshot from Civ 4 running on Ubuntu Linux:

Civilization 4

The game runs well, except for these issues:

Here are the steps to install and set up Civ 4:

  1. Some of the recent versions of Wine have broken support for Civ 4. The latest version that works well is Wine 0.9.44. Ubuntu uses can grab a DEB package from GetDeb. I have used this Wine package in Ubuntu 7.04 and 7.10 and it works fine in both.
  2. Wine has difficulty with switching CDs. The second Civ 4 disk contains a single CAB file. Copy this file off the disk on to your hard drive.
  3. Put in the first CD and run the installer with Wine. Click cancel if the DirectX setup wizard launches. When the installer asks for the second CD, give it the location on your hard drive of the CAB file. The installer should finish successfully.
  4. Now you can patch the game to version 1.61. Download the patch from Civ 4 site. Run the executable with Wine, and tell it not to install Xfire. There will be an error at the end of the patching that is safe to ignore.
  5. There are four more files you need: d3dx9_26.dll, msxml3.dll, msxml3r.dll, and a cracked executable (Wine does not support the copy protection). Copy the DLLs into the Civ 4 directory. Replace the Civ 4 executable with the cracked one.
  6. I would recommend rebooting the system at this point to make sure the installer or patcher are not still running.
  7. Run winecfg, and add an override for msxml3 (native, builtin). Under the graphics tab, turn off “Emulate a virtual desktop”, set vertex shaders to none, and turn on pixel shaders. These are the settings that worked best for me.
  8. Now you need to run Civ 4 to get it to create its configuration file. Run the Civ 4 executable with Wine. When it reaches the menu, click exit.
  9. Open the CivilizationIV.ini file in a text editor. It should be located in /home/username/My Games/. Find the EnableVoice line and change the value to 0 to fix the audio. Set the ScreenHeight and ScreenWidth to your screen’s height and width.
  10. Run Civ 4 again and it should start with the correct resolution. You can go to the graphics settings and turn up the graphics effects now, just don’t adjust the screen resolution in game.

You are ready to play!

Archived Comments

engambament

It works also with cedega. I am a civilization fan and it is the first game installed after upgrading to gutsy.

Dan Kegel

Did you try ejecting the CD with “wine eject”?
That often does the trick.

Tom

Dan Kegel,
Yes, I tried “wine eject”. It ejects the CD but causes other problems.

=w=

umm. Step 5 lists the requirement of a cracked executable. Am I supposed to be able to summon this file out of thin air, or does it exist somewhere you can point me to?

Tom

\=w=,
It’s not a good idea to link to sites that provide cracked games. You can find the executable easily with Google.

Cacho

www.gameburnworld.com . This is for wine compatibility purpouse only. You must buy the original first, OK?

.Woo

The Screenheight/width function in the .ini file doesn’t seem to work. I’ve already adjusted it to 1280x800 but it stays in the original resolution. Additionally, I can’t have it go full screen; I can still see my panels and therefore can’t see ok and exit buttons.

Tom

Woo,
Do you have Compiz turned on? It can stop Civ from going full screen sometimes.

.Woo

To be honest, I have no idea whether if it is or if it isnt. I’m new to Linux; can you give instructions in turning it off, since I’ve read that Compiz is actually turned on by default on Gutsy.

.Woo

Sorry for the double post, but I’ve found how to disable Compiz and it goes full screen now.

Now my problem is that it doesn’t conform to the resolution set in the .ini file.

Siggen

Hi, I’ve done all the steps above, but the loading stops when it says Init Python. I have Wine version 0.9.46. What is wrong?

bubba

I amazed that you are able to see the cities and other details,that they are not blacked out…

I have the same video card,followed directions to the letter and my detail is blacked out…

Did I miss something?

ubunta

Thanks for this excellent guide. Worked fine for me, although the game runs sluggish on my old comp as expected (Ubuntu 7.10 @ Intel 1.8GHz/500MB RAM/ATI Radeon 9600).

NicoretteJunkie

I’ve done this step by step, and now when I run with the cracked EXE (downloaded from gameburnworld) it starts the program, doesn’t even get the loading screen, and then nothing happens. Maybe I’m doing something wrong? Please help!

Tom

bubba:
I think the blacked out details was caused by a bug in some versions of Wine, make sure you have the latest version. If that doesn’t fix it then try changing some the graphics settings in winecfg.

NicoretteJunkie:
Are there any error messages when it is run from the terminal?

Michael

First, I tried with a 64 bit version. It failed, so I installed the 32 bit Kubuntu on a partition. I followed the directions using wine-0.9.46 and was successful.

GenBian

I just tried the pitboss server for Beyond the Sword on Linux. It works on a Debian testing and a 64-bit Gentoo:
http://forums.civfanatics.com/showthread.php?p=6547872#post6547872

CelticCat

FYI…I had problems running game with it crashing after following Tom’s tutorial to the letter.

Here is what I found the problem was for me anyway…

Animated cursors(changed back to default)
Had to add dll’s to system32…d3dx9_31 & d3dx9_32

I’m running the same Nvidia card as Tom. Now everything rocks…

I’m using the latest version of wine & patch 1.74

arcade

I’ve tried to install, but I fail at step 3. Note, I’m a linux wizard, but I haven’t used windows. Ever.

“Put in the first CD and run the installer with Wine. Click cancel if the DirectX setup wizard launches. When the installer asks for the second CD, give it the location on your hard drive of the CAB file. The installer should finish successfully.”

I’ve tried to run “wine autorun.exe”, and “wine setup.exe”, but both demands that I should install DirectX. If I try to install DirectX, the installer crashes. If I try to cancel, the setup wizard exits.

I’m sure I’m doing something simple and silly wrong, but I’ve got no idea what this DirectX thing is …

Any ideas?

CelticCat

arcade make sure you have the latest wine version…I added the repository for wine…uninstalling the old wine via synaptic…
refresh synaptic and search for wine it will show the latest(at the time I am using 9.57)

put your install cd in and open a terminal type wine space and drag the setup.exe from the cd folder and drop it on the terminal window..press enter

when directx comes up try to cancel it again and see what happens.

bigbadphil

Hi,
I installed this as per the instructions and it went fine until I was a few screens into the options screen to play a new game (“Select a Civilization”).

The error message is:
Failed to allocate video memory. Please try reducing your graphics settings.
File:\Source\main\Civilization4\SDKs\Gamebryo2_0\CoreLibs\NiDXRenderer\NiDX9RenderedTextureData.cpp,
Line: 170

This shown twice, then the program exits.

Does this sound like a DirectX installation problem or might it be something that could be fixed with a better graphics card?

I’m using an onboard ATI Radeon Xpress 200 with 256MB video RAM on Ubuntu 7.10 and wine 0.9.49.

Thanks,
Phil

mdagosta

Arcade, I had the same issue: I don’t know much about windows either, but I love civ, and found that if I symlink d3dx9_26.dll to the windows/syetem32/ dir (find ~/.wine -name system32), it does not prompt me for Direct X. Good luck.

Ecik

I did everything, that you wrote in this tutorial but the game doesn’t work for me. At least there is window, where is shown that XMl,Python, etc. are loading but it just shut up at the end and nothing happens:/ I coppied dll’s which were recommended by CelticCat. It’s my log from terminal:

fixme:system:SystemParametersInfoW Unimplemented action: 55 (SPI_SETMOUSEKEYS)
fixme:system:SystemParametersInfoW Unimplemented action: 59 (SPI_SETSTICKYKEYS)
fixme:cursor:CURSORICON_LoadFromFile No support for .ani cursors.
err:ole:CoCreateInstance apartment not initialised
fixme:shell:DllCanUnloadNow stub
err:ole:CoCreateInstance apartment not initialised
fixme:shell:DllCanUnloadNow stub
err:ole:CoCreateInstance apartment not initialised
fixme:shell:DllCanUnloadNow stub
err:ole:CoCreateInstance apartment not initialised
fixme:shell:DllCanUnloadNow stub
err:ole:CoCreateInstance apartment not initialised
fixme:shell:DllCanUnloadNow stub
err:ole:CoCreateInstance apartment not initialised
fixme:shell:DllCanUnloadNow stub
err:ole:CoCreateInstance apartment not initialised
fixme:shell:DllCanUnloadNow stub
err:ole:CoCreateInstance apartment not initialised
fixme:shell:DllCanUnloadNow stub
err:ole:CoCreateInstance apartment not initialised
fixme:shell:DllCanUnloadNow stub
err:ole:CoCreateInstance apartment not initialised
fixme:shell:DllCanUnloadNow stub
fixme:wtsapi:WTSRegisterSessionNotification Stub 0x10026 0x00000000
fixme:cursor:CURSORICON_LoadFromFile No support for .ani cursors.
fixme:shell:DllCanUnloadNow stub
err:menubuilder:WinMain failed to build menu item for C:\Program Files\Firaxis Games\Sid Meier’s Civilization 4\Logs.lnk
fixme:shell:DllCanUnloadNow stub
fixme:shell:DllCanUnloadNow stub
fixme:shell:DllCanUnloadNow stub
fixme:shell:DllCanUnloadNow stub
err:menubuilder:WinMain failed to build menu item for C:\Program Files\Firaxis Games\Sid Meier’s Civilization 4\Saves.lnk
fixme:shell:DllCanUnloadNow stub
fixme:shell:DllCanUnloadNow stub
fixme:shell:DllCanUnloadNow stub
err:menubuilder:WinMain failed to build menu item for C:\Program Files\Firaxis Games\Sid Meier’s Civilization 4\CivilizationIV.ini.lnk
fixme:shell:DllCanUnloadNow stub
fixme:shell:DllCanUnloadNow stub
fixme:cursor:CURSORICON_LoadFromFile No support for .ani cursors.
fixme:cursor:CURSORICON_LoadFromFile No support for .ani cursors.
fixme:cursor:CURSORICON_LoadFromFile No support for .ani cursors.
fixme:cursor:CURSORICON_LoadFromFile No support for .ani cursors.
fixme:cursor:CURSORICON_LoadFromFile No support for .ani cursors.
fixme:cursor:CURSORICON_LoadFromFile No support for .ani cursors.
fixme:cursor:CURSORICON_LoadFromFile No support for .ani cursors.
fixme:cursor:CURSORICON_LoadFromFile No support for .ani cursors.
fixme:cursor:CURSORICON_LoadFromFile No support for .ani cursors.
fixme:cursor:CURSORICON_LoadFromFile No support for .ani cursors.
‘import site’ failed; use -v for traceback
fixme:cursor:CURSORICON_LoadFromFile No support for .ani cursors.
fixme:cursor:CURSORICON_LoadFromFile No support for .ani cursors.
wine: Unhandled page fault on read access to 0x00000010 at address 0x7d9c76f5 (thread 0009), starting debugger…
Unhandled exception: page fault on read access to 0x00000010 in 32-bit code (0x7d9c76f5).
Register dump:
CS:0073 SS:007b DS:007b ES:007b FS:0033 GS:003b
EIP:7d9c76f5 ESP:0033eba4 EBP:0033eba8 EFLAGS:00210202( - 00 - -RI1)
EAX:00000000 EBX:7c2f16a0 ECX:7c149a70 EDX:00000005
ESI:0033ec50 EDI:7dcf319d
Stack dump:
0x0033eba4: 7dd11c54 0033ee98 7dc6cf1f 7c2f16a0
0x0033ebb4: 00008620 7c149a70 7dcf3104 7dd128b0
0x0033ebc4: b7e558ac 00000320 00000021 00000001
0x0033ebd4: 7db8d4c0 b7e54541 7c0dca28 7c2f16a0
0x0033ebe4: 79800000 0033ec18 7d9a2906 7db8d4c0
0x0033ebf4: b7e558ac b7e54541 0033ed70 000003c0
Backtrace:
\=>1 0x7d9c76f5 in i965_dri.so (+0x856f5) (0x0033eba8)
2 0x7dc6cf1f IWineD3DImpl_FillGLCaps+0x86dc() in wined3d (0x0033ee98)
3 0x7dc76549 InitAdapters+0x1f9a() in wined3d (0x0033f358)
4 0x7dce582a WineDirect3DCreate+0x22() in wined3d (0x0033f388)
5 0x7e12f090 Direct3DCreate9+0x77() in d3d9 (0x0033f3b8)
6 0x006af795 in civilization4 (+0x2af795) (0x00000000)
0x7d9c76f5: movl 0x10(%eax),%eax
Modules:
Module Address Debug info Name (112 modules)
PE 340000- 34e000 Deferred hapdbg
PE 350000- 363000 Deferred zlib1
PE 400000- e14000 Export civilization4
PE e20000- 106a000 Deferred d3dx9_26
PE 1960000- 1cf1000 Deferred cvgamecoredll
PE f610000- f61a000 Deferred mssdolby.flt
PE f730000- f750000 Deferred msseax.flt
PE 10000000-1002b000 Deferred boost_python-vc71-mt-1_32
PE 18000000-18038000 Deferred binkw32
PE 1e000000-1e1ca000 Deferred python24
PE 21100000-2118c000 Deferred mss32
PE 22300000-2230c000 Deferred mssds3d.flt
PE 23000000-2300d000 Deferred msssrs.flt
PE 24100000-2411e000 Deferred mssdsp.flt
PE 26400000-2643a000 Deferred mssvoice.asi
PE 26f00000-26f2e000 Deferred mssmp3.asi
PE 69b10000-69c27000 Deferred msxml3
ELF 7b800000-7b926000 Deferred kernel32
\-PE 7b820000-7b926000 \ kernel32
ELF 7bc00000-7bca2000 Deferred ntdll
\-PE 7bc10000-7bca2000 \ ntdll
ELF 7bf00000-7bf03000 Deferred
PE 7c340000-7c396000 Deferred msvcr71
PE 7c3a0000-7c41b000 Deferred msvcp71
ELF 7d942000-7db99000 Export i965_dri.so
ELF 7db99000-7dba3000 Deferred libdrm.so.2
ELF 7dba3000-7dc04000 Deferred libgl.so.1
ELF 7dc16000-7dd16000 Export wined3d
\-PE 7dc30000-7dd16000 \ wined3d
ELF 7dd16000-7dd7e000 Deferred crypt32
\-PE 7dd20000-7dd7e000 \ crypt32
ELF 7dd7e000-7ddb7000 Deferred rsaenh
\-PE 7dd80000-7ddb7000 \ rsaenh
ELF 7e11a000-7e14a000 Export d3d9
\-PE 7e120000-7e14a000 \ d3d9
ELF 7e18e000-7e1a2000 Deferred wtsapi32
\-PE 7e190000-7e1a2000 \ wtsapi32
ELF 7e1a2000-7e1c1000 Deferred imm32
\-PE 7e1b0000-7e1c1000 \ imm32
ELF 7e20a000-7e23c000 Deferred uxtheme
\-PE 7e210000-7e23c000 \ uxtheme
ELF 7e23c000-7e250000 Deferred midimap
\-PE 7e240000-7e250000 \ midimap
ELF 7e250000-7e276000 Deferred msacm32
\-PE 7e260000-7e276000 \ msacm32
ELF 7e276000-7e28d000 Deferred msacm32
\-PE 7e280000-7e28d000 \ msacm32
ELF 7e28d000-7e353000 Deferred libasound.so.2
ELF 7e365000-7e39a000 Deferred winealsa
\-PE 7e370000-7e39a000 \ winealsa
ELF 7e39a000-7e3a3000 Deferred libxcursor.so.1
ELF 7e3a3000-7e3a8000 Deferred libxfixes.so.3
ELF 7e3a8000-7e3ab000 Deferred libxcomposite.so.1
ELF 7e3ab000-7e3b1000 Deferred libxrandr.so.2
ELF 7e3b1000-7e3b9000 Deferred libxrender.so.1
ELF 7e3b9000-7e3be000 Deferred libxdmcp.so.6
ELF 7e3be000-7e3c1000 Deferred libxau.so.6
ELF 7e3c1000-7e4b2000 Deferred libx11.so.6
ELF 7e4b2000-7e4c0000 Deferred libxext.so.6
ELF 7e4c0000-7e4c5000 Deferred libxxf86vm.so.1
ELF 7e4c5000-7e4dd000 Deferred libice.so.6
ELF 7e4dd000-7e4e5000 Deferred libsm.so.6
ELF 7e4f2000-7e4f5000 Deferred libxdamage.so.1
ELF 7e4f7000-7e585000 Deferred winex11
\-PE 7e500000-7e585000 \ winex11
ELF 7e5fc000-7e61c000 Deferred libexpat.so.1
ELF 7e61c000-7e647000 Deferred libfontconfig.so.1
ELF 7e647000-7e65c000 Deferred libz.so.1
ELF 7e65c000-7e6cc000 Deferred libfreetype.so.6
ELF 7e6cc000-7e731000 Deferred msvcrt
\-PE 7e6e0000-7e731000 \ msvcrt
ELF 7e731000-7e75c000 Deferred ws2_32
\-PE 7e740000-7e75c000 \ ws2_32
ELF 7e75c000-7e770000 Deferred lz32
\-PE 7e760000-7e770000 \ lz32
ELF 7e770000-7e789000 Deferred version
\-PE 7e780000-7e789000 \ version
ELF 7e789000-7e848000 Deferred comctl32
\-PE 7e790000-7e848000 \ comctl32
ELF 7e848000-7e89f000 Deferred shlwapi
\-PE 7e850000-7e89f000 \ shlwapi
ELF 7e89f000-7e9a7000 Deferred shell32
\-PE 7e8b0000-7e9a7000 \ shell32
ELF 7e9a7000-7ea48000 Deferred oleaut32
\-PE 7e9c0000-7ea48000 \ oleaut32
ELF 7ea48000-7ea5b000 Deferred libresolv.so.2
ELF 7ea6d000-7ea8b000 Deferred iphlpapi
\-PE 7ea70000-7ea8b000 \ iphlpapi
ELF 7ea8b000-7eae9000 Deferred rpcrt4
\-PE 7eaa0000-7eae9000 \ rpcrt4
ELF 7eae9000-7eb89000 Deferred ole32
\-PE 7eb00000-7eb89000 \ ole32
ELF 7eb89000-7ec22000 Deferred gdi32
\-PE 7eba0000-7ec22000 \ gdi32
ELF 7ec22000-7ed62000 Deferred user32
\-PE 7ec40000-7ed62000 \ user32
ELF 7ed62000-7edee000 Deferred winmm
\-PE 7ed70000-7edee000 \ winmm
ELF 7edee000-7ee38000 Deferred dsound
\-PE 7ee00000-7ee38000 \ dsound
ELF 7ee38000-7ee87000 Deferred advapi32
\-PE 7ee40000-7ee87000 \ advapi32
ELF 7efa6000-7efb1000 Deferred libnss_files.so.2
ELF 7efb1000-7efc9000 Deferred libnsl.so.1
ELF 7efc9000-7efee000 Deferred libm.so.6
ELF 7eff6000-7f000000 Deferred libnss_nis.so.2
ELF b7cf4000-b7cfd000 Deferred libnss_compat.so.2
ELF b7cfe000-b7d02000 Deferred libdl.so.2
ELF b7d02000-b7e4c000 Deferred libc.so.6
ELF b7e4d000-b7e65000 Deferred libpthread.so.0
ELF b7e77000-b7f8b000 Deferred libwine.so.1
ELF b7f8d000-b7fa9000 Deferred ld-linux.so.2
Threads:
process tid prio (all id:s are in hex)
00000008 (D) C:\Program Files\Firaxis Games\Sid Meier’s Civilization 4\Civilization4.exe
00000036 0
00000035 15
00000034 15
00000009 0 1 0x7d9c76f5 in i965_dri.so (+0x856f5) (0x0033eba8)
2 0x7dc6cf1f IWineD3DImpl_FillGLCaps+0x86dc() in wined3d (0x0033ee98)
3 0x7dc76549 InitAdapters+0x1f9a() in wined3d (0x0033f358)
4 0x7dce582a WineDirect3DCreate+0x22() in wined3d (0x0033f388)
5 0x7e12f090 Direct3DCreate9+0x77() in d3d9 (0x0033f3b8)
6 0x006af795 in civilization4 (+0x2af795) (0x00000000)

Help someone, I can’t stand not to playing one of my most favourites games…

Ecik

Heh, I think it’ll be definetely better to read if I save it as a txt file. It’s link: http://www.sendspace.com/file/5avzep
I have 1.61 patch.

team10tim

I’m having the “No support for .ani cursors.”
problem and I know what the solution is:

>FYI…I had problems running game with it >crashing after following Tom’s tutorial to the >letter.
>
>Here is what I found the problem was for me >anyway…
>
>Animated cursors(changed back to default)

as mentioned by CelticCat above, but I don’t know how to “change back to default” I’ve tried to load it on my windows box, insufficient video memory, my vmware, doesn’t support directX, and wine, animated cursor.

Any help would be appreciated.
Thanks,
Tim

jon

So, I’m a total noob at Linux (just got Ubuntu) and I worked through this tutorial. I did everything it asked, but when I run the game, I can hear the music but the screen just stays black. I can hit esc to skip the intro movie, and the menu music plays and I have a cursor, but everything else is still black. Suggestions?

Vadim P.

Thanks, the guide worked.

Anonymous

I just uninstalled Civ4 and installed wine-doors with the latest Wine and installed directx. I re-installed Civ4 and everything works perfectly as it did in XP. Unfortunately due to no-cd patch cannot play over the Net. My system is a quad core intel, 4G RAM & the newest Nvidia 512Mb video card. I even run everything in the game on high graphics.

dew5

hey guys and gurls.
I get this error report when trying to run in the terminal

ine civilization4.exe
err:module:import_dll Library binkw32.dll (which is needed by L”Z:\\home\\david\\civilization4.exe”) not found
err:module:import_dll Library boost_python-vc71-mt-1_32.dll (which is needed by L”Z:\\home\\david\\civilization4.exe”) not found
err:module:find_forwarded_export function not found for forward ‘d3dx8.D3DXGetImageInfoFromFileInMemory’ used by L”C:\\windows\\system32\\d3dx9_36.dll”. If you are using builtin L”d3dx9_36.dll”, try using the native one instead.
err:module:find_forwarded_export function not found for forward ‘d3dx9_36.D3DXGetImageInfoFromFileInMemory’ used by L”C:\\windows\\system32\\d3dx9_26.dll”. If you are using builtin L”d3dx9_26.dll”, try using the native one instead.
err:module:import_dll Library hapdbg.dll (which is needed by L”Z:\\home\\david\\civilization4.exe”) not found
err:module:import_dll Library mss32.dll (which is needed by L”Z:\\home\\david\\civilization4.exe”) not found
err:module:import_dll Library python24.dll (which is needed by L”Z:\\home\\david\\civilization4.exe”) not found
err:module:import_dll Library zlib1.dll (which is needed by L”Z:\\home\\david\\civilization4.exe”) not found
err:module:LdrInitializeThunk Main exe initialization for L”Z:\\home\\david\\civilization4.exe” failed, status c0000135

can you help please.

Anonymous

I got this error
bla-bla
wine: Call from 0x7b845610 to unimplemented function d3dx9_36.dll.D3DXCreateEffectFromFileExA, aborting

Just copied d3dx9_36.dll to game dir.

dezza

I cannot get Civ4 to install on totally blank, new install of wine.

It gets to the end of the “preparing installShield wizard”, then pops up with a message box saying that “An error (-5009 : 0x80040154) has occurred…”

with details

“Error Code: -5009 : 0x80040154
Error Information:
>Ctor\ObjectWrapper.cpp (396)
>Kernel\Component.cpp (1163)
>Ctor\ObjectWrapper.cpp (34)
>Ctor\DriverWrapper.cpp (31)
>Kernel\Component.cpp (1152)
>Kernel\CABFile.cpp (384)
>SetupDLL\SetupDLL.cpp (1526)
PAPP:Sid Meier’s Civilization 4
PVENDOR:Firaxis Games (http://www.2kgames.com/civ4/)
PGUID:CFBCE791-2D53-4FCE-B3FB-D6E01F4112E8
$11.0.0.28844
@Windows 2000 Service Pack 4 (2195) BT_OTHER 65535.65535”

The command output is as follows:

dezza@Dezza-Laptop:~/.wine/civ4disk/CIVILIZATION4$ wine setup.exe
fixme:actctx:parse_depend_manifests Could not find dependent assembly L”Microsoft.Windows.Common-Controls”
fixme:actctx:parse_depend_manifests Could not find dependent assembly L”Microsoft.Windows.Common-Controls”
err:ole:TLB_ReadTypeLib Loading of typelib L”C:\\Program Files\\Common Files\\InstallShield\\Professional\\RunTime\\IsProBE.tlb” failed with error 2
fixme:storage:StgCreateDocfile Storage share mode not implemented.
err:ole:marshal_object couldn’t get IPSFactory buffer for interface {00000131-0000-0000-c000-000000000046}
err:ole:CoGetClassObject class {00020424-0000-0000-c000-000000000046} not registered
err:ole:CoGetClassObject no class object {00020424-0000-0000-c000-000000000046} could be created for context 0x80000001
err:ole:marshal_object couldn’t get IPSFactory buffer for interface {3d8b6331-d8b1-11d2-80c5-00104b1f6cea}
err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80040154
err:ole:CoMarshalInterface Failed to marshal the interface {3d8b6331-d8b1-11d2-80c5-00104b1f6cea}, 80040154
fixme:reg:GetNativeSystemInfo (0x330db4) using GetSystemInfo()
err:ole:marshal_object couldn’t get IPSFactory buffer for interface {00000131-0000-0000-c000-000000000046}
err:ole:CoGetClassObject class {00020424-0000-0000-c000-000000000046} not registered
err:ole:CoGetClassObject no class object {00020424-0000-0000-c000-000000000046} could be created for context 0x80000001
err:ole:marshal_object couldn’t get IPSFactory buffer for interface {6494206f-23ea-11d3-88b0-00c04f72f303}
err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80040154
err:ole:CoMarshalInterface Failed to marshal the interface {6494206f-23ea-11d3-88b0-00c04f72f303}, 80040154

Any suggestions?

seanlano

I tried all of this on Ubuntu 8.10, and the install worked all fine, and Civ starts OK, but after about 20 seconds of game-play it just locks up. After that I have to do a hard reset. Is there anything different I have to do for Intrepid?

Mike

I get a data2.cab error half way through install on the first disk. Any suggestions?

leewang

i get this crash after i build my first city no error message or anything it just reverts back to desktop

dave

hi, i installed civ4 with patch ver 1.6 and cracked executable it loads up and gets to the main menu but then the mouse stops functioning properly, the cursor looks like the proper civ4 cursor but does not click properly and reverts back to the ubuntu cursor when scrolled over the top and bottom borders, i find the only way to get around click the buttons is to use the tab and spacebar method, which i think we can all understand is not very feasible with this particular game, anyways, alot of fixme errors flood the terminal when loading begins so i wont post the entire thing unless you really want it but the lines i believe to be most relavent could be:

fixme:cursor:CURSORICON_CreateIconFromANI Loading all frames for .ani cursors not implemented.

there are alot of those but i could be wrong
also i am on a laptop using a Syn/PS2 Synaptics touchpad, i also tried a microsoft usb infrared mouse but with the same results.
any help and or suggestions would be greatly appreciated, thank your for your time i hope someone is out there

Eduardo

It’s not clear that it won’t work until you install DirectX9 on WINE. (At least i followed all the previous steps and it wasn’t enough)

Here is how you install directx on wine (SPANISH):
http://www.taringa.net/posts/linux/1305733/Instalar-DirectX-9-con-wine.html

in my Inspiron6400 CIV IV plays better than in W$ XP, ga me performance is faster with the highest graphics configuration avaible.

Steve

doesnt work for me…

When I launch .exe in terminal I get this:

’/home/steve/.wine/dosdevices/c:/Program Files/Firaxis Games/Sid Meier’\“s Civilization 4/Civilization4.exe’
err:module:find_forwarded_export function not found for forward ‘d3dx8.D3DXGetImageInfoFromFileInMemory’ used by L”C:\\windows\\system32\\d3dx9_36.dll”. If you are using builtin L”d3dx9_36.dll”, try using the native one instead.
err:module:find_forwarded_export function not found for forward ‘d3dx9_36.D3DXGetImageInfoFromFileInMemory’ used by L”C:\\windows\\system32\\d3dx9_32.dll”. If you are using builtin L”d3dx9_32.dll”, try using the native one instead.
fixme:mixer:ALSA_MixerInit No master control found on HDA ATI HDMI, disabling mixer
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:shell:DllCanUnloadNow stub
fixme:shell:DllCanUnloadNow stub
fixme:shell:DllCanUnloadNow stub
fixme:shell:DllCanUnloadNow stub
fixme:shell:DllCanUnloadNow stub
fixme:shell:DllCanUnloadNow stub
fixme:shell:DllCanUnloadNow stub
fixme:shell:DllCanUnloadNow stub
fixme:shell:DllCanUnloadNow stub
fixme:shell:DllCanUnloadNow stub
err:seh:raise_exception Exception frame is not in stack limits => unable to dispatch exception.
steve@steve-laptop ~ $ err:menubuilder:Process_Link unable to load L”C:\\Program Files\\Firaxis Games\\Sid Meier’s Civilization 4\\Logs.lnk”
fixme:shell:DllCanUnloadNow stub
err:menubuilder:WinMain failed to build menu item for C:\Program Files\Firaxis Games\Sid Meier’s Civilization 4\Logs.lnk
err:menubuilder:Process_Link unable to load L”C:\\Program Files\\Firaxis Games\\Sid Meier’s Civilization 4\\Saves.lnk”
fixme:shell:DllCanUnloadNow stub
err:menubuilder:WinMain failed to build menu item for C:\Program Files\Firaxis Games\Sid Meier’s Civilization 4\Saves.lnk
fixme:shell:DllCanUnloadNow stub
fixme:shell:DllCanUnloadNow stub
fixme:shell:DllCanUnloadNow stub
fixme:shell:DllCanUnloadNow stub
fixme:shell:DllCanUnloadNow stub
fixme:shell:DllCanUnloadNow stub
fixme:shell:DllCanUnloadNow stub
err:menubuilder:Process_Link unable to load L”C:\\Program Files\\Firaxis Games\\Sid Meier’s Civilization 4\\CivilizationIV.ini.lnk”
fixme:shell:DllCanUnloadNow stub
err:menubuilder:WinMain failed to build menu item for C:\Program Files\Firaxis Games\Sid Meier’s Civilization 4\CivilizationIV.ini.lnk

So I can’t even launch the game to get to the .ini. If anyone could help me out here I would be forever indebted.

kith7

linux is all about how to do a trick to make things work.. good luck I have Civ 4 installed on my windows and there is no saying that everything works except…. I used to be a linux fan, yet after I had started to value my time I switched to windows because of compatibility issues.

Tofe

@kith7: the same for me, but the other way around :-)

Also you have to realize that people that don’t have problems with Linux usually don’t post comments, so we mainly see problems here.
For me, everything works fine, I have Civilization 4 + Warlords extension, and it’s a pleasure to play that game.
About the time value: for my part I value stability a lot. I mean that if I take the shortcut I’ve made for Civ4 in one year, I’m quite sure it will work as well. On Windows I was never sure of anything. But, well, what is wonderful with Linux world is that eh, if you want to choose Windows, then go on ! You’re free :-)

Helio

I’ve managed to successfully install Civ 4 under wine but I cannot play it. After launching the game, it got stuck in the “Init Python” screen, just like Siggen says several posts above. Any suggestion?

Chasalin

I have Civ IV 1.09 up and running under Ubuntu 9.10/wine 1.1.38 (Gnome as well as Xfce), but have a few problems:

The map is completely black. Not fog of war black, but without texture.
Had to disable Compiz in order to get anything at all (menu was scrambled with Compiz on.

I DO get water motion, but no landscape texture, unless I build an improvement.

Also after playing around 120 turns, the game crashes. Even loading a save game and altering the timeline, gives the same result.
I guess it’s some event, but most likely not one of the following:
* invention
* diplomacy
* wonder
* great person
* era switch
* battle
because I already had that kind of stuff…

Other problem: Full screen f***s up multi monitor configs with my Ati card. Solution: disable multi monitor before playing.

Anyone interested in the logs?

Jason

Weird. I followed the tutorial to the letter and the game loads and runs fine, with one exception: every game lasts exactly ten turns. Any idea what I can do to make this game last the time that it is supposed to?!?

Thank you!

Bryan

Hey, I am new to Ubuntu, and I have ubuntu 10.10. I have had civilization 4 for a while now, and I wanted to try to install it on ubuntu. I can’t even get past step 3. It tells me to autorun Civilization using wine, but when I try to, it says “An error occurred while loading the archive.”

Then it says

Archive: /home/bryan/Desktop/autorun.exe
[/home/bryan/Desktop/autorun.exe]
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
zipinfo: cannot find zipfile directory in one of /home/bryan/Desktop/autorun.exe or
/home/bryan/Desktop/autorun.exe.zip, and cannot find /home/bryan/Desktop/autorun.exe.ZIP, period.

I am wondering if my wine version is already outdated even though I got it less than a month ago. I use the autorun.exe file to try to autorun it. It has the wine symbol, but im not sure if its the right autorun either. Any Ideas?

Zach

You know, looking at everyone having a lot of difficulties and looking at my setup, I sorta wonder why no one has tried vmplayer which allows you to install windows as a guest operating system in linux.

I have absolutely no issues with my setup and playing games like this. No for things like WoW and Rift, I’ll use wine. It’s always good to have two ways to skin a cat.

Respond via email