Showing posts with label civilization 4 linux. Show all posts
Showing posts with label civilization 4 linux. Show all posts

Wednesday, March 19

Setting up Civilization IV: Beyond the Sword



Note: This guide was compiled with Wine 0.9.55


After played Civilization IV for several weeks, I remembered that the expansion pack, Beyond the Sword, added all sorts of new features that I wanted to take a look at. After a civ-pep talk from my friend Brenden and step father(both huge civ fans), I went out and got a copy and installed it.

I put the disk in the drive and double clicked on "Setup.exe" to start the installation. It seemed to work smoothly at first, but as the game began to install it unexpectedly crashed. After some research, I found that the game can crash if it is missing some DLL files. To fix the problem, I made sure I had the following DLL's:

d3dx9_26.dll, d3dx9_29.dll, d3dx9_30.dll, d3dx9_31.dll, d3dx9_32.dll, d3dx9_33.dll, d3dx9_34.dll, mscoree.dll (This is the one I was missing. If you followed the other Civ 4 guide, this should be the only one you need), msxml3.dll, msxml3r.dll, msvcp71.dll, msvcr71.dll.

All of these DLL files can be found here (Virus free, too!)

Next I made sure I was using the msxml3.dll override (Note: If you followed the previous guide, these steps should already be done). I opened up winecfg, clicked the Libraries tab, and selected "msxml3.dll" as a new override for a library. I clicked Add and applied the changes. Next I clicked the Graphics tab and set the Vertex Shader Support to Hardware. I also clicked the checkbox to Allow Pixel Shader. I finally clicked OK and exited.

Now I was ready to install. I clicked "Setup.exe" and the game installed without a hitch.

The last issue I ran into was the fonts not being properly displayed. They looked like standard Times New Roman instead of the cool civ font. To fix it, I copied the Civ font out of the game into the windows font folder. Here's how I did it:

>cp ~/.wine/drive_c/Program Files/Firaxis Games/Sid Meier's Civilization 4/Assets/res/Fonts/sylfaen.ttf ~/.wine/drive_c/windows/fonts

I started up the game, adjusted the video settings to 1280x800 (Note: You can go into your CivilizationIV.ini and manually adjust your resolution if it crashes on an in-game switch), then began a new game. Rock on!

In a final note, I believe this game is not recognized by Wine while it is in the CD drive. This means that you will have to get the No CD patch online. I won't post a link for legal reasons, but it is very easy to find with a simple google search. You may also want to update the game to the most current version (3.13) and apply the latest NoCD patch to it.

Tuesday, January 29

Setting up Civilization IV

Civilization IV; The ultimate time waster

(Note: This guide was compiled using Wine 0.9.44)

After much delay, I decided it was time to get Civilization IV running on goz. To my delight, the installation was relatively painless AND the game runs almost flawlessly.

To begin, I shoved the disk into the CD drive and installed (Note: Some people have complained about the installer crashing near the end of the install. It is fine if it does it because all of the files are installed, but I didn't have this issue). Once the main game was installed, I had to find the latest patch (1.74) and patch the game. After downloading it here, I went installed it without a hitch had Wine.

For whatever reason, Wine does not recognize the game CD as a valid disk when attempting to play. To circumvent this, there is a website that is readily available for no CD cracks for almost any game. Because it is not exactly legal, I am not going to go into detail of how to install it. However, the no CD crack does work with Wine and is very easy to find by a quick google search.

Next I had to grab some DirectX libraries and dump them into the system32 folder in Wine. So I downloaded d3dx9_26.dll, d3dx9_31.dll, d3dx9_32.dll, d3dx9_33.dll, msxml3.dll, msxml3r.dll and copied them into my Wine system32 directory (Note: The location is typically /home/username/.wine/drive_c/windows/system32).

Once the libraries were installed, I had to go into 'winecfg' and change a few settings. So I typed:

>winecfg

Next, I selected the 'Libraries' tab. Once in the tab, I selected 'New override for Library' and scrolled down to 'msxml3.dll'. After clicking 'Add', I next navigated to the 'Graphics' tab. Once there, I changed my 'Vertex Shader Support' to 'None' (Note: If you leave this enabled, the game seems prone to crashing or graphical glitches). After that, I clicked 'OK'.

Finally, I had to adjust some settings in the CivilizationIV.ini file. To do this, I went into the 'My Games' folder (Note: By default, this should be in your home directory and named 'My Games').

>cd ~/My\ Games/Sid\ Meier\'s\ Civilization\ 4/

Then I manually edited the ini file:

>vim CivilizationIV.ini

There are a bunch of settings that are adjustable (You may want to fine tune some things to your liking), but there are only 2 settings that need to be changed to get the game to run correctly. First, the EnableVoice option needs to be changed from 1 to 0. Afterwards, it should look like this:

>EnableVoice = 0

Lastly, the game resolution must be changed in the ini file instead of in the game (Note: I tried changing it in the 'Options' tool bar when the game was loaded but it crashed it). So I scrolled down to ScreenHeight and changed the value to 800. The final readout should look like this:

>ScreenHeight = 800

Then I changed the ScreenWidth to 1280. The final readout should look like this:

>ScreenWidth = 1280

After that, I wrote the changes and quit. Once the game started, I went into the 'Options' menu and changed the game settings to their highest value and restarted the game.

As a final note, there seems to be some kind of ongoing problem when the game starts. For a minute or two, the loading screen hangs on 'Init Audio'. Once the game starts there is no problem, but the extra time it takes for the game to load can be annoying. I am still looking for a fix to the problem.