You are here    Supported software    Age Of Empires II - HD nl sv ru pl es de fr

Age Of Empires II - HD

Informations

Creator Message
Quentin PÂRIS
Admin

Warning

This installer is a beta script. It means that it might not work as expected

Informations

Platforms:
Downloads: 75180
Wine: 1.8-staging

Feedbacks

Description

Age of Empires II HD is a remake of Age of Empires II that was released for PC through Steam on April 9, 2013. The game was developed by Hidden Path Entertainment and Ensemble Studios and was published by Microsoft Game Studios.

Source code

#!/usr/bin/env playonlinux-bash
# Date : (2014-07-14 17-00)
# Wine version used : 1.7.21
# Distribution used to test : Mac OS
# Author : Quentin PARIS
# Only For : http://www.playonlinux.com
  
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Age Of Empire II - HD"
PREFIX="AOE2HD"
STEAM_ID="221380"
EDITOR="Microsoft"
AUTHOR="Quentin PARIS"
WORKING_WINE_VERSION="1.8-staging"
GAME_VMS="512"
 
POL_SetupWindow_Init
POL_SetupWindow_SetID 2167
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 

 
POL_Call POL_Install_vcrun2012
POL_SetupWindow_InstallMethod STEAM

POL_Wine_SetVideoDriver
POL_SetupWindow_VMS $GAME_VMS
 
POL_Wine_Direct3D "UseGLSL" "enabled"
POL_Wine_Direct3D "DirectDrawRenderer" "opengl"
POL_Wine_Direct3D "StrictDrawOrdering" "disabled"
POL_Wine_OverrideDLL "" "gameoverlayrenderer"

if [ "$INSTALL_METHOD" = "STEAM" ]; then

    POL_Call POL_Install_steam
    POL_Call POL_Install_steam_flags "$STEAM_ID"
    POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/$STEAM_ID -nostartup"

    POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue.')" "$TITLE"
    cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
    POL_Wine start /unix "Steam.exe" "steam://install/$STEAM_ID"
    POL_Wine_WaitExit "$TITLE"

fi 

if [ "$INSTALL_METHOD" = "LOCAL" ]; then
    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 "$SETUP_EXE"
    POL_Wine_WaitExit "$TITLE"
    
    POL_Shortcut "AoK HD.exe" "$TITLE" "" "-nostartup"
fi
POL_SetupWindow_Close
exit

Contributions

Filters:

Contribute
Member Message
jsaigon Wednesday 10 May 2017 at 17:32
jsaigon Anonymous

Message

Hello, I have hit download AOE II HD in 2 hours ago but it's still in progress. I have attemped download many times but it still not working for me, the files are not download yet even my Internet network work perfect. Would you please explain it to me or help me solve it? Thank you so much!!

 

 

Replies

sotond Wednesday 10 May 2017 at 8:46
sotond Anonymous

Message

I am wondering if anyone can help me get AOEIIHD installed through steam onto my mac.  I have been trying to run it through wine many times trying many different things but keep failing.  The closest I got to actually starting the game was getting into steam through playonmac but then there were no words on the page only tiny squares in place of letters.  I cannot tell if it is something I am doing or my computer, a 2011 Macbook Pro with El Capitan currently.  I've downloaded and redownloaded and tried so many things that I have trouble finding the steam.exe to select when prompted to browse for a file.  I've tried to follow the online stuff I read on guides to get this done but seem to be slipping up.  Can anyone help me with a step by step process of how they got this to work, not leaving out detail in a way an amateur like myself won't screw up?  Much appreciated thank you ahead of time if anyone can step up.

Replies

Ads20000 Friday 27 January 2017 at 18:11
Ads20000 Anonymous

Message

