Fora

Dominions 3: The Awakening

Autor Odpowiedzi
wieczo Thursday 5 April 2012 at 1:31
wieczoAnonymous

Hello!
There's a Mac version of Dominions 3, but it doesn't run on OS X Lion.

Here's the script to install the downloadable Windows version.
#!/bin/bash
# Date : (2012-04-04 13-44)
# Last revision : (2012-04-05 01:02)
# Wine version used : 1.5.1
# Distribution used to test : Mac OS X 10.6.8
# Author : Thomas Wieczorek wieczo.yo@googlemail.com
# Script licence : GPL v.2
# Program licence : Retail

[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
PREFIX="Dominions_3_Awakening"
WORKING_WINE_VERSION="1.5.1"
INSTALLBIN="dominions3_installer.exe"
PATCHBIN="dompatch327.exe"
TITLE="Dominions 3: The Awakening"
URL="http://www.shrapnelgames.com/Illwinter/DOM3/DOM3_page.html"
BUYURL="http://www.gamersfront.com/store/dominions-3-the-awakening.html"
SHORTCUT_NAME="Dominions 3: The Awakening"
 
POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Illwinter Game Design" "$URL" "Thomas Wieczorek" "$PREFIX"

POL_SetupWindow_question "$(eval_gettext 'Do you want to download $TITLE from gamerfront.com?')" "$TITLE"
[ "$APP_ANSWER" = "TRUE" ] && POL_Browser "$BUYURL"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
cd $HOME
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "$INSTALLBIN"
ARCHIVE="$APP_ANSWER"

# install
POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed.')" "$TITLE"
POL_Wine start /unix "$ARCHIVE" || POL_Debug_Fatal "$(eval_gettext 'Error while installing archive')" 
POL_Wine_WaitExit "$TITLE"

Set_OS winxp
POL_SetupWindow_VMS "64"
# patch code was here
POL_Wine_reboot

POL_Shortcut "dom3.exe" "$SHORTCUT_NAME"

POL_SetupWindow_Close
exit


I have some code for installing the script, but I have no idea how to write a separate patch script.
Here's the patch code.
# install patch?
POL_SetupWindow_question "$(eval_gettext 'Do you want to install the latest patch from $URL?')" "$TITLE"
if [ "$APP_ANSWER" = "TRUE" ]
then
	POL_Browser "$URL"
	POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "$PATCHBIN"
	PATCH="$APP_ANSWER"
	POL_Wine start /unix "$PATCH" || POL_Debug_Fatal "$(eval_gettext 'Error while installing archive')" 
	TITLE="Dominions 3: The Awakening - Patch"
	POL_Wine_WaitExit "$TITLE"
fi

Edytowane przez wieczo

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmcayonlinux.com