GOG.com - Hitman 2: Silent Assassin

Informations

Creator Message
petch

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 20691
Wine: 2.22

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 : see changelog
# Wine version used : 2.22
# Distribution used to test : Debian Sid (Unstable)
# Author : Pierre Etchemaite pe-pol@concept-micro.com
# Script licence : GPL v.2
# Program licence : Retail
# Depend :

# CHANGELOG
# [Pierre Etchemaite] (2012-12-17 22-36)
#   Initial script.
# [Pierre Etchemaite] (2013-11-24 09-50)
#   ?
# [Dadu042] (2020-01-19 13:50)
#   Wine 1.4.1 -> 2.22

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

GOGID="hitman_2_silent_assassin"
PREFIX="Hitman2SA_gog"
WORKING_WINE_VERSION="2.22"

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
Dadu042 Monday 20 January 2020 at 11:24
Dadu042

Information

This update has been approved by the team.

Differences

@@ -1,19 +1,27 @@
 #!/bin/bash
 # Date : (2012-12-17 22-36)
-# Last revision : (2013-11-24 09-50)
-# Wine version used : 1.4.1
+# Last revision : see changelog
+# Wine version used : 2.22
 # Distribution used to test : Debian Sid (Unstable)
 # Author : Pierre Etchemaite pe-pol@concept-micro.com
 # Script licence : GPL v.2
 # Program licence : Retail
 # Depend :
 
+# CHANGELOG
+# [Pierre Etchemaite] (2012-12-17 22-36)
+#   Initial script.
+# [Pierre Etchemaite] (2013-11-24 09-50)
+#   ?
+# [Dadu042] (2020-01-19 13:50)
+#   Wine 1.4.1 -> 2.22
+
 [ -z "$PLAYONLINUX" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
 
 GOGID="hitman_2_silent_assassin"
 PREFIX="Hitman2SA_gog"
-WORKING_WINE_VERSION="1.4.1"
+WORKING_WINE_VERSION="2.22"
 
 TITLE="GOG.com - Hitman 2: Silent Assassin"
 SHORTCUT_NAME="Hitman 2: Silent Assassin"
@@ -66,4 +74,4 @@
 exit 0
 _EOF_
 
-exit 0
+exit 0
\ No newline at end of file

New source code

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

# CHANGELOG
# [Pierre Etchemaite] (2012-12-17 22-36)
#   Initial script.
# [Pierre Etchemaite] (2013-11-24 09-50)
#   ?
# [Dadu042] (2020-01-19 13:50)
#   Wine 1.4.1 -> 2.22

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

GOGID="hitman_2_silent_assassin"
PREFIX="Hitman2SA_gog"
WORKING_WINE_VERSION="2.22"

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

Replies

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 dmca-notice@playonlinux.com