S.T.A.L.K.E.R.: Clear Sky Patch 1.5.10

Informations

Creator Mensajes
Xenos5

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 10414
Wine: System

Feedbacks

Description

Patch 1.5.10 for S.T.A.L.K.E.R.: Clear Sky.

Source code

#!/bin/bash
# Date : (2015-03-29T03:30Z)
# Last revision : (2015-03-29T03: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.: Clear Sky"
TITLE="$TITLE_REQUIRED Patch 1.5.10"
PREFIX="STALKERClearSky"

# Gamefront download ids for the various releases
WW_ID=14026473
DD_ID=14028245
RU_ID=14031495

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 'Digital Distribution')~$(eval_gettext 'Russian')" "~"
    case $APP_ANSWER in
        0)
            ID=$WW_ID
            ARCHIVE_NAME="stkcsforpackefigspcjhpatchany10.zip"
            EXE_NAME="stkcs-for-pack-efigspcjh-patch-any-10.exe"
            ;;
        1)
            ID=$DD_ID
            ARCHIVE_NAME="stkcstolpackefigspcjhpatchany10.zip"
            EXE_NAME="stkcs-tol-pack-efigspcjh-patch-any-10.exe"
            ;;
        2)
            ID=$RU_ID
            ARCHIVE_NAME="stkcsruspackrpatchany10fixed.zip"
            EXE_NAME="stkcs-rus-pack-r-patch-any-10-fixed.exe"
            ;;
        *)
            POL_Debug_Fatal "$(eval_gettext 'Could not parse game release response')"
            POL_SetupWindow_Close
            exit
    esac

    POL_System_TmpCreate "$PREFIX"
    ARCHIVE="${POL_System_TmpDir}/$ARCHIVE_NAME"
    POL_Call POL_Gamefront_Download "$ID" "$POL_System_TmpDir" "$ARCHIVE" "$TITLE"
    POL_System_unzip -od "$POL_System_TmpDir" "$ARCHIVE" "$EXE_NAME"
    PATCHNAME="${POL_System_TmpDir}/$EXE_NAME"
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:

Contribute
Member Mensajes
Xenos5 Monday 30 March 2015 at 19:39
Xenos5

Information

This update has been approved by the team.

Differences

@@ -1,92 +1,75 @@
 #!/bin/bash
-# Date : (2010-27-11 21-00)
-# Last revision : (2010-27-11 21-00)
-# Wine version used : 1.3.4
-# Distribution used to test : Debian Squeeze (Testing)
-# Author : GNU_Raziel
-# Licence : Retail
- 
+# Date : (2015-03-29T03:30Z)
+# Last revision : (2015-03-29T03: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="S.T.A.L.K.E.R. - Clear Sky"
-PREFIX="STALKER-ClearSky"
-WORKING_WINE_VERSION="1.3.4"
-
-if [ "$POL_LANG" == "fr" ]; then
-LNG_GAME_UPDATE_WELCOME="Bienvenue dans le script d'installation du patch 1.5.10 pour $TITLE"
-LNG_PATCH_METHOD="Choisissez votre méthode de patch"
-LNG_HAVE_PATCH="Patcher le jeu depuis un fichier local"
-LNG_DL_PATCH="Télécharger le dernier patch puis l'utiliser"
-LNG_LOCAL_PATCH="Selectionnez le patch à executer"
-LNG_DL_PATCH_VERSION="Quelle version possèdez-vous ?"
-LNG_DL_PATCH_DVD="Version DVD"
-LNG_DL_PATCH_DD="Version Digital Download"
-LNG_GAME_UPDATE_DL="Patientez pendant le téléchargement du patch...\nCette opération peut prendre quelques minutes selon la vitesse de votre connexion."
-LNG_GAME_UPDATE_FINISHED="Le patch a été correctement installé"
-else
-LNG_GAME_UPDATE_WELCOME="Welcome in the patch 1.5.10 Installation script for $TITLE"
-LNG_PATCH_METHOD="Choose your patch method"
-LNG_HAVE_PATCH="Patch from local file"
-LNG_DL_PATCH="Download then use last patch"
-LNG_LOCAL_PATCH="Select patch to execute"
-LNG_DL_PATCH_VERSION="Witch version do you have ?"
-LNG_DL_PATCH_DVD="DVD Version"
-LNG_DL_PATCH_DD="Digital Download Version"
-LNG_GAME_UPDATE_DL="Wait while the patch is downloading...\nThis operation can take time, depending of you connexion."
-LNG_GAME_UPDATE_FINISHED="Patch installed successfully"
-fi
 
