Civilization 4
Informations
| Creator | Wiadmości |
|---|---|
marco_g
|
WarningThis installer is a beta script. It means that it might not work as expected InformationsPlatforms: Feedbacks0 0 DescriptionSource code#!/bin/bash
# Date : (2010-05-16)
# Last revision : see changelog
# Wine version used : 1.1.43
# Distribution used to test : Ubuntu 9.10
# Author : Marco Gerards
# Licence : GPLv3
# Depend : d3dx9, msxml3
#
# CHANGELOG
# [Marco Gerards] (2010-05-16))
# First script.
# [Dadu042] (2020-01-02)
# Make system wine version explicit.
# Add GPU choice.
# Update POL_Shortcut function
# 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"
POL_SetupWindow_Init
POL_SetupWindow_presentation "$TITLE" "Firaxis Games" "http://www.firaxis.com/" "$AUTHOR" "$PREFIX"
POL_Wine_SelectPrefix "$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"
# 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
################
# GPU #
################
# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver
# Asking about memory size of graphic card
# POL_SetupWindow_VMS $GAME_VMS
# Useful for Nvidia GPUs
# POL_Call POL_Install_physx
# 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_Shortcut "Civilization4.exeE" "$TITLE" "" "" "Game;"
# Done!
POL_SetupWindow_message "$TITLE installed"
POL_SetupWindow_Close
exit
|
Contributions
Filters:
Contribute| Member | Wiadmości |
| Dadu042 | Thursday 2 January 2020 at 23:44 |
|
Dadu042
|
InformationThis update has been approved by the team. Differences@@ -1,11 +1,19 @@ #!/bin/bash # Date : (2010-05-16) -# Last revision : (2010-05-18) +# Last revision : see changelog # Wine version used : 1.1.43 # Distribution used to test : Ubuntu 9.10 # Author : Marco Gerards # Licence : GPLv3 # Depend : d3dx9, msxml3 +# +# CHANGELOG +# [Marco Gerards] (2010-05-16)) +# First script. +# [Dadu042] (2020-01-02) +# Make system wine version explicit. +# Add GPU choice. +# Update POL_Shortcut function # This script was tested using the DVD version of `Civilization IV' # version 1.61, bought in the Netherlands in 2010. @@ -17,12 +25,11 @@ 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" +POL_Wine_SelectPrefix "$PREFIXDIR" # Let the user select a CDROM POL_SetupWindow_cdrom @@ -34,7 +41,6 @@ # 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 @@ -45,6 +51,21 @@ # Install DirectX9 POL_Call POL_Install_d3dx9 + +################ +# GPU # +################ + +# Set Graphic Card information keys for wine +POL_Wine_SetVideoDriver + +# Asking about memory size of graphic card +# POL_SetupWindow_VMS $GAME_VMS + +# Useful for Nvidia GPUs +# POL_Call POL_Install_physx + + # Run the installer POL_SetupWindow_menu "Which installation medium do you want to use?" "Medium" "DVD~CDROM" "~" wine start /unix "$CDROM/setup.exe" @@ -61,13 +82,11 @@ 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. +# 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" +POL_Shortcut "Civilization4.exeE" "$TITLE" "" "" "Game;" # Done! POL_SetupWindow_message "$TITLE installed" New source code#!/bin/bash
# Date : (2010-05-16)
# Last revision : see changelog
# Wine version used : 1.1.43
# Distribution used to test : Ubuntu 9.10
# Author : Marco Gerards
# Licence : GPLv3
# Depend : d3dx9, msxml3
#
# CHANGELOG
# [Marco Gerards] (2010-05-16))
# First script.
# [Dadu042] (2020-01-02)
# Make system wine version explicit.
# Add GPU choice.
# Update POL_Shortcut function
# 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"
POL_SetupWindow_Init
POL_SetupWindow_presentation "$TITLE" "Firaxis Games" "http://www.firaxis.com/" "$AUTHOR" "$PREFIX"
POL_Wine_SelectPrefix "$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"
# 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
################
# GPU #
################
# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver
# Asking about memory size of graphic card
# POL_SetupWindow_VMS $GAME_VMS
# Useful for Nvidia GPUs
# POL_Call POL_Install_physx
# 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_Shortcut "Civilization4.exeE" "$TITLE" "" "" "Game;"
# Done!
POL_SetupWindow_message "$TITLE installed"
POL_SetupWindow_Close
exit
Odpowiedzi |
| jromo | Sunday 27 September 2015 at 16:40 |
jromo
|
WiadmościHello, 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 OdpowiedziSunday 26 May 2019 at 23:14
|
This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com
Install this program