S.T.A.L.K.E.R.: Shadow of Chernobyl Patch 1.0005

Informations

Créateur Messages
Xenos5

Information

Cet installateur a été accepté par l'équipe.

Informations

Plate-formes :
Téléchargements : 13848
Wine: System

Retours d'expérience

Description

Patch 1.0005 for all known releases of S.T.A.L.K.E.R.: Shadow of Chernobyl

Code source

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

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

TITLE_REQUIRED="S.T.A.L.K.E.R.: Shadow of Chernobyl"
TITLE="$TITLE_REQUIRED Patch 1.0005"
PREFIX="STALKERShadowOfChernobyl"

# Gamefront download ids for the various releases
WW_ID=11854167
US_ID=9029415
DD_ID=11853727
PL_ID=11853514
CZ_ID=11862431

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" "THQ" "http://stalker-game.com" "Alexander Borysov" "$PREFIX"

if [ "$(POL_Wine_PrefixExists $PREFIX)" != "True" ]; then
    POL_SetupWindow_message "$(eval_gettext 'Please install $TITLE_REQUIRED first')" "$TITLE"
    POL_SetupWindow_Close
    exit
fi

POL_Wine_SelectPrefix "$PREFIX"

POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"

if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
    POL_SetupWindow_menu_num "$(eval_gettext 'Please select the game release')" "$TITLE" "$(eval_gettext 'Worldwide')~$(eval_gettext 'US')~$(eval_gettext 'Digital Distribution')~$(eval_gettext 'Polish')~$(eval_gettext 'Czech')" "~"
    case $APP_ANSWER in
        0)
            ID=$WW_ID
            NAME=stkww10005.exe
            ;;
        1)
            ID=$US_ID
            NAME=stkus10005.exe
            ;;
        2)
            ID=$DD_ID
            NAME=stkdd10005.exe
            ;;
        3)
            ID=$PL_ID
            NAME=stkpl10005.exe
            ;;
        4)
            ID=$CZ_ID
            NAME=stkcz10005.exe
            ;;
        *)
            POL_Debug_Fatal "$(eval_gettext 'Could not parse game release response')"
            POL_SetupWindow_Close
            exit
    esac

    POL_System_TmpCreate "$PREFIX"
    URI="${POL_System_TmpDir}/$NAME"
    POL_Call POL_Gamefront_Download "$ID" "$POL_System_TmpDir" "$URI" "$TITLE"
    PATCHNAME="$URI"
elif [ "$INSTALL_METHOD" = "LOCAL" ]; then
    POL_SetupWindow_browse "$(eval_gettext "Please select the setup file to run.")" "$TITLE"
    PATCHNAME="$APP_ANSWER"
fi

POL_Wine "$PATCHNAME"

POL_SetupWindow_Close
exit

Contributions

Filters:

Contribuer
Membre Messages
Xenos5 Lundi 30 Mars 2015 à 22:48
Xenos5

Information

Cette mise à jour a été acceptée par l'équipe

Differences