The program runs well (once you've added .bak to Launcher.exe and AoK HD.exe and copied AoK HD.exe to a new Launcher.exe file - then using a shortcut to the new Launcher.exe to run the game). However, when I updated via Steam, when I tried to join a multiplayer game with Steam friends it said 'The host is not running the same version of the game. Everyone must run the same version of Age of Empires II to play a multiplayer game' despite me having 5.0.1577660 before and after reinstalling (after reinstalling it worked fine).

Replies

Philastan Tuesday 3 January 2017 at 14:35
Philastan Anonymous

Message

Everything works fine, but my game stucks in the loadingscreen right after matchmaking. Any clues? I reinstalled the game and Playonmac several times and the same process works on another mac by me flawless, which is strange. I also installed the bugfix mentioned above.

Replies

Walkman Saturday 31 December 2016 at 20:41
Walkman

Message

(POL built-in bug report wizard doesn't accept my credentials so posting here manually instead)

- What were you doing when the problem occurred?
Clicked "Play" on the steam page for AOE2
- What did you expect?
The game to launch
- What happened instead?
After steam installed the prerequisites, the log showed an error and nothing else happened. The steam status indicator went green for a few seconds then back to blue.
- Anything else to report?
The log error is:

wine: Call from 0x7b83ea52 to unimplemented function api-ms-win-crt-runtime-l1-1-0.dll._initialize_onexit_table, aborting

this exact message is shown every time I start AOE2

Replies

Saturday 31 December 2016 at 21:51 -
nvm see the link below (https://www.winehq.org/pipermail/wine-bugs/2015-November/428425.html)
Anonymous
Sunday 5 February 2017 at 17:16 -
Hey, I have the same issue but I don't really understand how to fix it with the link you posted. How does it work? Thanks
Wednesday 3 May 2017 at 15:04 -
Follow the instructions under "To Test" on the link
Ads20000 Tuesday 27 December 2016 at 19:02
Ads20000 Anonymous

Message

Thanks for the script Quentin! However I had to rename AoK II.EXE to Launcher.exe for the game to load, then launching Launcher.exe directly (as a shortcut) works. Could you rejig the script to do this automatically? I don't know how I would implement this.

Replies

philipheinser Wednesday 14 December 2016 at 22:05
philipheinser Anonymous

Message

I get this issue after an AoE update yesterday: http://pastebin.com/dztTKebf Does anyone know a quick fix?

Replies

Anonymous
Thursday 15 December 2016 at 0:21 -
https://www.winehq.org/pipermail/wine-bugs/2015-November/428425.html this fixes the problem
Saturday 31 December 2016 at 21:50 -
Yess thank you very much! this is what I needed to get it to work
nlflint Wednesday 16 November 2016 at 1:46
nlflint Anonymous

Message

Installation said it failed, but it works anyways. Game runs great.

Text is missing from left side buttons on the initial menu (before entering the game). I had to try the buttons until one started the game.

Running on 2016 rMB w/ MacOS Sierra 

 

 

Replies

ttraj Saturday 7 May 2016 at 17:24
ttraj Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Differences

@@ -4,10 +4,10 @@
 # Distribution used to test : Mac OS
 # Author : Quentin PARIS
 # Only For : http://www.playonlinux.com
-  
+   
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
-  
+   
 TITLE="Age Of Empire II - HD"
 PREFIX="AOE2HD"
 STEAM_ID="221380"
@@ -16,51 +16,82 @@
 WORKING_WINE_VERSION="1.8-staging"
 GAME_VMS="512"
  
+VBYVERSION="v2.2.4.49"
+VBYMD5="2e583d4bfd0728007bef803468e58f90"
+AOEHDPMD5="857412dbdda48510ed41c74226a6f487"
+  
 POL_SetupWindow_Init
 POL_SetupWindow_SetID 2167
 POL_Debug_Init
- 
+  
 POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
- 
+  
 POL_Wine_SelectPrefix "$PREFIX"
 POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+  
  
-
- 
+  
 POL_Call POL_Install_vcrun2012
 POL_SetupWindow_InstallMethod STEAM
-
+ 
 POL_Wine_SetVideoDriver
 POL_SetupWindow_VMS $GAME_VMS
- 
+  
 POL_Wine_Direct3D "UseGLSL" "enabled"
 POL_Wine_Direct3D "DirectDrawRenderer" "opengl"
 POL_Wine_Direct3D "StrictDrawOrdering" "disabled"
 POL_Wine_OverrideDLL "" "gameoverlayrenderer"
-
+ 
 if [ "$INSTALL_METHOD" = "STEAM" ]; then
-
+ 
     POL_Call POL_Install_steam
     POL_Call POL_Install_steam_flags "$STEAM_ID"
     POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/$STEAM_ID -nostartup"
-
+ 
     POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue.')" "$TITLE"
     cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
     POL_Wine start /unix "Steam.exe" "steam://install/$STEAM_ID"
     POL_Wine_WaitExit "$TITLE"
-
-fi 
-
+ 
+fi
+ 
 if [ "$INSTALL_METHOD" = "LOCAL" ]; then
     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 "$SETUP_EXE"
     POL_Wine_WaitExit "$TITLE"
-    
+     
     POL_Shortcut "AoK HD.exe" "$TITLE" "" "-nostartup"
 fi
+ 
+POL_SetupWindow_menu "Install Voobly" "Do you want to play in voobly also?" "Yes No" " "
+if [ "$APP_ANSWER" = "Yes" ]
+then
+   POL_System_TmpCreate "$PREFIX"
+   cd "$POL_System_TmpDir"
+   POL_SetupWindow_message "details http://aoccs.net/" "Instllaing AOE2HD patch"
+   POL_Download "http://www.aoccs.net/aochd/aochdcompat-v4.exe" "$AOEHDPMD5"
+   INSTALLER="$POL_System_TmpDir/aochdcompat-v4.exe"
+     
+   POL_Wine_WaitBefore "AOE2HD Compatablity"
+   POL_Wine "$INSTALLER"
+    
+   POL_SetupWindow_message "Instllaing Voobly" "Voobly"
+   POL_Download "http://www.voobly.com/updates/voobly-$VBYVERSION.exe" "$VBYMD5"
+   INSTALLER="$POL_System_TmpDir/voobly-$VBYVERSION.exe"   
+     
+   POL_Wine_WaitBefore "Voobly"
+   POL_Wine "$INSTALLER"
+   POL_Shortcut "voobly.exe" "Voobly" ""
+   POL_Shortcut_InsertBeforeWine "Voobly" "export STAGING_WRITECOPY=1"
+    
+   POL_SetupWindow_message "Instllaing directplay and dotnet" "Support"
+   POL_Call POL_Install_Directplay
+   POL_Call POL_Install_dotnet40  
+fi
+[ "$$POL_System_TmpDir" ] && POL_System_TmpDelete
 POL_SetupWindow_Close
 exit
\ No newline at end of file

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2014-07-14 17-00)
# Wine version used : 1.7.21
# Distribution used to test : Mac OS
# Author : Quentin PARIS
# Only For : http://www.playonlinux.com
   
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
   
TITLE="Age Of Empire II - HD"
PREFIX="AOE2HD"
STEAM_ID="221380"
EDITOR="Microsoft"
AUTHOR="Quentin PARIS"
WORKING_WINE_VERSION="1.8-staging"
GAME_VMS="512"
 
VBYVERSION="v2.2.4.49"
VBYMD5="2e583d4bfd0728007bef803468e58f90"
AOEHDPMD5="857412dbdda48510ed41c74226a6f487"
  
POL_SetupWindow_Init
POL_SetupWindow_SetID 2167
POL_Debug_Init
  
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
  
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
  
 
  
POL_Call POL_Install_vcrun2012
POL_SetupWindow_InstallMethod STEAM
 
POL_Wine_SetVideoDriver
POL_SetupWindow_VMS $GAME_VMS
  
POL_Wine_Direct3D "UseGLSL" "enabled"
POL_Wine_Direct3D "DirectDrawRenderer" "opengl"
POL_Wine_Direct3D "StrictDrawOrdering" "disabled"
POL_Wine_OverrideDLL "" "gameoverlayrenderer"
 
if [ "$INSTALL_METHOD" = "STEAM" ]; then
 
    POL_Call POL_Install_steam
    POL_Call POL_Install_steam_flags "$STEAM_ID"
    POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/$STEAM_ID -nostartup"
 
    POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue.')" "$TITLE"
    cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
    POL_Wine start /unix "Steam.exe" "steam://install/$STEAM_ID"
    POL_Wine_WaitExit "$TITLE"
 
fi
 
if [ "$INSTALL_METHOD" = "LOCAL" ]; then
    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 "$SETUP_EXE"
    POL_Wine_WaitExit "$TITLE"
     
    POL_Shortcut "AoK HD.exe" "$TITLE" "" "-nostartup"
fi
 
POL_SetupWindow_menu "Install Voobly" "Do you want to play in voobly also?" "Yes No" " "
if [ "$APP_ANSWER" = "Yes" ]
then
   POL_System_TmpCreate "$PREFIX"
   cd "$POL_System_TmpDir"
   POL_SetupWindow_message "details http://aoccs.net/" "Instllaing AOE2HD patch"
   POL_Download "http://www.aoccs.net/aochd/aochdcompat-v4.exe" "$AOEHDPMD5"
   INSTALLER="$POL_System_TmpDir/aochdcompat-v4.exe"
     
   POL_Wine_WaitBefore "AOE2HD Compatablity"
   POL_Wine "$INSTALLER"
    
   POL_SetupWindow_message "Instllaing Voobly" "Voobly"
   POL_Download "http://www.voobly.com/updates/voobly-$VBYVERSION.exe" "$VBYMD5"
   INSTALLER="$POL_System_TmpDir/voobly-$VBYVERSION.exe"   
     
   POL_Wine_WaitBefore "Voobly"
   POL_Wine "$INSTALLER"
   POL_Shortcut "voobly.exe" "Voobly" ""
   POL_Shortcut_InsertBeforeWine "Voobly" "export STAGING_WRITECOPY=1"
    
   POL_SetupWindow_message "Instllaing directplay and dotnet" "Support"
   POL_Call POL_Install_Directplay
   POL_Call POL_Install_dotnet40  
fi
[ "$$POL_System_TmpDir" ] && POL_System_TmpDelete
POL_SetupWindow_Close
exit

Replies

ttraj Friday 6 May 2016 at 16:20
ttraj Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Differences

@@ -15,6 +15,10 @@
 AUTHOR="Quentin PARIS"
 WORKING_WINE_VERSION="1.8-staging"
 GAME_VMS="512"
+
+VBYVERSION="v2.2.4.49"
+VBYMD5="2e583d4bfd0728007bef803468e58f90"
+AOEHDPMD5="857412dbdda48510ed41c74226a6f487"
  
 POL_SetupWindow_Init
 POL_SetupWindow_SetID 2167
@@ -62,5 +66,31 @@
     
     POL_Shortcut "AoK HD.exe" "$TITLE" "" "-nostartup"
 fi
+
+POL_SetupWindow_menu "Install Voobly" "Do you want to play in voobly also?" "Yes No" " "
+if [ "$APP_ANSWER" = "Yes" ]
+then
+   POL_System_TmpCreate "$PREFIX"
+   cd "$POL_System_TmpDir"
+   POL_SetupWindow_message "details http://aoccs.net/" "Instllaing AOE2HD patch" 
+   POL_Download "http://www.aoccs.net/aochd/aochdcompat-v4.exe" "$AOEHDPMD5"
+   INSTALLER="$POL_System_TmpDir/aochdcompat-v4.exe"
+    
+   POL_Wine_WaitBefore "AOE2HD Compatablity"
+   POL_Wine "$INSTALLER"
+   
+   POL_SetupWindow_message "Instllaing Voobly" "Voobly"
+   POL_Download "http://www.voobly.com/updates/voobly-$VBYVERSION.exe" "$VBYMD5"
+   INSTALLER="$POL_System_TmpDir/voobly-$VBYVERSION.exe"    
+    
+   POL_Wine_WaitBefore "Voobly"
+   POL_Wine "$INSTALLER"
+   POL_Shortcut "voobly.exe" "Voobly" ""
+   
+   POL_SetupWindow_message "Instllaing directplay and dotnet" "Support"
+   POL_Call POL_Install_Directplay
+   POL_Call POL_Install_dotnet40   
+fi 
+[ "$$POL_System_TmpDir" ] && POL_System_TmpDelete
 POL_SetupWindow_Close
 exit
\ No newline at end of file

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2014-07-14 17-00)
# Wine version used : 1.7.21
# Distribution used to test : Mac OS
# Author : Quentin PARIS
# Only For : http://www.playonlinux.com
  
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Age Of Empire II - HD"
PREFIX="AOE2HD"
STEAM_ID="221380"
EDITOR="Microsoft"
AUTHOR="Quentin PARIS"
WORKING_WINE_VERSION="1.8-staging"
GAME_VMS="512"

VBYVERSION="v2.2.4.49"
VBYMD5="2e583d4bfd0728007bef803468e58f90"
AOEHDPMD5="857412dbdda48510ed41c74226a6f487"
 
POL_SetupWindow_Init
POL_SetupWindow_SetID 2167
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 

 
POL_Call POL_Install_vcrun2012
POL_SetupWindow_InstallMethod STEAM

POL_Wine_SetVideoDriver
POL_SetupWindow_VMS $GAME_VMS
 
POL_Wine_Direct3D "UseGLSL" "enabled"
POL_Wine_Direct3D "DirectDrawRenderer" "opengl"
POL_Wine_Direct3D "StrictDrawOrdering" "disabled"
POL_Wine_OverrideDLL "" "gameoverlayrenderer"

if [ "$INSTALL_METHOD" = "STEAM" ]; then

    POL_Call POL_Install_steam
    POL_Call POL_Install_steam_flags "$STEAM_ID"
    POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/$STEAM_ID -nostartup"

    POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue.')" "$TITLE"
    cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
    POL_Wine start /unix "Steam.exe" "steam://install/$STEAM_ID"
    POL_Wine_WaitExit "$TITLE"

fi 

if [ "$INSTALL_METHOD" = "LOCAL" ]; then
    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 "$SETUP_EXE"
    POL_Wine_WaitExit "$TITLE"
    
    POL_Shortcut "AoK HD.exe" "$TITLE" "" "-nostartup"
fi

POL_SetupWindow_menu "Install Voobly" "Do you want to play in voobly also?" "Yes No" " "
if [ "$APP_ANSWER" = "Yes" ]
then
   POL_System_TmpCreate "$PREFIX"
   cd "$POL_System_TmpDir"
   POL_SetupWindow_message "details http://aoccs.net/" "Instllaing AOE2HD patch" 
   POL_Download "http://www.aoccs.net/aochd/aochdcompat-v4.exe" "$AOEHDPMD5"
   INSTALLER="$POL_System_TmpDir/aochdcompat-v4.exe"
    
   POL_Wine_WaitBefore "AOE2HD Compatablity"
   POL_Wine "$INSTALLER"
   
   POL_SetupWindow_message "Instllaing Voobly" "Voobly"
   POL_Download "http://www.voobly.com/updates/voobly-$VBYVERSION.exe" "$VBYMD5"
   INSTALLER="$POL_System_TmpDir/voobly-$VBYVERSION.exe"    
    
   POL_Wine_WaitBefore "Voobly"
   POL_Wine "$INSTALLER"
   POL_Shortcut "voobly.exe" "Voobly" ""
   
   POL_SetupWindow_message "Instllaing directplay and dotnet" "Support"
   POL_Call POL_Install_Directplay
   POL_Call POL_Install_dotnet40   
fi 
[ "$$POL_System_TmpDir" ] && POL_System_TmpDelete
POL_SetupWindow_Close
exit

Replies

Anonymous
Friday 6 May 2016 at 16:24 -
If your game not started in voobly lobby.try following
Anonymous
Friday 6 May 2016 at 16:25 -
in terminal
export STAGING_WRITECOPY=1
playonlinux
Anonymous
Friday 6 May 2016 at 16:35 -
This update helps to play on Steam and voobly. I tried with 4.4.8-1-MANJARO linux
petch Monday 25 January 2016 at 6:35
petch
Developer

Information

This update has been approved by the team.

Message

Fix vcrun2012 install call

Differences

@@ -27,7 +27,7 @@
  
 
  
-POL_Call POL_Install vcrun2012
+POL_Call POL_Install_vcrun2012
 POL_SetupWindow_InstallMethod STEAM
 
 POL_Wine_SetVideoDriver

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2014-07-14 17-00)
# Wine version used : 1.7.21
# Distribution used to test : Mac OS
# Author : Quentin PARIS
# Only For : http://www.playonlinux.com
  
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Age Of Empire II - HD"
PREFIX="AOE2HD"
STEAM_ID="221380"
EDITOR="Microsoft"
AUTHOR="Quentin PARIS"
WORKING_WINE_VERSION="1.8-staging"
GAME_VMS="512"
 
