Civilization IV: Complete Edition
Informations
Créateur | Messages |
---|---|
alcorsepol
|
InformationCet installateur a été accepté par l'équipe. InformationsPlate-formes : Retours d'expérience4 2 DescriptionCivilization IV is a turn-based game in which the player builds an empire from very limited initial resources. Captures d'écranCode source#!/bin/bash # Date : (2013-06-26) # Last revision : see changelog # Wine version used : # Distribution used to test : xUbuntu 16.04 # Licence : GPLv3 # Depend : msxml3, d3dx9 # # CHANGELOG # [?] (2013-06-26) # Initial script. # [?] (2017-07-28) # ? # [Dadu042] (2020-01-22 21:30) # Wine 2.13-staging -> 3.0.3. # This script was tested using the DVD version of `Civilization IV: Complete' # version 1.74, bought in Sweden in 2011. [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="Civilization IV: Complete Edition" TITLECIV="Civilization IV" TITLEBTS="Civilization IV - Beyond The Sword" TITLEW="Civilization IV - Warlords" TITLECOL="Civilization IV - Colonization" AUTHOR="" PREFIX="Civilization4" WORKINGWINEVERSION="3.0.3" STEAM_ID_CIV="3900" STEAM_ID_W="3990" STEAM_ID_BTS="8800" STEAM_ID_COL="16810" POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE" POL_SetupWindow_Init POL_SetupWindow_SetID 1779 POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "Firaxis Games" "http://www.firaxis.com/" "$AUTHOR" "$PREFIX" POL_Wine_SelectPrefix "$PREFIX" POL_SetupWindow_InstallMethod "DVD,STEAM" if [ "$INSTALL_METHOD" == "DVD" ]; then # Let the user select a DVD POL_SetupWindow_cdrom # Check if this DVD is the Civilization IV DVD POL_SetupWindow_check_cdrom "Autorun/Civ4Installer.ico" fi # Set and install the correct Wine version POL_Wine_PrefixCreate "$WORKINGWINEVERSION" # Install DirectX9 POL_Call POL_Install_d3dx9 if [ "$INSTALL_METHOD" == "DVD" ]; then # Run installer POL_Wine_WaitBefore "$TITLECIV" POL_Wine start /unix "$CDROM/setup.exe" POL_Wine_WaitExit "$TITLECIV" # Patch Civilization IV: Beyond the sword to 3.19 cd "$POL_USER_ROOT/tmp" POL_Download "http://files.playonlinux.com/Civ4BeyondTheSwordPatch3.19.exe" "c45f6e028f51db2386120a5861eabe7c" POL_Wine_WaitBefore "$TITLECIV" POL_Wine Civ4BeyondTheSwordPatch3.19.exe POL_Wine_WaitExit "$TITLECIV" else POL_Call POL_Install_steam # Start steam, update it, and install the games cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam" POL_Wine start /unix "Steam.exe" steam://install/$STEAM_ID_CIV POL_SetupWindow_message "$(eval_gettext 'Steam is about to perform an update.\nAfter Steam finishes updating and shows you to the login interface, login and then let $TITLE install.\n\nWhen the installation is finished, press next (Do not close Steam)')" "$TITLECIV" POL_Wine start /unix "Steam.exe" steam://install/$STEAM_ID_W POL_SetupWindow_message "$(eval_gettext 'Steam is installing $TITLEW, press next when the installation is finished')" "$TITLECIV" POL_Wine start /unix "Steam.exe" steam://install/$STEAM_ID_BTS POL_SetupWindow_message "$(eval_gettext 'Steam is installing $TITLEBTS, press next when the installation is finished')" "$TITLECIV" POL_Wine start /unix "Steam.exe" steam://install/$STEAM_ID_COL POL_SetupWindow_message "$(eval_gettext 'Steam is installing $TITLECOL, please quit Steam properly when the installation is finished (make sure Steam is not still in the traybar) and then press next so that the installation script can continue.')" "$TITLECIV" POL_Wine_WaitExit "$TITLECIV" fi # Install msxml3.msi # Override for msxml3 is needed before the install # The msvcr71 one is just there so that mods will work later on POL_Wine_OverrideDLL "native" "msxml3" POL_Wine_OverrideDLL "builtin" "msvcr71" POL_Call POL_Install_msxml3 #Create shortcuts if [ "$INSTALL_METHOD" == "STEAM" ]; then POL_Shortcut "Steam.exe" "$TITLECIV" "$TITLECIV.png" "-applaunch $STEAM_ID_CIV" "Game;StrategyGame;" POL_Shortcut "Steam.exe" "$TITLEBTS" "$TITLEBTS.png" "-applaunch $STEAM_ID_BTS" "Game;StrategyGame;" POL_Shortcut "Steam.exe" "$TITLEW" "$TITLEW.png" "-applaunch $STEAM_ID_W" "Game;StrategyGame;" POL_Shortcut "Steam.exe" "$TITLECOL" "$TITLECOL.png" "-applaunch $STEAM_ID_COL" "Game;StrategyGame;" POL_Shortcut "Steam.exe" "Steam - Civ IV" "" "" "Game;" else POL_Shortcut "Civilization4.exe" "$TITLECIV" "$TITLECIV.png" "" "Game;StrategyGame;" POL_Shortcut "Civ4BeyondSword.exe" "$TITLEBTS" "$TITLEBTS.png" "" "Game;StrategyGame;" POL_Shortcut "Civ4Warlords.exe" "$TITLEW" "$TITLEW.png" "" "Game;StrategyGame;" fi #Done! POL_SetupWindow_message "$(eval_gettext 'Installation finished\n')" "$TITLECIV" POL_SetupWindow_Close exit 0 |
Contributions
Filters:
ContribuerMembre | Messages |
pepebuho | Samedi 24 Mars 2018 à 4:27 |
pepebuho
|
MessagesHi. Could you update the script to install from GamersGate? Thanks Réponses |
iceiceice | Mardi 18 Juillet 2017 à 3:06 |
iceiceice
|
MessagesHi,
I used this installer for Civilization IV for years, thank you PlayOnLinux for creating it! It works great.
However, about a week ago it stopped working. The reason is, I install using the steam store purchase of the game, and the new steam update is broken with the wine 1.7.55 used in this package.
There is a bug report and a patch here:
https://www.playonlinux.com/en/topic-15336.html
To get the installer to work now with steam, I had to update the Wine version in the script: "2.12-staging". Since that wine has the patch described in the bug report. With that change to the script, the game installs and runs for me in Ubuntu 16.04.
It may be good to make a permanent change to the wine version in the script? I hope the maintainer will see this message. RéponsesLundi 24 Juillet 2017 à 10:03
Lundi 24 Juillet 2017 à 10:08
Mardi 25 Juillet 2017 à 11:22
Mardi 25 Juillet 2017 à 11:29
Mardi 25 Juillet 2017 à 13:17
Dimanche 8 Avril 2018 à 0:56
|
Grubshka | Vendredi 17 Février 2017 à 15:43 |
Grubshka
|
MessagesEverything is working well. However, after installation, I had an error running the game : "caught unhandled exception creating xml parser object". Réponses |
djg | Samedi 13 Février 2016 à 9:32 |
djg
|
MessagesScript worked great for me. Mint 17.2 with Civ4 Complete DVD. Installed and running single player mode. Réponses |
LinuxScripter | Samedi 21 Novembre 2015 à 8:45 |
LinuxScripter
|
WarningCette mise à jour n'a pas été approuvée par l'équipe. MessagesOnce I select the DVD the installator shows the "unable to find the CD-ROM" error. This is because the PoL is looking for file that dosen't exist on the disc. (Civ4Installer.ico) I'm uploading the fixes to the script. PS:Just in case you were wondering, I was using original Civilization 4 Complete Edition disc bought in Poland in 2013. Differences@@ -1,72 +1,63 @@ #!/bin/bash # Date : (2013-06-26) -# Last revision : see changelog -# Wine version used : -# Distribution used to test : xUbuntu 16.04 -# Author : Jinny Ramsmark +# Last revision : (2015-11-21) +# Wine version used : 1.7.51 +# Distribution used to test : xUbuntu 13.10,Ubuntu 15.04 64bit +# Author : Jinny Ramsmark (original script),LinuxScripter (fixes) # Licence : GPLv3 # Depend : msxml3, d3dx9 -# -# CHANGELOG -# [Jinny Ramsmark] (2013-06-26) -# Initial script. -# [?] (2017-07-28) -# ? -# [Dadu042] (2020-01-22 21:30) -# Wine 2.13-staging -> 3.0.3. - # This script was tested using the DVD version of `Civilization IV: Complete' -# version 1.74, bought in Sweden in 2011. - +# version 1.74, bought in the Sweden in 2011. + [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" - + TITLE="Civilization IV: Complete Edition" TITLECIV="Civilization IV" TITLEBTS="Civilization IV - Beyond The Sword" TITLEW="Civilization IV - Warlords" TITLECOL="Civilization IV - Colonization" -AUTHOR="Jinny Ramsmark" +AUTHOR="Jinny Ramsmark and LinuxScripter" PREFIX="Civilization4" -WORKINGWINEVERSION="3.0.3" +WORKINGWINEVERSION="1.7.51" STEAM_ID_CIV="3900" STEAM_ID_W="3990" STEAM_ID_BTS="8800" STEAM_ID_COL="16810" - + POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE" - + POL_SetupWindow_Init POL_SetupWindow_SetID 1779 POL_Debug_Init - + POL_SetupWindow_presentation "$TITLE" "Firaxis Games" "http://www.firaxis.com/" "$AUTHOR" "$PREFIX" POL_Wine_SelectPrefix "$PREFIX" - + POL_SetupWindow_InstallMethod "DVD,STEAM" - + if [ "$INSTALL_METHOD" == "DVD" ]; then # Let the user select a DVD POL_SetupWindow_cdrom - + # Check if this DVD is the Civilization IV DVD - POL_SetupWindow_check_cdrom "Autorun/Civ4Installer.ico" + POL_SetupWindow_check_cdrom "autorun.exe" fi - + # Set and install the correct Wine version POL_Wine_PrefixCreate "$WORKINGWINEVERSION" - + # Install DirectX9 POL_Call POL_Install_d3dx9 - + if [ "$INSTALL_METHOD" == "DVD" ]; then # Run installer POL_Wine_WaitBefore "$TITLECIV" POL_Wine start /unix "$CDROM/setup.exe" POL_Wine_WaitExit "$TITLECIV" - - # Patch Civilization IV: Beyond the sword to 3.19 + + #Patch Civilization IV: Beyond the sword to 3.19 cd "$POL_USER_ROOT/tmp" POL_Download "http://files.playonlinux.com/Civ4BeyondTheSwordPatch3.19.exe" "c45f6e028f51db2386120a5861eabe7c" POL_Wine_WaitBefore "$TITLECIV" @@ -74,7 +65,7 @@ POL_Wine_WaitExit "$TITLECIV" else POL_Call POL_Install_steam - + # Start steam, update it, and install the games cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam" POL_Wine start /unix "Steam.exe" steam://install/$STEAM_ID_CIV @@ -82,23 +73,23 @@ POL_Wine start /unix "Steam.exe" steam://install/$STEAM_ID_W POL_SetupWindow_message "$(eval_gettext 'Steam is installing $TITLEW, press next when the installation is finished')" "$TITLECIV" - + POL_Wine start /unix "Steam.exe" steam://install/$STEAM_ID_BTS POL_SetupWindow_message "$(eval_gettext 'Steam is installing $TITLEBTS, press next when the installation is finished')" "$TITLECIV" - + POL_Wine start /unix "Steam.exe" steam://install/$STEAM_ID_COL POL_SetupWindow_message "$(eval_gettext 'Steam is installing $TITLECOL, please quit Steam properly when the installation is finished (make sure Steam is not still in the traybar) and then press next so that the installation script can continue.')" "$TITLECIV" POL_Wine_WaitExit "$TITLECIV" fi - + # Install msxml3.msi # Override for msxml3 is needed before the install # The msvcr71 one is just there so that mods will work later on - + POL_Wine_OverrideDLL "native" "msxml3" POL_Wine_OverrideDLL "builtin" "msvcr71" POL_Call POL_Install_msxml3 - + #Create shortcuts if [ "$INSTALL_METHOD" == "STEAM" ]; then POL_Shortcut "Steam.exe" "$TITLECIV" "$TITLECIV.png" "-applaunch $STEAM_ID_CIV" "Game;StrategyGame;" @@ -111,8 +102,8 @@ POL_Shortcut "Civ4BeyondSword.exe" "$TITLEBTS" "$TITLEBTS.png" "" "Game;StrategyGame;" POL_Shortcut "Civ4Warlords.exe" "$TITLEW" "$TITLEW.png" "" "Game;StrategyGame;" fi - + #Done! -POL_SetupWindow_message "$(eval_gettext 'Installation finished\n')" "$TITLECIV" +POL_SetupWindow_message "$(eval_gettext 'Installation finished\n\nThe game might crash on the first attempt, but no worries, just try one more time.')" "$TITLECIV" POL_SetupWindow_Close exit 0 \ No newline at end of file Nouveau code source#!/bin/bash # Date : (2013-06-26) # Last revision : (2015-11-21) # Wine version used : 1.7.51 # Distribution used to test : xUbuntu 13.10,Ubuntu 15.04 64bit # Author : Jinny Ramsmark (original script),LinuxScripter (fixes) # Licence : GPLv3 # Depend : msxml3, d3dx9 # This script was tested using the DVD version of `Civilization IV: Complete' # version 1.74, bought in the Sweden in 2011. [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="Civilization IV: Complete Edition" TITLECIV="Civilization IV" TITLEBTS="Civilization IV - Beyond The Sword" TITLEW="Civilization IV - Warlords" TITLECOL="Civilization IV - Colonization" AUTHOR="Jinny Ramsmark and LinuxScripter" PREFIX="Civilization4" WORKINGWINEVERSION="1.7.51" STEAM_ID_CIV="3900" STEAM_ID_W="3990" STEAM_ID_BTS="8800" STEAM_ID_COL="16810" POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE" POL_SetupWindow_Init POL_SetupWindow_SetID 1779 POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "Firaxis Games" "http://www.firaxis.com/" "$AUTHOR" "$PREFIX" POL_Wine_SelectPrefix "$PREFIX" POL_SetupWindow_InstallMethod "DVD,STEAM" if [ "$INSTALL_METHOD" == "DVD" ]; then # Let the user select a DVD POL_SetupWindow_cdrom # Check if this DVD is the Civilization IV DVD POL_SetupWindow_check_cdrom "autorun.exe" fi # Set and install the correct Wine version POL_Wine_PrefixCreate "$WORKINGWINEVERSION" # Install DirectX9 POL_Call POL_Install_d3dx9 if [ "$INSTALL_METHOD" == "DVD" ]; then # Run installer POL_Wine_WaitBefore "$TITLECIV" POL_Wine start /unix "$CDROM/setup.exe" POL_Wine_WaitExit "$TITLECIV" #Patch Civilization IV: Beyond the sword to 3.19 cd "$POL_USER_ROOT/tmp" POL_Download "http://files.playonlinux.com/Civ4BeyondTheSwordPatch3.19.exe" "c45f6e028f51db2386120a5861eabe7c" POL_Wine_WaitBefore "$TITLECIV" POL_Wine Civ4BeyondTheSwordPatch3.19.exe POL_Wine_WaitExit "$TITLECIV" else POL_Call POL_Install_steam # Start steam, update it, and install the games cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam" POL_Wine start /unix "Steam.exe" steam://install/$STEAM_ID_CIV POL_SetupWindow_message "$(eval_gettext 'Steam is about to perform an update.\nAfter Steam finishes updating and shows you to the login interface, login and then let $TITLE install.\n\nWhen the installation is finished, press next (Do not close Steam)')" "$TITLECIV" POL_Wine start /unix "Steam.exe" steam://install/$STEAM_ID_W POL_SetupWindow_message "$(eval_gettext 'Steam is installing $TITLEW, press next when the installation is finished')" "$TITLECIV" POL_Wine start /unix "Steam.exe" steam://install/$STEAM_ID_BTS POL_SetupWindow_message "$(eval_gettext 'Steam is installing $TITLEBTS, press next when the installation is finished')" "$TITLECIV" POL_Wine start /unix "Steam.exe" steam://install/$STEAM_ID_COL POL_SetupWindow_message "$(eval_gettext 'Steam is installing $TITLECOL, please quit Steam properly when the installation is finished (make sure Steam is not still in the traybar) and then press next so that the installation script can continue.')" "$TITLECIV" POL_Wine_WaitExit "$TITLECIV" fi # Install msxml3.msi # Override for msxml3 is needed before the install # The msvcr71 one is just there so that mods will work later on POL_Wine_OverrideDLL "native" "msxml3" POL_Wine_OverrideDLL "builtin" "msvcr71" POL_Call POL_Install_msxml3 #Create shortcuts if [ "$INSTALL_METHOD" == "STEAM" ]; then POL_Shortcut "Steam.exe" "$TITLECIV" "$TITLECIV.png" "-applaunch $STEAM_ID_CIV" "Game;StrategyGame;" POL_Shortcut "Steam.exe" "$TITLEBTS" "$TITLEBTS.png" "-applaunch $STEAM_ID_BTS" "Game;StrategyGame;" POL_Shortcut "Steam.exe" "$TITLEW" "$TITLEW.png" "-applaunch $STEAM_ID_W" "Game;StrategyGame;" POL_Shortcut "Steam.exe" "$TITLECOL" "$TITLECOL.png" "-applaunch $STEAM_ID_COL" "Game;StrategyGame;" POL_Shortcut "Steam.exe" "Steam - Civ IV" "" "" "Game;" else POL_Shortcut "Civilization4.exe" "$TITLECIV" "$TITLECIV.png" "" "Game;StrategyGame;" POL_Shortcut "Civ4BeyondSword.exe" "$TITLEBTS" "$TITLEBTS.png" "" "Game;StrategyGame;" POL_Shortcut "Civ4Warlords.exe" "$TITLEW" "$TITLEW.png" "" "Game;StrategyGame;" fi #Done! POL_SetupWindow_message "$(eval_gettext 'Installation finished\n\nThe game might crash on the first attempt, but no worries, just try one more time.')" "$TITLECIV" POL_SetupWindow_Close exit 0 RéponsesSamedi 21 Novembre 2015 à 10:34
Mercredi 25 Novembre 2015 à 12:51
Vendredi 11 Décembre 2015 à 17:47
Lundi 14 Décembre 2015 à 23:48
Lundi 14 Décembre 2015 à 23:48
Dimanche 8 Avril 2018 à 0:53
Edité par Dadu042 |
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