[Wine] Civ4 in Wine 1.1.25 on Ubuntu 9.04

damunzy

recovering former mod
Retired Moderator
Joined
Oct 29, 2000
Messages
4,977
Location
NJ, USA
This guide will help you setup Wine v1.1.25 on Ubuntu 9.04 Jaunty Jackalope to install and play Civilization 4, the expansions Warlords and Beyond the Sword, and patch the games to versions 1.74, 2.13, and 3.19, respectively.

NOTE: If at anytime clicking Finish or Close on an installer doesn't work then you will need to close the process in the terminal by pressing the keys Control + C together to end the process. If this doesn't work you may need to run the System Monitor (System > Administration > System Monitor), click on the Processes tab, highlight the process that will not end, click the End Process button.

Add more information here:

Follow this document online at WineHQ, CivFanatics, and GoogleDocs:

http://forums.civfanatics.com/showthread.php?t=327508
https://docs.google.com/Doc?id=adqdp9k76v4c_140gtrbnzd6

Add link to .ODT and .RTF version of this document:

Add References section:
 
Installing Wine 1.1.25 on Ubuntu 9.04 Jaunty Jackalope
Add the Wine repository
* Click System > Administration > Software Sources.
The Software Sources window should open.
* In the Software Sources window, select the Third-Party Software tab.
* In the Third-Party Software tab, click the Add button.
A new window with a text box for an ATP line should open.
* In ATP line text box, enter the following:
deb http://wine.budgetdedicated.com/apt jaunty main #WineHQ - Ubuntu 9.04 "Jaunty Jackalope"
* Click the Add Source button.
* In the Software Sources window, under the Third-Party Software tab, WineGQ - Ubuntu 9.04 “Jaunty Jackalope” should now appear with a check mark.
* Click the Authentication tab.
* Save the Scott Ritchie key: http://wine.budgetdedicated.com/apt/Scott Ritchie.gpg
* Click Import Key.
* Select the Scott Ritchie key.
* In the Software Sources window, click the Close button.
A new window with The information about available software is out-of-date should open.
* Click the Reload button.
The Downloading Package Information window should open.
After the download has completed the Software Sources program should exit.

Install Wine
* Click System > Administration > Synaptic Package Manager.
In the left pane make sure that All is selected.
* Under quick search, type wine.
* Highlight wine.
* Mark for Installation wine.
* Click Apply.
If any other packages are required for installation, a new window will open. Click Apply to install the additional packages.

Reference: http://www.winehq.org/download/deb
 
NOTE: This section has been updated as of 2009-07-15.

Configure Wine Using winecfg
* In the terminal, run the command: winecfg
The Wine configuration window should open in the Applications tab.

* In the Applications tab, under Windows Version, change to Windows 2000.
Spoiler :
Need to check to see if Windows 2000 is required


* Select the Libraries tab.

* On the Libraries tab, under New override for library, type d3dx9_26 and then click the Add button.
Under Existing overrides, d3dx9_26 (native, builtin) should appear.

* On the Libraries tab, under New override for library, type msxml3 and then click the Add button.
Under Existing overrides, msxml3 (native, builtin) should appear.

* Select the Audio tab.
A new smaller Wine configuration window should appear with the message that there is no audio driver currently specified in the registry.

* Click the OK button.
The latest Wine configuration window should close and the Audio tab will be populated with information.

* On the original Wine configuration window, under Driver Selection, ensure that under Sound Drivers, ALSA Driver is checked.

* On the original Wine configuration window, click the OK button.
The Wine configuration window should close and the wine preferences should be updated.

Reference: http://www.wine-reviews.net/microsoft/directx-90c-march-2008-redistributable-on-linux-with-wine.html
 
NOTE: This section has been updated as of 2009-07-19

Download and Install Needed DLLs
*Download and copy the following files into ~/.wine/drive_c/windows/system32:
mscoree.dll – http://www.dlldump.com/download-dll-files_new.php/dllfiles/M/mscoree.dll/1.1.4322.5738/download.html
streamci.dll – http://www.dlldump.com/download-dll-files_new.php/dllfiles/S/streamci.dll/5.1.2600.0/download.html
ddrawex.dll – http://www.dlldump.com/download-dll...es/D/ddrawex.dll/5.03.2600.2180/download.html
msxml3.dll – http://www.dlldump.com/download-dll-files_new.php/dllfiles/M/msxml3.dll/8.50.2162.06/download.html
msxml3r.dll – http://www.dlldump.com/download-dll-files_new.php/dllfiles/M/msxml3r.dll/8.20.8730.18/download.html
* copy commands, from the download directory:
Code:
cp mscoree.dll ~/.wine/drive_c/windows/system32
cp streamci.dll ~/.wine/drive_c/windows/system32
cp ddrawex.dll ~/.wine/drive_c/windows/system32
cp msxml3.dll ~/.wine/drive_c/windows/system32
cp msxml3r.dll ~/.wine/drive_c/windows/system32

