Civilization 4

Informations

Creator Message
marco_g Anonymous

Warning

This installer is a beta script. It means that it might not work as expected

Informations

Platforms:
Downloads: 52519
Wine: System

Feedbacks

Source code

#!/bin/bash
# Date : (2010-05-16)
# Last revision : (2010-05-18)
# Wine version used : 1.1.43
# Distribution used to test : Ubuntu 9.10
# Author : Marco Gerards
# Licence : GPLv3
# Depend : d3dx9, msxml3

# This script was tested using the DVD version of `Civilization IV'
# version 1.61, bought in the Netherlands in 2010.

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="Civilization IV"
AUTHOR="Marco Gerards"
PREFIX="Civilization4"
PREFIXDIR="$REPERTOIRE/wineprefix/$PREFIX"
WORKINGWINEVERSION="1.1.43"

POL_SetupWindow_Init

POL_SetupWindow_presentation "$TITLE" "Firaxis Games" "http://www.firaxis.com/" "$AUTHOR" "$PREFIX"
select_prefix "$PREFIXDIR"

# Let the user select a CDROM
POL_SetupWindow_cdrom

# Check if this CDROM is the Civilization IV CDROM
POL_SetupWindow_check_cdrom "Autorun/Civ4Installer.ico"

# Make sure the right wine version is used, otherwise
# the user will run into a problem regarding copyright protection.
POL_SetupWindow_install_wine "$WORKINGWINEVERSION"

Use_WineVersion "$WORKINGWINEVERSION"

# Create the prefix for Civilization IV, a directory called `Civilization4'
POL_SetupWindow_prefixcreate

PROGRAMFILES="Program Files" 
POL_LoadVar_PROGRAMFILES

# Install DirectX9
POL_Call POL_Install_d3dx9

# Run the installer
POL_SetupWindow_menu "Which installation medium do you want to use?" "Medium" "DVD~CDROM" "~"
wine start /unix "$CDROM/setup.exe"
if [ "$APP_ANSWER" == "CDROM" ]; then
POL_SetupWindow_message "When the installer asks you for the second CDROM, click Forward." "$TITLE"
wine eject
fi

POL_SetupWindow_message "Click Forward when the installation is finished" "$TITLE"
wine eject

# Setup an icon for the game
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Firaxis Games/Sid Meier's Civilization 4/Assets/res"
convert Civ4Game.ico Civ4Game.png
cp Civ4Game-1.png "$HOME/.PlayOnLinux/icones/32/$TITLE"

# Install MS XML 3, this should be done after the game is installed,
# otherwise it will not work.
POL_Call POL_Install_msxml3

# Make a short cut
POL_SetupWindow_make_shortcut "$PREFIX" "$PROGRAMFILES/Firaxis Games/Sid Meier's Civilization 4" "Civilization4.exe" "" "$TITLE"
Set_WineVersion_Assign "$WORKINGWINEVERSION" "$TITLE"

# Done!
POL_SetupWindow_message "$TITLE installed"

POL_SetupWindow_Close
exit

Contributions

Filters:

Contribute
Member Message
jromo Sunday 27 September 2015 at 16:40
jromo Anonymous

Message

Hello,

I just move from Windows XP to Ubuntu 14.04 to my Lenovo 3000V100, instalation goes very good and works a lot better than Windows. So I start to install my games and see if they work, after I try many times I get them to work and I have the following issue. on CIV IV the game start well, until I select to Play It just get SLOW and I mean SLOW like 5 to 10 minuts to show the graphics of the game, then is so slow that I can not make any move or actually play, my computer use the Intel Graphics Media Accelerator 950. Any Help will be great. Thanks

Replies

Sunday 26 May 2019 at 23:14
Try to switch to a newer Wine version (default is: WORKINGWINEVERSION="1.1.43" ).