GOG.com - Thief 2

Informations

Creator Message
petch

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 11654
Wine: 3.0.3

Feedbacks

Description

English: Second installment of the classical "stealth" game.
(updated for GOG installer v2)

Français : Deuxième épisode du classique jeu d'infiltration.
(mis à jour pour l'installeur GOG v2)

Screenshots

MiniatureMiniatureMiniatureMiniatureMiniatureMiniatureMiniature

Source code

#!/bin/bash
# Date : (2012-06-09 16-26)
# Last revision : 
# Wine version used : 
# 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-06-09 16-26)
#   Initial script.
# [Pierre Etchemaite] (2013-07-23 20-21)
#   Script updated for GOG's installer v2.
# [Dadu042] (2020-04-19 12:30).
#   Wine 1.4.1 (outdated) -> 3.0.3 (not tested)

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

GOGID="thief_2_the_metal_age"
PREFIX="Thief2_gog"
WORKING_WINE_VERSION="3.0.3"

TITLE="GOG.com - Thief 2"
SHORTCUT_NAME="Thief 2: The Metal Age"

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 1250
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Looking Glass Studios / Square Enix" "http://www.gog.com/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX"

POL_Call POL_GoG_setup "$GOGID" "c554b94e371ff78bfbe5a8ef3417afe2"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_Call POL_GoG_install


# GoG work!
Set_OS winxp

POL_SetupWindow_VMS "8"

# Enable OpenAL by default (#2585)
cp "$GOGROOT/Thief 2 - The Metal Age/cam.cfg" "$GOGROOT/Thief 2 - The Metal Age/cam.cfg.bak"
sed -e 's/^sfx_device [0-9]\+/sfx_device 4/' \
    -e 's/^master_volume -\?[0-9]\+/master_volume -1/' \
  < "$GOGROOT/Thief 2 - The Metal Age/cam.cfg.bak" > "$GOGROOT/Thief 2 - The Metal Age/cam.cfg"

# Doesn't hurt ;)
POL_Wine_reboot

POL_Shortcut "Thief2_ND.exe" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;ActionGame;"
POL_Shortcut_Document "$SHORTCUT_NAME" "$GOGROOT/Thief 2 - The Metal Age/Manual.pdf"
# C:\GOG Games\Thief 2 - The Metal Age\DromEd.exe

POL_SetupWindow_Close

exit 0

Contributions

Filters:

Contribute
Member Message
Dadu042 Sunday 19 April 2020 at 15:01
Dadu042

Information

This update has been approved by the team.

Differences

@@ -1,19 +1,27 @@
 #!/bin/bash
 # Date : (2012-06-09 16-26)
-# Last revision : (2013-07-23 20-21)
-# Wine version used : 1.4.1
+# Last revision : 
+# Wine version used : 
 # 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-06-09 16-26)
+#   Initial script.
+# [Pierre Etchemaite] (2013-07-23 20-21)
+#   Script updated for GOG's installer v2.
+# [Dadu042] (2020-04-19 12:30).
+#   Wine 1.4.1 (outdated) -> 3.0.3 (not tested)
 
 [ -z "$PLAYONLINUX" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
 
 GOGID="thief_2_the_metal_age"
 PREFIX="Thief2_gog"
-WORKING_WINE_VERSION="1.4.1"
+WORKING_WINE_VERSION="3.0.3"
 
 TITLE="GOG.com - Thief 2"
 SHORTCUT_NAME="Thief 2: The Metal Age"

New source code

#!/bin/bash
# Date : (2012-06-09 16-26)
# Last revision : 
# Wine version used : 
# 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-06-09 16-26)
#   Initial script.
# [Pierre Etchemaite] (2013-07-23 20-21)
#   Script updated for GOG's installer v2.
# [Dadu042] (2020-04-19 12:30).
#   Wine 1.4.1 (outdated) -> 3.0.3 (not tested)

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

GOGID="thief_2_the_metal_age"
PREFIX="Thief2_gog"
WORKING_WINE_VERSION="3.0.3"

TITLE="GOG.com - Thief 2"
SHORTCUT_NAME="Thief 2: The Metal Age"

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 1250
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Looking Glass Studios / Square Enix" "http://www.gog.com/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX"

POL_Call POL_GoG_setup "$GOGID" "c554b94e371ff78bfbe5a8ef3417afe2"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_Call POL_GoG_install


# GoG work!
Set_OS winxp

POL_SetupWindow_VMS "8"

# Enable OpenAL by default (#2585)
cp "$GOGROOT/Thief 2 - The Metal Age/cam.cfg" "$GOGROOT/Thief 2 - The Metal Age/cam.cfg.bak"
sed -e 's/^sfx_device [0-9]\+/sfx_device 4/' \
    -e 's/^master_volume -\?[0-9]\+/master_volume -1/' \
  < "$GOGROOT/Thief 2 - The Metal Age/cam.cfg.bak" > "$GOGROOT/Thief 2 - The Metal Age/cam.cfg"

# Doesn't hurt ;)
POL_Wine_reboot

POL_Shortcut "Thief2_ND.exe" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;ActionGame;"
POL_Shortcut_Document "$SHORTCUT_NAME" "$GOGROOT/Thief 2 - The Metal Age/Manual.pdf"
# C:\GOG Games\Thief 2 - The Metal Age\DromEd.exe

POL_SetupWindow_Close

exit 0

Replies

jonty789 Wednesday 28 October 2015 at 2:11
jonty789 Anonymous

Message

Hi

When I run this script I get this error in debugger 

AL lib: (WW) alc_initconfig: Failed to initialize backend "pulse"

However when I removed the lines 

cp "$GOGROOT/Thief 2 - The Metal Age/cam.cfg" "$GOGROOT/Thief 2 - The Metal Age/cam.cfg.bak"
sed -e 's/^sfx_device [0-9]\+/sfx_device 4/' \
    -e 's/^master_volume -\?[0-9]\+/master_volume -1/' \
  < "$GOGROOT/Thief 2 - The Metal Age/cam.cfg.bak" > "$GOGROOT/Thief 2 - The Metal Age/cam.cfg"

Then it seems to work. All other games including Thief 1 and Thief 3 script works fine without any changes. I do have Pulse installed and other applications like VLC is using it normal.

Not sure if this affects just me only?

Replies

olivierm Tuesday 26 August 2014 at 11:52
olivierm Anonymous

Message

The program installs and runs well (version 2.0.0.18 from GOG). But GOG also provides a patch (patch_thief2_2.0.1.19.exe) which didn't succeed installing.

Replies

Tuesday 26 August 2014 at 19:31
Mmmh looks similar to Thief Gold then
http://www.playonlinux.com/en/topic-11428-Thief_GOLD.html

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