Du bist hier
Age of Empires II : The Age of Kings
Informations
Creator | Nachricht |
---|---|
fekir
![]()
|
InformationThis installer has been approved by the team. InformationsPlatforms: Feedbacks1 0 Source code#!/bin/bash # Date : (2013-08-20 15-13) # Last revision : (2013-12-08 18-27) # Distribution used to test : Debian Jessie # Author: Fekir # Wine version used: 1.6 # CHANGELOG # [SuperPlumus] (2013-09-29 22-29) # Update gettext messages # Update $TITLE var # [SuperPlumus] (2013-12-08 18-27) # Update gettext messages [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="Age of Empires II : The Age of Kings" PREFIX="AOE2_king" WORKING_WINE_VERSION="1.6" POL_SetupWindow_Init POL_Debug_Init POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "" "$TITLE" POL_SetupWindow_presentation "$TITLE" "Ensemble Studios" "http://www.ensemblestudios.com/" "Fekir" "$PREFIX" ############################################# # Prepare everything for AOE2: Age of Kings # ############################################# POL_System_TmpCreate "$PREFIX" POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" POL_Wine_InstallFonts POL_Call POL_Install_PrivateUserDirs ######################### # Select file & install # ######################### POL_SetupWindow_InstallMethod "CD,LOCAL" SETUP_OPTIONS="" if [ "$INSTALL_METHOD" = "CD" ]; then POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disk drive.')" "$TITLE" POL_SetupWindow_cdrom POL_SetupWindow_check_cdrom "aoesetup.exe" POL_Wine start /unix "$CDROM/aoesetup.exe" "$SETUP_OPTIONS" else cd "$HOME" POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE" SETUP_EXE="$APP_ANSWER" POL_Wine_WaitBefore "$TITLE" POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS" fi POL_Wine_WaitExit "$TITLE" POL_Wine_reboot ################### # Making shortcut # ################### POL_Shortcut "empires2.exe" "$TITLE" "" "-nostartup" "Game;StrategyGame;" ######################################### # Install AOE: Age of Kings, Patch 2.0a # ######################################### POL_SetupWindow_question "$(eval_gettext 'Do you want to install the 2.0a Patch?')" "$TITLE" if [ "$APP_ANSWER" = "TRUE" ]; then SETUP_OPTIONS="" POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL" if [ "$INSTALL_METHOD" = "LOCAL" ]; then cd "$HOME" POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE" SETUP_EXE="$APP_ANSWER" else cd "$POL_System_TmpDir" SETUP_EXE="Age2upA.exe" POL_Download "http://download.microsoft.com/download/aoeaok/Update/2.0a/W9XNT4/EN-US/Age2upA.exe" "20b9fd4ebd51d0375882f4f510ca7c36" fi POL_Wine_WaitBefore "Patch 2.0a" POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS" POL_Wine_WaitExit "Patch 2.0a" POL_Wine_reboot fi ################ # Clean & exit # ################ POL_System_TmpDelete POL_SetupWindow_Close exit |
Contributions
Filters:
ContributeMember | Nachricht |
Quentin PÂRIS | Sunday 5 July 2015 at 23:47 |
Quentin PÂRIS
![]() Admin
|
WarningThis update has not been approved yet by the team. Differences@@ -17,7 +17,7 @@ TITLE="Age of Empires II : The Age of Kings" PREFIX="AOE2_king" -WORKING_WINE_VERSION="1.6" +WORKING_WINE_VERSION="1.7.46" POL_SetupWindow_Init POL_Debug_Init @@ -33,7 +33,6 @@ POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" POL_Wine_InstallFonts -POL_Call POL_Install_PrivateUserDirs ######################### # Select file & install # New source code#!/bin/bash # Date : (2013-08-20 15-13) # Last revision : (2013-12-08 18-27) # Distribution used to test : Debian Jessie # Author: Fekir # Wine version used: 1.6 # CHANGELOG # [SuperPlumus] (2013-09-29 22-29) # Update gettext messages # Update $TITLE var # [SuperPlumus] (2013-12-08 18-27) # Update gettext messages [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="Age of Empires II : The Age of Kings" PREFIX="AOE2_king" WORKING_WINE_VERSION="1.7.46" POL_SetupWindow_Init POL_Debug_Init POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "" "$TITLE" POL_SetupWindow_presentation "$TITLE" "Ensemble Studios" "http://www.ensemblestudios.com/" "Fekir" "$PREFIX" ############################################# # Prepare everything for AOE2: Age of Kings # ############################################# POL_System_TmpCreate "$PREFIX" POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" POL_Wine_InstallFonts ######################### # Select file & install # ######################### POL_SetupWindow_InstallMethod "CD,LOCAL" SETUP_OPTIONS="" if [ "$INSTALL_METHOD" = "CD" ]; then POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disk drive.')" "$TITLE" POL_SetupWindow_cdrom POL_SetupWindow_check_cdrom "aoesetup.exe" POL_Wine start /unix "$CDROM/aoesetup.exe" "$SETUP_OPTIONS" else cd "$HOME" POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE" SETUP_EXE="$APP_ANSWER" POL_Wine_WaitBefore "$TITLE" POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS" fi POL_Wine_WaitExit "$TITLE" POL_Wine_reboot ################### # Making shortcut # ################### POL_Shortcut "empires2.exe" "$TITLE" "" "-nostartup" "Game;StrategyGame;" ######################################### # Install AOE: Age of Kings, Patch 2.0a # ######################################### POL_SetupWindow_question "$(eval_gettext 'Do you want to install the 2.0a Patch?')" "$TITLE" if [ "$APP_ANSWER" = "TRUE" ]; then SETUP_OPTIONS="" POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL" if [ "$INSTALL_METHOD" = "LOCAL" ]; then cd "$HOME" POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE" SETUP_EXE="$APP_ANSWER" else cd "$POL_System_TmpDir" SETUP_EXE="Age2upA.exe" POL_Download "http://download.microsoft.com/download/aoeaok/Update/2.0a/W9XNT4/EN-US/Age2upA.exe" "20b9fd4ebd51d0375882f4f510ca7c36" fi POL_Wine_WaitBefore "Patch 2.0a" POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS" POL_Wine_WaitExit "Patch 2.0a" POL_Wine_reboot fi ################ # Clean & exit # ################ POL_System_TmpDelete POL_SetupWindow_Close exit AntwortenEditiert von: Tinou |
Quentin PÂRIS | Sunday 5 July 2015 at 22:16 |
Quentin PÂRIS
![]() Admin
|
WarningThis update has not been approved yet by the team. Differences@@ -1,40 +1,60 @@ #!/bin/bash -# Date : (2013-08-20 15-13) -# Last revision : (2013-12-08 18-27) -# Distribution used to test : Debian Jessie +# Date : (2013-08-20 15-22) +# Last revision : (2013-12-04 23-32) +# Distribution used to test: Debian 8 (Jessie) x86_64 # Author: Fekir # Wine version used: 1.6 - +# Depend: "Age Of Empires II: The Age of Kings" + # CHANGELOG -# [SuperPlumus] (2013-09-29 22-29) -# Update gettext messages +# [SuperPlumus] (2013-09-29 22-12) # Update $TITLE var -# [SuperPlumus] (2013-12-08 18-27) +# Clean code # Update gettext messages - + [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" - -TITLE="Age of Empires II : The Age of Kings" -PREFIX="AOE2_king" -WORKING_WINE_VERSION="1.6" - + +############# +# Variables # +############# +TITLE="Age of Empires II : The Conquerors" +TITLE_REQUIRED="Age of Empires II : The Age of Kings" +PREFIX="AOE2_conq" +WORKING_WINE_VERSION="1.7.44" + +################# +# Debug Options # +################# POL_SetupWindow_Init POL_Debug_Init - + +################################################ +# Check if AOE2: The Age of Kings is installed # +# and if PlayOnLinux is v 4.1.6+ # +################################################ +POL_RequiredVersion 4.1.6 || POL_Debug_Fatal "This program requires $APPLICATION_TITLE 4.1.6" +if [ "$(POL_Wine_PrefixExists "AOE2_king")" = "False" ]; then + POL_SetupWindow_message "$(eval_gettext 'This is an installer for an update or an addon;\nPlease install $TITLE_REQUIRED first')" "$TITLE" + POL_SetupWindow_Close + exit +fi + +################ +# Presentation # +################ POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "" "$TITLE" - POL_SetupWindow_presentation "$TITLE" "Ensemble Studios" "http://www.ensemblestudios.com/" "Fekir" "$PREFIX" - -############################################# -# Prepare everything for AOE2: Age of Kings # -############################################# + +############################################### +# Prepare everything for AOE2: The Conquerors # +############################################### +POL_System_SetArch "x86" POL_System_TmpCreate "$PREFIX" POL_Wine_SelectPrefix "$PREFIX" -POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" -POL_Wine_InstallFonts -POL_Call POL_Install_PrivateUserDirs - +POL_System_CopyDirectory "$POL_USER_ROOT/wineprefix/AOE2_king" "$WINEPREFIX" +POL_LoadVar_PROGRAMFILES + ######################### # Select file & install # ######################### @@ -43,45 +63,60 @@ if [ "$INSTALL_METHOD" = "CD" ]; then POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disk drive.')" "$TITLE" POL_SetupWindow_cdrom - POL_SetupWindow_check_cdrom "aoesetup.exe" - POL_Wine start /unix "$CDROM/aoesetup.exe" "$SETUP_OPTIONS" + POL_SetupWindow_check_cdrom "aocsetup.exe" + SETUP_EXE="$CDROM/aocsetup.exe" else cd "$HOME" POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE" SETUP_EXE="$APP_ANSWER" - POL_Wine_WaitBefore "$TITLE" - POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS" fi +POL_Wine_WaitBefore "$TITLE" +POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS" POL_Wine_WaitExit "$TITLE" POL_Wine_reboot - + ################### # Making shortcut # ################### -POL_Shortcut "empires2.exe" "$TITLE" "" "-nostartup" "Game;StrategyGame;" - +POL_Shortcut "age2_x1.exe" "$TITLE" "" "-nostartup" "Game;StrategyGame;" + ######################################### -# Install AOE: Age of Kings, Patch 2.0a # +# Install AOE: Age of Kings, Patch 1.0c # ######################################### -POL_SetupWindow_question "$(eval_gettext 'Do you want to install the 2.0a Patch?')" "$TITLE" +POL_SetupWindow_question "$(eval_gettext 'Do you want to install the 1.0c Patch?')" "$TITLE" if [ "$APP_ANSWER" = "TRUE" ]; then - SETUP_OPTIONS="" POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL" + SETUP_OPTIONS="" if [ "$INSTALL_METHOD" = "LOCAL" ]; then cd "$HOME" POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE" SETUP_EXE="$APP_ANSWER" - else + elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then cd "$POL_System_TmpDir" - SETUP_EXE="Age2upA.exe" - POL_Download "http://download.microsoft.com/download/aoeaok/Update/2.0a/W9XNT4/EN-US/Age2upA.exe" "20b9fd4ebd51d0375882f4f510ca7c36" + SETUP_EXE="Age2XPatch.exe" + LINK="http://download.microsoft.com/download/ageIIConquerers/Update/1.0c/W982KMe/" + POL_SetupWindow_menu "Choose the game language" "$(eval_gettext 'Choose the game language')" "English~French~Italian~Spagnolo~German~Japanese" "~" + cd "$POL_System_TmpDir" + if [ "$APP_ANSWER" == "English" ]; then + POL_Download "$LINK/EN-US/Age2XPatch.exe" "8170ef5a8fa02725dcecc230b2f172ec" + elif [ "$APP_ANSWER" == "French" ]; then + POL_Download "$LINK/FR/Age2XPatch.exe" "6e7f97ea81d54d0f5fe7f7ee38c2337b" + elif [ "$APP_ANSWER" == "German" ]; then + POL_Download "$LINK/DE/Age2XPatch.exe" "c7106b6684e5b8ca9f0168151e77c272" + elif [ "$APP_ANSWER" == "Italian" ]; then + POL_Download "$LINK/IT/Age2XPatch.exe" "1b9a28b035208904836bc434fa1d9fec" + elif [ "$APP_ANSWER" == "Japanese" ]; then + POL_Download "$LINK/JA/Age2XPatch.exe" "472af2fa5ba1a735784e5cf0e5cca395" + elif [ "$APP_ANSWER" == "Spagnolo" ]; then + POL_Download "$LINK/ES/Age2XPatch.exe" "f8d7ec2ad8e3ae1262b1106da542b85d" + fi fi - POL_Wine_WaitBefore "Patch 2.0a" + POL_Wine_WaitBefore "$TITLE" POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS" - POL_Wine_WaitExit "Patch 2.0a" + POL_Wine_WaitExit "$TITLE" POL_Wine_reboot fi - + ################ # Clean & exit # ################ New source code#!/bin/bash # Date : (2013-08-20 15-22) # Last revision : (2013-12-04 23-32) # Distribution used to test: Debian 8 (Jessie) x86_64 # Author: Fekir # Wine version used: 1.6 # Depend: "Age Of Empires II: The Age of Kings" # CHANGELOG # [SuperPlumus] (2013-09-29 22-12) # Update $TITLE var # Clean code # Update gettext messages [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" ############# # Variables # ############# TITLE="Age of Empires II : The Conquerors" TITLE_REQUIRED="Age of Empires II : The Age of Kings" PREFIX="AOE2_conq" WORKING_WINE_VERSION="1.7.44" ################# # Debug Options # ################# POL_SetupWindow_Init POL_Debug_Init ################################################ # Check if AOE2: The Age of Kings is installed # # and if PlayOnLinux is v 4.1.6+ # ################################################ POL_RequiredVersion 4.1.6 || POL_Debug_Fatal "This program requires $APPLICATION_TITLE 4.1.6" if [ "$(POL_Wine_PrefixExists "AOE2_king")" = "False" ]; then POL_SetupWindow_message "$(eval_gettext 'This is an installer for an update or an addon;\nPlease install $TITLE_REQUIRED first')" "$TITLE" POL_SetupWindow_Close exit fi ################ # Presentation # ################ POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "" "$TITLE" POL_SetupWindow_presentation "$TITLE" "Ensemble Studios" "http://www.ensemblestudios.com/" "Fekir" "$PREFIX" ############################################### # Prepare everything for AOE2: The Conquerors # ############################################### POL_System_SetArch "x86" POL_System_TmpCreate "$PREFIX" POL_Wine_SelectPrefix "$PREFIX" POL_System_CopyDirectory "$POL_USER_ROOT/wineprefix/AOE2_king" "$WINEPREFIX" POL_LoadVar_PROGRAMFILES ######################### # Select file & install # ######################### POL_SetupWindow_InstallMethod "CD,LOCAL" SETUP_OPTIONS="" if [ "$INSTALL_METHOD" = "CD" ]; then POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disk drive.')" "$TITLE" POL_SetupWindow_cdrom POL_SetupWindow_check_cdrom "aocsetup.exe" SETUP_EXE="$CDROM/aocsetup.exe" else cd "$HOME" POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE" SETUP_EXE="$APP_ANSWER" fi POL_Wine_WaitBefore "$TITLE" POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS" POL_Wine_WaitExit "$TITLE" POL_Wine_reboot ################### # Making shortcut # ################### POL_Shortcut "age2_x1.exe" "$TITLE" "" "-nostartup" "Game;StrategyGame;" ######################################### # Install AOE: Age of Kings, Patch 1.0c # ######################################### POL_SetupWindow_question "$(eval_gettext 'Do you want to install the 1.0c Patch?')" "$TITLE" if [ "$APP_ANSWER" = "TRUE" ]; then POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL" SETUP_OPTIONS="" if [ "$INSTALL_METHOD" = "LOCAL" ]; then cd "$HOME" POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE" SETUP_EXE="$APP_ANSWER" elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then cd "$POL_System_TmpDir" SETUP_EXE="Age2XPatch.exe" LINK="http://download.microsoft.com/download/ageIIConquerers/Update/1.0c/W982KMe/" POL_SetupWindow_menu "Choose the game language" "$(eval_gettext 'Choose the game language')" "English~French~Italian~Spagnolo~German~Japanese" "~" cd "$POL_System_TmpDir" if [ "$APP_ANSWER" == "English" ]; then POL_Download "$LINK/EN-US/Age2XPatch.exe" "8170ef5a8fa02725dcecc230b2f172ec" elif [ "$APP_ANSWER" == "French" ]; then POL_Download "$LINK/FR/Age2XPatch.exe" "6e7f97ea81d54d0f5fe7f7ee38c2337b" elif [ "$APP_ANSWER" == "German" ]; then POL_Download "$LINK/DE/Age2XPatch.exe" "c7106b6684e5b8ca9f0168151e77c272" elif [ "$APP_ANSWER" == "Italian" ]; then POL_Download "$LINK/IT/Age2XPatch.exe" "1b9a28b035208904836bc434fa1d9fec" elif [ "$APP_ANSWER" == "Japanese" ]; then POL_Download "$LINK/JA/Age2XPatch.exe" "472af2fa5ba1a735784e5cf0e5cca395" elif [ "$APP_ANSWER" == "Spagnolo" ]; then POL_Download "$LINK/ES/Age2XPatch.exe" "f8d7ec2ad8e3ae1262b1106da542b85d" fi fi POL_Wine_WaitBefore "$TITLE" POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS" POL_Wine_WaitExit "$TITLE" POL_Wine_reboot fi ################ # Clean & exit # ################ POL_System_TmpDelete POL_SetupWindow_Close exit Antworten |
petch | Wednesday 9 July 2014 at 20:21 |
petch
![]() Developer
|
WarningThis update has not been approved yet by the team. NachrichtMerged updates Differences@@ -1,40 +1,60 @@ #!/bin/bash -# Date : (2013-08-20 15-13) -# Last revision : (2013-12-08 18-27) -# Distribution used to test : Debian Jessie +# Date : (2013-08-20 15-22) +# Last revision : (2013-12-04 23-32) +# Distribution used to test: Debian 8 (Jessie) x86_64 # Author: Fekir # Wine version used: 1.6 - +# Depend: "Age Of Empires II: The Age of Kings" + # CHANGELOG -# [SuperPlumus] (2013-09-29 22-29) -# Update gettext messages +# [SuperPlumus] (2013-09-29 22-12) # Update $TITLE var -# [SuperPlumus] (2013-12-08 18-27) +# Clean code # Update gettext messages - + [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" - -TITLE="Age of Empires II : The Age of Kings" -PREFIX="AOE2_king" + +############# +# Variables # +############# +TITLE="Age of Empires II : The Conquerors" +TITLE_REQUIRED="Age of Empires II : The Age of Kings" +PREFIX="AOE2_conq" WORKING_WINE_VERSION="1.6" - + +################# +# Debug Options # +################# POL_SetupWindow_Init POL_Debug_Init - + +################################################ +# Check if AOE2: The Age of Kings is installed # +# and if PlayOnLinux is v 4.1.6+ # +################################################ +POL_RequiredVersion 4.1.6 || POL_Debug_Fatal "This program requires $APPLICATION_TITLE 4.1.6" +if [ "$(POL_Wine_PrefixExists "AOE2_king")" = "False" ]; then + POL_SetupWindow_message "$(eval_gettext 'This is an installer for an update or an addon;\nPlease install $TITLE_REQUIRED first')" "$TITLE" + POL_SetupWindow_Close + exit +fi + +################ +# Presentation # +################ POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "" "$TITLE" - POL_SetupWindow_presentation "$TITLE" "Ensemble Studios" "http://www.ensemblestudios.com/" "Fekir" "$PREFIX" - -############################################# -# Prepare everything for AOE2: Age of Kings # -############################################# + +############################################### +# Prepare everything for AOE2: The Conquerors # +############################################### +POL_System_SetArch "x86" POL_System_TmpCreate "$PREFIX" POL_Wine_SelectPrefix "$PREFIX" -POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" -POL_Wine_InstallFonts -POL_Call POL_Install_PrivateUserDirs - +POL_System_CopyDirectory "$POL_USER_ROOT/wineprefix/AOE2_king" "$WINEPREFIX" +POL_LoadVar_PROGRAMFILES + ######################### # Select file & install # ######################### @@ -43,45 +63,60 @@ if [ "$INSTALL_METHOD" = "CD" ]; then POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disk drive.')" "$TITLE" POL_SetupWindow_cdrom - POL_SetupWindow_check_cdrom "aoesetup.exe" - POL_Wine start /unix "$CDROM/aoesetup.exe" "$SETUP_OPTIONS" + POL_SetupWindow_check_cdrom "aocsetup.exe" + SETUP_EXE="$CDROM/aocsetup.exe" else cd "$HOME" POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE" SETUP_EXE="$APP_ANSWER" - POL_Wine_WaitBefore "$TITLE" - POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS" fi +POL_Wine_WaitBefore "$TITLE" +POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS" POL_Wine_WaitExit "$TITLE" POL_Wine_reboot - + ################### # Making shortcut # ################### -POL_Shortcut "empires2.exe" "$TITLE" "" "-nostartup" "Game;StrategyGame;" - +POL_Shortcut "age2_x1.exe" "$TITLE" "" "-nostartup" "Game;StrategyGame;" + ######################################### -# Install AOE: Age of Kings, Patch 2.0a # +# Install AOE: Age of Kings, Patch 1.0c # ######################################### -POL_SetupWindow_question "$(eval_gettext 'Do you want to install the 2.0a Patch?')" "$TITLE" +POL_SetupWindow_question "$(eval_gettext 'Do you want to install the 1.0c Patch?')" "$TITLE" if [ "$APP_ANSWER" = "TRUE" ]; then - SETUP_OPTIONS="" POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL" + SETUP_OPTIONS="" if [ "$INSTALL_METHOD" = "LOCAL" ]; then cd "$HOME" POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE" SETUP_EXE="$APP_ANSWER" - else + elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then cd "$POL_System_TmpDir" - SETUP_EXE="Age2upA.exe" - POL_Download "http://download.microsoft.com/download/aoeaok/Update/2.0a/W9XNT4/EN-US/Age2upA.exe" "20b9fd4ebd51d0375882f4f510ca7c36" + SETUP_EXE="Age2XPatch.exe" + LINK="http://download.microsoft.com/download/ageIIConquerers/Update/1.0c/W982KMe/" + POL_SetupWindow_menu "Choose the game language" "$(eval_gettext 'Choose the game language')" "English~French~Italian~Spagnolo~German~Japanese" "~" + cd "$POL_System_TmpDir" + if [ "$APP_ANSWER" == "English" ]; then + POL_Download "$LINK/EN-US/Age2XPatch.exe" "8170ef5a8fa02725dcecc230b2f172ec" + elif [ "$APP_ANSWER" == "French" ]; then + POL_Download "$LINK/FR/Age2XPatch.exe" "6e7f97ea81d54d0f5fe7f7ee38c2337b" + elif [ "$APP_ANSWER" == "German" ]; then + POL_Download "$LINK/DE/Age2XPatch.exe" "c7106b6684e5b8ca9f0168151e77c272" + elif [ "$APP_ANSWER" == "Italian" ]; then + POL_Download "$LINK/IT/Age2XPatch.exe" "1b9a28b035208904836bc434fa1d9fec" + elif [ "$APP_ANSWER" == "Japanese" ]; then + POL_Download "$LINK/JA/Age2XPatch.exe" "472af2fa5ba1a735784e5cf0e5cca395" + elif [ "$APP_ANSWER" == "Spagnolo" ]; then + POL_Download "$LINK/ES/Age2XPatch.exe" "f8d7ec2ad8e3ae1262b1106da542b85d" + fi fi - POL_Wine_WaitBefore "Patch 2.0a" + POL_Wine_WaitBefore "$TITLE" POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS" - POL_Wine_WaitExit "Patch 2.0a" + POL_Wine_WaitExit "$TITLE" POL_Wine_reboot fi - + ################ # Clean & exit # ################ New source code#!/bin/bash # Date : (2013-08-20 15-22) # Last revision : (2013-12-04 23-32) # Distribution used to test: Debian 8 (Jessie) x86_64 # Author: Fekir # Wine version used: 1.6 # Depend: "Age Of Empires II: The Age of Kings" # CHANGELOG # [SuperPlumus] (2013-09-29 22-12) # Update $TITLE var # Clean code # Update gettext messages [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" ############# # Variables # ############# TITLE="Age of Empires II : The Conquerors" TITLE_REQUIRED="Age of Empires II : The Age of Kings" PREFIX="AOE2_conq" WORKING_WINE_VERSION="1.6" ################# # Debug Options # ################# POL_SetupWindow_Init POL_Debug_Init ################################################ # Check if AOE2: The Age of Kings is installed # # and if PlayOnLinux is v 4.1.6+ # ################################################ POL_RequiredVersion 4.1.6 || POL_Debug_Fatal "This program requires $APPLICATION_TITLE 4.1.6" if [ "$(POL_Wine_PrefixExists "AOE2_king")" = "False" ]; then POL_SetupWindow_message "$(eval_gettext 'This is an installer for an update or an addon;\nPlease install $TITLE_REQUIRED first')" "$TITLE" POL_SetupWindow_Close exit fi ################ # Presentation # ################ POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "" "$TITLE" POL_SetupWindow_presentation "$TITLE" "Ensemble Studios" "http://www.ensemblestudios.com/" "Fekir" "$PREFIX" ############################################### # Prepare everything for AOE2: The Conquerors # ############################################### POL_System_SetArch "x86" POL_System_TmpCreate "$PREFIX" POL_Wine_SelectPrefix "$PREFIX" POL_System_CopyDirectory "$POL_USER_ROOT/wineprefix/AOE2_king" "$WINEPREFIX" POL_LoadVar_PROGRAMFILES ######################### # Select file & install # ######################### POL_SetupWindow_InstallMethod "CD,LOCAL" SETUP_OPTIONS="" if [ "$INSTALL_METHOD" = "CD" ]; then POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disk drive.')" "$TITLE" POL_SetupWindow_cdrom POL_SetupWindow_check_cdrom "aocsetup.exe" SETUP_EXE="$CDROM/aocsetup.exe" else cd "$HOME" POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE" SETUP_EXE="$APP_ANSWER" fi POL_Wine_WaitBefore "$TITLE" POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS" POL_Wine_WaitExit "$TITLE" POL_Wine_reboot ################### # Making shortcut # ################### POL_Shortcut "age2_x1.exe" "$TITLE" "" "-nostartup" "Game;StrategyGame;" ######################################### # Install AOE: Age of Kings, Patch 1.0c # ######################################### POL_SetupWindow_question "$(eval_gettext 'Do you want to install the 1.0c Patch?')" "$TITLE" if [ "$APP_ANSWER" = "TRUE" ]; then POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL" SETUP_OPTIONS="" if [ "$INSTALL_METHOD" = "LOCAL" ]; then cd "$HOME" POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE" SETUP_EXE="$APP_ANSWER" elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then cd "$POL_System_TmpDir" SETUP_EXE="Age2XPatch.exe" LINK="http://download.microsoft.com/download/ageIIConquerers/Update/1.0c/W982KMe/" POL_SetupWindow_menu "Choose the game language" "$(eval_gettext 'Choose the game language')" "English~French~Italian~Spagnolo~German~Japanese" "~" cd "$POL_System_TmpDir" if [ "$APP_ANSWER" == "English" ]; then POL_Download "$LINK/EN-US/Age2XPatch.exe" "8170ef5a8fa02725dcecc230b2f172ec" elif [ "$APP_ANSWER" == "French" ]; then POL_Download "$LINK/FR/Age2XPatch.exe" "6e7f97ea81d54d0f5fe7f7ee38c2337b" elif [ "$APP_ANSWER" == "German" ]; then POL_Download "$LINK/DE/Age2XPatch.exe" "c7106b6684e5b8ca9f0168151e77c272" elif [ "$APP_ANSWER" == "Italian" ]; then POL_Download "$LINK/IT/Age2XPatch.exe" "1b9a28b035208904836bc434fa1d9fec" elif [ "$APP_ANSWER" == "Japanese" ]; then POL_Download "$LINK/JA/Age2XPatch.exe" "472af2fa5ba1a735784e5cf0e5cca395" elif [ "$APP_ANSWER" == "Spagnolo" ]; then POL_Download "$LINK/ES/Age2XPatch.exe" "f8d7ec2ad8e3ae1262b1106da542b85d" fi fi POL_Wine_WaitBefore "$TITLE" POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS" POL_Wine_WaitExit "$TITLE" POL_Wine_reboot fi ################ # Clean & exit # ################ POL_System_TmpDelete POL_SetupWindow_Close exit Antworten |