GOG.com - Pathologic Classic HD

Informations

Creator Message
aggelito

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 3432
Wine: 1.7.52

Feedbacks

Description

Pathologic Classic HD is the Definitive Edition of the original Cult Classic Psychological First-Person Survival game. In this unforgettable experience, players control one of three unique characters as they try to save a mysterious town from a deadly plague that cannot be stopped.

Screenshots

MiniatureMiniatureMiniature

Source code

#!/bin/bash
# Date : (2016-01-20 21-00)
# Wine version used : 1.7.52
# Distribution used to test : Xubuntu 15.10 x64
# Author : August Lindberg
# Program licence : Retail

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

TITLE="GOG.com - Pathologic Classic HD"
SHORTCUT_NAME="Pathologic Classic HD"
PREFIX="PathologicClassicHd_gog"
WORKING_WINE_VERSION="1.7.52"
GOGID="pathologic_classic_hd"

# Starting the script
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/pathologic_classic_hd/top.jpg" "http://files.playonlinux.com/resources/setups/pathologic_classic_hd/left.jpg" "$TITLE"

POL_SetupWindow_Init
POL_SetupWindow_SetID 2720
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "Ice-pick Lodge" "http://www.ice-pick.com/" "August Lindberg" "$PREFIX"

# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"

# Forcing x86 to make wmp9 work
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

# Installing mandatory dependencies
POL_Call POL_Install_d3dx9_35
POL_Call POL_Install_d3dx9_36
POL_Call POL_Install_devenum
POL_Call POL_Install_quartz
POL_Call POL_Install_wmp9

# Choose setup file
POL_Call POL_GoG_setup "$GOGID" "d7a4ffe9afcf8aec87df436927b55b0e"

# Warn for installer errors
POL_SetupWindow_message "$(eval_gettext "The installer will probably throw a few errors during installation. This is nothing to worry about. Just press 'OK' when the errors appear and everything should work fine.")" "$TITLE"

# Install game
POL_Call POL_GoG_install "/nogui"

## Fix for this game
# Ask if the user want to play with a gamepad
POL_SetupWindow_question "$(eval_gettext 'Do you want to play the game with a gamepad? If not, the gamepad bindings will be removed to solve an issue with phantom key presses.')" "$TITLE"

# If not, remove gamepad's bindings because of phantom key presses
if [ "$APP_ANSWER" = "FALSE" ]; then
    GAME_PATH=$(cd "$(dirname "$(find "$WINEPREFIX" -name "Game.exe")")/../.."; pwd -P)
    sed -i "/bind gp_/d" "$GAME_PATH/data/init.cfg"
fi
## End Fix

# Create game shortcut
POL_Shortcut "Game.exe" "$SHORTCUT_NAME"

POL_SetupWindow_Close
exit

Contributions

Filters:

Contribute
Member Message
aggelito Thursday 21 January 2016 at 18:28
aggelito

Information

This update has been approved by the team.

Differences

