The forum

Iron Storm (GoG)

Author Replies
petch Monday 9 January 2012 at 4:28
petch
Developer

Bonsoir à tous,
Voici un script pour Iron Storm, rien à signaler pour le faire fonctionner et les performances sont excellentes.
Le jeu lui-même est vraiment le défi !
Bon jeu !

https://raw.github.com/petchema/playonlinux/master/ironstorm-gog
#!/bin/bash
# Date : (2012-01-08 20-49)
# Last revision : (2012-01-08 21-00)
# Wine version used : 1.3.36
# Distribution used to test : Debian Sid (Unstable)
# Author : Pierre Etchemaite petchema@concept-micro.com
# Script licence : GPL v.2
# Program licence : Retail
# Depend :

# Tested with install archives:
# setup_iron_storm.exe 768153719 "ce666bf38c8c722f1d675b394c44c1f7"

[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"

PREFIX="IronStorm_gog"
WORKING_WINE_VERSION="1.3.36"

TITLE="$(eval_gettext 'Iron Storm (GoG release)')"
SHORTCUT_NAME="Iron Storm"
SHORTCUT_DS="$SHORTCUT_NAME - $(eval_gettext 'Dedicated Server')"
SHORTCUT_DOC="$SHORTCUT_NAME - $(eval_gettext 'User manual')"
SHORTCUT_README="$SHORTCUT_NAME - $(eval_gettext 'Readme')"

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "4X Studio / Anuman Interactive" "http://www.gog.com/en/gamecard/iron_storm" "Pierre Etchemaite" "$PREFIX"

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" "setup_iron_storm.exe"
ARCHIVE="$APP_ANSWER"

POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed.')" "$TITLE"

POL_Call POL_Function_SetNativeExtension "pdf"
POL_Call POL_Function_SetNativeExtension "txt"

POL_Wine start /unix "$ARCHIVE" || POL_Debug_Fatal "$(eval_gettext 'Error while installing archive')"

POL_Wine_WaitExit "$TITLE"

# GoG work!
Set_OS winxp

POL_SetupWindow_VMS "32"

# Doesn't hurt ;)
POL_Wine_reboot

POL_Shortcut "IronStorm.exe" "$SHORTCUT_NAME"
POL_Shortcut "IronStorm_DS.exe" "$SHORTCUT_DS"
POL_Shortcut "start.exe" "$SHORTCUT_DOC" "" "'C:/$PROGRAMFILES/GOG.com/Iron Storm/Manual.pdf'"
POL_Shortcut "start.exe" "$SHORTCUT_README" "" "'C:/$PROGRAMFILES/GOG.com/Iron Storm/readme.txt'"

POL_SetupWindow_Close

exit