POL_SetupWindow_Init
POL_SetupWindow_SetID 2167
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 

 
POL_Call POL_Install_vcrun2012
POL_SetupWindow_InstallMethod STEAM

POL_Wine_SetVideoDriver
POL_SetupWindow_VMS $GAME_VMS
 
POL_Wine_Direct3D "UseGLSL" "enabled"
POL_Wine_Direct3D "DirectDrawRenderer" "opengl"
POL_Wine_Direct3D "StrictDrawOrdering" "disabled"
POL_Wine_OverrideDLL "" "gameoverlayrenderer"

if [ "$INSTALL_METHOD" = "STEAM" ]; then

    POL_Call POL_Install_steam
    POL_Call POL_Install_steam_flags "$STEAM_ID"
    POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/$STEAM_ID -nostartup"

    POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue.')" "$TITLE"
    cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
    POL_Wine start /unix "Steam.exe" "steam://install/$STEAM_ID"
    POL_Wine_WaitExit "$TITLE"

fi 

if [ "$INSTALL_METHOD" = "LOCAL" ]; then
    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 "$SETUP_EXE"
    POL_Wine_WaitExit "$TITLE"
    
    POL_Shortcut "AoK HD.exe" "$TITLE" "" "-nostartup"
fi
POL_SetupWindow_Close
exit