-#starting the script
-rm "$REPERTOIRE/tmp/*.jpg"
+TITLE_REQUIRED="S.T.A.L.K.E.R.: Clear Sky"
+TITLE="$TITLE_REQUIRED Patch 1.5.10"
+PREFIX="STALKERClearSky"
+
+# Gamefront download ids for the various releases
+WW_ID=14026473
+DD_ID=14028245
+RU_ID=14031495
+
+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_free_presentation "$TITLE" "$LNG_GAME_UPDATE_WELCOME"
+POL_Debug_Init
+
+POL_SetupWindow_presentation "$TITLE" "THQ" "http://stalker-game.com" "Alexander Borysov" "$PREFIX"
 
-POL_SetupWindow_checkexist()
-{	
-	if [ ! -e $REPERTOIRE/wineprefix/$1 ]; then
-		if [ "$POL_LANG" == "fr" ]; then
-			LNG_PREFIX_NOT_EXIST="Le jeu n'est pas installé."
-		else
-			LNG_PREFIX_NOT_EXIST="Game is not installed."
-		fi
-		POL_SetupWindow_message "$LNG_PREFIX_NOT_EXIST" "$TITLE"
-		POL_SetupWindow_Close
-		exit
-	fi
-}
- 
-POL_SetupWindow_checkexist "$PREFIX"
- 
-select_prefixe "$REPERTOIRE/wineprefix/$PREFIX"
-
-#Using specific Wine
-Use_WineVersion "$WORKING_WINE_VERSION"
-
-#fetching PROGRAMFILES environmental variable
-POL_LoadVar_PROGRAMFILES
-
-#asking about patch local or not
-cd $HOME
-POL_SetupWindow_menu "$LNG_PATCH_METHOD" "$TITLE" "$LNG_HAVE_PATCH~$LNG_DL_PATCH" "~"
-if [ "$APP_ANSWER" == "$LNG_HAVE_PATCH" ]; then
-	POL_SetupWindow_browse "$LNG_LOCAL_PATCH" "$TITLE" ""
-	wine "$APP_ANSWER"
-else
-	POL_SetupWindow_menu "$LNG_DL_PATCH_VERSION" "$TITLE" "$LNG_DL_PATCH_DVD~$LNG_DL_PATCH_DD" "~"
-	SELECTED_VERSION="$APP_ANSWER"
-	cd $REPERTOIRE/tmp
-	if [ "$SELECTED_VERSION" == "$LNG_DL_PATCH_DVD" ]; then
-		POL_SetupWindow_download "$LNG_GAME_UPDATE_DL" "$TITLE" "http://download.deepsilver.com/stalkerclearsky/stkcs-for-pack-efigspcjh-patch-any-10.exe"
-		wine start /unix "stkcs-for-pack-efigspcjh-patch-any-10.exe"
-		rm "stkcs-for-pack-efigspcjh-patch-any-10.exe"
-	else
-		POL_SetupWindow_download "$LNG_GAME_UPDATE_DL" "$TITLE" "http://download.deepsilver.com/stalkerclearsky/stkcs-tol-pack-efigspcjh-patch-any-10.exe"
-		wine start /unix "stkcs-tol-pack-efigspcjh-patch-any-10.exe"
-		rm "sstkcs-tol-pack-efigspcjh-patch-any-10.exe"
-	fi
+if [ "$(POL_Wine_PrefixExists $PREFIX)" != "True" ]; then
+    POL_SetupWindow_message "$(eval_gettext 'Please install $TITLE_REQUIRED first')" "$TITLE"
+    POL_SetupWindow_Close
+    exit
 fi
