Applications

Choose a category

accessories
Accessories
development
Development
education
Education
functions
Functions
games
Games
graphics
Graphics
internet
Internet
multimedia
Multimedia
office
Office
other
Other
patches
Patches
testing
Testing

Age Of Wonders

Magic number : 80

#!/bin/bash
# Date : (????-??-?? ??-??)
# Last revision : (2010-05-23 10-00)
# Wine version used : -
# Distribution used to test : -
# Author : Zoloom (last changes by NSLW)
# Licence : Retail
# Depend : -
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Age of Wonders"
PREFIX="AgeOfWonders"
WORKINGWINEVERSION="1.1.42"
 
#starting the script
wget http://upload.wikimedia.org/wikipedia/en/e/e5/Aowboxart.jpg --output-document="$REPERTOIRE/tmp/leftnotscaled.jpeg"
convert "$REPERTOIRE/tmp/leftnotscaled.jpeg" -scale 150x356\! "$REPERTOIRE/tmp/left.jpeg"
POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpeg"
 
POL_SetupWindow_presentation "$TITLE" "Triumph Studio" "http://www.triumphstudios.com/" "Zoloom" "$PREFIX"
 
#asking for CDROM and checking if it's correct one
POL_SetupWindow_message "Please insert $TITLE media into your disk drive."
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "Setup.exe"
 
select_prefix "$REPERTOIRE/wineprefix/$PREFIX"
 
#downloading specific Wine
POL_SetupWindow_install_wine "$WORKINGWINEVERSION"
Use_WineVersion "$WORKINGWINEVERSION"
 
#creating application'
s own prefix
POL_SetupWindow_prefixcreate
 
#fetching PROGRAMFILES environmental variable
PROGRAMFILES="Program Files"
POL_LoadVar_PROGRAMFILES
 
#starting installation
POL_SetupWindow_wait_next_signal "Installation in progress..." "Age of Wonders"
wine "$CDROM/Setup.exe"
POL_SetupWindow_detect_exit
 
#multiplayer should work after that
POL_Call POL_Install_directplay
 
#making shortcut
POL_SetupWindow_make_shortcut "$PREFIX" "$PROGRAMFILES/Triumph Studios/Age of Wonders" "AoWSetup.exe" "" "$TITLE"
Set_WineVersion_Assign "$WORKINGWINEVERSION" "$TITLE"
 
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Triumph Studios/Age of Wonders/Images/Scenes"
mv "Intro.avi" "IntroDISABLE.avi"
 
POL_SetupWindow_message "$TITLE has been installed successfully." "$TITLE"
 
POL_SetupWindow_message_image "The introdution movie was renamed because it doesn't appear correctly with Wine. You can watch it in the Images/Scenes of the game's directory." "Note about intro" "$PLAYONLINUX/themes/tango/info.png"
 
POL_SetupWindow_Close
exit
Il n'y a rien à voir ici