@@ -0,0 +1,63 @@
+#!/bin/bash
+# Date : (2016-01-20 21-00)
+# Wine version used : 1.7.52
+# Distribution used to test : Xubuntu 15.10 x64
+# Author : August Lindberg
+# Program licence : Retail
+
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+
+TITLE="GOG.com - Pathologic Classic HD"
+SHORTCUT_NAME="Pathologic Classic HD"
+PREFIX="PathologicClassicHd_gog"
+WORKING_WINE_VERSION="1.7.52"
+GOGID="pathologic_classic_hd"
+
+# Starting the script
+POL_GetSetupImages "http://files.playonlinux.com/resources/setups/pathologic_classic_hd/top.jpg" "http://files.playonlinux.com/resources/setups/pathologic_classic_hd/left.jpg" "$TITLE"
+
+POL_SetupWindow_Init
+POL_SetupWindow_SetID 2720
+POL_Debug_Init
+POL_SetupWindow_presentation "$TITLE" "Ice-pick Lodge" "http://www.ice-pick.com/" "August Lindberg" "$PREFIX"
+
+# Setting prefix path
+POL_Wine_SelectPrefix "$PREFIX"
+
+# Forcing x86 to make wmp9 work
+POL_System_SetArch "x86"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+
+# Installing mandatory dependencies
+POL_Call POL_Install_d3dx9_35
+POL_Call POL_Install_d3dx9_36
+POL_Call POL_Install_devenum
+POL_Call POL_Install_quartz
+POL_Call POL_Install_wmp9
+
+# Choose setup file
+POL_Call POL_GoG_setup "$GOGID" "d7a4ffe9afcf8aec87df436927b55b0e"
+
+# Warn for installer errors
+POL_SetupWindow_message "$(eval_gettext "The installer will probably throw a few errors during installation. This is nothing to worry about. Just press 'OK' when the errors appear and everything should work fine.")" "$TITLE"
+
+# Install game
+POL_Call POL_GoG_install "/nogui"
+
+## Fix for this game
+# Ask if the user want to play with a gamepad
+POL_SetupWindow_question "$(eval_gettext 'Do you want to play the game with a gamepad? If not, the gamepad bindings will be removed to solve an issue with phantom key presses.')" "$TITLE"
+
+# If not, remove gamepad's bindings because of phantom key presses
+if [ "$APP_ANSWER" = "FALSE" ]; then
+    GAME_PATH=$(cd "$(dirname "$(find "$WINEPREFIX" -name "Game.exe")")/../.."; pwd -P)
+    sed -i "/bind gp_/d" "$GAME_PATH/data/init.cfg"
+fi
+## End Fix
+
+# Create game shortcut
+POL_Shortcut "Game.exe" "$SHORTCUT_NAME"
+
+POL_SetupWindow_Close
+exit
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2016-01-20 21-00)
# Wine version used : 1.7.52
# Distribution used to test : Xubuntu 15.10 x64
# Author : August Lindberg
# Program licence : Retail

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

TITLE="GOG.com - Pathologic Classic HD"
SHORTCUT_NAME="Pathologic Classic HD"
PREFIX="PathologicClassicHd_gog"
WORKING_WINE_VERSION="1.7.52"
GOGID="pathologic_classic_hd"

# Starting the script
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/pathologic_classic_hd/top.jpg" "http://files.playonlinux.com/resources/setups/pathologic_classic_hd/left.jpg" "$TITLE"

POL_SetupWindow_Init
POL_SetupWindow_SetID 2720
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "Ice-pick Lodge" "http://www.ice-pick.com/" "August Lindberg" "$PREFIX"

# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"

# Forcing x86 to make wmp9 work
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

# Installing mandatory dependencies
POL_Call POL_Install_d3dx9_35
POL_Call POL_Install_d3dx9_36
POL_Call POL_Install_devenum
POL_Call POL_Install_quartz
POL_Call POL_Install_wmp9

# Choose setup file
POL_Call POL_GoG_setup "$GOGID" "d7a4ffe9afcf8aec87df436927b55b0e"

# Warn for installer errors
POL_SetupWindow_message "$(eval_gettext "The installer will probably throw a few errors during installation. This is nothing to worry about. Just press 'OK' when the errors appear and everything should work fine.")" "$TITLE"

# Install game
POL_Call POL_GoG_install "/nogui"

## Fix for this game
# Ask if the user want to play with a gamepad
POL_SetupWindow_question "$(eval_gettext 'Do you want to play the game with a gamepad? If not, the gamepad bindings will be removed to solve an issue with phantom key presses.')" "$TITLE"

# If not, remove gamepad's bindings because of phantom key presses
if [ "$APP_ANSWER" = "FALSE" ]; then
    GAME_PATH=$(cd "$(dirname "$(find "$WINEPREFIX" -name "Game.exe")")/../.."; pwd -P)
    sed -i "/bind gp_/d" "$GAME_PATH/data/init.cfg"
fi
## End Fix

# Create game shortcut
POL_Shortcut "Game.exe" "$SHORTCUT_NAME"

POL_SetupWindow_Close
exit

Replies

Thursday 21 January 2016 at 18:32
Somehow I failed to post the source code in the original post, so the script have been posted in this update instead.
Thursday 21 January 2016 at 19:14
No problem, that's how it works ;) http://wiki.playonlinux.com/index.php/How_to_Contribute_a_Script
Thursday 21 January 2016 at 20:19
Hooray, It's approved! :D

Edited by petch