GOG.com - Gothic 2 Gold

Informations

Creator Message
petch

Warning

This installer is a beta script. It means that it might not work as expected

Informations

Platforms:
Downloads: 25354
Wine: System

Feedbacks

Description

English: A very good cRPG, with its expansion Night of the Raven.
Known issues:
- Beside all what I tried, vdfs32e.exe crashes most of the time when launching the game. The crash has been silenced, but the effet remains that you got no feedback during game initialization. Be patient if the game takes a minute or two upon first start;
- Display performance varies wildly, then again maybe it's just me "pushing" my puny videocard a little too much.
(updated for GOG installer v2)

Français : Un très bon cRPG, avec son extension Night of the Raven.
Problèmes connus :
- Malgré mes tentatives, vdfs32e.exe crashe la plupart du temps au démarrage du jeu. Le crash a été masqué, le symptôme reste que vous n'avez aucun retour visuel pendant que le jeu s'initialise. Soyez patient, le jeu prend une minute ou deux lors du premier lancement ;
- Les performances d'affichage changent énormément, ceci dit c'est peut-être moi qui "pousse" un peu trop ma carte vidéo chétive.
(mis à jour pour l'installeur GOG v2)

Screenshots

MiniatureMiniatureMiniatureMiniatureMiniature

Source code

#!/bin/bash
# Date : (2012-05-31 20-09)
# Last revision : (2014-02-02 21-18)
# Wine version used : 1.4.1, 1.6.2
# 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-05-31 20-09)
#   First script. 
# [?]  (2014-02-02 21-18)
#   ?
# [Dadu042] (2020-04-30)
#   Wine 1.6.2 -> system (Wine is at least v3.0 noawadays)

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

GOGID="gothic_2_gold_edition"
PREFIX="Gothic2_gog"

TITLE="GOG.com - Gothic 2 Gold"
SHORTCUT_NAME="Gothic 2 Gold"

#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 1239
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Piranha Bytes / Nordic Games" "http://www.gog.com/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX"

POL_Call POL_GoG_setup "$GOGID" --alternate "setup_$GOGID" "1" "b8daf54cf2c80a8e0c80ffb6beadf4b3" "3a27b5b17c14d574b6f78432626d688e" "786c2428c4338bddfdd6e805660ad443"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate 

# fake sdbinst.exe (bug report #2520)
POL_Call POL_Install_nop "$WINEPREFIX/drive_c/windows/system32/sdbinst.exe" 

POL_Call POL_GoG_install


# GoG work!
Set_OS winxp

POL_SetupWindow_VMS "32"

POL_Call POL_Install_directmusic
# vdfs32e.exe often crashes, couldn't find a solution
POL_Call POL_Install_DisableCrashDialog

# Doesn't hurt ;)
POL_Wine_reboot

# extendedMenu allows to set resolution ingame
# tip from http://www.gog.com/forum/gothic_series/notes_on_widescreen_resolution
cat <<_EOFFUNC_ > "$GOGROOT/Gothic 2 Gold/gothic2_funcs"

# echo statements to set \$zVidResFullscreenX, \$zVidResFullscreenY and \$zVidResFullscreenBPP
read_g2_settings () {
  [ -z "\$WINEPREFIX" ] && POL_Debug_Fatal 'read_g2_settings: \$WINEPREFIX must be set'
  perl -ne 'print "\$1\n" if /^((zVidResFullscreenX|zVidResFullscreenY|zVidResFullscreenBPP)=\d+)/' "$GOGROOT/Gothic 2 Gold/system/Gothic.ini"
}

# update Gothic.ini with value of \$zVidResFullscreenX, \$zVidResFullscreenY and \$zVidResFullscreenBPP
write_g2_settings () {
  [ -z "\$WINEPREFIX" ] && POL_Debug_Fatal 'write_g2_settings: \$WINEPREFIX must be set'
  perl -i.bak -pe 's/^zVidResFullscreenX=\d+/zVidResFullscreenX='"\$zVidResFullscreenX"'/;
                   s/^zVidResFullscreenY=\d+/zVidResFullscreenY='"\$zVidResFullscreenY"'/;
                   s/^zVidResFullscreenBPP=\d+/zVidResFullscreenBPP='"\$zVidResFullscreenBPP"'/;
                   s/^extendedMenu=\d+/extendedMenu=1/;' "$GOGROOT/Gothic 2 Gold/system/Gothic.ini"
}

# until POL_LoadVar_ScreenResolution does it?
LoadVar_ScreenDepth () {
  export ScreenBpp=\$(xdpyinfo |perl -ne 'print \$1 if /^bitmap unit, bit order, padding:\s*(\d+)/')
  POL_Debug_Message "Screen depth: \$ScreenBpp"
}

sync_resolutions () {
  LoadVar_ScreenDepth
  eval \$(read_g2_settings)
  [ "\$zVidResFullscreenBPP" != "\$ScreenBpp" ] && zVidResFullscreenBPP="\$ScreenBpp" write_g2_settings
  Set_Desktop "On" "\$zVidResFullscreenX" "\$zVidResFullscreenY"
}

_EOFFUNC_


POL_Shortcut "Gothic2.exe" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;RolePlaying;"
# Using $WINEPREFIX here causes trouble, bug #953
POL_Shortcut_InsertBeforeWine "$SHORTCUT_NAME" 'source "../gothic2_funcs" || exit 0'
POL_Shortcut_InsertBeforeWine "$SHORTCUT_NAME" 'sync_resolutions'

POL_Shortcut_Document "$SHORTCUT_NAME" "$GOGROOT/Gothic 2 Gold/manual.pdf"
# C:\GOG Games\Gothic 2 Gold\Readme.txt
# C:\GOG Games\Gothic 2 Gold\manual_addon.pdf

POL_SetupWindow_Close

exit 0

Contributions

Filters:

Contribute
Member Message
joe_serious Wednesday 9 February 2022 at 11:28
joe_serious Anonymous

Message

Hi folks,

sadly the game does not start on my system. I am using an Intel-Mac with Montery 12.2 and PlayOnMac 4.4.3.

At first I got 2 errors while installing the GOG-version of Gothic 2 Gold. First playonmac couldn't download WindowsXP-KB975337-x86-ENU.exe and after that the  download of directx_Jun2010_redist.exe failed. I downloaded both files manually and put them in the ressource folder and reinstalled the game. Installation went through without any error.

When I start the game the following error message appears:

C:zMusic_DM.cpp(zCMusicSys_DirectMusic: :Init()

)Failed to create loader object!

 

I am not an expert, but this looks like a problem with directx. I manually installed a dxfullsetup which didn't change anything. Any suggestions or solutions? 
Changing the wine-version didn't help either. I had to manually download and copy the wineversions to a filepath, while "managing" them via the playonmac gui doesn't work anymore. If I can provide any information about this error, please let me know. I would love to play this game again...

 

 

 

Replies

Dadu042 Thursday 30 April 2020 at 11:17
Dadu042

Information

This update has been approved by the team.

Differences

@@ -7,13 +7,20 @@
 # Script licence : GPL v.2
 # Program licence : Retail
 # Depend :
+#
+# CHANGELOG
+# [Pierre Etchemaite] (2012-05-31 20-09)
+#   First script. 
+# [?]  (2014-02-02 21-18)
+#   ?
+# [Dadu042] (2020-04-30)
+#   Wine 1.6.2 -> system (Wine is at least v3.0 noawadays)
 
 [ -z "$PLAYONLINUX" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
 
 GOGID="gothic_2_gold_edition"
 PREFIX="Gothic2_gog"
-WORKING_WINE_VERSION="1.6.2"
 
 TITLE="GOG.com - Gothic 2 Gold"
 SHORTCUT_NAME="Gothic 2 Gold"
@@ -29,7 +36,7 @@
 POL_Call POL_GoG_setup "$GOGID" --alternate "setup_$GOGID" "1" "b8daf54cf2c80a8e0c80ffb6beadf4b3" "3a27b5b17c14d574b6f78432626d688e" "786c2428c4338bddfdd6e805660ad443"
 
 POL_Wine_SelectPrefix "$PREFIX"
-POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+POL_Wine_PrefixCreate 
 
 # fake sdbinst.exe (bug report #2520)
 POL_Call POL_Install_nop "$WINEPREFIX/drive_c/windows/system32/sdbinst.exe" 

New source code

#!/bin/bash
# Date : (2012-05-31 20-09)
# Last revision : (2014-02-02 21-18)
# Wine version used : 1.4.1, 1.6.2
# 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-05-31 20-09)
#   First script. 
# [?]  (2014-02-02 21-18)
#   ?
# [Dadu042] (2020-04-30)
#   Wine 1.6.2 -> system (Wine is at least v3.0 noawadays)

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

GOGID="gothic_2_gold_edition"
PREFIX="Gothic2_gog"

TITLE="GOG.com - Gothic 2 Gold"
SHORTCUT_NAME="Gothic 2 Gold"

#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 1239
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Piranha Bytes / Nordic Games" "http://www.gog.com/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX"

POL_Call POL_GoG_setup "$GOGID" --alternate "setup_$GOGID" "1" "b8daf54cf2c80a8e0c80ffb6beadf4b3" "3a27b5b17c14d574b6f78432626d688e" "786c2428c4338bddfdd6e805660ad443"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate 

# fake sdbinst.exe (bug report #2520)
POL_Call POL_Install_nop "$WINEPREFIX/drive_c/windows/system32/sdbinst.exe" 

POL_Call POL_GoG_install


# GoG work!
Set_OS winxp

POL_SetupWindow_VMS "32"

POL_Call POL_Install_directmusic
# vdfs32e.exe often crashes, couldn't find a solution
POL_Call POL_Install_DisableCrashDialog

# Doesn't hurt ;)
POL_Wine_reboot

# extendedMenu allows to set resolution ingame
# tip from http://www.gog.com/forum/gothic_series/notes_on_widescreen_resolution
cat <<_EOFFUNC_ > "$GOGROOT/Gothic 2 Gold/gothic2_funcs"

# echo statements to set \$zVidResFullscreenX, \$zVidResFullscreenY and \$zVidResFullscreenBPP
read_g2_settings () {
  [ -z "\$WINEPREFIX" ] && POL_Debug_Fatal 'read_g2_settings: \$WINEPREFIX must be set'
  perl -ne 'print "\$1\n" if /^((zVidResFullscreenX|zVidResFullscreenY|zVidResFullscreenBPP)=\d+)/' "$GOGROOT/Gothic 2 Gold/system/Gothic.ini"
}

# update Gothic.ini with value of \$zVidResFullscreenX, \$zVidResFullscreenY and \$zVidResFullscreenBPP
write_g2_settings () {
  [ -z "\$WINEPREFIX" ] && POL_Debug_Fatal 'write_g2_settings: \$WINEPREFIX must be set'
  perl -i.bak -pe 's/^zVidResFullscreenX=\d+/zVidResFullscreenX='"\$zVidResFullscreenX"'/;
                   s/^zVidResFullscreenY=\d+/zVidResFullscreenY='"\$zVidResFullscreenY"'/;
                   s/^zVidResFullscreenBPP=\d+/zVidResFullscreenBPP='"\$zVidResFullscreenBPP"'/;
                   s/^extendedMenu=\d+/extendedMenu=1/;' "$GOGROOT/Gothic 2 Gold/system/Gothic.ini"
}

# until POL_LoadVar_ScreenResolution does it?
LoadVar_ScreenDepth () {
  export ScreenBpp=\$(xdpyinfo |perl -ne 'print \$1 if /^bitmap unit, bit order, padding:\s*(\d+)/')
  POL_Debug_Message "Screen depth: \$ScreenBpp"
}

sync_resolutions () {
  LoadVar_ScreenDepth
  eval \$(read_g2_settings)
  [ "\$zVidResFullscreenBPP" != "\$ScreenBpp" ] && zVidResFullscreenBPP="\$ScreenBpp" write_g2_settings
  Set_Desktop "On" "\$zVidResFullscreenX" "\$zVidResFullscreenY"
}

_EOFFUNC_


POL_Shortcut "Gothic2.exe" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;RolePlaying;"
# Using $WINEPREFIX here causes trouble, bug #953
POL_Shortcut_InsertBeforeWine "$SHORTCUT_NAME" 'source "../gothic2_funcs" || exit 0'
POL_Shortcut_InsertBeforeWine "$SHORTCUT_NAME" 'sync_resolutions'

POL_Shortcut_Document "$SHORTCUT_NAME" "$GOGROOT/Gothic 2 Gold/manual.pdf"
# C:\GOG Games\Gothic 2 Gold\Readme.txt
# C:\GOG Games\Gothic 2 Gold\manual_addon.pdf

POL_SetupWindow_Close

exit 0

Replies

Anonymous
Wednesday 28 April 2021 at 2:23
Works for me on Manjaro 20 English version.
Ato Thursday 10 January 2019 at 11:17
Ato Anonymous

Warning

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

Differences

@@ -84,7 +84,7 @@
 _EOFFUNC_
 
 
-POL_Shortcut "Gothic.exe" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;RolePlaying;"
+POL_Shortcut "Gothic2.exe" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;RolePlaying;"
 # Using $WINEPREFIX here causes trouble, bug #953
 POL_Shortcut_InsertBeforeWine "$SHORTCUT_NAME" 'source "../gothic2_funcs" || exit 0'
 POL_Shortcut_InsertBeforeWine "$SHORTCUT_NAME" 'sync_resolutions'

New source code

#!/bin/bash
# Date : (2012-05-31 20-09)
# Last revision : (2014-02-02 21-18)
# Wine version used : 1.4.1, 1.6.2
# 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="gothic_2_gold_edition"
PREFIX="Gothic2_gog"
WORKING_WINE_VERSION="1.6.2"

TITLE="GOG.com - Gothic 2 Gold"
SHORTCUT_NAME="Gothic 2 Gold"

#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 1239
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Piranha Bytes / Nordic Games" "http://www.gog.com/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX"

POL_Call POL_GoG_setup "$GOGID" --alternate "setup_$GOGID" "1" "b8daf54cf2c80a8e0c80ffb6beadf4b3" "3a27b5b17c14d574b6f78432626d688e" "786c2428c4338bddfdd6e805660ad443"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

# fake sdbinst.exe (bug report #2520)
POL_Call POL_Install_nop "$WINEPREFIX/drive_c/windows/system32/sdbinst.exe" 

POL_Call POL_GoG_install


# GoG work!
Set_OS winxp

POL_SetupWindow_VMS "32"

POL_Call POL_Install_directmusic
# vdfs32e.exe often crashes, couldn't find a solution
POL_Call POL_Install_DisableCrashDialog

# Doesn't hurt ;)
POL_Wine_reboot

# extendedMenu allows to set resolution ingame
# tip from http://www.gog.com/forum/gothic_series/notes_on_widescreen_resolution
cat <<_EOFFUNC_ > "$GOGROOT/Gothic 2 Gold/gothic2_funcs"

# echo statements to set \$zVidResFullscreenX, \$zVidResFullscreenY and \$zVidResFullscreenBPP
read_g2_settings () {
  [ -z "\$WINEPREFIX" ] && POL_Debug_Fatal 'read_g2_settings: \$WINEPREFIX must be set'
  perl -ne 'print "\$1\n" if /^((zVidResFullscreenX|zVidResFullscreenY|zVidResFullscreenBPP)=\d+)/' "$GOGROOT/Gothic 2 Gold/system/Gothic.ini"
}

# update Gothic.ini with value of \$zVidResFullscreenX, \$zVidResFullscreenY and \$zVidResFullscreenBPP
write_g2_settings () {
  [ -z "\$WINEPREFIX" ] && POL_Debug_Fatal 'write_g2_settings: \$WINEPREFIX must be set'
  perl -i.bak -pe 's/^zVidResFullscreenX=\d+/zVidResFullscreenX='"\$zVidResFullscreenX"'/;
                   s/^zVidResFullscreenY=\d+/zVidResFullscreenY='"\$zVidResFullscreenY"'/;
                   s/^zVidResFullscreenBPP=\d+/zVidResFullscreenBPP='"\$zVidResFullscreenBPP"'/;
                   s/^extendedMenu=\d+/extendedMenu=1/;' "$GOGROOT/Gothic 2 Gold/system/Gothic.ini"
}

# until POL_LoadVar_ScreenResolution does it?
LoadVar_ScreenDepth () {
  export ScreenBpp=\$(xdpyinfo |perl -ne 'print \$1 if /^bitmap unit, bit order, padding:\s*(\d+)/')
  POL_Debug_Message "Screen depth: \$ScreenBpp"
}

sync_resolutions () {
  LoadVar_ScreenDepth
  eval \$(read_g2_settings)
  [ "\$zVidResFullscreenBPP" != "\$ScreenBpp" ] && zVidResFullscreenBPP="\$ScreenBpp" write_g2_settings
  Set_Desktop "On" "\$zVidResFullscreenX" "\$zVidResFullscreenY"
}

_EOFFUNC_


POL_Shortcut "Gothic2.exe" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;RolePlaying;"
# Using $WINEPREFIX here causes trouble, bug #953
POL_Shortcut_InsertBeforeWine "$SHORTCUT_NAME" 'source "../gothic2_funcs" || exit 0'
POL_Shortcut_InsertBeforeWine "$SHORTCUT_NAME" 'sync_resolutions'

POL_Shortcut_Document "$SHORTCUT_NAME" "$GOGROOT/Gothic 2 Gold/manual.pdf"
# C:\GOG Games\Gothic 2 Gold\Readme.txt
# C:\GOG Games\Gothic 2 Gold\manual_addon.pdf

POL_SetupWindow_Close

exit 0

Replies

Andryuhan Sunday 7 August 2016 at 17:47
Andryuhan Anonymous

Warning

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

Message

????????
POL_Shortcut "Gothic.exe" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;RolePlaying;"

??

POL_Shortcut "Gothic2.exe" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;RolePlaying;"

??? ????? ???? ?? ???????? ?? ?????. ??????, ???????????? ?????????? ???? ??? ??????????????, ? ?? ?????? ?????. :|

? ?????????, ?? ?????? ???????. ??????, ???? ???????? ???????????? ?? ????, ??????, ???? ??????. =)

Differences

@@ -84,7 +84,7 @@
 _EOFFUNC_
 
 
-POL_Shortcut "Gothic.exe" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;RolePlaying;"
+POL_Shortcut "Gothic2.exe" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;RolePlaying;"
 # Using $WINEPREFIX here causes trouble, bug #953
 POL_Shortcut_InsertBeforeWine "$SHORTCUT_NAME" 'source "../gothic2_funcs" || exit 0'
 POL_Shortcut_InsertBeforeWine "$SHORTCUT_NAME" 'sync_resolutions'

New source code

#!/bin/bash
# Date : (2012-05-31 20-09)
# Last revision : (2014-02-02 21-18)
# Wine version used : 1.4.1, 1.6.2
# 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="gothic_2_gold_edition"
PREFIX="Gothic2_gog"
WORKING_WINE_VERSION="1.6.2"

TITLE="GOG.com - Gothic 2 Gold"
SHORTCUT_NAME="Gothic 2 Gold"

#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 1239
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Piranha Bytes / Nordic Games" "http://www.gog.com/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX"

POL_Call POL_GoG_setup "$GOGID" --alternate "setup_$GOGID" "1" "b8daf54cf2c80a8e0c80ffb6beadf4b3" "3a27b5b17c14d574b6f78432626d688e" "786c2428c4338bddfdd6e805660ad443"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

# fake sdbinst.exe (bug report #2520)
POL_Call POL_Install_nop "$WINEPREFIX/drive_c/windows/system32/sdbinst.exe" 

POL_Call POL_GoG_install


# GoG work!
Set_OS winxp

POL_SetupWindow_VMS "32"

POL_Call POL_Install_directmusic
# vdfs32e.exe often crashes, couldn't find a solution
POL_Call POL_Install_DisableCrashDialog

# Doesn't hurt ;)
POL_Wine_reboot

# extendedMenu allows to set resolution ingame
# tip from http://www.gog.com/forum/gothic_series/notes_on_widescreen_resolution
cat <<_EOFFUNC_ > "$GOGROOT/Gothic 2 Gold/gothic2_funcs"

# echo statements to set \$zVidResFullscreenX, \$zVidResFullscreenY and \$zVidResFullscreenBPP
read_g2_settings () {
  [ -z "\$WINEPREFIX" ] && POL_Debug_Fatal 'read_g2_settings: \$WINEPREFIX must be set'
  perl -ne 'print "\$1\n" if /^((zVidResFullscreenX|zVidResFullscreenY|zVidResFullscreenBPP)=\d+)/' "$GOGROOT/Gothic 2 Gold/system/Gothic.ini"
}

# update Gothic.ini with value of \$zVidResFullscreenX, \$zVidResFullscreenY and \$zVidResFullscreenBPP
write_g2_settings () {
  [ -z "\$WINEPREFIX" ] && POL_Debug_Fatal 'write_g2_settings: \$WINEPREFIX must be set'
  perl -i.bak -pe 's/^zVidResFullscreenX=\d+/zVidResFullscreenX='"\$zVidResFullscreenX"'/;
                   s/^zVidResFullscreenY=\d+/zVidResFullscreenY='"\$zVidResFullscreenY"'/;
                   s/^zVidResFullscreenBPP=\d+/zVidResFullscreenBPP='"\$zVidResFullscreenBPP"'/;
                   s/^extendedMenu=\d+/extendedMenu=1/;' "$GOGROOT/Gothic 2 Gold/system/Gothic.ini"
}

# until POL_LoadVar_ScreenResolution does it?
LoadVar_ScreenDepth () {
  export ScreenBpp=\$(xdpyinfo |perl -ne 'print \$1 if /^bitmap unit, bit order, padding:\s*(\d+)/')
  POL_Debug_Message "Screen depth: \$ScreenBpp"
}

sync_resolutions () {
  LoadVar_ScreenDepth
  eval \$(read_g2_settings)
  [ "\$zVidResFullscreenBPP" != "\$ScreenBpp" ] && zVidResFullscreenBPP="\$ScreenBpp" write_g2_settings
  Set_Desktop "On" "\$zVidResFullscreenX" "\$zVidResFullscreenY"
}

_EOFFUNC_


POL_Shortcut "Gothic2.exe" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;RolePlaying;"
# Using $WINEPREFIX here causes trouble, bug #953
POL_Shortcut_InsertBeforeWine "$SHORTCUT_NAME" 'source "../gothic2_funcs" || exit 0'
POL_Shortcut_InsertBeforeWine "$SHORTCUT_NAME" 'sync_resolutions'

POL_Shortcut_Document "$SHORTCUT_NAME" "$GOGROOT/Gothic 2 Gold/manual.pdf"
# C:\GOG Games\Gothic 2 Gold\Readme.txt
# C:\GOG Games\Gothic 2 Gold\manual_addon.pdf

POL_SetupWindow_Close

exit 0

Replies

Aemstuz Monday 18 April 2016 at 19:42
Aemstuz Anonymous

Message

Runs quite well with non-GOG.com Polish version attached to CD-Action magazine (September 2007) on Kubuntu 14.04 LTS.

  • Ocassionally crashes with no error message.
  • Sometimes starts running very slowly (less than 1 FPS) until closed.
  • Can't skip cutscenes with [ESC] key.

Replies

draghan Saturday 21 March 2015 at 13:14
draghan Anonymous

Message

I have a standalone installer (non-GOG version) and both - pure Gothic 2 and Gothic 2 with Night of the Raven - works fine. :)

Only small issue I've seen: not able to skip videos.

Replies

ulty Saturday 5 July 2014 at 8:58
ulty Anonymous

Message

Works well with the english gog version.


Does not work with the german gog version, probably because some files are named differently example

( System instead of system ).

Replies

Anonymous
Saturday 5 July 2014 at 11:45
system to System

Gothic.exe to Gothic2.exe
Sunday 6 July 2014 at 16:20
Yup, Gothic2.exe vs. Gothic.exe is the most likely deal breaker. Script only supports the english installer though.