Age of Empires II : The Conquerors : Forgotten Empires

Informations

Creator Message
fekir Anonymous

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 24322
Wine: System

Feedbacks

Description

Expansion pack to "Age Of Empires II". Wikipedia.
Please give a look here: http://www.playonmac.com/en/topic-10888-scripts_Age_of_empires_2.html

Source code

#!/bin/bash
# Date : (2013-08-20 15-22)
# Last revision : (2015-02-23)
# Distribution used to test : Debian Jessie
# Author: Fekir
# Wine version used: 1.6
 
# CHANGELOG
# [SuperPlumus] (2013-09-29 19-22)
#   Update gettext messages
#   Update $TITLE var
# [rogue-spectre] (2015-02-23)
#   Add browse menu to select local zip file
#   Update md5sum
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Age of Empires II : The Conquerors : Forgotten Empires"
TITLE_REQUIRED="Age of Empires II : The Conquerors"
PREFIX="AOE2_forg"
WORKING_WINE_VERSION="1.6"
 
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 'This is an installer for an update or an addon;\nPlease install $TITLE_REQUIRED first')" "$TITLE"
    POL_SetupWindow_Close
    exit
fi
 
#POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/AC2/left.jpg" "$TITLE"
POL_SetupWindow_presentation "$TITLE" "AoFE team" "http://www.forgottenempires.net" "Fekir" "$PREFIX"
 
##################################################
# Prepare prefix for AOE2: Forgotten Empires     #
##################################################
POL_System_TmpCreate "$PREFIX"
# Force Clean of "old" tmp files
POL_System_TmpDelete
POL_System_TmpCreate "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
FULL_INSTALLER="$POL_System_TmpDir/fe_update.zip"

#########################
# Select file           #
#########################
POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"

if [ "$INSTALL_METHOD" = "LOCAL" ]; then
    cd "$HOME"
    POL_SetupWindow_browse "$(eval_gettext 'Please select the archive file to extract.')" "$TITLE" "" "Windows Archive (*.zip)|*.zip;*.ZIP"
    cp "$APP_ANSWER" "$FULL_INSTALLER"
else # DOWNLOAD
    cd "$POL_System_TmpDir"
    DOWNLOAD_URL="http://forgottenempires.net/fe_update.zip"
    DOWNLOAD_MD5="5e0225dbdc0d8d2279a88c24626c3956"
    DOWNLOAD_FILE="$POL_System_TmpDir/fe_update.zip"
    POL_Call POL_Download_retry "$DOWNLOAD_URL" "$DOWNLOAD_FILE" "$DOWNLOAD_MD5" "$TITLE archive"
fi

###################
# Install         #
###################
POL_System_CopyDirectory "$POL_USER_ROOT/wineprefix/AOE2_conq" "$WINEPREFIX"
SETUP_OPTIONS=""
# not sure POL_LoadVar_PROGRAMFILES usefull
POL_LoadVar_PROGRAMFILES
cd "$POL_System_TmpDir"
POL_System_unzip "$FULL_INSTALLER"
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"
cp "$POL_System_TmpDir/version.txt" "$WINEPREFIX/drive_c/$PROGRAMFILES/Microsoft Games/Age of Empires II/"
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;"
 
################
# Clean & exit #
################
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribute
Member Message
Deleted account Thursday 26 May 2016 at 15:23
Deleted account Anonymous

Message

https://www.playonlinux.com/de/app-2167-Age_Of_Empires_II__HD.html is availiable for steam. Maybe someone can include this here to?

Replies

rogue-spectre Monday 23 February 2015 at 22:56
rogue-spectre Anonymous

Information

This update has been approved by the team.

Differences

@@ -1,26 +1,28 @@
 #!/bin/bash
 # Date : (2013-08-20 15-22)
-# Last revision : (2013-09-29 19-22)
+# Last revision : (2015-02-23)
 # Distribution used to test : Debian Jessie
 # Author: Fekir
 # Wine version used: 1.6