Replies

Keks Monday 25 January 2016 at 3:31
Keks Anonymous

Message

If I try to install age of Empires 2 HD i get this error.

 

Error in POL_Call
Function POL_Install does not exist!

I cant find anything helpfull in google. Do i have to download it first in Steam or something?

 

Best Regards Alex

Replies

Monday 25 January 2016 at 6:36 -
That should be fixed now
Anonymous
Tuesday 26 January 2016 at 3:50 -
Thanks it is working now. But one question it is installing steam again. I already have a version from Steam installed with playonlinux. Do i need a second steam installation for every steam game?
Tuesday 26 January 2016 at 8:14 -
That's the standard PoL model, one virtual drive per program, so that each virtual drive can be tweaked (and removed) independantly
petch Sunday 3 January 2016 at 13:45
petch
Developer

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

Add POL_SetupWindow_SetID

Differences

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env playonlinux-bash
 # Date : (2014-07-14 17-00)
 # Wine version used : 1.7.21
 # Distribution used to test : Mac OS
@@ -17,6 +17,7 @@
 GAME_VMS="512"
  
 POL_SetupWindow_Init
+POL_SetupWindow_SetID 2167
 POL_Debug_Init
  
 POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2014-07-14 17-00)
# Wine version used : 1.7.21
# Distribution used to test : Mac OS
# Author : Quentin PARIS
# Only For : http://www.playonlinux.com
  
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Age Of Empire II - HD"
PREFIX="AOE2HD"
STEAM_ID="221380"
EDITOR="Microsoft"
AUTHOR="Quentin PARIS"
WORKING_WINE_VERSION="1.8-staging"
GAME_VMS="512"
 