- 
-POL_SetupWindow_message "$LNG_GAME_UPDATE_FINISHED" "$TITLE"
+
+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 'Digital Distribution')~$(eval_gettext 'Russian')" "~"
+    case $APP_ANSWER in
+        0)
+            ID=$WW_ID
+            ARCHIVE_NAME="stkcsforpackefigspcjhpatchany10.zip"
+            EXE_NAME="stkcs-for-pack-efigspcjh-patch-any-10.exe"
+            ;;
+        1)
+            ID=$DD_ID
+            ARCHIVE_NAME="stkcstolpackefigspcjhpatchany10.zip"
+            EXE_NAME="stkcs-tol-pack-efigspcjh-patch-any-10.exe"
+            ;;
+        2)
+            ID=$RU_ID
+            ARCHIVE_NAME="stkcsruspackrpatchany10fixed.zip"
+            EXE_NAME="stkcs-rus-pack-r-patch-any-10-fixed.exe"
+            ;;
+        *)
+            POL_Debug_Fatal "$(eval_gettext 'Could not parse game release response')"
+            POL_SetupWindow_Close
+            exit
+    esac
+
+    POL_System_TmpCreate "$PREFIX"
+    ARCHIVE="${POL_System_TmpDir}/$ARCHIVE_NAME"
+    POL_Call POL_Gamefront_Download "$ID" "$POL_System_TmpDir" "$ARCHIVE" "$TITLE"
+    POL_System_unzip -od "$POL_System_TmpDir" "$ARCHIVE" "$EXE_NAME"
+    PATCHNAME="${POL_System_TmpDir}/$EXE_NAME"
+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

New source code

#!/bin/bash
# Date : (2015-03-29T03:30Z)
# Last revision : (2015-03-29T03: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.: Clear Sky"
TITLE="$TITLE_REQUIRED Patch 1.5.10"
PREFIX="STALKERClearSky"

# Gamefront download ids for the various releases
WW_ID=14026473
DD_ID=14028245
RU_ID=14031495

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 'Digital Distribution')~$(eval_gettext 'Russian')" "~"
    case $APP_ANSWER in
        0)
            ID=$WW_ID
            ARCHIVE_NAME="stkcsforpackefigspcjhpatchany10.zip"
            EXE_NAME="stkcs-for-pack-efigspcjh-patch-any-10.exe"
            ;;
        1)
            ID=$DD_ID
            ARCHIVE_NAME="stkcstolpackefigspcjhpatchany10.zip"
            EXE_NAME="stkcs-tol-pack-efigspcjh-patch-any-10.exe"
            ;;
        2)
            ID=$RU_ID
            ARCHIVE_NAME="stkcsruspackrpatchany10fixed.zip"
            EXE_NAME="stkcs-rus-pack-r-patch-any-10-fixed.exe"
            ;;
        *)
            POL_Debug_Fatal "$(eval_gettext 'Could not parse game release response')"
            POL_SetupWindow_Close
            exit
    esac

    POL_System_TmpCreate "$PREFIX"
    ARCHIVE="${POL_System_TmpDir}/$ARCHIVE_NAME"
    POL_Call POL_Gamefront_Download "$ID" "$POL_System_TmpDir" "$ARCHIVE" "$TITLE"
    POL_System_unzip -od "$POL_System_TmpDir" "$ARCHIVE" "$EXE_NAME"
    PATCHNAME="${POL_System_TmpDir}/$EXE_NAME"
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

Respuestas