Warcraft III - patch

Informations

Créateur Messages
NSLW

Information

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

Informations

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

Retours d'expérience

Description

Version: 1.26a

Code source

#!/bin/bash
# Date : (2010-06-18 15-00)
# Last revision : (2011-07-18 19-30)
# Wine version used : 1.3.24
# Distribution used to test : Fedora 13 & Debian Squeeze
# Author : NSLW & Berillions
# Licence : Retail

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

TYTUL="Warcraft III : Reign Of Chaos"
PREFIX="WarcraftIII"
PATCHVERSION="126a"
WORKINGWINEVERSION="1.3.24"

LNG_DOWNLOADING="PlayOnLinux is downloading"
LNG_LANGUAGE="What is your language version?"
LNG_INSTALLATIONINPROGRESS="Installation in progress..."
LNG_INTRODUCE="This wizard will help you to install patch for $TYTUL."
LNG_INSTALL_GAME_FIRST="Install $TYTUL first."
LNG_PATCHSUCCES="Patch for $TYTUL has been installed successfully."
LNG_CHOOSEACTION="What do you want to do?"
LNG_PATCHM="Let me choose patch manually"
LNG_PATCHA="Download patch automatically"
LNG_PATCHLOCATION="Where is your patch located?"

start_patching()
{

POL_SetupWindow_menu "$LNG_CHOOSEACTION" "Actions" "$LNG_PATCHM~$LNG_PATCHA" "~"
if [ "$APP_ANSWER" == "$LNG_PATCHM" ]; then
POL_SetupWindow_browse "$LNG_PATCHLOCATION" "$TYTUL" ""
PATCHFILE=$APP_ANSWER
elif [ "$APP_ANSWER" == "$LNG_PATCHA" ]; then

        POL_SetupWindow_menu "$LNG_LANGUAGE" "Languages" "english~french~italian~german~spanish~polish~japanese~korean~chinese traditional~chinese simplified~czech~russian~taiwanese" "~"
        LANGUAGEVERSION="$APP_ANSWER"
        if [ "$APP_ANSWER" == "english" ]; then
        LANGUAGEVERSIONSHRT="English"
        elif [ "$APP_ANSWER" == "french" ]; then
        LANGUAGEVERSIONSHRT="Francais"
        elif [ "$APP_ANSWER" == "italian" ]; then
        LANGUAGEVERSIONSHRT="Italiano"
        elif [ "$APP_ANSWER" == "german" ]; then
        LANGUAGEVERSIONSHRT="Deutsch"
        elif [ "$APP_ANSWER" == "spanish" ]; then
        LANGUAGEVERSIONSHRT="Castellano"
        elif [ "$APP_ANSWER" == "polish" ]; then
        LANGUAGEVERSIONSHRT="Polski"
        elif [ "$APP_ANSWER" == "japanese" ]; then
        LANGUAGEVERSIONSHRT="Japanese"
        elif [ "$APP_ANSWER" == "korean" ]; then
        LANGUAGEVERSIONSHRT="Korean"
        elif [ "$APP_ANSWER" == "chinese traditional" ]; then
        LANGUAGEVERSIONSHRT="Chinese_Trad"
        elif [ "$APP_ANSWER" == "chinese simplified" ]; then
        LANGUAGEVERSIONSHRT="Chinese_Simp"
        elif [ "$APP_ANSWER" == "taiwanese" ]; then
        LANGUAGEVERSIONSHRT="Taiwanese"
        PATCHVERSION="126a"
        elif [ "$APP_ANSWER" == "czech" ]; then
        LANGUAGEVERSIONSHRT="Cesky"
        elif [ "$APP_ANSWER" == "russian" ]; then
        LANGUAGEVERSIONSHRT="Russian"
        fi
        
cd "$REPERTOIRE/ressources"
#downloading patch
if [ ! -e "War3ROC_${PATCHVERSION}_${LANGUAGEVERSIONSHRT}.exe" ]; then
POL_SetupWindow_download "$LNG_DOWNLOADING War3ROC_${PATCHVERSION}_${LANGUAGEVERSIONSHRT}.exe" "Downloading patch" "http://ftp.blizzard.com/pub/war3/patches/pc/War3ROC_${PATCHVERSION}_${LANGUAGEVERSIONSHRT}.exe"
fi
POL_SetupWindow_wait_next_signal "$LNG_INSTINPROGRESS" "$TYTUL"
wine "War3ROC_${PATCHVERSION}_${LANGUAGEVERSIONSHRT}.exe"
POL_SetupWindow_detect_exit
PATCHFILE="$REPERTOIRE/ressources/War3ROC_${PATCHVERSION}_${LANGUAGEVERSIONSHRT}.exe"
fi

POL_SetupWindow_wait_next_signal "$LNG_INSTALLATIONINPROGRESS" "$TYTUL"
wine "$PATCHFILE"
POL_SetupWindow_detect_exit
POL_SetupWindow_message "$LNG_PATCHSUCCES" "$TYTUL"
}

POL_SetupWindow_Init
POL_SetupWindow_free_presentation "$TYTUL" "$LNG_INTRODUCE"

select_prefix "$REPERTOIRE/wineprefix/$PREFIX"

#checking if the game is installed

#downloading specific Wine
POL_SetupWindow_install_wine "$WORKINGWINEVERSION"
Use_WineVersion "$WORKINGWINEVERSION"

#fetching PROGRAMFILES environmental variable
PROGRAMFILES="Program Files" 
POL_LoadVar_PROGRAMFILES

#start patching
start_patching

POL_SetupWindow_Close
exit

Contributions

Filters:

Contribuer
Membre Messages

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