GOG.com - The Witcher 2

Informations

Creator Message
tylendel Anonymous

Warning

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

Informations

Platforms:
Downloads: 516
Wine: 2.22

Feedbacks

Description

gog.com version of The Witcher 2 : Assassins of Kings (2011). Wikipedia.

Appdb.winehq.org

Source code

#!/bin/bash
# Created: 2014-08-20
# Revised: see changelog
# WINE versions: 1.7.4-CSMT 1.5.31 (NOK), 2.22
# Distro(s): Gentoo 3.14.14
# Author: tylendel
# http://www.playonlinux.com
# Created using GNU_Raziel's Witcher 2 script as general guide

# [tylendel] (2014-08-20)
#   Initial script.
# [Dadu042] (2020-01-22)
#   Wine "1.7.4-CSMT" -> 2.22 (according appdb.winehq.org)

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

TITLE="GOG.com - The Witcher 2"
PREFIX="Witcher2_GOG"
SHORTCUT_GAME="The Witcher 2 : Assassins of Kings"
SHORTCUT_CONF="The Witcher 2 : Assassins of Kings (Configuration)"
PUBLISHER="CDProjekt"
SITE_URL="http://www.thewitcher.com"
AUTHOR="tylendel"
WORKING_WINE_VERSION="2.22"

POL_SetupWindow_Init
# Not sure what this is, nothing in docs
#POL_SetupWindow_SetID 12345

# Debug away
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "$PUBLISHER" "$SITE_URL" "$AUTHOR" "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"

# Dotnet 4 installer is only for 32 bit, game is 32 bit too
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

# Need some things
POL_Call POL_Install_vcrun2010
POL_Call POL_Install_d3dx9_36
POL_Call POL_Install_dotnet40

# Browse for gog.com exe file
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup exe. Ensure all data (.bin) files are in the same directory as the exe')" "$TITLE"
SETUP_PROG="$APP_ANSWER"

# Need nogui option here to disable the gog setup wrapper thing
# which errors and freezes during setup
# This does not disable the setup's gui though
POL_Wine start /unix "$SETUP_PROG" /nogui
POL_Wine_WaitExit "$TITLE"

# TODO: get the icon graphics to actually work
POL_Shortcut "witcher2.exe" "$SHORTCUT_GAME" "$SHORTCUT_NAME.png" "" "Game;RolePlaying;"
POL_Shortcut "Configurator.exe" "$SHORTCUT_CONF" "$SHORTCUT_NAME.png" "" "Game;RolePlaying;"

# All done
POL_SetupWindow_Close

exit 0

Contributions

Filters:

Contribute
Member Message
Dadu042 Tuesday 7 January 2020 at 20:30
Dadu042
Moderator

Information

This update has been approved by the team.

Differences

@@ -1,25 +1,28 @@
 #!/bin/bash
 # Created: 2014-08-20
-# Revised: NA
-# WINE versions: 1.7.4-CSMT 1.5.31
+# Revised: see changelog
+# WINE versions: 1.7.4-CSMT 1.5.31 (NOK), 2.22
 # Distro(s): Gentoo 3.14.14
 # Author: tylendel
 # http://www.playonlinux.com
 # Created using GNU_Raziel's Witcher 2 script as general guide
 
+# [tylendel] (2014-08-20)
+#   Initial script.
+# [Dadu042] (2020-01-22)
+#   Wine "1.7.4-CSMT" -> 2.22 (according appdb.winehq.org)
+
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
 
 TITLE="GOG.com - The Witcher 2"
-PREFIX="Witcher2GOG"
+PREFIX="Witcher2_GOG"
 SHORTCUT_GAME="The Witcher 2 : Assassins of Kings"
 SHORTCUT_CONF="The Witcher 2 : Assassins of Kings (Configuration)"
 PUBLISHER="CDProjekt"
 SITE_URL="http://www.thewitcher.com"
 AUTHOR="tylendel"
-#WORKING_WINE_VERSION="1.5.31"
-# Doesn't want to work with 1.5.31
-WORKING_WINE_VERSION="1.7.4-CSMT"
+WORKING_WINE_VERSION="2.22"
 
 POL_SetupWindow_Init
 # Not sure what this is, nothing in docs
