S.T.A.L.K.E.R.: Call of Pripyat

Informations

Creator Message
Xenos5

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 21942
Wine: 1.7.39

Feedbacks

Description

S.T.A.L.K.E.R.: Call of Pripyat is the third instalment in the highly-acclaimed S.T.A.L.K.E.R. franchise. Following on from the events of the first game, you take the role of Major Alexander Degtyarev, whose mission is to infiltrate the zone as a stalker, in order to find out why "Operation Fairway", the large scale helicopter reconnaissance mission the military launched at the end of the first game, went so horribly wrong.

Script notes:
The steam install method is untested (I don't own Call of Pripyat on steam), but has been known to work. Problem reports are, as always, welcome.

Screenshots

MiniatureMiniatureMiniature

Source code

#!/bin/bash
# Date : (2015-03-25T21:00Z)
# Last revision : (2015-03-25T21:00Z)
# Distribution used to test : Arch Linux
# Author : Alexander Borysov (Xenos5)
# Script licence : GPLv3
# Program licence: Proprietary

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

TITLE="S.T.A.L.K.E.R.: Call of Pripyat"
PREFIX="STALKERCallOfPripyat"
WINEVERSION="1.7.39"
STEAM_APP_ID=41700

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_Debug_Init

POL_SetupWindow_presentation "$TITLE" "BitComposer Games" "http://stalker-game.com" "Alexander Borysov" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"

POL_SetupWindow_InstallMethod "DVD,STEAM,LOCAL"

if [ "$INSTALL_METHOD" = "DVD" ]; then
    POL_SetupWindow_cdrom
    POL_SetupWindow_check_cdrom "setup-1.bin"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine "$CDROM/setup.exe"
elif [ "$INSTALL_METHOD" = "STEAM" ]; then
   POL_Call POL_Install_steam
   cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
   POL_Wine "steam.exe" "steam://install/$STEAM_APP_ID"
   POL_Wine_WaitExit "$TITLE"
elif [ "$INSTALL_METHOD" = "LOCAL" ]; then
    POL_SetupWindow_browse "$(eval_gettext "Please select the setup file to run.")" "$TITLE"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine "$APP_ANSWER"
fi

POL_SetupWindow_VMS "128"
POL_Wine_OverrideDLL "" "d3dx11_42" # avoids a crash on start

if [ "$INSTALL_METHOD" = "STEAM" ]; then
   POL_Shortcut "steam.exe" "$TITLE" "${TITLE}.png" "steam://rungameid/$STEAM_APP_ID -no-dwrite"
else
    POL_Shortcut "Stalker-COP.exe" "$TITLE" "S.T.A.L.K.E.R.: Call of Pripyat.png"
fi

POL_SetupWindow_Close
exit

Contributions

Filters:

Contribute
Member Message
Xenos5 Wednesday 25 March 2015 at 22:23
Xenos5

Information

This update has been approved by the team.

Differences

@@ -0,0 +1,55 @@
+#!/bin/bash
+# Date : (2015-03-25T21:00Z)
+# Last revision : (2015-03-25T21:00Z)
+# Distribution used to test : Arch Linux
+# Author : Alexander Borysov (Xenos5)
+# Script licence : GPLv3
+# Program licence: Proprietary
+
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+
+TITLE="S.T.A.L.K.E.R.: Call of Pripyat"
+PREFIX="STALKERCallOfPripyat"
+WINEVERSION="1.7.39"
+STEAM_APP_ID=41700
+
+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_Debug_Init
+
+POL_SetupWindow_presentation "$TITLE" "BitComposer Games" "http://stalker-game.com" "Alexander Borysov" "$PREFIX"
+
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WINEVERSION"
+
+POL_SetupWindow_InstallMethod "DVD,STEAM,LOCAL"
+
+if [ "$INSTALL_METHOD" = "DVD" ]; then
+    POL_SetupWindow_cdrom
+    POL_SetupWindow_check_cdrom "setup-1.bin"
+    POL_Wine_WaitBefore "$TITLE"
+    POL_Wine "$CDROM/setup.exe"
+elif [ "$INSTALL_METHOD" = "STEAM" ]; then
+   POL_Call POL_Install_steam
+   cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
+   POL_Wine "steam.exe" "steam://install/$STEAM_APP_ID"
+   POL_Wine_WaitExit "$TITLE"
+elif [ "$INSTALL_METHOD" = "LOCAL" ]; then
+    POL_SetupWindow_browse "$(eval_gettext "Please select the setup file to run.")" "$TITLE"
+    POL_Wine_WaitBefore "$TITLE"
+    POL_Wine "$APP_ANSWER"
+fi
+
+POL_SetupWindow_VMS "128"
+POL_Wine_OverrideDLL "" "d3dx11_42" # avoids a crash on start
+
+if [ "$INSTALL_METHOD" = "STEAM" ]; then
+   POL_Shortcut "steam.exe" "$TITLE" "${TITLE}.png" "steam://rungameid/$STEAM_APP_ID -no-dwrite"
+else
+    POL_Shortcut "Stalker-COP.exe" "$TITLE" "S.T.A.L.K.E.R.: Call of Pripyat.png"
+fi
+
+POL_SetupWindow_Close
+exit
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2015-03-25T21:00Z)
# Last revision : (2015-03-25T21:00Z)
# Distribution used to test : Arch Linux
# Author : Alexander Borysov (Xenos5)
# Script licence : GPLv3
# Program licence: Proprietary

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

TITLE="S.T.A.L.K.E.R.: Call of Pripyat"
PREFIX="STALKERCallOfPripyat"
WINEVERSION="1.7.39"
STEAM_APP_ID=41700

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_Debug_Init

POL_SetupWindow_presentation "$TITLE" "BitComposer Games" "http://stalker-game.com" "Alexander Borysov" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"

POL_SetupWindow_InstallMethod "DVD,STEAM,LOCAL"

if [ "$INSTALL_METHOD" = "DVD" ]; then
    POL_SetupWindow_cdrom
    POL_SetupWindow_check_cdrom "setup-1.bin"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine "$CDROM/setup.exe"
elif [ "$INSTALL_METHOD" = "STEAM" ]; then
   POL_Call POL_Install_steam
   cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
   POL_Wine "steam.exe" "steam://install/$STEAM_APP_ID"
   POL_Wine_WaitExit "$TITLE"
elif [ "$INSTALL_METHOD" = "LOCAL" ]; then
    POL_SetupWindow_browse "$(eval_gettext "Please select the setup file to run.")" "$TITLE"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine "$APP_ANSWER"
fi

POL_SetupWindow_VMS "128"
POL_Wine_OverrideDLL "" "d3dx11_42" # avoids a crash on start

if [ "$INSTALL_METHOD" = "STEAM" ]; then
   POL_Shortcut "steam.exe" "$TITLE" "${TITLE}.png" "steam://rungameid/$STEAM_APP_ID -no-dwrite"
else
    POL_Shortcut "Stalker-COP.exe" "$TITLE" "S.T.A.L.K.E.R.: Call of Pripyat.png"
fi

POL_SetupWindow_Close
exit

Replies