GOG.com - Hitman 2: Silent Assassin

Informations

Creator Message
petch
Developer

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 14678
Wine: 1.4.1

Feedbacks

Description

English: Action/stealth game, Agent 47 is back in action against his will...
(updated for GOG installer v2)

Français : Jeu d'intrusion, l'Agent 47 reprend du service contre son grè...
(mis à jour pour l'installeur GOG v2)

Screenshots

MiniatureMiniatureMiniatureMiniatureMiniatureMiniature

Source code

#!/bin/bash
# Date : (2012-12-17 22-36)
# Last revision : (2013-11-24 09-50)
# Wine version used : 1.4.1
# Distribution used to test : Debian Sid (Unstable)
# Author : Pierre Etchemaite pe-pol@concept-micro.com
# Script licence : GPL v.2
# Program licence : Retail
# Depend :

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

GOGID="hitman_2_silent_assassin"
PREFIX="Hitman2SA_gog"
WORKING_WINE_VERSION="1.4.1"

TITLE="GOG.com - Hitman 2: Silent Assassin"
SHORTCUT_NAME="Hitman 2: Silent Assassin"

POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"

POL_SetupWindow_Init
POL_SetupWindow_SetID 1516
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "IO Interactive / Square Enix" "http://www.gog.com/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX"

POL_Call POL_GoG_setup "$GOGID" "a7e5d8d363db2150f30835ffe1fa0e92"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_Call POL_GoG_install


# Disable environmental bump mapping
# Looks like "copper" reflections under Wine (1.5.19)
printf "DisableEMBM 1\r\n" >> "$GOGROOT/Hitman 2 Silent Assassin/Hitman2.ini"

# GoG work!
Set_OS winxp

POL_SetupWindow_VMS "32"

# Doesn't hurt ;)
POL_Wine_reboot

POL_Shortcut "hitman2.exe" "$SHORTCUT_NAME" "" "" "Game;ActionGame;" # "$SHORTCUT_NAME.png"
POL_Shortcut_Document "$SHORTCUT_NAME" "$GOGROOT/Hitman 2 Silent Assassin/manual.pdf"

POL_SetupWindow_Close

cat <<_EOF_ > "$POL_USER_ROOT/configurations/configurators/$SHORTCUT_NAME"
#!/bin/bash
[ -z "\$PLAYONLINUX" ] && exit 0
source "\$PLAYONLINUX/lib/sources"
export WINEPREFIX="\$POL_USER_ROOT/wineprefix/$PREFIX"
export WINEDEBUG="-all"

POL_LoadVar_PROGRAMFILES
cd "$GOGROOT/Hitman 2 Silent Assassin/" || exit 1
TITLE="$TITLE"

POL_Wine config.exe
exit 0
_EOF_

exit 0

Contributions

Filters:

Contribute
Member Message