@@ -40,9 +43,6 @@
 POL_Call POL_Install_d3dx9_36
 POL_Call POL_Install_dotnet40
 
-# Needed if using the CSMT stuff
-POL_Wine_Direct3D "CSMT" "enabled"
-
 # Browse for gog.com exe file
 POL_SetupWindow_browse "$(eval_gettext 'Please select the setup exe. Ensure all data (.bin) files are in the same directory as the exe')" "$TITLE"
 SETUP_PROG="$APP_ANSWER"
@@ -60,5 +60,4 @@
 # All done
 POL_SetupWindow_Close
 
-exit 0
-
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Created: 2014-08-20
# Revised: see changelog
# WINE versions: 1.7.4-CSMT 1.5.31 (NOK), 2.22
# Distro(s): Gentoo 3.14.14
# Author: tylendel
# http://www.playonlinux.com
# Created using GNU_Raziel's Witcher 2 script as general guide

# [tylendel] (2014-08-20)
#   Initial script.
# [Dadu042] (2020-01-22)
#   Wine "1.7.4-CSMT" -> 2.22 (according appdb.winehq.org)

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

TITLE="GOG.com - The Witcher 2"
PREFIX="Witcher2_GOG"
SHORTCUT_GAME="The Witcher 2 : Assassins of Kings"
SHORTCUT_CONF="The Witcher 2 : Assassins of Kings (Configuration)"
PUBLISHER="CDProjekt"
SITE_URL="http://www.thewitcher.com"
AUTHOR="tylendel"
WORKING_WINE_VERSION="2.22"

POL_SetupWindow_Init
# Not sure what this is, nothing in docs
#POL_SetupWindow_SetID 12345

# Debug away
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "$PUBLISHER" "$SITE_URL" "$AUTHOR" "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"

# Dotnet 4 installer is only for 32 bit, game is 32 bit too
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

# Need some things
POL_Call POL_Install_vcrun2010
POL_Call POL_Install_d3dx9_36
POL_Call POL_Install_dotnet40

# Browse for gog.com exe file
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup exe. Ensure all data (.bin) files are in the same directory as the exe')" "$TITLE"
SETUP_PROG="$APP_ANSWER"

# Need nogui option here to disable the gog setup wrapper thing
# which errors and freezes during setup
# This does not disable the setup's gui though
POL_Wine start /unix "$SETUP_PROG" /nogui
POL_Wine_WaitExit "$TITLE"

# TODO: get the icon graphics to actually work
POL_Shortcut "witcher2.exe" "$SHORTCUT_GAME" "$SHORTCUT_NAME.png" "" "Game;RolePlaying;"
POL_Shortcut "Configurator.exe" "$SHORTCUT_CONF" "$SHORTCUT_NAME.png" "" "Game;RolePlaying;"

# All done
POL_SetupWindow_Close

exit 0

Replies

Dadu042 Tuesday 7 January 2020 at 20:26
Dadu042
Moderator

Message

This script was downloaded 0 times as os 2020-01-07 because of wrong flags (not ticked). Fixed.

Replies

tylendel Wednesday 20 August 2014 at 22:55
tylendel Anonymous

Warning

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

Message

A bit of commenting.  Works (for me).
 

Differences

