GOG.com - Gabriel Knight 1: Sins of the Fathers

Informations

Creator Message
petch
Developer

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 6360
Wine: 1.4-dos_support_0.6

Feedbacks

Description

English: Help Gabriel Knight in solving the "Voodoo murders" case. (A famous adventure game serie from from Sierra).
(updated for GOG installer v2)

Français : Aidez Gabriel Knight à résoudre l'affaire des "Meurtres vaudou". (Série de jeux d'aventure célèbre de Sierra.)
(mis à jour pour l'installeur GOG v2)

Source code

#!/bin/bash
# Date : (2012-04-26 23-18)
# Last revision : (2014-02-08 17-53)
# Wine version used : 1.4-dos_support_0.6
# Distribution used to test : Debian Sid (Unstable)
# Author : Pierre Etchemaite pe-pol@concept-micro.com
# Script licence : GPL v.2
# Program licence : Retail
# Depend : Timidity daemon on port midi 128:0 (recommended)

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

GOGID="gabriel_knight_sins_of_the_fathers"
PREFIX="GabrielKnight1_gog"
WORKING_WINE_VERSION="1.4-dos_support_0.6"

TITLE="GOG.com - Gabriel Knight 1: Sins of the Fathers"
SHORTCUT_NAME="Gabriel Knight 1: Sins of the Fathers"

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

POL_SetupWindow_presentation "$TITLE" "Sierra / Activision" "http://www.gog.com/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX"

POL_Call POL_GoG_setup "$GOGID" "124ea26af47fd399d4ee5d47ed7a687b"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_Call POL_GoG_install


cat <<'_EOFCFG_' >> "$WINEPREFIX/playonlinux_dos.cfg"
manual_mount=true
dosbox_memsize=8
cpu_core=normal
cpu_cycles=10000
mixer_prebuffer=40
_EOFCFG_
if [ "$POL_OS" = "Linux" ]; then
        # use pmidi -l or aconnect -o list to check your (emulated) midi device
        # 128:0 is just default software emulation port (usually Timidity)
        cat <<-'_EOFCFG_' >> "$WINEPREFIX/playonlinux_dos.cfg"
        render_scaler=hq2x
        midi_mididevice=alsa
        midi_midiconfig=128:0
        _EOFCFG_
fi
if [ "$POL_OS" = "Mac" ]; then
        cat <<-'_EOFCFG_' >> "$WINEPREFIX/playonlinux_dos.cfg"
        midi_mididevice=coreaudio
        _EOFCFG_
fi

cat <<_EOFAE_ > "$WINEPREFIX/drive_c/autoexec.bat"
imgmount D "$WINEPREFIX/drive_c/GOG Games/Gabriel Knight - Sins of the Fathers/GK1.GOG" -t iso
_EOFAE_

POL_Shortcut "SIERRA.EXE" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;AdventureGame;"
POL_Shortcut_Document "$SHORTCUT_NAME" "$WINEPREFIX/drive_c/GOG Games/Gabriel Knight - Sins of the Fathers/Manual.pdf"
# C:\GOG Games\Gabriel Knight - Sins of the Fathers\readme.txt

POL_SetupWindow_Close

exit 0

Contributions

Filters:

Contribute
Member Message
petch Friday 12 September 2014 at 21:33
petch
Developer

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

Script update to use Wine 1.6.2 (#3735)

Default to SoundBlaster Pro music (no external MIDI synthetizer program required)

Differences

@@ -1,19 +1,18 @@
 #!/bin/bash
 # Date : (2012-04-26 23-18)
-# Last revision : (2014-02-08 17-53)
-# Wine version used : 1.4-dos_support_0.6
+# Last revision : (2014-09-12 21-11)
+# Wine version used : 1.4-dos_support_0.6, 1.6.2-dos_support_0.6
 # Distribution used to test : Debian Sid (Unstable)
 # Author : Pierre Etchemaite pe-pol@concept-micro.com
 # Script licence : GPL v.2
 # Program licence : Retail
-# Depend : Timidity daemon on port midi 128:0 (recommended)
 
 [ -z "$PLAYONLINUX" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
 
 GOGID="gabriel_knight_sins_of_the_fathers"
 PREFIX="GabrielKnight1_gog"
-WORKING_WINE_VERSION="1.4-dos_support_0.6"
+WORKING_WINE_VERSION="1.6.2-dos_support_0.6"
 
 TITLE="GOG.com - Gabriel Knight 1: Sins of the Fathers"
 SHORTCUT_NAME="Gabriel Knight 1: Sins of the Fathers"
@@ -41,20 +40,11 @@
 cpu_cycles=10000
 mixer_prebuffer=40
 _EOFCFG_
-if [ "$POL_OS" = "Linux" ]; then
-	# use pmidi -l or aconnect -o list to check your (emulated) midi device
-	# 128:0 is just default software emulation port (usually Timidity)
-	cat <<-'_EOFCFG_' >> "$WINEPREFIX/playonlinux_dos.cfg"
-	render_scaler=hq2x
-	midi_mididevice=alsa
-	midi_midiconfig=128:0
-	_EOFCFG_
-fi
-if [ "$POL_OS" = "Mac" ]; then
-	cat <<-'_EOFCFG_' >> "$WINEPREFIX/playonlinux_dos.cfg"
-	midi_mididevice=coreaudio
-	_EOFCFG_
-fi
+[ "$POL_OS" = "Linux" ] && echo "render_scaler=hq2x" >> "$WINEPREFIX/playonlinux_dos.cfg"
+
+# SB Pro music by default
+cp "$GOGROOT/Gabriel Knight - Sins of the Fathers/RESOURCE.CFG" "$GOGROOT/Gabriel Knight - Sins of the Fathers/RESOURCE.BAK"
+sed -e 's/soundDrv  = .*\.DRV/soundDrv  = SBPRO.DRV/' "$GOGROOT/Gabriel Knight - Sins of the Fathers/RESOURCE.BAK" > "$GOGROOT/Gabriel Knight - Sins of the Fathers/RESOURCE.CFG"
 
 cat <<_EOFAE_ > "$WINEPREFIX/drive_c/autoexec.bat"
 imgmount D "$WINEPREFIX/drive_c/GOG Games/Gabriel Knight - Sins of the Fathers/GK1.GOG" -t iso

New source code

#!/bin/bash
# Date : (2012-04-26 23-18)
# Last revision : (2014-09-12 21-11)
# Wine version used : 1.4-dos_support_0.6, 1.6.2-dos_support_0.6
# Distribution used to test : Debian Sid (Unstable)
# Author : Pierre Etchemaite pe-pol@concept-micro.com
# Script licence : GPL v.2
# Program licence : Retail

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

GOGID="gabriel_knight_sins_of_the_fathers"
PREFIX="GabrielKnight1_gog"
WORKING_WINE_VERSION="1.6.2-dos_support_0.6"

TITLE="GOG.com - Gabriel Knight 1: Sins of the Fathers"
SHORTCUT_NAME="Gabriel Knight 1: Sins of the Fathers"

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

POL_SetupWindow_presentation "$TITLE" "Sierra / Activision" "http://www.gog.com/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX"

POL_Call POL_GoG_setup "$GOGID" "124ea26af47fd399d4ee5d47ed7a687b"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_Call POL_GoG_install


cat <<'_EOFCFG_' >> "$WINEPREFIX/playonlinux_dos.cfg"
manual_mount=true
dosbox_memsize=8
cpu_core=normal
cpu_cycles=10000
mixer_prebuffer=40
_EOFCFG_
[ "$POL_OS" = "Linux" ] && echo "render_scaler=hq2x" >> "$WINEPREFIX/playonlinux_dos.cfg"

# SB Pro music by default
cp "$GOGROOT/Gabriel Knight - Sins of the Fathers/RESOURCE.CFG" "$GOGROOT/Gabriel Knight - Sins of the Fathers/RESOURCE.BAK"
sed -e 's/soundDrv  = .*\.DRV/soundDrv  = SBPRO.DRV/' "$GOGROOT/Gabriel Knight - Sins of the Fathers/RESOURCE.BAK" > "$GOGROOT/Gabriel Knight - Sins of the Fathers/RESOURCE.CFG"

cat <<_EOFAE_ > "$WINEPREFIX/drive_c/autoexec.bat"
imgmount D "$WINEPREFIX/drive_c/GOG Games/Gabriel Knight - Sins of the Fathers/GK1.GOG" -t iso
_EOFAE_

POL_Shortcut "SIERRA.EXE" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;AdventureGame;"
POL_Shortcut_Document "$SHORTCUT_NAME" "$WINEPREFIX/drive_c/GOG Games/Gabriel Knight - Sins of the Fathers/Manual.pdf"
# C:\GOG Games\Gabriel Knight - Sins of the Fathers\readme.txt

POL_SetupWindow_Close

exit 0

Replies

Pingouache Friday 12 September 2014 at 20:30
Pingouache Anonymous

Message

Nickel, ça marche à merveille, merci ! A un détail étrange près : chez moi les voix fonctionnent, mais pas la musique. Mais c'est déjà super, et c'est sans doute un souci lié à mon matos.

Replies

Friday 12 September 2014 at 20:44
Il faut un périphérique qui accepte du MIDI sur le port 128:0 (soit une carte son, mais c'est de plus en plus rare d'avoir une carte son grand public qui fasse de la synthèse MIDI; soit install Timidity)
Friday 12 September 2014 at 21:05
Il semble possible de configurer le jeu pour utiliser le mode "Sound Blaster Pro" à la place pour la musique, peut-être que je devrais en faire le mode par défaut (même si les résultats ne sont pas forcément aussi bons...)