Het forum

Age of empires II, the age of kings

a sort of "update" for the repos script

Auteur Antwoorden
fekir Woensdag 19 Mei 2010 om 19:13

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
# Author : Fekir
 [ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
NAME="Age Of Empires II: The Age of Kings" 
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"
	DOWNLOAD="Sto scaricando un aggiornamento/una patch per $NAME, attendi un momento..."
	NEXT="Clicca su avanti solo quando è finita l'installazione"
	INSTALLATION="Installing $NAME..."
	POLEND="$NAME has been installed succesfully"
	DOWNLOAD="Downloading an update/patch for $NAME, please wait..."
	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"
POL_SetupWindow_presentation "$NAME" "Ensemble Studios" "http://education.ti.com/" "Fekir" "$PREFIX"
POL_SetupWindow_check_cdrom "aoesetup.exe"
POL_SetupWindow_install_wine $WINE
Use_WineVersion $WINE
select_prefix "$HOME/.PlayOnLinux/wineprefix/$PREFIX/"
PROGRAMFILES="Program Files"
POL_SetupWindow_wait_next_signal "$INSTALLATION" "$NAME"
wine "$CDROM/aoesetup.exe" 
POL_SetupWindow_message "$NEXT"
cd "$REPERTOIRE/tmp/"
POL_SetupWindow_download "$DOWNLOAD" "$NAME" "$DLUPDATE"
POL_SetupWindow_wait_next_signal "$INSTALLATION" "$NAME"
wine "$UPDATE" 
POL_SetupWindow_make_shortcut "$PREFIX" "$PROGRAMFILES/Microsoft Games/Age of Empires II" "empires2.exe" "" "$NAME"
Set_WineVersion_Assign $WINE "$NAME"
POL_SetupWindow_message "$POLEND" "$NAME" 

Aangepast door fekir

fekir Vrijdag 21 Mei 2010 om 1:13

ehm...what should I do? is it ok if I validate this script?
I mean, there is another one in the repo, but I had some problems, maybe caused by the wineversion, do not know...so I thought it would been a good idea an update for it..