@@ -0,0 +1,64 @@
+#!/bin/bash
+# Created: 2014-08-20
+# Revised: NA
+# WINE versions: 1.7.4-CSMT 1.5.31
+# Distro(s): Gentoo 3.14.14
+# Author: tylendel
+# http://www.playonlinux.com
+# Created using GNU_Raziel's Witcher 2 script as general guide
+
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+
+TITLE="GOG.com - The Witcher 2"
+PREFIX="Witcher2GOG"
+SHORTCUT_GAME="The Witcher 2 : Assassins of Kings"
+SHORTCUT_CONF="The Witcher 2 : Assassins of Kings (Configuration)"
+PUBLISHER="CDProjekt"
+SITE_URL="http://www.thewitcher.com"
+AUTHOR="tylendel"
+#WORKING_WINE_VERSION="1.5.31"
+# Doesn't want to work with 1.5.31
+WORKING_WINE_VERSION="1.7.4-CSMT"
+
+POL_SetupWindow_Init
+# Not sure what this is, nothing in docs
+#POL_SetupWindow_SetID 12345
+
+# Debug away
+POL_Debug_Init
+
+POL_SetupWindow_presentation "$TITLE" "$PUBLISHER" "$SITE_URL" "$AUTHOR" "$PREFIX"
+POL_Wine_SelectPrefix "$PREFIX"
+
+# Dotnet 4 installer is only for 32 bit, game is 32 bit too
+POL_System_SetArch "x86"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+
+# Need some things
+POL_Call POL_Install_vcrun2010
+POL_Call POL_Install_d3dx9_36
+POL_Call POL_Install_dotnet40
+
+# Needed if using the CSMT stuff
+POL_Wine_Direct3D "CSMT" "enabled"
+
+# Browse for gog.com exe file
+POL_SetupWindow_browse "$(eval_gettext 'Please select the setup exe. Ensure all data (.bin) files are in the same directory as the exe')" "$TITLE"
+SETUP_PROG="$APP_ANSWER"
+
+# Need nogui option here to disable the gog setup wrapper thing
+# which errors and freezes during setup
+# This does not disable the setup's gui though
+POL_Wine start /unix "$SETUP_PROG" /nogui
+POL_Wine_WaitExit "$TITLE"
+
+# TODO: get the icon graphics to actually work
+POL_Shortcut "witcher2.exe" "$SHORTCUT_GAME" "$SHORTCUT_NAME.png" "" "Game;RolePlaying;"
+POL_Shortcut "Configurator.exe" "$SHORTCUT_CONF" "$SHORTCUT_NAME.png" "" "Game;RolePlaying;"
+
+# All done
+POL_SetupWindow_Close
+
+exit 0
+

New source code

#!/bin/bash
# Created: 2014-08-20
# Revised: NA
# WINE versions: 1.7.4-CSMT 1.5.31
# Distro(s): Gentoo 3.14.14
# Author: tylendel
# http://www.playonlinux.com
# Created using GNU_Raziel's Witcher 2 script as general guide

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

TITLE="GOG.com - The Witcher 2"
PREFIX="Witcher2GOG"
SHORTCUT_GAME="The Witcher 2 : Assassins of Kings"
SHORTCUT_CONF="The Witcher 2 : Assassins of Kings (Configuration)"
PUBLISHER="CDProjekt"
SITE_URL="http://www.thewitcher.com"
AUTHOR="tylendel"
#WORKING_WINE_VERSION="1.5.31"
# Doesn't want to work with 1.5.31
WORKING_WINE_VERSION="1.7.4-CSMT"

POL_SetupWindow_Init
# Not sure what this is, nothing in docs
#POL_SetupWindow_SetID 12345

# Debug away
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "$PUBLISHER" "$SITE_URL" "$AUTHOR" "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"

# Dotnet 4 installer is only for 32 bit, game is 32 bit too
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

# Need some things
POL_Call POL_Install_vcrun2010
POL_Call POL_Install_d3dx9_36
POL_Call POL_Install_dotnet40

# Needed if using the CSMT stuff
POL_Wine_Direct3D "CSMT" "enabled"

# Browse for gog.com exe file
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup exe. Ensure all data (.bin) files are in the same directory as the exe')" "$TITLE"
SETUP_PROG="$APP_ANSWER"

# Need nogui option here to disable the gog setup wrapper thing
# which errors and freezes during setup
# This does not disable the setup's gui though
POL_Wine start /unix "$SETUP_PROG" /nogui
POL_Wine_WaitExit "$TITLE"

# TODO: get the icon graphics to actually work
POL_Shortcut "witcher2.exe" "$SHORTCUT_GAME" "$SHORTCUT_NAME.png" "" "Game;RolePlaying;"
POL_Shortcut "Configurator.exe" "$SHORTCUT_CONF" "$SHORTCUT_NAME.png" "" "Game;RolePlaying;"

# All done
POL_SetupWindow_Close

exit 0

Replies

tylendel Wednesday 20 August 2014 at 20:49
tylendel Anonymous