@@ -0,0 +1,81 @@
+#!/bin/bash
+# Date : (2015-03-30T20:30Z)
+# Last revision : (2015-03-30T20:30Z)
+# Distribution used to test : Arch Linux
+# Author : Alexander Borysov (Xenos5)
+# Script licence : GPLv3
+# Program licence: Proprietary
+
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+
+TITLE_REQUIRED="S.T.A.L.K.E.R.: Shadow of Chernobyl"
+TITLE="$TITLE_REQUIRED Patch 1.0005"
+PREFIX="STALKERShadowOfChernobyl"
+
+# Gamefront download ids for the various releases
+WW_ID=11854167
+US_ID=9029415
+DD_ID=11853727
+PL_ID=11853514
+CZ_ID=11862431
+
+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" "THQ" "http://stalker-game.com" "Alexander Borysov" "$PREFIX"
+
+if [ "$(POL_Wine_PrefixExists $PREFIX)" != "True" ]; then
+    POL_SetupWindow_message "$(eval_gettext 'Please install $TITLE_REQUIRED first')" "$TITLE"
+    POL_SetupWindow_Close
+    exit
+fi
+
+POL_Wine_SelectPrefix "$PREFIX"
+
+POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
+
+if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
+    POL_SetupWindow_menu_num "$(eval_gettext 'Please select the game release')" "$TITLE" "$(eval_gettext 'Worldwide')~$(eval_gettext 'US')~$(eval_gettext 'Digital Distribution')~$(eval_gettext 'Polish')~$(eval_gettext 'Czech')" "~"
+    case $APP_ANSWER in
+        0)
+            ID=$WW_ID
+            NAME=stkww10005.exe
+            ;;
+        1)
+            ID=$US_ID
+            NAME=stkus10005.exe
+            ;;
+        2)
+            ID=$DD_ID
+            NAME=stkdd10005.exe
+            ;;
+        3)
+            ID=$PL_ID
+            NAME=stkpl10005.exe
+            ;;
+        4)
+            ID=$CZ_ID
+            NAME=stkcz10005.exe
+            ;;
+        *)
+            POL_Debug_Fatal "$(eval_gettext 'Could not parse game release response')"
+            POL_SetupWindow_Close
+            exit
+    esac
+
+    POL_System_TmpCreate "$PREFIX"
+    URI="${POL_System_TmpDir}/$NAME"
+    POL_Call POL_Gamefront_Download "$ID" "$POL_System_TmpDir" "$URI" "$TITLE"
+    PATCHNAME="$URI"
+elif [ "$INSTALL_METHOD" = "LOCAL" ]; then
+    POL_SetupWindow_browse "$(eval_gettext "Please select the setup file to run.")" "$TITLE"
+    PATCHNAME="$APP_ANSWER"
+fi
+
+POL_Wine "$PATCHNAME"
+
+POL_SetupWindow_Close
+exit
\ No newline at end of file

Nouveau code source

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

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

TITLE_REQUIRED="S.T.A.L.K.E.R.: Shadow of Chernobyl"
TITLE="$TITLE_REQUIRED Patch 1.0005"
PREFIX="STALKERShadowOfChernobyl"

# Gamefront download ids for the various releases
WW_ID=11854167
US_ID=9029415
DD_ID=11853727
PL_ID=11853514
CZ_ID=11862431

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" "THQ" "http://stalker-game.com" "Alexander Borysov" "$PREFIX"

if [ "$(POL_Wine_PrefixExists $PREFIX)" != "True" ]; then
    POL_SetupWindow_message "$(eval_gettext 'Please install $TITLE_REQUIRED first')" "$TITLE"
    POL_SetupWindow_Close
    exit
fi

POL_Wine_SelectPrefix "$PREFIX"

POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"

if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
    POL_SetupWindow_menu_num "$(eval_gettext 'Please select the game release')" "$TITLE" "$(eval_gettext 'Worldwide')~$(eval_gettext 'US')~$(eval_gettext 'Digital Distribution')~$(eval_gettext 'Polish')~$(eval_gettext 'Czech')" "~"
    case $APP_ANSWER in
        0)
            ID=$WW_ID
            NAME=stkww10005.exe
            ;;
        1)
            ID=$US_ID
            NAME=stkus10005.exe
            ;;
        2)
            ID=$DD_ID
            NAME=stkdd10005.exe
            ;;
        3)
            ID=$PL_ID
            NAME=stkpl10005.exe
            ;;
        4)
            ID=$CZ_ID
            NAME=stkcz10005.exe
            ;;
        *)
            POL_Debug_Fatal "$(eval_gettext 'Could not parse game release response')"
            POL_SetupWindow_Close
            exit
    esac

    POL_System_TmpCreate "$PREFIX"
    URI="${POL_System_TmpDir}/$NAME"
    POL_Call POL_Gamefront_Download "$ID" "$POL_System_TmpDir" "$URI" "$TITLE"
    PATCHNAME="$URI"
elif [ "$INSTALL_METHOD" = "LOCAL" ]; then
    POL_SetupWindow_browse "$(eval_gettext "Please select the setup file to run.")" "$TITLE"
    PATCHNAME="$APP_ANSWER"
fi

POL_Wine "$PATCHNAME"

POL_SetupWindow_Close
exit

Réponses

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com