22 Jun

Civilization 4 under Ubuntu 9.04 (with Wine)


After seeing the release of Alien Arena 2009 for Linux (and all other platforms), i started thinking about running my favorite game, Civilization 4 on Ubuntu 9.04. And so i did! But it took some tweaking to get it to work with wine, as do most games (Except Unreal Tournament, which works i think natively). I’ll describe the steps taken here, for future reference, and if you don’t wanna spend your time browsing different locations for instructions:

Setup is a 32-bit Ubuntu 9.04, with all latest updates. I run a Gigabyte GA-MA790X motherboard, with integrated sound, and an Nvidia 8800 GTS with the 180 propietary drivers installed, using Ubuntu’s Restricted Drivers manager.

– Install wine with sudo apt-get install wine
– Take the game cd, put it in, and run wine /media/cdrom/setup.exe
– Cancel the Direct X prompt, as we can’t install that through wine. Proceed with the installation, as you would with windows.
– Get the latest patch from for instance Softpedia.
– Install the patch using wine
– Open up the wine configuration tool from Applications -> Wine, and in the libraries tab, enter “msxml3” and press add. This adds compatibility for a certain dll that we need to make this work.
– From any windows xp installation, copy the following three files (they reside under $windowsfolder$\system32), msxml.dll, msxml3r.dll and d3d_d35.dll and copy them to your wine “windows installation”. For me, this was ~/.wine/drive_c/windows/system32. If that doesn’t work, copy them to your civilization 4 folder (For me, the default was ~/.wine/drive_c/Program Files/Firaxis Games/Sid Meier’s Civilization 4/
– Get a nocd crack, since the copy protection just shits itself under wine. Crack the civilization4.exe file, and run it with wine path_to_the_exe_file. Or from Applications -> Wine -> Programs -> Firaxis Games.

If it complains about sound, open up Civilization4.ini, which resides under the wine my documents/my games/ folder. Edit the place that says EnableVoice and set it to = 0, add the line if necessary, but it’ll be there if you’ve tried to start the game at least once.

I recommend running the game in windowed mode, so from the game options, uncheck the “fullscreen” box. If the game window if odd after that, go to the wine configuration tool again, and under Graphics, check the “Virtual Desktop” thingamajig, and set the resolution to something that suits you and your screen.

Happy camping.

Leave a Reply

Your email address will not be published. Required fields are marked *