Hello to everybody, I've jut finished writing a script for age of empires II, the age of kings.
I've written this script because the one in POL repos didn't work by me, I mean, everything, worked, but the game was unplayable because it was to slow, i didn't know what the issue was, so i gave a look at the script and at http://appdb.winehq.org, and it seemed that age of empires is able to run without a single patch (except for the multi player game, but I didn't tested it), i didn't find any reference to wine 1.0.1 and
This script uses wine 1.1.42 and it automatically downloads the "The Age of Empires II: The Age of Kings Update 2.0a", which the previous script didn't and it uses the same wineprefix so that you can easily use the script in the repo for installing "the conqueror expansion".
it worked by me without any problem, you only have to selected "Emulate Virtual Desktop" in winecfg or the game will crash (same issue i had with the script in the POL repos)
and if you use a noCd crack the game will be a little faster
this is the script
#!/bin/bash
# Author : Fekir
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
NAME="Age Of Empires II: The Age of Kings"
PREFIX="AOE2"
WINE="1.1.42"
#--------IMAGES+TEXT
wget http://upload.wikimedia.org/wikipedia/en/thumb/5/56/Age_of_Empires_II_-_The_Age_of_Kings_Coverart.png/250px-Age_of_Empires_II_-_The_Age_of_Kings_Coverart.png --output-document="$REPERTOIRE/tmp/leftnotscaled.jpeg"
convert "$REPERTOIRE/tmp/leftnotscaled.jpeg" -scale 150x356\\! "$REPERTOIRE/tmp/left.jpeg"
POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpeg"
if [ "$POL_LANG" == "it" ]; then
INSTALLATION="Sto installando $NAME ..."
POLEND="$NAME è stato installato con successo"
DLUPDATE="http://download.microsoft.com/download/aoeaok/Update/2.0a/W9XNT4/IT/Age2upA-ITL.exe"
DOWNLOAD="Sto scaricando un aggiornamento/una patch per $NAME, attendi un momento..."
UPDATE="Age2upA-ITL.exe"
NEXT="Clicca su avanti solo quando è finita l'installazione"
else
INSTALLATION="Installing $NAME..."
POLEND="$NAME has been installed succesfully"
DLUPDATE="http://download.microsoft.com/download/aoeaok/Update/2.0a/W9XNT4/EN-US/Age2upA.exe"
DOWNLOAD="Downloading an update/patch for $NAME, please wait..."
UPDATE="Age2upA.exe"
NEXT="Click on Forward only if the install is finished"
DWNOCD="Do you want to install nocd-crack? /nIf you do it the game will be more fluent"
fi
#--------PRESENTATION
POL_SetupWindow_presentation "$NAME" "Ensemble Studios" "http://education.ti.com/" "Fekir" "$PREFIX"
#--------EXECUTABLE
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "aoesetup.exe"
#--------PREFIX+WINE
POL_SetupWindow_install_wine $WINE
Use_WineVersion $WINE
select_prefix "$HOME/.PlayOnLinux/wineprefix/$PREFIX/"
POL_SetupWindow_prefixcreate
PROGRAMFILES="Program Files"
POL_LoadVar_PROGRAMFILES
#--------INSTALLATION
POL_SetupWindow_wait_next_signal "$INSTALLATION" "$NAME"
wine "$CDROM/aoesetup.exe"
POL_SetupWindow_message "$NEXT"
#--------UPDATE-INSTALLATION
cd "$REPERTOIRE/tmp/"
POL_SetupWindow_download "$DOWNLOAD" "$NAME" "$DLUPDATE"
POL_SetupWindow_wait_next_signal "$INSTALLATION" "$NAME"
wine "$UPDATE"
POL_SetupWindow_detect_exit
#--------END
POL_SetupWindow_reboot
POL_SetupWindow_make_shortcut "$PREFIX" "$PROGRAMFILES/Microsoft Games/Age of Empires II" "empires2.exe" "" "$NAME"
Set_WineVersion_Assign $WINE "$NAME"
clean_tmp
POL_SetupWindow_message "$POLEND" "$NAME"
POL_SetupWindow_Close
Edited by fekir