POL_SetupWindow_Init
POL_SetupWindow_SetID 2167
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 

 
POL_Call POL_Install vcrun2012
POL_SetupWindow_InstallMethod STEAM

POL_Wine_SetVideoDriver
POL_SetupWindow_VMS $GAME_VMS
 
POL_Wine_Direct3D "UseGLSL" "enabled"
POL_Wine_Direct3D "DirectDrawRenderer" "opengl"
POL_Wine_Direct3D "StrictDrawOrdering" "disabled"
POL_Wine_OverrideDLL "" "gameoverlayrenderer"

if [ "$INSTALL_METHOD" = "STEAM" ]; then

    POL_Call POL_Install_steam
    POL_Call POL_Install_steam_flags "$STEAM_ID"
    POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/$STEAM_ID -nostartup"

    POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue.')" "$TITLE"
    cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
    POL_Wine start /unix "Steam.exe" "steam://install/$STEAM_ID"
    POL_Wine_WaitExit "$TITLE"

fi 

if [ "$INSTALL_METHOD" = "LOCAL" ]; then
    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 "$SETUP_EXE"
    POL_Wine_WaitExit "$TITLE"
    
    POL_Shortcut "AoK HD.exe" "$TITLE" "" "-nostartup"
fi
POL_SetupWindow_Close
exit

