This is a simple script to install Settlers II. On WineHQ people complained about Fog of War. I did not encounter any problems (using an nvidia card). Can people please test this script to see if this works?
Furthermore, I have tested this script using a private copy of the game. I hope someone can test this game and give feedback on if a no cd crack is required or not. Can I send this in for validation, even if it was only tested using a backup?
#!/bin/bash
# Date : (2010-05-29)
# Last revision : (2010-05-29)
# Wine version used : 1.1.44
# Distribution used to test : Ubuntu 9.10
# Author : Marco Gerards
# Licence : GPLv3
# Depend : none
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE="The Settlers II 10th Anniversary"
AUTHOR="Marco Gerards"
PREFIX="SettlersII_10thAnniversary"
PREFIXDIR="$REPERTOIRE/wineprefix/$PREFIX"
WORKINGWINEVERSION="1.1.44"
POL_SetupWindow_make_icon_for_shortcut()
{
convert "$HOME/.local/share/icons/$2" -geometry 32X32 "$REPERTOIRE/icones/32/$1"
}
wget http://upload.wikimedia.org/wikipedia/en/b/b5/Settlers_2_10th_Anniversary_cover.jpg --output-document="$REPERTOIRE/tmp/leftnotscaled.png"
convert "$REPERTOIRE/tmp/leftnotscaled.png" -scale 150x356\\! "$REPERTOIRE/tmp/left.jpeg"
POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpeg"
POL_SetupWindow_presentation "$TITLE" "Blue Byte Software" "http://www.bluebyte.net/" "$AUTHOR" "$PREFIX"
select_prefix "$PREFIXDIR"
# Let the user select a CDROM
POL_SetupWindow_cdrom
# Check if this CDROM is the correct CDROM. Unfortunately there is
# not much to check for.
POL_SetupWindow_check_cdrom "/LeggiMi.doc"
POL_SetupWindow_install_wine "$WORKINGWINEVERSION"
Use_WineVersion "$WORKINGWINEVERSION"
POL_SetupWindow_prefixcreate
# Install the game
POL_SetupWindow_wait_next_signal "Installing game..." "$TITLE"
wine "$CDROM/setup.exe"
POL_SetupWindow_detect_exit
Set_SoundDriver "oss"
PROGRAMFILES="Program Files"
POL_LoadVar_PROGRAMFILES
# Make a short cut
POL_SetupWindow_make_icon_for_shortcut "$TITLE" "*_s2dng.0.png"
POL_SetupWindow_make_shortcut "$PREFIX" "$PROGRAMFILES/Ubisoft/Funatics/The Settlers II - 10th Anniversary/bin" "S2DNG.exe" "" "$TITLE"
Set_WineVersion_Assign "$WORKINGWINEVERSION" "$TITLE"
# Done!
POL_SetupWindow_message "$TITLE installed\\n\\nYou will need a no cd crack to run $TITLE"
POL_SetupWindow_Close
exit