Forums

AoE 2,

updated scripts

Auteur Réponses
fekir Dimanche 26 Janvier 2014 à 9:26
fekirAnonymous

Hello,

I've updated the scripts of Age of Empires 2, the expansions, and all the mods.

I've tested them with a new wine version, added the option to select the language for the update, changed the link for the downlad components (i've updated all the materials on a website, since downloading since it was not possible to download automatically some files, other where not anymore reperible, other where dinamically generated, and other links where the link to the latest update, so the md5sum check would have failed if there would have been an update), small language bug fixes, and the option to change the language of the game.

There is no option to update the script one has submited, so I opened this discussion.

I'd like to have your feedback before submitting them.

Some user has reported, with the script I've wrote before, that they have problem playing the game.
I'm sorry because my computer does not have a CD-drive, so I'm unable to say if the game should play fine without the CD.

Edité par fekir

fekir Dimanche 26 Janvier 2014 à 9:28
fekirAnonymous

This script is for installing AoE2:

#!/bin/bash
# Date:
# Last revision:
# Distribution used to test: Debian 8 (Jessie) x86_64
# Author: Fekir
# Wine version used: 1.7.9
# Depend:
# Bug: may need nocd patch (not tested)
# Improvements: added setarch, wine>, minor fix dialogue, language, link changed, languae pack, music_dir

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

#############
# Variables #
#############
TITLE="Age Of Empires II: The Age of Kings"
PREFIX="AOE2_king"
WORKING_WINE_VERSION="1.7.9"

#################
# Debug Options #
#################
POL_SetupWindow_Init
POL_Debug_Init