Warning

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

Message

Here's the actual script, must have missed it when creating.  Still new here.

Differences

@@ -0,0 +1,50 @@
+#!/bin/bash
+# Created: 2014-08-20
+# Revised: NA
+# WINE versions: 1.7.4-CSMT
+# Distro(s): Gentoo 3.14.14
+# Author: tylendel
+# http://www.playonlinux.com
+# Created using GNU_Raziel's Witcher 2 script as general guide
+
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+
+TITLE="GOG.com - The Witcher 2"
+PREFIX="Witcher2GOG"
+SHORTCUT_GAME="The Witcher 2 : Assassins of Kings"
+SHORTCUT_CONF="The Witcher 2 : Assassins of Kings (Configuration)"
+PUBLISHER="CDProjekt"
+SITE_URL="http://www.thewitcher.com"
+AUTHOR="tylendel"
+WORKING_WINE_VERSION="1.7.4-CSMT"
+
+POL_SetupWindow_Init
+# Not sure what this is, nothing in docs
+#POL_SetupWindow_SetID 12345
+
+POL_Debug_Init
+
+POL_SetupWindow_presentation "$TITLE" "$PUBLISHER" "$SITE_URL" "$AUTHOR" "$PREFIX"
+POL_Wine_SelectPrefix "$PREFIX"
+POL_System_SetArch "x86"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+
+POL_Call POL_Install_vcrun2010
+POL_Call POL_Install_d3dx9_36
+POL_Call POL_Install_dotnet40
+
+POL_Wine_Direct3D "CSMT" "enabled"
+
+POL_SetupWindow_browse "$(eval_gettext 'Please select the setup exe. Ensure all data (.bin) files are in the same directory as the exe')" "$TITLE"
+SETUP_PROG="$APP_ANSWER"
+
+POL_Wine start /unix "$SETUP_PROG" /nogui
+POL_Wine_WaitExit "$TITLE"
+
+POL_Shortcut "witcher2.exe" "$SHORTCUT_GAME" "$SHORTCUT_NAME.png" "" "Game;RolePlaying;"
+POL_Shortcut "Configurator.exe" "$SHORTCUT_CONF" "$SHORTCUT_NAME.png" "" "Game;RolePlaying;"
+
+POL_SetupWindow_Close
+
+exit 0

New source code

#!/bin/bash
# Created: 2014-08-20
# Revised: NA
# WINE versions: 1.7.4-CSMT
# Distro(s): Gentoo 3.14.14
# Author: tylendel
# http://www.playonlinux.com
# Created using GNU_Raziel's Witcher 2 script as general guide

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

TITLE="GOG.com - The Witcher 2"
PREFIX="Witcher2GOG"
SHORTCUT_GAME="The Witcher 2 : Assassins of Kings"
SHORTCUT_CONF="The Witcher 2 : Assassins of Kings (Configuration)"
PUBLISHER="CDProjekt"
SITE_URL="http://www.thewitcher.com"
AUTHOR="tylendel"
WORKING_WINE_VERSION="1.7.4-CSMT"

POL_SetupWindow_Init
# Not sure what this is, nothing in docs
#POL_SetupWindow_SetID 12345

POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "$PUBLISHER" "$SITE_URL" "$AUTHOR" "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_Call POL_Install_vcrun2010
POL_Call POL_Install_d3dx9_36
POL_Call POL_Install_dotnet40

POL_Wine_Direct3D "CSMT" "enabled"

POL_SetupWindow_browse "$(eval_gettext 'Please select the setup exe. Ensure all data (.bin) files are in the same directory as the exe')" "$TITLE"
SETUP_PROG="$APP_ANSWER"

POL_Wine start /unix "$SETUP_PROG" /nogui
POL_Wine_WaitExit "$TITLE"

POL_Shortcut "witcher2.exe" "$SHORTCUT_GAME" "$SHORTCUT_NAME.png" "" "Game;RolePlaying;"
POL_Shortcut "Configurator.exe" "$SHORTCUT_CONF" "$SHORTCUT_NAME.png" "" "Game;RolePlaying;"

POL_SetupWindow_Close

exit 0

Replies