* Download and copy the following file into ~/.wine/drive_c/windows/system32/drivers:
gm.dls – http://www.kirupa.templarian.com/gm.dls
* copy command, from the download directory:
Code:
cp gm.dls ~/.wine/drive_c/windows/system32/drivers

Reference: http://www.wine-reviews.net/microsoft/directx-90c-march-2008-redistributable-on-linux-with-wine.html
 
NOTE: This section marked for removal.
Spoiler :
Edit Wine user.reg File[/center​
 
NOTE: This section marked for removal.
According to the WineHQ forums the installation of DirectX 9.0c is not needed and Wine installs with it installed are not supported. I am currently researching installation of Civ4 without the DirectX steps.
Spoiler :

Download and Install DirectX 9.0c (Mar 09)
* Download DirectX 9.0c (Mar 09) – http://filehippo.com/download_directx/
* Copy directx_mar2009_redist.exe to the Temp directory:
cp directx_mar2009_redist.exe ~/.wine/drive_c/Temp
* Unarchive DirectX 9.0c, in the terminal, run the following command:
wine ~/.wine/drive_c/Temp/directx_mar2009_redist.exe
The DirectX SDK March 2009 window should appear.
* In the DirectX SDK March 2009 click the Yes button.
The window will retain the same name but will now have a text field.
* In the window, in the text field, type the following:
C:\Temp\
The files should extract to ~/.wine/drive_c/Temp
* Install DirectX 9 (Mar 09), in the terminal, run the following command:
wine ~/.wine/drive_c/Temp/DXSETUP.exe
The Installing Microsoft(R) DirectX(R) window should appear.
* On the Installing Microsoft(R) DirectX(R) window, select I accept the agreement and then click the Next > button.
* Click the Next > button again to install DirectX.
After the installation has finished the Installing Microsoft(R) DirectX(R) window will show a Finish button.
* Click the Finish button to exit the installer.
* Run winecfg again and set the Windows Version to Windows XP.

Reference: http://www.wine-reviews.net/microsoft/directx-90c-march-2008-redistributable-on-linux-with-wine.html
 
NOTE: This section marked for removal.
According to the WineHQ forums the installation of DirectX 9.0c is not needed and Wine installs with it installed are not supported. I am currently researching installation of Civ4 without the DirectX steps.

Spoiler :
Check Status of the DirectX Installation
* In the terminal type:
wine ~/.wine/drive_c/windows/system32/dxdiag.exe
if this file is not available you may have installed DirectX without changing the Windows Version to Windows 2000. Change the Windows Version to Windows 2000 and rerun DXSETUP.exe. Change the Windows Version back to Windows XP after DirectX has finished installing again. Follow directions better next time. ;)
* Select either Yes or No to WHQL digital signatures – doesn't make a difference in my usage.
The DirectX Diagnostics Tool window should open.
* Click on the DirectX File tab.
Scroll down and ensure that all the files are installed. If any are missing, download them from www.dlldump.com or perform a Google search for &#8220;<FILENAME>.EXT download&#8221;.
* Under the Display, Sound, and Music tabs you can run the tests to ensure the subsystems work.
* Click Exit to close the DirectX Diagnostics Tool window.


Reference: http://www.wine-reviews.net/microsoft/directx-90c-march-2008-redistributable-on-linux-with-wine.html
 
NOTE: This section has been updated as of 2009-07-19.
Install Civilization 4, Patches, and Expansions
- Install Civilization 4 &#8220;vanilla&#8221;
* Insert the CD-ROM into your CD/DVD drive.

* Mount the CD if need be.

* In the terminal, run the installer with the following command:
wine /media/cdrom0/setup.exe

* Choose all the standard installation options- custom options are beyond the scope of this guide.

* Click the Finish button to exit the installer.

*After install has finished, in the terminal, run the following command:
wine eject

- Install Civilization 4 &#8220;vanilla&#8221; patch v1.74
* In the terminal, run the patch installer with the following commands:
wine /<PATCH_DIR/Civ4Patch-1.74.exe

- Install Civilization 4 Warlords
* Insert the CD-ROM into your CD/DVD drive.

* Mount the CD if need be.

* In the terminal, run the installer with the following commands:
wine /media/cdrom0/setup.exe

* Choose all the standard installation options- custom options are beyond the scope of this guide.

* Click the Finish button to exit the installer.

*After install has finished, in the terminal, run the following command:
wine eject

- Install Civilization 4 Warlords patch v2.13
* In the terminal, run the patch installer with the following commands:
wine /<PATCH_DIR/Civ4WarlordsPatch-2.13.exe

* The patch may error out at completion. Click OK and continue with the installation instructions.

