BattleNet

Informations

Créateur Messages
luyz25

Warning

This installer has not been approved yet by the team.

Informations

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

Retours d'expérience

Description

This script's install the battle.net launcher and you can play World Of Warcraft, Diablo 3 and Starcraft 2 in this launcher.

Code source

                

Contributions

Filters:

Contribuer
Membre Messages
luyz25 Mardi 23 September 2014 à 14:59
luyz25

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Differences

@@ -0,0 +1,67 @@
+#!/bin/bash
+# Date : (2014-09-22 21:15)
+# Wine version used : 1.7.27
+# Distribution used to test : Fedora 20 x64
+# Author : luyz25
+ 
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+ 
+TITLE="Battle Net"
+PREFIX="BattleNet"
+EDITOR="Blizzard"
+GAME_URL="http://us.battle.net/pt/"
+AUTHOR="luyz25"
+ 
+# Starting the script
+POL_GetSetupImages "https://www.dropbox.com/s/j4ljntwwqtgru1t/top.jpg?dl=0" "https://www.dropbox.com/s/3s7ui4sdxmqdoo4/left.jpg?dl=0" "$TITLE"
+POL_SetupWindow_Init
+ 
+# Starting debugging API
+POL_Debug_Init
+ 
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
+ 
+# Setting Wine Version
+WORKING_WINE_VERSION="1.7.24"
+ 
+# Setting prefix path
+POL_Wine_SelectPrefix "$PREFIX"
+ 
+# Downloading wine if necessary and creating prefix
+POL_System_SetArch "x86"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+ 
+# Choose between Downloading client or using local one
+POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
+ 
+# Asking about memory size of graphic card
+POL_SetupWindow_VMS $GAME_VMS
+ 
+# Set Graphic Card information keys for wine
+POL_Wine_SetVideoDriver
+ 
+# Downloading client or choosing existing one
+mkdir -p "$WINEPREFIX/drive_c/$PROGRAMFILES/Download"
+if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
+        # Downloading client
+        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Download"
+        POL_Download "http://dist.blizzard.com/downloads/bna-installers/322d5bb9ae0318de3d4cde7641c96425/retail.1/Battle.net-Setup-enUS.exe" "e0f50c88b58ef660259df85b078aa238"
+        SETUP_EXE="$PWD/Battle.net-Setup-enUS.exe"
+else
+        # Asking for client exe
+        cd "$HOME"
+        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
+        SETUP_EXE="$APP_ANSWER"
+fi
+POL_Wine start /unix "$SETUP_EXE"
+POL_Wine_WaitExit "$TITLE"
+ 
+# Making shortcut
+POL_Shortcut "Battle.net Launcher.exe" "$TITLE" "$TITLE.png"
+
+# Warning message about language
+POL_SetupWindow_message "$(eval_gettext 'You can change the language in the client options.')" "$TITLE"
+ 
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

Nouveau code source

#!/bin/bash
# Date : (2014-09-22 21:15)
# Wine version used : 1.7.27
# Distribution used to test : Fedora 20 x64
# Author : luyz25
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Battle Net"
PREFIX="BattleNet"
EDITOR="Blizzard"
GAME_URL="http://us.battle.net/pt/"
AUTHOR="luyz25"
 
# Starting the script
POL_GetSetupImages "https://www.dropbox.com/s/j4ljntwwqtgru1t/top.jpg?dl=0" "https://www.dropbox.com/s/3s7ui4sdxmqdoo4/left.jpg?dl=0" "$TITLE"
POL_SetupWindow_Init
 
# Starting debugging API
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
# Setting Wine Version
WORKING_WINE_VERSION="1.7.24"
 
# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"
 
# Downloading wine if necessary and creating prefix
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
# Choose between Downloading client or using local one
POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
 
# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS
 
# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver
 
# Downloading client or choosing existing one
mkdir -p "$WINEPREFIX/drive_c/$PROGRAMFILES/Download"
if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
        # Downloading client
        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Download"
        POL_Download "http://dist.blizzard.com/downloads/bna-installers/322d5bb9ae0318de3d4cde7641c96425/retail.1/Battle.net-Setup-enUS.exe" "e0f50c88b58ef660259df85b078aa238"
        SETUP_EXE="$PWD/Battle.net-Setup-enUS.exe"