-
+ 
 # CHANGELOG
 # [SuperPlumus] (2013-09-29 19-22)
 #   Update gettext messages
 #   Update $TITLE var
-
+# [rogue-spectre] (2015-02-23)
+#   Add browse menu to select local zip file
+#   Update md5sum
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
-
+ 
 TITLE="Age of Empires II : The Conquerors : Forgotten Empires"
 TITLE_REQUIRED="Age of Empires II : The Conquerors"
 PREFIX="AOE2_forg"
 WORKING_WINE_VERSION="1.6"
-
+ 
 POL_SetupWindow_Init
 POL_Debug_Init
-
+ 
 ##############################################
 # Check if AOE2: The Conquerors is installed #
 # and if PlayOnLinux is v 4.1.6+             #
@@ -31,40 +33,61 @@
     POL_SetupWindow_Close
     exit
 fi
-
+ 
 #POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "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 #
+# Prepare prefix for AOE2: Forgotten Empires     #
 ##################################################
 POL_System_TmpCreate "$PREFIX"
+# Force Clean of "old" tmp files
+POL_System_TmpDelete
+POL_System_TmpCreate "$PREFIX"
 POL_Wine_SelectPrefix "$PREFIX"
-POL_System_CopyDirectory "$POL_USER_ROOT/wineprefix/AOE2_conq" "$WINEPREFIX"
+FULL_INSTALLER="$POL_System_TmpDir/fe_update.zip"
 
 #########################
-# Select file & install #
+# Select file           #
 #########################
+POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
+
+if [ "$INSTALL_METHOD" = "LOCAL" ]; then
+    cd "$HOME"
+    POL_SetupWindow_browse "$(eval_gettext 'Please select the archive file to extract.')" "$TITLE" "" "Windows Archive (*.zip)|*.zip;*.ZIP"
+    cp "$APP_ANSWER" "$FULL_INSTALLER"
+else # DOWNLOAD
+    cd "$POL_System_TmpDir"
+    DOWNLOAD_URL="http://forgottenempires.net/fe_update.zip"
+    DOWNLOAD_MD5="5e0225dbdc0d8d2279a88c24626c3956"
+    DOWNLOAD_FILE="$POL_System_TmpDir/fe_update.zip"
+    POL_Call POL_Download_retry "$DOWNLOAD_URL" "$DOWNLOAD_FILE" "$DOWNLOAD_MD5" "$TITLE archive"
+fi
+
+###################
+# Install         #
+###################
+POL_System_CopyDirectory "$POL_USER_ROOT/wineprefix/AOE2_conq" "$WINEPREFIX"
 SETUP_OPTIONS=""
+# not sure POL_LoadVar_PROGRAMFILES usefull
 POL_LoadVar_PROGRAMFILES
 cd "$POL_System_TmpDir"
-POL_Download "http://forgottenempires.net/fe_update.zip" "a98fc5214b4292bfd588c48ced5b4781"
-POL_System_unzip "fe_update.zip"
+POL_System_unzip "$FULL_INSTALLER"
 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"
 cp "$POL_System_TmpDir/version.txt" "$WINEPREFIX/drive_c/$PROGRAMFILES/Microsoft Games/Age of Empires II/"
 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;"
-
+ 
 ################
 # Clean & exit #
 ################
 POL_System_TmpDelete
 POL_SetupWindow_Close
-exit
\ No newline at end of file
+exit 0

New source code

#!/bin/bash
# Date : (2013-08-20 15-22)
# Last revision : (2015-02-23)
# Distribution used to test : Debian Jessie
# Author: Fekir
# Wine version used: 1.6
 
# CHANGELOG
# [SuperPlumus] (2013-09-29 19-22)
#   Update gettext messages
#   Update $TITLE var
# [rogue-spectre] (2015-02-23)
#   Add browse menu to select local zip file
#   Update md5sum
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Age of Empires II : The Conquerors : Forgotten Empires"
TITLE_REQUIRED="Age of Empires II : The Conquerors"
PREFIX="AOE2_forg"
WORKING_WINE_VERSION="1.6"
 
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 'This is an installer for an update or an addon;\nPlease install $TITLE_REQUIRED first')" "$TITLE"
    POL_SetupWindow_Close
    exit