Replies

Quentin PÂRIS Sunday 3 January 2016 at 12:25
Quentin PÂRIS
Admin

Warning

This update has not been approved yet by the team.
Use it at your own risk

Differences

@@ -13,7 +13,7 @@
 STEAM_ID="221380"
 EDITOR="Microsoft"
 AUTHOR="Quentin PARIS"
-WORKING_WINE_VERSION="1.7.21"
+WORKING_WINE_VERSION="1.8-staging"
 GAME_VMS="512"
  
 POL_SetupWindow_Init
@@ -26,8 +26,7 @@
  
 
  
-
-
+POL_Call POL_Install vcrun2012
 POL_SetupWindow_InstallMethod STEAM
 
 POL_Wine_SetVideoDriver

New source code

#!/bin/bash
# Date : (2014-07-14 17-00)
# Wine version used : 1.7.21
# Distribution used to test : Mac OS
# Author : Quentin PARIS
# Only For : http://www.playonlinux.com
  
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Age Of Empire II - HD"
PREFIX="AOE2HD"
STEAM_ID="221380"
EDITOR="Microsoft"
AUTHOR="Quentin PARIS"
WORKING_WINE_VERSION="1.8-staging"
GAME_VMS="512"
 
POL_SetupWindow_Init
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 

 
POL_Call POL_Install vcrun2012
POL_SetupWindow_InstallMethod STEAM