################
# Presentation #
################
POL_GetSetupImages "http://files.playonlinux.com/resources/icones/AgeOfEmpires.ico" "" "$TITLE"
POL_SetupWindow_free_presentation "$TITLE" "$(eval_gettext 'This tutorial will help you to install $TITLE from Ensemble Studios (http://www.ensemblestudios.com/) on your PC.
\n\nPlease consider some OpenSource alternative programs that runs natively on GNU/Linux, as for example 0 A.D. (http://play0ad.com/) before installing $TITLE through Wine.
\n\nThis installation program is provided by: Fekir
\n\n$TITLE will be installed in $POL_USER_ROOT/wineprefix/$PREFIX
\n\nPlayOnLinux is not responsible for anything that might happen as a result of using these scripts.
\n\nClick on next to start.')"

#############################################
# Prepare everything for AOE2: Age of Kings #
#############################################
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

#########################
# 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"
    SETUP_EXE = "$CDROM/aoesetup.exe"m
else # LOCAL
    cd "$HOME"
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
    SETUP_EXE="$APP_ANSWER"
fi
mkdir -p "$WINEPREFIX/drive_c/$PROGRAMFILES/Microsoft Games/Age of Empires II/"
POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed.')" "$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;"

#########################################
# Install AOE: Age of Kings, Patch 2.0a #
#########################################
POL_SetupWindow_question "Do you want to install the 2.0a Patch? (Recommended)" "Patch"
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 # DOWNLOAD
        cd "$POL_System_TmpDir"
        LINK="http://fekir.altervista.org/post/games/aoe2/patch"
        POL_SetupWindow_menu "Choose the game language" "$(eval_gettext 'Choose the game language')" "English~German~Spanish~French~Italian~Japanese~Korean~Chinese" "~"
        if [ "$APP_ANSWER" = "German" ]; then
            SETUP_EXE="Age2upA_de.exe"
            MD5SUM="8223c96645ad76fedb35801726c6cf6d"
        elif [ "$APP_ANSWER" = "Spanish" ]; then
            SETUP_EXE="Age2upA_es.exe"
            MD5SUM="5691716c29e4ef2e8ac992370ece7c54"
        elif [ "$APP_ANSWER" = "French" ]; then
            SETUP_EXE="Age2upA_fr.exe"
            MD5SUM="f632bf26464cad1212588fc817599bae"
        elif [ "$APP_ANSWER" = "Italian" ]; then
            SETUP_EXE="Age2upA_it.exe"
            MD5SUM="299397716358ba5df439b032efb178df"
        elif [ "$APP_ANSWER" = "Japanese" ]; then
            SETUP_EXE="Age2upA_ja.exe"
            MD5SUM="09278b9a380104bceff802ae523af6b2"
        elif [ "$APP_ANSWER" = "Korean" ]; then
            SETUP_EXE="Age2upA_ko.exe"
            MD5SUM="d2f2007fd6c96a0e43332d403076ea35"
        elif [ "$APP_ANSWER" = "Chinese" ]; then
            SETUP_EXE="Age2upA_zh.exe"
            MD5SUM="43a9b9357255d3ee19f1c8fda6d6d768"
        else # English
            SETUP_EXE="Age2upA_en.exe"
            MD5SUM="20b9fd4ebd51d0375882f4f510ca7c36"
        fi
        POL_Download "$LINK/$SETUP_EXE" "$MD5SUM"
    fi
    POL_SetupWindow_wait "$(eval_gettext 'Please wait while the 2.0a Patch is installed.')" "$TITLE"
    POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS"
    POL_Wine_WaitExit "$TITLE"
    POL_Wine_reboot
fi

#################
# Language Pack #
#################
POL_SetupWindow_question "Do you want to change the game language? (Optional)\n\n Following Languages are avaiable:\n English, Bulgarian, Chinese (Simplified), Chinese (Traditional), Czech, French, German, Greek, Hungarian, Italian, Japanese, Korean, Polish, Portuguese, Russian, Slovak, Spanish and Turkish\n\nA backup of the original language files will be made.\nBehave that the languages files are not official, so they are distributed without any warranty from http://www.aoczone.net/viewtopic.php?f=101&t=32232." "Language Pack"
if [ "$APP_ANSWER" = "TRUE" ]; then
    cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Microsoft Games/Age of Empires II/"
    zip -r "lang_backup.zip" language*
    zip -r "lang_backup.zip" "History"
    mkdir "$POL_System_TmpDir/language"
    cd "$POL_System_TmpDir/language"
    LINK="http://fekir.altervista.org/post/games/aoe2/patch"
    POL_SetupWindow_menu "Choose the game language" "$(eval_gettext 'Choose the game language')" "Bulgarian~Chinese (Simplified)~Chinese (Traditional)~Czech~English~French~German~Greek~Hungarian~Italian~Japanese~Korean~Polish~Portuguese~Russian~Slovak~Spanish~Turkish" "~"
    if [ "$APP_ANSWER" = "Bulgarian" ]; then
        SETUP_EXE="aoc_bulgarian_beta.zip"
        MD5SUM="10fde3fa78830b79cc73b676aab6d447"
    elif [ "$APP_ANSWER" = "Chinese (Simplified)" ]; then
        SETUP_EXE="aoc_chinese-simplified_beta.zip"
        MD5SUM="71ca0055d569e62ba0995744bbcc070e"
    elif [ "$APP_ANSWER" = "Chinese (Traditional)" ]; then
        SETUP_EXE="aoc_chinese-traditional_beta.zip"
        MD5SUM="9196286e244a04634363b0a6c4be55d6"
    elif [ "$APP_ANSWER" = "Czech" ]; then
        SETUP_EXE="aoc_czech_beta.zip"
        MD5SUM="7dd0c2c86459ca44e89e4c55de5ea581"
    elif [ "$APP_ANSWER" = "French" ]; then
        SETUP_EXE="aoc_french.zip"
        MD5SUM="9bb641be75d84d83caef2441f4ea41fa"
    elif [ "$APP_ANSWER" = "German" ]; then
        SETUP_EXE="aoc_german.zip"
        MD5SUM="36df9291fcfb9df9d3194980dfaf4731"
    elif [ "$APP_ANSWER" = "Greek" ]; then
        SETUP_EXE="aoc_greek.zip"
        MD5SUM="f3784aa1ccb6d629d1c0d2c2b9f623c5"
    elif [ "$APP_ANSWER" = "Hungarian" ]; then
        SETUP_EXE="aoc_hungarian_beta.zip"
        MD5SUM="a1e41b207367ea82807adfb9afa6a18a"
    elif [ "$APP_ANSWER" = "Italian" ]; then
        SETUP_EXE="aoc_italian.zip"
        MD5SUM="27eacb67cf9783a7214dd97bf0192c75"
    elif [ "$APP_ANSWER" = "Japanese" ]; then
        SETUP_EXE="aoc_japanese.zip"
        MD5SUM="52840ef3ad62118de243589ec7ae452c"
    elif [ "$APP_ANSWER" = "Korean" ]; then
        SETUP_EXE="aoc_korean_beta.zip"
        MD5SUM="e535375c7b8ff2d03c60bafd0cd45707"
    elif [ "$APP_ANSWER" = "Polish" ]; then
        SETUP_EXE="aoc_polish_beta.zip"
        MD5SUM="bf9f2dc9b63ac1f8d527f7439b9e42ff"
    elif [ "$APP_ANSWER" = "Portuguese" ]; then
        SETUP_EXE="aoc_portuguese.zip"
        MD5SUM="084f146da089a6f1be48375db7c17dcf"
    elif [ "$APP_ANSWER" = "Russian" ]; then
        SETUP_EXE="aoc_russian_beta.zip"
        MD5SUM="2ca2b6dde9161bc84590d6275108b334"
    elif [ "$APP_ANSWER" = "Slovak" ]; then
        SETUP_EXE="aoc_slovak.zip"
        MD5SUM="992be3804c8895c7c92afea4e6706960"
    elif [ "$APP_ANSWER" = "Spanish" ]; then
        SETUP_EXE="aoc_spanish.zip"
        MD5SUM="083db29b293d9ede16b207d8d7a7bc5b"
    elif [ "$APP_ANSWER" = "Turkish" ]; then
        SETUP_EXE="aoc_turkish_beta.zip"
        MD5SUM="1f52e76859acc3326bbcc0924268c9c5"
    else # English
        SETUP_EXE="aoc_english.zip"
        MD5SUM="66c3ed7bb4c459b37d68042b2cdad65f"
    fi
    POL_Download "$LINK/$SETUP_EXE" "$MD5SUM"
    POL_System_unzip "$SETUP_EXE"
    cp -r $POL_System_TmpDir/language/language* "$WINEPREFIX/drive_c/$PROGRAMFILES/Microsoft Games/Age of Empires II/"
    POL_SetupWindow_wait "$(eval_gettext 'Please wait while the language pack is installed.')" "$TITLE"
    POL_Wine_reboot
fi

#####################
# Remove decoration #
#####################
cd "$POL_System_TmpDir"
echo "[HKEY_CURRENT_USER\Software\Wine\X11 Driver]" > "decorated.reg"
echo "\"Decorated\"=\"N\"" >> "decorated.reg"
POL_Wine regedit "decorated.reg"

################
# Clean & exit #
################
POL_System_TmpDelete
POL_SetupWindow_Close
exit


fekir Dimanche 26 Janvier 2014 à 9:29
fekirAnonymous

This script is for installing the expansion: The conquerors

#!/bin/bash
# Date:
# Last revision:
# Distribution used to test: Debian 8 (Jessie) x86_64
# Author: Fekir
# Wine version used: 1.7.9
# Depend: "Age Of Empires II: The Age of Kings", POL v 4.1.6+
# Bug: may need nocd patch (not tested)
# Improvements: added setarch, wine>, minor fix dialogue, userpatch and patch fix, tested new userpatch, language pack

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

#############
# Variables #
#############
TITLE="Age Of Empires II: The Conquerors"
PREFIX="AOE2_conq"
WORKING_WINE_VERSION="1.7.9"

#################
# Debug Options #
#################
POL_SetupWindow_Init
POL_Debug_Init

##############################################
# Check if AOE2: The Conquerors 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 'Please install "Age Of Empires II: The Age of Kings"')" "$TITLE"
     POL_SetupWindow_Close
     exit
fi

################
# Presentation #
################
POL_GetSetupImages "http://files.playonlinux.com/resources/icones_back2/Age%20Of%20Empires%20II%20:%20The%20Conquerors%20Expansion" "" "$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 # LOCAL
     cd "$HOME"
     POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
     SETUP_EXE="$APP_ANSWER"
     fi
POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed.')" "$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: The Conquerors, Patch 1.0c #
###########################################
POL_SetupWindow_question "Do you want to install the 1.0c Patch? (Recommended)" "Patch"
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"
          LINK="http://fekir.altervista.org/post/games/aoe2/patch"
          POL_SetupWindow_menu "Choose the game language" "$(eval_gettext 'Choose the game language')" "English~German~Spanish~French~Italian~Japanese~Korean" "~"
          if [ "$APP_ANSWER" = "German" ]; then
               SETUP_EXE="Age2XPatch_de.exe"
               MD5SUM="c7106b6684e5b8ca9f0168151e77c272"
          elif [ "$APP_ANSWER" = "Spanish" ]; then
               SETUP_EXE="Age2XPatch_es.exe"
               MD5SUM="f8d7ec2ad8e3ae1262b1106da542b85d"
          elif [ "$APP_ANSWER" = "French" ]; then
               SETUP_EXE="Age2XPatch_fr.exe"
               MD5SUM="6e7f97ea81d54d0f5fe7f7ee38c2337b"
          elif [ "$APP_ANSWER" = "Italian" ]; then
               SETUP_EXE="Age2XPatch_it.exe"
               MD5SUM="1b9a28b035208904836bc434fa1d9fec"
          elif [ "$APP_ANSWER" = "Japanese" ]; then
               SETUP_EXE="Age2XPatch_ja.exe"
               MD5SUM="472af2fa5ba1a735784e5cf0e5cca395"
          elif [ "$APP_ANSWER" = "Korean" ]; then
               SETUP_EXE="Age2XPatch_ko.exe"
               MD5SUM="b330bf168584df66c0e85ca4aa3e158d"
          else # English
               SETUP_EXE="Age2XPatch_en.exe"
               MD5SUM="8170ef5a8fa02725dcecc230b2f172ec"
          fi
          POL_Download "$LINK/$SETUP_EXE" "$MD5SUM"
     fi
     POL_SetupWindow_wait "$(eval_gettext 'Please wait while the 1.0c Patch is installed.')" "$TITLE"
     POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS"
     POL_Wine_WaitExit "$TITLE"
     POL_Wine_reboot
fi

##########################################
# Install AOE: The Conquerors, UserPatch #
##########################################
POL_SetupWindow_question "Do you want to install the Userpatch? (Recommended)\nBehave that this patch is not official, so it is distributed without any warranty from http://userpatch.aiscripters.net/." "Patch"
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"
     else
          SETUP_EXE="UserPatch/SetupAoC.exe"
          cd "$POL_System_TmpDir"
          #POL_Download fails to download this file, and this file gets updated if new version is avaiable (md5sum check would fail!)
          POL_Download "$LINK/UserPatch.v1.4.20140103-180000.zip" "cca1a59ecd71258acabcab81814f408c"
          POL_System_unzip "UserPatch.v1.4.20140103-180000.zip"
          cp "$SETUP_EXE" "$WINEPREFIX/drive_c/$PROGRAMFILES/Microsoft Games/Age of Empires II/age2_x1/"
     fi
     POL_SetupWindow_wait "$(eval_gettext 'Please wait while the Userpatch is installed.')" "$TITLE"
     POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS"
     POL_Wine_WaitExit "$TITLE"
     POL_Wine_reboot
fi

#################
# Language Pack #
#################
POL_SetupWindow_question "Do you want to change the game language? (Optional)\n\n Following Languages are avaiable:\n English, Bulgarian, Chinese (Simplified), Chinese (Traditional), Czech, French, German, Greek, Hungarian, Italian, Japanese, Korean, Polish, Portuguese, Russian, Slovak, Spanish and Turkish.\n\nA backup of the original language files will be made.\n\nYou may also wanto to install a language pack if te language ot $TITLE is different from the language of Age of Empires II: The Age of Kings, or you will have a mixed-language Game, since the expansion does not replace all language files.\nBehave that the languages files are not official, so they are distributed without any warranty from http://www.aoczone.net/viewtopic.php?f=101&t=32232" "Language Pack"
if [ "$APP_ANSWER" = "TRUE" ]; then
     cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Microsoft Games/Age of Empires II/"
     zip -r "lang_backup.zip" language*
     zip -r "lang_backup.zip" "History"
     mkdir "$POL_System_TmpDir/language"
     cd "$POL_System_TmpDir/language"
     LINK="http://fekir.altervista.org/post/games/aoe2/patch"
     POL_SetupWindow_menu "Choose the game language" "$(eval_gettext 'Choose the game language')" "Bulgarian~Chinese (Simplified)~Chinese (Traditional)~Czech~English~French~German~Greek~Hungarian~Italian~Japanese~Korean~Polish~Portuguese~Russian~Slovak~Spanish~Turkish" "~"
     if [ "$APP_ANSWER" = "Bulgarian" ]; then
          SETUP_EXE="aoc_bulgarian_beta.zip"
          MD5SUM="10fde3fa78830b79cc73b676aab6d447"
     elif [ "$APP_ANSWER" = "Chinese (Simplified)" ]; then
          SETUP_EXE="aoc_chinese-simplified_beta.zip"
          MD5SUM="71ca0055d569e62ba0995744bbcc070e"
     elif [ "$APP_ANSWER" = "Chinese (Traditional)" ]; then
          SETUP_EXE="aoc_chinese-traditional_beta.zip"
          MD5SUM="9196286e244a04634363b0a6c4be55d6"
     elif [ "$APP_ANSWER" = "Czech" ]; then
          SETUP_EXE="aoc_czech_beta.zip"
          MD5SUM="7dd0c2c86459ca44e89e4c55de5ea581"
     elif [ "$APP_ANSWER" = "French" ]; then
          SETUP_EXE="aoc_french.zip"
          MD5SUM="9bb641be75d84d83caef2441f4ea41fa"
     elif [ "$APP_ANSWER" = "German" ]; then
          SETUP_EXE="aoc_german.zip"
          MD5SUM="36df9291fcfb9df9d3194980dfaf4731"
     elif [ "$APP_ANSWER" = "Greek" ]; then
          SETUP_EXE="aoc_greek.zip"
          MD5SUM="f3784aa1ccb6d629d1c0d2c2b9f623c5"
     elif [ "$APP_ANSWER" = "Hungarian" ]; then
          SETUP_EXE="aoc_hungarian_beta.zip"
          MD5SUM="a1e41b207367ea82807adfb9afa6a18a"
     elif [ "$APP_ANSWER" = "Italian" ]; then
          SETUP_EXE="aoc_italian.zip"
          MD5SUM="27eacb67cf9783a7214dd97bf0192c75"
     elif [ "$APP_ANSWER" = "Japanese" ]; then
          SETUP_EXE="aoc_japanese.zip"
          MD5SUM="52840ef3ad62118de243589ec7ae452c"
     elif [ "$APP_ANSWER" = "Korean" ]; then
          SETUP_EXE="aoc_korean_beta.zip"
          MD5SUM="e535375c7b8ff2d03c60bafd0cd45707"
     elif [ "$APP_ANSWER" = "Polish" ]; then
          SETUP_EXE="aoc_polish_beta.zip"
          MD5SUM="bf9f2dc9b63ac1f8d527f7439b9e42ff"
     elif [ "$APP_ANSWER" = "Portuguese" ]; then
          SETUP_EXE="aoc_portuguese.zip"
          MD5SUM="084f146da089a6f1be48375db7c17dcf"
     elif [ "$APP_ANSWER" = "Russian" ]; then
          SETUP_EXE="aoc_russian_beta.zip"
          MD5SUM="2ca2b6dde9161bc84590d6275108b334"
     elif [ "$APP_ANSWER" = "Slovak" ]; then
          SETUP_EXE="aoc_slovak.zip"
          MD5SUM="992be3804c8895c7c92afea4e6706960"
     elif [ "$APP_ANSWER" = "Spanish" ]; then
          SETUP_EXE="aoc_spanish.zip"
          MD5SUM="083db29b293d9ede16b207d8d7a7bc5b"
     elif [ "$APP_ANSWER" = "Turkish" ]; then
          SETUP_EXE="aoc_turkish_beta.zip"
          MD5SUM="1f52e76859acc3326bbcc0924268c9c5"
     else # English
          SETUP_EXE="aoc_english.zip"
          MD5SUM="66c3ed7bb4c459b37d68042b2cdad65f"
     fi
     POL_Download "$LINK/$SETUP_EXE" "$MD5SUM"
     POL_System_unzip "$SETUP_EXE"
     cp -r $POL_System_TmpDir/language/language* "$WINEPREFIX/drive_c/$PROGRAMFILES/Microsoft Games/Age of Empires II/"
     POL_SetupWindow_wait "$(eval_gettext 'Please wait while the language pack is installed.')" "$TITLE"
     POL_Wine_reboot
fi


#####################
# Remove decoration #
#####################
cd "$POL_System_TmpDir"
echo "[HKEY_CURRENT_USER\Software\Wine\X11 Driver]" > "decorated.reg"
echo "\"Decorated\"=\"N\"" >> "decorated.reg"
POL_Wine regedit "decorated.reg"

################
# Clean & exit #
################
POL_System_TmpDelete
POL_SetupWindow_Close
exit

Edité par fekir

fekir Dimanche 26 Janvier 2014 à 9:30
fekirAnonymous

Mod forgotten empires

#!/bin/bash
# Date:
# Last revision:
# Distribution used to test: Debian 8 (Jessie) x86_64
# Author: Fekir
# Wine version used: 1.7.9
# Depend: "Age Of Empires II: The Conquerors", POL v 4.1.6+
# Bug:
     # note: cd is not needed

# added setarch, wine>, minor fix dialogue, md5sum mismatch, link --> OK

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

#############
# Variables #
#############
TITLE="Age Of Empires II: Forgotten Empires"
PREFIX="AOE2_forg"
WORKING_WINE_VERSION="1.7.9"

#################
# Debug Options #
#################
POL_SetupWindow_Init
POL_Debug_Init

##############################################
# Check if AOE2: The Conquerors 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_conq")" = "False" ]; then
     POL_SetupWindow_message "$(eval_gettext 'Please install "Age Of Empires II: The Conquerors"')" "$TITLE"
     POL_SetupWindow_Close
     exit
fi

################
# Presentation #
################
#POL_GetSetupImages "http://files.playonlinux.com/resources/icones/AgeOfEmpires.ico" "http://files.playonlinux.com/resources/setups/AC2/left.jpg" "$TITLE"
POL_SetupWindow_presentation "$TITLE" "AoFE team" "http://www.forgottenempires.net" "Fekir" "$PREFIX"

##################################################
# Prepare everything for AOE2: Forgotten Empires #
##################################################
POL_System_SetArch "x86"
POL_System_TmpCreate "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_System_CopyDirectory "$POL_USER_ROOT/wineprefix/AOE2_conq" "$WINEPREFIX"
POL_LoadVar_PROGRAMFILES

#########################
# Select file & install #
#########################
SETUP_OPTIONS=""
cd "$POL_System_TmpDir"
POL_Download "http://fekir.altervista.org/post/games/aoe2/mod/Age_of_Empires_Forgotten_Empires/fe_update_2.2.zip" "5e0225dbdc0d8d2279a88c24626c3956"
POL_System_unzip "fe_update_2.2.zip"
cp -r "$POL_System_TmpDir/Games" "$WINEPREFIX/drive_c/$PROGRAMFILES/Microsoft Games/Age of Empires II/"
cp "$POL_System_TmpDir/Age2_x1/age2_x2.exe" "$WINEPREFIX/drive_c/$PROGRAMFILES/Microsoft Games/Age of Empires II/age2_x1"
cp "$POL_System_TmpDir/Age2_x1/FixAoFE.exe" "$WINEPREFIX/drive_c/$PROGRAMFILES/Microsoft Games/Age of Empires II/age2_x1"
POL_Wine start /unix "$WINEPREFIX/drive_c/$PROGRAMFILES/Microsoft Games/Age of Empires II/age2_x1/FixAoFE.exe" "$SETUP_OPTIONS"
POL_Wine_reboot

###################
# Making shortcut #
###################
POL_Shortcut "age2_x2.exe" "$TITLE" "" "-nostartup" "Game;StrategyGame;"

#####################
# Remove decoration #
#####################
cd "$POL_System_TmpDir"
echo "[HKEY_CURRENT_USER\Software\Wine\X11 Driver]" > "decorated.reg"
echo "\"Decorated\"=\"N\"" >> "decorated.reg"
POL_Wine regedit "decorated.reg"

#################
# Language Pack #
#################
POL_SetupWindow_question "$TITLE is in English, do you want to change the game language? (Optional)\n\n Following Languages are avaiable:\n- Chinese (Simplified)\n- French\n- German\n- Italian\n- Japanese\n- Russian\n- Spanish\n\nA backup of the original language will be made." "Language Pack"
if [ "$APP_ANSWER" = "TRUE" ]; then
     cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Microsoft Games/Age of Empires II/"
     zip -r "lang_backup.zip" Games/Forgotten\ Empires/Data/language*
     zip -r "lang_backup.zip" "Games/Forgotten Empires/History"
     mkdir "$POL_System_TmpDir/language"
     cd "$POL_System_TmpDir/language"
     LINK="http://fekir.altervista.org/post/games/aoe2/mod/Age_of_Empires_Forgotten_Empires"
     POL_SetupWindow_menu "Choose the game language" "$(eval_gettext 'Choose the game language')" "Chinese (Simplified)~French~German~Italian~Japanese~Russian~Spanish" "~"
     if [ "$APP_ANSWER" = "Chinese (Simplified)" ]; then
          SETUP_EXE="lang_cn.zip"
          MD5SUM="41881277765aea4689fcd116299dec1d"
     elif [ "$APP_ANSWER" = "German" ]; then
          SETUP_EXE="lang_de.zip"
          MD5SUM="b612d7c36a25198bb96bd3fa856eae5a"
     elif [ "$APP_ANSWER" = "Spanish" ]; then
          SETUP_EXE="lang_es.zip"
          MD5SUM="8271cf84c31092cdc157a44c783ee130"
     elif [ "$APP_ANSWER" = "French" ]; then
          SETUP_EXE="lang_fr.zip"
          MD5SUM="bb36316a23b6298b9d1e062fc03899d4"
     elif [ "$APP_ANSWER" = "Chinese (Traditional)" ]; then
          SETUP_EXE="lang_hk.zip"
          MD5SUM="64ada4c4e96769378dc031a686668b39"
     elif [ "$APP_ANSWER" = "Italian" ]; then
          SETUP_EXE="lang_it.zip"
          MD5SUM="499a7e018aafb0a2af232062b3849174"
     elif [ "$APP_ANSWER" = "Japanese" ]; then
          SETUP_EXE="lang_ja.zip"
          MD5SUM="3ee91f0e3675ebdb99ea0a9923c3a658"
     elif [ "$APP_ANSWER" = "Russian" ]; then
          SETUP_EXE="lang_ru.zip"
          MD5SUM="9dbb28dff8fc9662da80613386f60be7"
     else # English
          SETUP_EXE="lang_en.zip"
          MD5SUM="becfd143a72240c747824a2da0668b2a"
     fi
     POL_Download "$LINK/$SETUP_EXE" "$MD5SUM"
     POL_System_unzip "$SETUP_EXE"
     cp -r "$POL_System_TmpDir/language/Games" "$WINEPREFIX/drive_c/$PROGRAMFILES/Microsoft Games/Age of Empires II/"
     POL_SetupWindow_wait "$(eval_gettext 'Please wait while the language pack is installed.')" "$TITLE"
     POL_Wine_reboot
fi


################
# Clean & exit #
################
POL_System_TmpDelete
POL_SetupWindow_Close
exit
fekir Dimanche 26 Janvier 2014 à 9:30
fekirAnonymous

Mod age of vampires

#!/bin/bash
# Date:
# Last revision:
# Distribution used to test: Debian 8 (Jessie) x86_64
# Author: Fekir
# Wine version used: 1.7.9
# Depend: "Age Of Empires II: The Conquerors", POL v 4.1.6+
# Bug: may need nocd patch (not tested)

# added setarch, wine>, new version, changed download link -->OK

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

#############
# Variables #
#############
TITLE="Age of Vampires: Blood Reign in Transsylvania"
PREFIX="AOE2_vamp"
WORKING_WINE_VERSION="1.7.9"

#################
# Debug Options #
#################
POL_SetupWindow_Init
POL_Debug_Init

##############################################
# Check if AOE2: The Conquerors 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_conq")" = "False" ]; then
     POL_SetupWindow_message "$(eval_gettext 'Please install "Age Of Empires II: The Conquerors"')" "$TITLE"
     POL_SetupWindow_Close
     exit
fi

################
# Presentation #
################
#POL_GetSetupImages "http://files.playonlinux.com/resources/icones/AgeOfEmpires.ico" "http://files.playonlinux.com/resources/setups/AC2/left.jpg" "$TITLE"
POL_SetupWindow_presentation "$TITLE" "Khan Ivayl" "http://aok.heavengames.com/features/blacksmith-features/age-of-vampires-blood-reign-in-transsylvania/" "Fekir" "$PREFIX"

###################################################################################
# Prepare everything for AOE2 MOD, Age of Vampires - Blood Reign in Transsylvania #
###################################################################################
POL_System_SetArch "x86"
POL_System_TmpCreate "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_System_CopyDirectory "$POL_USER_ROOT/wineprefix/AOE2_conq" "$WINEPREFIX"
POL_LoadVar_PROGRAMFILES

#########################
# Select file & install #
#########################
POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
SETUP_OPTIONS="/S"
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"
     POL_Download "http://fekir.altervista.org/post/games/aoe2/mod/Age_of_Vampires_Bloodreign_in_Transsylvania/Age_of_Vampires_Bloodreign_in_Transsylvania_09_10_13_.zip" "048c8c48cdaa3d57c0ac55443e21dfb5"
     POL_System_unzip "Age_of_Vampires_Bloodreign_in_Transsylvania_09_10_13_.zip"
     SETUP_EXE="Age_of_Vampires_Bloodreign_in_Transsylvania/Install_Age_of_Vampires.exe"
fi
POL_SetupWindow_wait "$(eval_gettext 'Please wait while the $TITLE is installed.')" "$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;"

#####################
# Remove decoration #
#####################
cd "$POL_System_TmpDir"
echo "[HKEY_CURRENT_USER\Software\Wine\X11 Driver]" > "decorated.reg"
echo "\"Decorated\"=\"N\"" >> "decorated.reg"
POL_Wine regedit "decorated.reg"

################
# Clean & exit #
################
POL_System_TmpDelete
POL_SetupWindow_Close
exit
fekir Dimanche 26 Janvier 2014 à 9:31
fekirAnonymous

Mod Tales of Middle-Earth

#!/bin/bash
# Date:
# Last revision:
# Distribution used to test: Debian 8 (Jessie) x86_64
# Author: Fekir
# Wine version used: 1.7.9
# Depend: "Age Of Empires II: The Conquerors", POL v 4.1.6+
# Bug: may need nocd patch (not tested)

# added setarch, wine>, bug solved, new link

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

#############
# Variables #
#############
TITLE="Tales of Middle-Earth"
PREFIX="AOE2_tome"
WORKING_WINE_VERSION="1.7.9"

#################
# Debug Options #
#################
POL_SetupWindow_Init
POL_Debug_Init

##############################################
# Check if AOE2: The Conquerors 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_conq")" = "False" ]; then
     POL_SetupWindow_message "$(eval_gettext 'Please install "Age Of Empires II: The Conquerors"')" "$TITLE"
     POL_SetupWindow_Close
     exit
fi

################
# Presentation #
################
#POL_GetSetupImages "http://files.playonlinux.com/resources/icones/AgeOfEmpires.ico" "http://files.playonlinux.com/resources/setups/AC2/left.jpg" "$TITLE"
POL_SetupWindow_presentation "$TITLE" "ToME Team" "http://aok.heavengames.com/tales-of-middle-earth" "Fekir" "$PREFIX"

##########################################################
# Prepare everything for AOE2 MOD, Tales of Middle-Earth #
##########################################################
POL_System_SetArch "x86"
POL_System_TmpCreate "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_System_CopyDirectory "$POL_USER_ROOT/wineprefix/AOE2_conq" "$WINEPREFIX"
POL_LoadVar_PROGRAMFILES

#########################
# Select file & install #
#########################
POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
SETUP_OPTIONS="/VERYSILENT"
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="Tales of Middle-Earth Setup.exe"
     POL_Download "http://fekir.altervista.org/post/games/aoe2/mod/Tales_of_Middle-Earth/TalesOfMiddleEarthSetup.2_0.6zip" "1288456158e127c7ffde0cbf6a8e52cb"
     POL_System_unzip "TalesOfMiddleEarthSetup.2_0.6zip"
fi
POL_SetupWindow_wait "$(eval_gettext 'Please wait while the $TITLE is installed.')" "$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;"

#####################
# Remove decoration #
#####################
cd "$POL_System_TmpDir"
echo "[HKEY_CURRENT_USER\Software\Wine\X11 Driver]" > "decorated.reg"
echo "\"Decorated\"=\"N\"" >> "decorated.reg"
POL_Wine regedit "decorated.reg"

################
# Clean & exit #
################
POL_System_TmpDelete
POL_SetupWindow_Close
exit
fekir Dimanche 26 Janvier 2014 à 9:31
fekirAnonymous

Mod Rome at War

#!/bin/bash
# Date:
# Last revision:
# Distribution used to test: Debian 8 (Jessie) x86_64
# Author: Fekir
# Wine version used: 1.7.9
# Depend: "Age Of Empires II: The Age of Kings" or "Age Of Empires II: The Conquerors", POL v 4.1.6+
# Bug: may need nocd patch (not tested), works also with AOE2_king, not only AOE2_conq

# added setarch, wine>, minor fix dialogue, new link

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

#############
# Variables #
#############
TITLE="Rome at War"
PREFIX="AOE2_raw"
WORKING_WINE_VERSION="1.7.9"

#################
# Debug Options #
#################
POL_SetupWindow_Init
POL_Debug_Init

##############################################
# Check if AOE2: The Conquerors 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_conq")" = "False" && "$(POL_Wine_PrefixExists "AOE2_conq")" = "False" ]; then
     POL_SetupWindow_message "$(eval_gettext 'Please install "Age Of Empires II: The Age of Kings" or "Age Of Empires II: The Conquerors" ')" "$TITLE"
     POL_SetupWindow_Close
     exit
fi

################
# Presentation #
################
#POL_GetSetupImages "http://files.playonlinux.com/resources/icones/AgeOfEmpires.ico" "http://files.playonlinux.com/resources/setups/AC2/left.jpg" "$TITLE"
POL_SetupWindow_presentation "$TITLE" "WildFire Games" "http://wildfiregames.com/raw/" "Fekir" "$PREFIX"

################################################
# Prepare everything for AOE2 MOD, Rome at War #
################################################
POL_System_SetArch "x86"
POL_System_TmpCreate "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_System_CopyDirectory "$POL_USER_ROOT/wineprefix/AOE2_conq" "$WINEPREFIX" # vedere se esiste, altrimenti copiare AOE2_king!!!
POL_LoadVar_PROGRAMFILES

POL_SetupWindow_menu_num "$(eval_gettext 'In order to install $TITLE we need to install Mod Pack Studio Lite 2.0')" "$TITLE" "DOWNLOAD~LOCAL" "~"
SETUP_OPTIONS="/S"
if [ "$APP_ANSWER" -eq 1 ]; 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"
     POL_Download "http://fekir.altervista.org/post/games/aoe2/mod/Rome_at_War/litsetup_v20.zip" "660ca5503b3536f4f73376d37e4f43f2"
     POL_System_unzip "litsetup_v20.zip"
     SETUP_EXE="litsetup.exe"
fi
POL_SetupWindow_wait "$(eval_gettext 'Please wait while the Mod Pack Studio Lite 2.0 is installed.')" "$TITLE"
POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS"
POL_Wine_WaitExit "$TITLE"
POL_Wine_reboot

#########################
# Select file & install #
#########################
cd "$POL_System_TmpDir"
POL_Download "http://fekir.altervista.org/post/games/aoe2/mod/Rome_at_War/WFSRaWScenv_2.zip" "792168f8ad473969390d5406f5f04f80"
POL_System_unzip "WFSRaWScenv_2.zip"
mv *.mp3 "$WINEPREFIX/drive_c/$PROGRAMFILES/Microsoft Games/Age of Empires II/Sound/stream"
mv *.txt "$WINEPREFIX/drive_c/$PROGRAMFILES/Microsoft Games/Age of Empires II/History"
mv *.ai "$WINEPREFIX/drive_c/$PROGRAMFILES/Microsoft Games/Age of Empires II/AI"
mv *.per "$WINEPREFIX/drive_c/$PROGRAMFILES/Microsoft Games/Age of Empires II/AI"
mv *.cpx "$WINEPREFIX/drive_c/$PROGRAMFILES/Microsoft Games/Age of Empires II/Scenario"
mv *.dll "$WINEPREFIX/drive_c/$PROGRAMFILES/Microsoft Games/Age of Empires II"
mv *.akx "$WINEPREFIX/drive_c/$PROGRAMFILES/Microsoft Games/Age of Empires II"
POL_SetupWindow_wait "$(eval_gettext 'Please wait while the $TITLE is installed.')" "$TITLE"
POL_Wine_WaitExit "$TITLE"
POL_Wine_reboot

###################
# Making shortcut #
###################
POL_Shortcut "start.exe" "$TITLE" "" "/unix '$WINEPREFIX/drive_c/$PROGRAMFILES/Microsoft Games/Age of Empires II/WFSRaWScnv2.akx'" "Game;StrategyGame;"

#####################
# Remove decoration #
#####################
cd "$POL_System_TmpDir"
echo "[HKEY_CURRENT_USER\Software\Wine\X11 Driver]" > "decorated.reg"
echo "\"Decorated\"=\"N\"" >> "decorated.reg"
POL_Wine regedit "decorated.reg"

################
# Clean & exit #
################
POL_System_TmpDelete
POL_SetupWindow_Close
exit
fekir Dimanche 26 Janvier 2014 à 9:32
fekirAnonymous

Mod Age of Chivalry

#!/bin/bash
# Date:
# Last revision:
# Distribution used to test: Debian 8 (Jessie) x86_64
# Author: Fekir
# Wine version used: 1.7.9
# Depend: "Age Of Empires II: The Conquerors", POL v 4.1.6+
# Bug: may need nocd patch (not tested)

# wine >, changed download and website link, new version

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

#############
# Variables #
#############
TITLE="Age of Chivalry: Hegemony"
PREFIX="AOE2_chiv"
WORKING_WINE_VERSION="1.7.9"

#################
# Debug Options #
#################
POL_SetupWindow_Init
POL_Debug_Init

##############################################
# Check if AOE2: The Conquerors 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_conq")" = "False" ]; then
     POL_SetupWindow_message "$(eval_gettext 'Please install "Age Of Empires II: The Conquerors"')" "$TITLE"
     POL_SetupWindow_Close
     exit
fi

################
# Presentation #
################
#POL_GetSetupImages "http://files.playonlinux.com/resources/icones/AgeOfEmpires.ico" "http://files.playonlinux.com/resources/setups/AC2/left.jpg" "$TITLE"
POL_SetupWindow_presentation "$TITLE" "Kor Bosch, Andrew Dunn and others" "http://aok.heavengames.com/age-of-chivalry" "Fekir" "$PREFIX"

##############################################################
# Prepare everything for AOE2 MOD, Age of Chivalry: Hegemony #
##############################################################
POL_System_SetArch "x86"
POL_System_TmpCreate "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_System_CopyDirectory "$POL_USER_ROOT/wineprefix/AOE2_conq" "$WINEPREFIX"
POL_LoadVar_PROGRAMFILES

#########################
# Select file & install #
#########################
POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
SETUP_OPTIONS="/S"
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="Install Age of Chivalry.exe"
     POL_Download "http://fekir.altervista.org/post/games/aoe2/mod/Age_of_Chivalry_Hegemony/AoCH-1-83_0001.zip" "4bf7cb8273d666c9d6b6e8a1aed39b1c"
     POL_System_unzip "AoCH-1-83_0001.zip"
fi
POL_SetupWindow_wait "$(eval_gettext 'Please wait while the $TITLE is installed.')" "$TITLE"
POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS"
POL_Wine_WaitExit "$TITLE"
POL_Wine_reboot

###################
# Making shortcut #
###################
POL_Shortcut "aoc.exe" "$TITLE" "" "-nostartup" "Game;StrategyGame;"

#####################
# Remove decoration #
#####################
cd "$POL_System_TmpDir"
echo "[HKEY_CURRENT_USER\Software\Wine\X11 Driver]" > "decorated.reg"
echo "\"Decorated\"=\"N\"" >> "decorated.reg"
POL_Wine regedit "decorated.reg"

################
# Clean & exit #
################
POL_System_TmpDelete
POL_SetupWindow_Close
exit
fekir Dimanche 26 Janvier 2014 à 9:33
fekirAnonymous

Script for changing the game language after you have installed the game (you can also change it during the installation, aftir applying all updates)

#!/bin/bash
# Date:
# Last revision:
# Distribution used to test: Debian 8 (Jessie) x86_64
# Author: Fekir
# Wine version used: N/A
# Depend: "Age Of Empires II: The Age of Kings", "Age Of Empires II: The Conquerors" and/or "Age Of Empires II: Forgotten Empires"
# Bug:

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

#############
# Variables #
#############
TITLE="Age of Empires 2: Language Pack"
AUTHOR="Fekir"

#################
# Debug Options #
#################
POL_SetupWindow_Init
POL_Debug_Init

#######################################################
# Check if at least AOE2: The Conquerors 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" && "$(POL_Wine_PrefixExists "AOE2_conq")" = "False" && "$(POL_Wine_PrefixExists "AOE2_forg")" = "False" ]; then
     POL_SetupWindow_message "$(eval_gettext 'Please install "Age Of Empires II: The Age of Kings", "Age Of Empires II: The Conquerors" or "Age Of Empires II: Forgotten Empires"')" "$TITLE"
     POL_SetupWindow_Close
     exit
fi

################
# Presentation #
################
POL_SetupWindow_free_presentation "$TITLE" "$(eval_gettext 'This script will help you to change the language of your game Age of Empires 2 game.
\n\nFurther information of the language pack will be given during the installation.
\n\nThis installation program is provided by: $AUTHOR
\n\nPlayOnLinux is not responsible for anything that might happen as a result of using these scripts.
\n\nClick on next to start.')"

#################################
# Prepare everything for $TITLE #
#################################
POL_System_TmpCreate "AOE2_lang"

##############################
# Select Prefix and language #
##############################
if [ "$(POL_Wine_PrefixExists "AOE2_king")" = "True" ]; then
     POL_SetupWindow_question "Do you want to change the language of your 'Age Of Empires II: The Age of Kings' installation.\n\nLanguage packs can be found at 'http://www.aoczone.net/viewtopic.php?f=101&t=32232'" "Age Of Empires II: The Age of Kings"
     if [ "$APP_ANSWER" = "TRUE" ]; then
          POL_Wine_SelectPrefix "AOE2_king"
          POL_LoadVar_PROGRAMFILES
          mkdir "$POL_System_TmpDir/AOE2_king"
          cd "$POL_System_TmpDir/AOE2_king"
          LINK="http://fekir.altervista.org/post/games/aoe2/patch"
          POL_SetupWindow_menu "Choose the game language" "$(eval_gettext 'Choose the game language')" "Bulgarian~Chinese (Simplified)~Chinese (Traditional)~Czech~English~French~German~Greek~Hungarian~Italian~Japanese~Korean~Polish~Portuguese~Russian~Slovak~Spanish~Turkish" "~"
          if [ "$APP_ANSWER" = "Bulgarian" ]; then
               SETUP_EXE="aoc_bulgarian_beta.zip"
               MD5SUM="10fde3fa78830b79cc73b676aab6d447"
          elif [ "$APP_ANSWER" = "Chinese (Simplified)" ]; then
               SETUP_EXE="aoc_chinese-simplified_beta.zip"
               MD5SUM="71ca0055d569e62ba0995744bbcc070e"
          elif [ "$APP_ANSWER" = "Chinese (Traditional)" ]; then
               SETUP_EXE="aoc_chinese-traditional_beta.zip"
               MD5SUM="9196286e244a04634363b0a6c4be55d6"
          elif [ "$APP_ANSWER" = "Czech" ]; then
               SETUP_EXE="aoc_czech_beta.zip"
               MD5SUM="7dd0c2c86459ca44e89e4c55de5ea581"
          elif [ "$APP_ANSWER" = "French" ]; then
               SETUP_EXE="aoc_french.zip"
               MD5SUM="9bb641be75d84d83caef2441f4ea41fa"
          elif [ "$APP_ANSWER" = "German" ]; then
               SETUP_EXE="aoc_german.zip"
               MD5SUM="36df9291fcfb9df9d3194980dfaf4731"
          elif [ "$APP_ANSWER" = "Greek" ]; then
               SETUP_EXE="aoc_greek.zip"
               MD5SUM="f3784aa1ccb6d629d1c0d2c2b9f623c5"
          elif [ "$APP_ANSWER" = "Hungarian" ]; then
               SETUP_EXE="aoc_hungarian_beta.zip"
               MD5SUM="a1e41b207367ea82807adfb9afa6a18a"
          elif [ "$APP_ANSWER" = "Italian" ]; then
               SETUP_EXE="aoc_italian.zip"
               MD5SUM="27eacb67cf9783a7214dd97bf0192c75"
          elif [ "$APP_ANSWER" = "Japanese" ]; then
               SETUP_EXE="aoc_japanese.zip"
               MD5SUM="52840ef3ad62118de243589ec7ae452c"
          elif [ "$APP_ANSWER" = "Korean" ]; then
               SETUP_EXE="aoc_korean_beta.zip"
               MD5SUM="e535375c7b8ff2d03c60bafd0cd45707"
          elif [ "$APP_ANSWER" = "Polish" ]; then
               SETUP_EXE="aoc_polish_beta.zip"
               MD5SUM="bf9f2dc9b63ac1f8d527f7439b9e42ff"
          elif [ "$APP_ANSWER" = "Portuguese" ]; then
               SETUP_EXE="aoc_portuguese.zip"
               MD5SUM="084f146da089a6f1be48375db7c17dcf"
          elif [ "$APP_ANSWER" = "Russian" ]; then
               SETUP_EXE="aoc_russian_beta.zip"
               MD5SUM="2ca2b6dde9161bc84590d6275108b334"
          elif [ "$APP_ANSWER" = "Slovak" ]; then
               SETUP_EXE="aoc_slovak.zip"
               MD5SUM="992be3804c8895c7c92afea4e6706960"
          elif [ "$APP_ANSWER" = "Spanish" ]; then
               SETUP_EXE="aoc_spanish.zip"
               MD5SUM="083db29b293d9ede16b207d8d7a7bc5b"
          elif [ "$APP_ANSWER" = "Turkish" ]; then
               SETUP_EXE="aoc_turkish_beta.zip"
               MD5SUM="1f52e76859acc3326bbcc0924268c9c5"
          else # English
               SETUP_EXE="aoc_english.zip"
               MD5SUM="66c3ed7bb4c459b37d68042b2cdad65f"
          fi
          POL_Download "$LINK/$SETUP_EXE" "$MD5SUM"
          POL_System_unzip "$SETUP_EXE"
          cp -r $POL_System_TmpDir/AOE2_king/language* "$WINEPREFIX/drive_c/$PROGRAMFILES/Microsoft Games/Age of Empires II/"
          POL_SetupWindow_wait "$(eval_gettext 'Please wait while the language pack is installed.')" "$TITLE"
          POL_Wine_reboot
     fi
fi
if [ "$(POL_Wine_PrefixExists "AOE2_conq")" = "True" ]; then
     POL_SetupWindow_question "Do you want to change the language of your 'Age Of Empires II: The Conquerors' installation.\n\nLanguage packs can be found at 'http://www.aoczone.net/viewtopic.php?f=101&t=32232'" "Age Of Empires II: The Conquerors"
     if [ "$APP_ANSWER" = "TRUE" ]; then
          POL_Wine_SelectPrefix "AOE2_conq"
          POL_LoadVar_PROGRAMFILES
          mkdir "$POL_System_TmpDir/AOE2_conq"
          cd "$POL_System_TmpDir/AOE2_conq"
          LINK="http://fekir.altervista.org/post/games/aoe2/patch"
          POL_SetupWindow_menu "Choose the game language" "$(eval_gettext 'Choose the game language')" "Bulgarian~Chinese (Simplified)~Chinese (Traditional)~Czech~English~French~German~Greek~Hungarian~Italian~Japanese~Korean~Polish~Portuguese~Russian~Slovak~Spanish~Turkish" "~"
          if [ "$APP_ANSWER" = "Bulgarian" ]; then
               SETUP_EXE="aoc_bulgarian_beta.zip"
               MD5SUM="10fde3fa78830b79cc73b676aab6d447"
          elif [ "$APP_ANSWER" = "Chinese (Simplified)" ]; then
               SETUP_EXE="aoc_chinese-simplified_beta.zip"
               MD5SUM="71ca0055d569e62ba0995744bbcc070e"
          elif [ "$APP_ANSWER" = "Chinese (Traditional)" ]; then
               SETUP_EXE="aoc_chinese-traditional_beta.zip"
               MD5SUM="9196286e244a04634363b0a6c4be55d6"
          elif [ "$APP_ANSWER" = "Czech" ]; then
               SETUP_EXE="aoc_czech_beta.zip"
               MD5SUM="7dd0c2c86459ca44e89e4c55de5ea581"
          elif [ "$APP_ANSWER" = "French" ]; then
               SETUP_EXE="aoc_french.zip"
               MD5SUM="9bb641be75d84d83caef2441f4ea41fa"
          elif [ "$APP_ANSWER" = "German" ]; then
               SETUP_EXE="aoc_german.zip"
               MD5SUM="36df9291fcfb9df9d3194980dfaf4731"
          elif [ "$APP_ANSWER" = "Greek" ]; then
               SETUP_EXE="aoc_greek.zip"
               MD5SUM="f3784aa1ccb6d629d1c0d2c2b9f623c5"
          elif [ "$APP_ANSWER" = "Hungarian" ]; then
               SETUP_EXE="aoc_hungarian_beta.zip"
               MD5SUM="a1e41b207367ea82807adfb9afa6a18a"
          elif [ "$APP_ANSWER" = "Italian" ]; then
               SETUP_EXE="aoc_italian.zip"
               MD5SUM="27eacb67cf9783a7214dd97bf0192c75"
          elif [ "$APP_ANSWER" = "Japanese" ]; then
               SETUP_EXE="aoc_japanese.zip"
               MD5SUM="52840ef3ad62118de243589ec7ae452c"
          elif [ "$APP_ANSWER" = "Korean" ]; then
               SETUP_EXE="aoc_korean_beta.zip"
               MD5SUM="e535375c7b8ff2d03c60bafd0cd45707"
          elif [ "$APP_ANSWER" = "Polish" ]; then
               SETUP_EXE="aoc_polish_beta.zip"
               MD5SUM="bf9f2dc9b63ac1f8d527f7439b9e42ff"
          elif [ "$APP_ANSWER" = "Portuguese" ]; then
               SETUP_EXE="aoc_portuguese.zip"
               MD5SUM="084f146da089a6f1be48375db7c17dcf"
          elif [ "$APP_ANSWER" = "Russian" ]; then
               SETUP_EXE="aoc_russian_beta.zip"
               MD5SUM="2ca2b6dde9161bc84590d6275108b334"
          elif [ "$APP_ANSWER" = "Slovak" ]; then
               SETUP_EXE="aoc_slovak.zip"
               MD5SUM="992be3804c8895c7c92afea4e6706960"
          elif [ "$APP_ANSWER" = "Spanish" ]; then
               SETUP_EXE="aoc_spanish.zip"
               MD5SUM="083db29b293d9ede16b207d8d7a7bc5b"
          elif [ "$APP_ANSWER" = "Turkish" ]; then
               SETUP_EXE="aoc_turkish_beta.zip"
               MD5SUM="1f52e76859acc3326bbcc0924268c9c5"
          else # English
               SETUP_EXE="aoc_english.zip"
               MD5SUM="66c3ed7bb4c459b37d68042b2cdad65f"
          fi
          POL_Download "$LINK/$SETUP_EXE" "$MD5SUM"
          POL_System_unzip "$SETUP_EXE"
          cp -r $POL_System_TmpDir/AOE2_conq/language* "$WINEPREFIX/drive_c/$PROGRAMFILES/Microsoft Games/Age of Empires II/"
          POL_SetupWindow_wait "$(eval_gettext 'Please wait while the language pack is installed.')" "$TITLE"
          POL_Wine_reboot
     fi
fi
if [ "$(POL_Wine_PrefixExists "AOE2_forg")" = "True" ]; then
     POL_SetupWindow_question "Do you want to change the language of your 'Age Of Empires II: Forgotten Empires' installation.\n\nLanguage packs can be found at 'http://www.forgottenempires.net/features/language-support'" "Age Of Empires II: Forgotten Empires"
     if [ "$APP_ANSWER" = "TRUE" ]; then
          POL_Wine_SelectPrefix "AOE2_forg"
          POL_LoadVar_PROGRAMFILES
          mkdir "$POL_System_TmpDir/AOE2_forg"
          cd "$POL_System_TmpDir/AOE2_forg"
          LINK="http://fekir.altervista.org/post/games/aoe2/mod/Age_of_Empires_Forgotten_Empires"
          POL_SetupWindow_menu "Choose the game language" "$(eval_gettext 'Choose the game language')" "Chinese (Simplified)~French~German~Italian~Japanese~Russian~Spanish" "~"
          if [ "$APP_ANSWER" = "Chinese (Simplified)" ]; then
               SETUP_EXE="lang_cn.zip"
               MD5SUM="41881277765aea4689fcd116299dec1d"
          elif [ "$APP_ANSWER" = "German" ]; then
               SETUP_EXE="lang_de.zip"
               MD5SUM="b612d7c36a25198bb96bd3fa856eae5a"
          elif [ "$APP_ANSWER" = "Spanish" ]; then
               SETUP_EXE="lang_es.zip"
               MD5SUM="8271cf84c31092cdc157a44c783ee130"
          elif [ "$APP_ANSWER" = "French" ]; then
               SETUP_EXE="lang_fr.zip"
               MD5SUM="bb36316a23b6298b9d1e062fc03899d4"
          elif [ "$APP_ANSWER" = "Chinese (Traditional)" ]; then
               SETUP_EXE="lang_hk.zip"
               MD5SUM="64ada4c4e96769378dc031a686668b39"
          elif [ "$APP_ANSWER" = "Italian" ]; then
               SETUP_EXE="lang_it.zip"
               MD5SUM="499a7e018aafb0a2af232062b3849174"
          elif [ "$APP_ANSWER" = "Japanese" ]; then
               SETUP_EXE="lang_ja.zip"
               MD5SUM="3ee91f0e3675ebdb99ea0a9923c3a658"
          elif [ "$APP_ANSWER" = "Russian" ]; then
               SETUP_EXE="lang_ru.zip"
               MD5SUM="9dbb28dff8fc9662da80613386f60be7"
          else # English
               SETUP_EXE="lang_en.zip"
               MD5SUM="becfd143a72240c747824a2da0668b2a"
          fi
          POL_Download "$LINK/$SETUP_EXE" "$MD5SUM"
          POL_System_unzip "$SETUP_EXE"
          cp -r "$POL_System_TmpDir/AOE2_forg/Games" "$WINEPREFIX/drive_c/$PROGRAMFILES/Microsoft Games/Age of Empires II/"
          POL_SetupWindow_wait "$(eval_gettext 'Please wait while the language pack is installed.')" "$TITLE"
          POL_Wine_reboot
     fi
fi
################
# Clean & exit #
################
POL_System_TmpDelete
POL_SetupWindow_Close
exit
Vous êtes ici: Index > PlayOnLinux > AoE 2,