fi
 
#POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/AC2/left.jpg" "$TITLE"
POL_SetupWindow_presentation "$TITLE" "AoFE team" "http://www.forgottenempires.net" "Fekir" "$PREFIX"
 
##################################################
# Prepare prefix for AOE2: Forgotten Empires     #
##################################################
POL_System_TmpCreate "$PREFIX"
# Force Clean of "old" tmp files
POL_System_TmpDelete
POL_System_TmpCreate "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
FULL_INSTALLER="$POL_System_TmpDir/fe_update.zip"

#########################
# Select file           #
#########################
POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"

if [ "$INSTALL_METHOD" = "LOCAL" ]; then
    cd "$HOME"
    POL_SetupWindow_browse "$(eval_gettext 'Please select the archive file to extract.')" "$TITLE" "" "Windows Archive (*.zip)|*.zip;*.ZIP"
    cp "$APP_ANSWER" "$FULL_INSTALLER"
else # DOWNLOAD
    cd "$POL_System_TmpDir"
    DOWNLOAD_URL="http://forgottenempires.net/fe_update.zip"
    DOWNLOAD_MD5="5e0225dbdc0d8d2279a88c24626c3956"
    DOWNLOAD_FILE="$POL_System_TmpDir/fe_update.zip"
    POL_Call POL_Download_retry "$DOWNLOAD_URL" "$DOWNLOAD_FILE" "$DOWNLOAD_MD5" "$TITLE archive"
fi

###################
# Install         #
###################
POL_System_CopyDirectory "$POL_USER_ROOT/wineprefix/AOE2_conq" "$WINEPREFIX"
SETUP_OPTIONS=""
# not sure POL_LoadVar_PROGRAMFILES usefull
POL_LoadVar_PROGRAMFILES
cd "$POL_System_TmpDir"
POL_System_unzip "$FULL_INSTALLER"
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"
cp "$POL_System_TmpDir/version.txt" "$WINEPREFIX/drive_c/$PROGRAMFILES/Microsoft Games/Age of Empires II/"
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;"
 
################
# Clean & exit #
################
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

Anonymous
Monday 23 February 2015 at 22:57
- Update md5sum since the archive was updated
Anonymous
Monday 23 February 2015 at 22:58
-Add possibility to select a local zip
Anonymous
Monday 30 May 2016 at 13:09
Hi rogue,
can you add a possibility to use the version from steam?
https://www.playonlinux.com/de/app-2167-Age_Of_Empires_II__HD.html
Anonymous
Tuesday 13 December 2016 at 20:54
I got only black screen with background sound. Is there any fix for that?
Anonymous
Wednesday 16 May 2018 at 1:31
I run this script and got no sound, changed the version of wine to 2.9-staging, and now the sound is working.
the difference is the audio driver, when it was on 1.6, sound driver was winealsa.drv, but when chaged to wine's version 2.9, driver changed to winpulse.drv, and now sounds works!!!
Anonymous
Thursday 17 May 2018 at 22:54
Fullscreen wasn't working well for me.
So I sort of Improved it a little bit by making the game windowed, almost borderless and filled the screen with it, these are the steps:

Run FixAoFE.exe in the Forgotten virtual drive
Open POL and select Forgotten
Click Configure
Tab Miscellaneous
Click "Run a .exe ..."
Locate FixAoFE.exe in ~/PlayOnLinux's virtual drives/AOE2_forg/drive_c/Program Files/Microsoft Games/Age of Empires II/age2_x1/FixAoFE.exe
Enable Windowed mode

Open Configure Wine

Open Graphics tab, and select only checkbox #1 and #3:

open the game and choose your desired resolution in options. This resolution will only affect in-game, it won't affect the menu.

I made a more detailed explanation here: https://madacol.blogspot.com.co/2018/05/configuring-age-of-empires-2-forgotten.html

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