POL_Wine_SetVideoDriver
POL_SetupWindow_VMS $GAME_VMS
 
POL_Wine_Direct3D "UseGLSL" "enabled"
POL_Wine_Direct3D "DirectDrawRenderer" "opengl"
POL_Wine_Direct3D "StrictDrawOrdering" "disabled"
POL_Wine_OverrideDLL "" "gameoverlayrenderer"

if [ "$INSTALL_METHOD" = "STEAM" ]; then

    POL_Call POL_Install_steam
    POL_Call POL_Install_steam_flags "$STEAM_ID"
    POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/$STEAM_ID -nostartup"

    POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue.')" "$TITLE"
    cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
    POL_Wine start /unix "Steam.exe" "steam://install/$STEAM_ID"
    POL_Wine_WaitExit "$TITLE"

fi 

if [ "$INSTALL_METHOD" = "LOCAL" ]; then
    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 "$SETUP_EXE"
    POL_Wine_WaitExit "$TITLE"
    
    POL_Shortcut "AoK HD.exe" "$TITLE" "" "-nostartup"
fi
POL_SetupWindow_Close
exit

Replies

mancerayder Tuesday 26 May 2015 at 3:05
mancerayder Anonymous

Message

Hi,

I just got it on Steam, but I can't get it to actually boot. Every time I hit the blue play button it brings up the dialog box:

Performing first time setup...

Installing: Microsoft VC Redist Package (step 1 of 2)

It goes though steps 1&2 and then... nothing.

Thanks

Replies