- Install Civilization 4 Beyond the Sword
* Insert the CD-ROM into your CD/DVD drive.

* Mount the CD if need be.

* In the terminal, run the installer with the following commands:
wine /media/cdrom0/setup.exe

* Choose all the standard installation options- custom options are beyond the scope of this guide.

* Click the Finish button to exit the installer.

*After install has finished, in the terminal, run the following command:
wine eject

- Install Civilization 4 Beyond the Sword patch v3.19
* In the terminal, run the patch installer with the following commands:
wine /<PATCH_DIR/Civ4BeyondTheSwordPatch-3.19.exe

* The patch may error out at completion. Click OK and continue with the installation instructions.
 
Remove Unneeded DLLs
* In the terminal, run the following commands:
Code:
 cd ~/.wine/drive_c/Program\ Files/Firaxis\ Games/Sid\ Meier\'s\ Civilization\ 4
find ./ -name msxml3.dll

The following should be displayed:
Code:
./Warlords/msxml3.dll
./Beyond the Sword/msxml3.dll

* In the terminal, run the following commands:
Code:
rm  ./Warlords/msxml3.dll
rm ./Beyond\ the\ Sword/msxml3.dll
 
NOTE: This section has been updated as of 2009-07-19.
Download and Apply the NoCD Patches <REQUIRED>

- Make backups of original .EXEs (assuming standard installation paths) &#8211; this no longer needs to be done for BtS v3.19 as Firaxis has removed the DRM from the EXEcutable!

* Run the following commands to mv the original .EXE files before installing the NoCD Patches:
Code:
mv ~/.wine/drive_c/Program\ Files/Firaxis\ Games/Sid\ Meier\'s\ Civilization\ 4/Civilization4.exe ~/.wine/drive_c/Program\ Files/Firaxis\ Games/Sid\ Meier\'s\ Civilization\ 4/Civilization4.exe.orig
mv ~/.wine/drive_c/Program\ Files/Firaxis\ Games/Sid\ Meier\'s\ Civilization\ 4/Warlords/Civ4Warlords.exe ~/.wine/drive_c/Program\ Files/Firaxis\ Games/Sid\ Meier\'s\ Civilization\ 4/Warlords/Civ4Warlords.exe.orig

* Download the NoCD patches- sorry, I cannot add links or give anymore information on this in a forum post because of the forum rules. Talk to your local geek about NoCD cracks.

* More than likely, the NoCD cracks will be archived with rar. Unrar the files using either the Archive Manager (double-click on the file) or unrar in the terminal. See the next section for installing unrar if it is not available on your system.

* Copy NoCD cracks to the game directories, in the terminal, run the following commands:
Code:
cp Civilization4.exe ~/.wine/drive_c/Program\ Files/Firaxis\ Games/Sid\ Meier\'s\ Civilization\ 4/Civilization4.exe
cp Civ4Warlords.exe ~/.wine/drive_c/Program\ Files/Firaxis\ Games/Sid\ Meier\'s\ Civilization\ 4/Warlords/Civ4Warlords.exe
 
Install unrar for Ubuntu 9.04

NOTE: This section is under construction.

* Synaptic, search unrar
* Mark for Installation
* Apply
 
Install Mods

NOTE: This section is under construction.
 
Create Shortcuts

NOTE: This section is under construction.
 
NOTE: This section is under construction.

Set Resolution
In terminal, run winecfg
Wine configuration window should open
In the Wine configuration window, u
 
I can say that the procedures look overwhelming but it really isn't hard to do. Follow through them where you can and you will get a CIV experience better than in Windows since Linux uses a bunch less resources. I've been running this config for 6 or 8 months and everything works great.
 
I can say that the procedures look overwhelming but it really isn't hard to do. Follow through them where you can and you will get a CIV experience better than in Windows since Linux uses a bunch less resources. I've been running this config for 6 or 8 months and everything works great.
Could you look through the steps I have posted and give a glance over to make sure they look right to you. Also, what might work on one box might not on another- if you have any additional steps that need to be added I would gladly do so.

thanks!
 
From post #10:

* Unarchive the Patches, run command (might need to install unrar):
Code:
unrar

* Copy the .EXEs to game directories, in terminal, run commands:
Code:
cp

Don't these commands need arguments?

Sun Tzu Wu
 
From post #10:



Don't these commands need arguments?

Sun Tzu Wu
You are correct. This is a work in progress. :) I wasn't expecting this to get posted as news (thanks though ainwood!) just wanted it to get stickied. I spent most of the day Friday and Saturday working on this and the later stuff that isn't finished is relatively unimportant - although, you could make a case that installing unrar is important to get the cracks to work...it will get done eventually. I am actually revamping the installation process to remove the installation of DirectX as it is not supported by the WineHQ forums (according to them it is unnecessary).
 
Top Bottom