GOG.com - Thief 2

Informations

Creator Message
petch
Developer

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 7430
Wine: 1.4.1

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 : (2013-07-23 20-21)
# 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="thief_2_the_metal_age"
PREFIX="Thief2_gog"
WORKING_WINE_VERSION="1.4.1"

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