else
        # Asking for client exe
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
fi
POL_Wine start /unix "$SETUP_EXE"
POL_Wine_WaitExit "$TITLE"
 
# Making shortcut
POL_Shortcut "Battle.net Launcher.exe" "$TITLE" "$TITLE.png"

# Warning message about language
POL_SetupWindow_message "$(eval_gettext 'You can change the language in the client options.')" "$TITLE"
 
POL_SetupWindow_Close
exit 0

Réponses

Mercredi 24 September 2014 à 16:44
It was decided to refused an installation script for Battle.net and it is preferred to have the same system with Steam : it is installed with every game that uses it. I suggest you look at the script "function" of steam and that thou make one for a battle.net (check this : http://www.playonlinux.com/fr/app-764-POL_Install_steam.html)
Mercredi 24 September 2014 à 17:56
Ok, but this script can run world of warcraft, diablo 3 and starcraft 2 in the same prefix, no need to install 3 prefix... I thought it would be much more practical...but ok
Mercredi 24 September 2014 à 21:20
I agree but, for now, it's more easy for the installation list and for futur update of these games (an update can break the wine compatible statut)
luyz25 Mardi 23 September 2014 à 5:14
luyz25

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Differences

@@ -0,0 +1,73 @@
+#!/bin/bash
+# Date : (2014-09-22 22:05)
+# Wine version used : 1.5.4, 1.5.9-raw3, 1.5.28-GuildWars2
+# Distribution used to test : Fedora 20 x64
+# Author : luyz25
+# Licence : Retail
+# Only For : http://www.playonlinux.com
+ 
+## Begin Note ##
+# Only Hearthstone game don't work #
+## End Note ##
+ 
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+ 
+TITLE="Battle Net"
+PREFIX="BattleNet"
+EDITOR="Blizzard"
+GAME_URL="http://us.battle.net/pt/"
+AUTHOR="luyz25"
+GAME_VMS="512"
+   
+# Starting the script
+POL_GetSetupImages "https://www.dropbox.com/s/j4ljntwwqtgru1t/top.jpg?dl=0" "https://www.dropbox.com/s/3s7ui4sdxmqdoo4/left.jpg?dl=0" "$TITLE"
+POL_SetupWindow_Init
+ 
+# Starting debugging API
+POL_Debug_Init
+ 
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
+ 
+# Setting Wine Version
+WORKING_WINE_VERSION="1.7.24"
+ 
+# Setting prefix path
+POL_Wine_SelectPrefix "$PREFIX"
+ 
+# Downloading wine if necessary and creating prefix
+POL_System_SetArch "x86"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+ 
+# Choose between Downloading client or using local one
+POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
+ 
+# Asking about memory size of graphic card
+POL_SetupWindow_VMS $GAME_VMS
+ 
+# Set Graphic Card information keys for wine
+POL_Wine_SetVideoDriver
+ 
+# Downloading client or choosing existing one
+mkdir -p "$WINEPREFIX/drive_c/$PROGRAMFILES/Download"
+if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
+        # Donwloading client
+        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Download"
+        POL_Download "http://dist.blizzard.com/downloads/bna-installers/322d5bb9ae0318de3d4cde7641c96425/retail.1/Battle.net-Setup-enUS.exe" "e0f50c88b58ef660259df85b078aa238"
+ 
+else [ "$INSTALL_METHOD" = "LOCAL" ]; then
+        # Asking for client exe
+        cd "$HOME"
+        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
+        SETUP_EXE="$APP_ANSWER"
+fi
+ 
+# Making shortcut
+POL_Shortcut "Battle.net Launcher.exe" "$TITLE" "$TITLE.png"
+ 
+# Begin installation
+# Warning message about language
+POL_SetupWindow_message "$(eval_gettext 'You can change the language in the client options.')" "$TITLE"
+  
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

Nouveau code source

#!/bin/bash
# Date : (2014-09-22 22:05)
# Wine version used : 1.5.4, 1.5.9-raw3, 1.5.28-GuildWars2
# Distribution used to test : Fedora 20 x64
# Author : luyz25
# Licence : Retail
# Only For : http://www.playonlinux.com
 
## Begin Note ##
# Only Hearthstone game don't work #
## End Note ##
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Battle Net"
PREFIX="BattleNet"
EDITOR="Blizzard"
GAME_URL="http://us.battle.net/pt/"
AUTHOR="luyz25"
GAME_VMS="512"
   
# Starting the script
POL_GetSetupImages "https://www.dropbox.com/s/j4ljntwwqtgru1t/top.jpg?dl=0" "https://www.dropbox.com/s/3s7ui4sdxmqdoo4/left.jpg?dl=0" "$TITLE"
POL_SetupWindow_Init
 
# Starting debugging API
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
# Setting Wine Version
WORKING_WINE_VERSION="1.7.24"
 
# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"
 
# Downloading wine if necessary and creating prefix
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
# Choose between Downloading client or using local one
POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
 
# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS
 
# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver
 
# Downloading client or choosing existing one
mkdir -p "$WINEPREFIX/drive_c/$PROGRAMFILES/Download"
if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
        # Donwloading client
        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Download"
        POL_Download "http://dist.blizzard.com/downloads/bna-installers/322d5bb9ae0318de3d4cde7641c96425/retail.1/Battle.net-Setup-enUS.exe" "e0f50c88b58ef660259df85b078aa238"
 
else [ "$INSTALL_METHOD" = "LOCAL" ]; then
        # Asking for client exe
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
fi
 
# Making shortcut
POL_Shortcut "Battle.net Launcher.exe" "$TITLE" "$TITLE.png"
 
# Begin installation
# Warning message about language
POL_SetupWindow_message "$(eval_gettext 'You can change the language in the client options.')" "$TITLE"
  
POL_SetupWindow_Close
exit 0

Réponses

Mardi 23 September 2014 à 5:16
Cancel this script i forgott to send the source code
Mardi 23 September 2014 à 9:58
I'll check with the chef for your script. Currently, It is similar to steam : It is installed for each game using it.
Mardi 23 September 2014 à 9:59
and this script cannot run, check the installation
Mardi 23 September 2014 à 10:14
i'll testing when i get home...
Mardi 23 September 2014 à 14:58
Here is the right script:
Mardi 23 September 2014 à 14:59
#!/bin/bash
# Date : (2014-09-22 21:15)
# Wine version used : 1.7.27
# Distribution used to test : Fedora 20 x64
# Author : luyz25

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

TITLE="Battle Net"
PREFIX="BattleNet"
EDITOR="Blizzard"
GAME_URL="http://us.battle.net/pt/"
AUTHOR="luyz25"

# Starting the script
POL_GetSetupImages "https://www.dropbox.com/s/j4ljntwwqtgru1t/top.jpg?dl=0" "https://www.dropbox.com/s/3s7ui4sdxmqdoo4/left.jpg?dl=0" "$TITLE"
POL_SetupWindow_Init

# Starting debugging API
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"

# Setting Wine Version
WORKING_WINE_VERSION="1.7.24"

# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"

# Downloading wine if necessary and creating prefix
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

# Choose between Downloading client or using local one
POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"

# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS

# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver

# Downloading client or choosing existing one
mkdir -p "$WINEPREFIX/drive_c/$PROGRAMFILES/Download"
if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
# Downloading client
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Download"
POL_Download "http://dist.blizzard.com/downloads/bna-installers/322d5bb9ae0318de3d4cde7641c96425/retail.1/Battle.net-Setup-enUS.exe" "e0f50c88b58ef660259df85b078aa238"
SETUP_EXE="$PWD/Battle.net-Setup-enUS.exe"
else
# Asking for client exe
cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
SETUP_EXE="$APP_ANSWER"
fi
POL_Wine start /unix "$SETUP_EXE"
POL_Wine_WaitExit "$TITLE"

# Making shortcut
POL_Shortcut "Battle.net Launcher.exe" "$TITLE" "$TITLE.png"

# Warning message about language
POL_SetupWindow_message "$(eval_gettext 'You can change the language in the client options.')" "$TITLE"

POL_SetupWindow_Close
exit 0