Anonymous
Wednesday 27 May 2015 at 18:54 -
I got around the VC problem and got a working install with these steps:
Anonymous
Wednesday 27 May 2015 at 19:03 -
(oops, return button doesn't create a new line, huh?) 1. After the main install close Steam. 2. Copy mfc110.dll from a Windows box to the System32 folder in POL AOEII directory. (the other DLL some people mentioned was already there for me) 3. remove both installscript.vdf files. 4. Open Steam or run AOEII to have the VC package setup run properly. I'm still getting the lag issue that people have mentioned on other websites, but the graphics and audio display properly.
Quentin PÂRIS Monday 14 July 2014 at 17:03
Quentin PÂRIS
Admin

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

First script

Differences

@@ -0,0 +1,66 @@
+#!/bin/bash
+# Date : (2014-07-14 17-00)
+# Wine version used : 1.7.21
+# Distribution used to test : Mac OS
+# Author : Quentin PARIS
+# Only For : http://www.playonlinux.com
+  
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+  
+TITLE="Age Of Empire II - HD"
+PREFIX="AOE2HD"
+STEAM_ID="221380"
+EDITOR="Microsoft"
+AUTHOR="Quentin PARIS"
+WORKING_WINE_VERSION="1.7.21"
+GAME_VMS="512"
+ 
+POL_SetupWindow_Init
+POL_Debug_Init
+ 
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
+ 
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+ 
+
+ 
+
+
+POL_SetupWindow_InstallMethod STEAM
+
+POL_Wine_SetVideoDriver
+POL_SetupWindow_VMS $GAME_VMS
+ 
+POL_Wine_Direct3D "UseGLSL" "enabled"
+POL_Wine_Direct3D "DirectDrawRenderer" "opengl"
+POL_Wine_Direct3D "StrictDrawOrdering" "disabled"
+POL_Wine_OverrideDLL "" "gameoverlayrenderer"
+
+if [ "$INSTALL_METHOD" = "STEAM" ]; then
+
+    POL_Call POL_Install_steam
+    POL_Call POL_Install_steam_flags "$STEAM_ID"
+    POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/$STEAM_ID -nostartup"
+
+    POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue.')" "$TITLE"
+    cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
+    POL_Wine start /unix "Steam.exe" "steam://install/$STEAM_ID"
+    POL_Wine_WaitExit "$TITLE"
+
+fi 
+
+if [ "$INSTALL_METHOD" = "LOCAL" ]; then
+    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 "$SETUP_EXE"
+    POL_Wine_WaitExit "$TITLE"
+    
+    POL_Shortcut "AoK HD.exe" "$TITLE" "" "-nostartup"
+fi
+POL_SetupWindow_Close
+exit
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2014-07-14 17-00)
# Wine version used : 1.7.21
# Distribution used to test : Mac OS
# Author : Quentin PARIS
# Only For : http://www.playonlinux.com
  
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Age Of Empire II - HD"
PREFIX="AOE2HD"
STEAM_ID="221380"
EDITOR="Microsoft"
AUTHOR="Quentin PARIS"
WORKING_WINE_VERSION="1.7.21"
GAME_VMS="512"
 
POL_SetupWindow_Init
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 

 


POL_SetupWindow_InstallMethod STEAM

POL_Wine_SetVideoDriver
POL_SetupWindow_VMS $GAME_VMS
 
POL_Wine_Direct3D "UseGLSL" "enabled"
POL_Wine_Direct3D "DirectDrawRenderer" "opengl"
POL_Wine_Direct3D "StrictDrawOrdering" "disabled"
POL_Wine_OverrideDLL "" "gameoverlayrenderer"

if [ "$INSTALL_METHOD" = "STEAM" ]; then

    POL_Call POL_Install_steam
    POL_Call POL_Install_steam_flags "$STEAM_ID"
    POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/$STEAM_ID -nostartup"

    POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue.')" "$TITLE"
    cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
    POL_Wine start /unix "Steam.exe" "steam://install/$STEAM_ID"
    POL_Wine_WaitExit "$TITLE"

fi 

if [ "$INSTALL_METHOD" = "LOCAL" ]; then
    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 "$SETUP_EXE"
    POL_Wine_WaitExit "$TITLE"
    
    POL_Shortcut "AoK HD.exe" "$TITLE" "" "-nostartup"
fi
POL_SetupWindow_Close
exit

Replies

Anonymous
Friday 25 December 2015 at 17:33 -
Hello!
Anonymous
Friday 25 December 2015 at 17:35 -
(oops, return button doesn't create a new line, huh?) I've been having trouble using the script. When I get to the steam login prompt, I see a dialogue which says that "steamwebservice.exe has crashed" and I can't login (Steam cannot connect to the network). Even when I restart it, I still can't connect.
Anonymous
Friday 25 December 2015 at 18:01 -
nvm got it to work by hitting the retry button enough

Edited by Tinou