World Of Warcraft : Legion

Informations

Creator Message
vi2nano

Warning

This installer is a beta script. It means that it might not work as expected

Informations

Platforms:
Downloads: 3291
Wine: 2.22-staging

Feedbacks

Description

'World of Warcraft: Legion' is the sixth expansion set, 2016. Wikipedia.

AppDB.winehq.org

Source code

#!/bin/bash
# Date : (2009-07-07 19-30)
# Last revision : (2018-08-01)
# Wine version used : 2.22-staging
# Distribution used to test : N/A
# Author : Asimov and SuperPlumus
# Contributor: freedumb2000 vi2nano
   
# CHANGELOG
# [Dadu042] (2019-08-01)
#   Wine 1.9.20-staging -> 2.22-staging (according Appdb.winehq.org)
# [vi2nano] (2016-10-13 20-20)
#        Updated for Legion
#        Updated wine version to 1.9.20-staging
#        Added Override for msvcp140(native,builtin)
#        added XP as default OS
#        commented out dotnet30sp1 install. It's no longer required also (md5 mismatch was inevitable)
# [vi2nano] (2016-06-18 16-38)
#   Updated Wine Version to 1.9.12 (Works with new 6.2.4 patch)
#   Added dotnet30sp1 to fix errors logging into Battle.net.
#   Added a few message windows during install to point users in the right direction setting ptrace_scope
#    and regarding installation of libldap (ArchLinux doesn't include it in base system their may be Distros also)
# [freedumb200] (2014-11-14 17-15)
#   Update Wine version to 1.5.29 (known to work with Draenor).
#   Added dbghelp dll override to fix a crsh in the BattleNet client.
# [SuperPlumus] (2013-05-12 15-55)
#   Update Wine version to 1.5.29 to fix bug #2284
#   Add --allow-kill in POL_Wine_WaitExit
# [SuperPlumus] (2013-05-19 20-47)
#   gettext
   
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
   
TITLE="World of Warcraft : Legion"
PREFIX="WorldOfWarcraft : Legion"
WORKING_WINE_VERSION="2.22-staging"
   
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/wow/top.jpg" "http://files.playonlinux.com/resources/setups/wow/left.jpg" "$TITLE"
POL_SetupWindow_Init
POL_SetupWindow_SetID 14
POL_Debug_Init
   
POL_SetupWindow_presentation "$TITLE" "Blizzard Entertainment" "http://www.blizzard.com" "Asimov and SuperPlumus" "$PREFIX"
   
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86" # je ne sais pas si ca fonctionne en x64
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
   
POL_System_TmpCreate "$PREFIX"
   
 
POL_Call POL_Install_gecko
#POL_Call POL_Install_dotnet30sp1
POL_SetupWindow_message "$(eval_gettext 'If this fails check the debug, if missing libldap.so, and please install libldap from your Repo')" "$TITLE"
   
Set_OS "winxp"
POL_Wine_OverrideDLL "dbghelp"
POL_Wine_OverrideDLL "native,builtin" "msvcp140"
   
POL_SetupWindow_InstallMethod "CD,DVD,LOCAL"
   
if [ "$INSTALL_METHOD" = "CD" ]
then
   
# Le nombre de cd varie selon les boitiers
POL_SetupWindow_menu "$(eval_gettext 'Which version do you have?')" "$TITLE" "4 CDs~5 CDs" "~"
NOMBRE_CD="$APP_ANSWER"
   
POL_SetupWindow_message "$(eval_gettext 'Please insert game media 1 into your disk drive\nif not already done.')" "$TITLE"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "Installer Tome.mpq"
POL_SetupWindow_wait "$(eval_gettext 'Wait while the installation is prepared...')" "$TITLE"
cp -r "$CDROM"/* "$POL_System_TmpDir"
   
POL_SetupWindow_message "$(eval_gettext 'Please insert game media 2 into your disk drive\nif not already done.')" "$TITLE"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "Installer Tome 2.mpq"
POL_SetupWindow_wait "$(eval_gettext 'Wait while the installation is prepared...')" "$TITLE"
cp -r "$CDROM"/*.mpq "$POL_System_TmpDir"
   
POL_SetupWindow_message "$(eval_gettext 'Please insert game media 3 into your disk drive\nif not already done.')" "$TITLE"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "Installer Tome 3.mpq"
POL_SetupWindow_wait "$(eval_gettext 'Wait while the installation is prepared...')" "$TITLE"
cp -r "$CDROM"/*.mpq "$POL_System_TmpDir"
   
POL_SetupWindow_message "$(eval_gettext 'Please insert game media 4 into your disk drive\nif not already done.')" "$TITLE"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "Installer Tome 4.mpq"
POL_SetupWindow_wait "$(eval_gettext 'Wait while the installation is prepared...')" "$TITLE"
cp -r "$CDROM"/*.mpq "$POL_System_TmpDir"
   
   
if [ "$NOMBRE_CD" = "5 CDs" ]; then
POL_SetupWindow_message "$(eval_gettext 'Please insert game media 5 into your disk drive\nif not already done.')" "$TITLE"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "Installer Tome 5.mpq"
POL_SetupWindow_wait "$(eval_gettext 'Wait while the installation is prepared...')" "$TITLE"
cp -r "$CDROM"/*.mpq "$POL_System_TmpDir"
fi
   
cd "$POL_System_TmpDir"
POL_Wine_WaitBefore "$TITLE"
POL_Wine "Installer.exe"
POL_Wine_WaitExit "$TITLE" --allow-kill
   
fi
if [ "$INSTALL_METHOD" = "DVD" ]
then
   
POL_SetupWindow_message "$(eval_gettext 'Please insert game media into your disk drive\nif not already done.')" "$TITLE"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "Installer Tome.mpq"
POL_SetupWindow_wait "$(eval_gettext 'Wait while the installation is prepared...')" "$TITLE"
cp -r "$CDROM"/* "$POL_System_TmpDir"
   
cd "$POL_System_TmpDir"
POL_Wine_WaitBefore "$TITLE"
POL_Wine "Installer.exe"
POL_Wine_WaitExit "$TITLE" --allow-kill
   
fi
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
   
cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
POL_Wine_WaitBefore "$TITLE"
POL_Wine start /unix "$APP_ANSWER"
POL_Wine_WaitExit "$TITLE" --allow-kill
   
   
fi
   
POL_Wine_SetVideoDriver
   
POL_SetupWindow_VMS
   
   
POL_SetupWindow_wait "$(eval_gettext 'Please wait...')" "$TITLE"
   
# Fichier Config.wtf
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/World of Warcraft/WTF"
cat << EOF > Config.wtf
SET gxApi "D3D9"
SET ffxDeath "0"
SET SoundOutputSystem "1"
SET SoundBufferSize "150"
SET MasterSoundEffects "0"
EOF
   
# AddOn ApplyToForehead (evite les crash de wow sur l'ecran des reglages)
mkdir -p "$WINEPREFIX/drive_c/$PROGRAMFILES/World of Warcraft/Interface"
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/World of Warcraft/Interface"
wget "$SITE/divers/ApplyToForehead.zip"
unzip "ApplyToForehead.zip"
rm "ApplyToForehead.zip"
   
POL_Wine_InstallFonts
Set_SoundDriver alsa
   
POL_System_TmpDelete
   
POL_Shortcut "Wow.exe" "$TITLE"
POL_Shortcut_InsertBeforeWine "$TITLE" "mkdir -p \"$WINEPREFIX/drive_c/$PROGRAMFILES/World of Warcraft/WTF/\""
POL_Shortcut_InsertBeforeWine "$TITLE" "cp \"$WINEPREFIX/drive_c/Config.wtf\" \"$WINEPREFIX/drive_c/$PROGRAMFILES/World of Warcraft/WTF/Config.wtf\""
   
POL_SetupWindow_Close
exit

Contributions

Filters:

Contribute
Member Message
Dadu042 Friday 2 August 2019 at 17:52
Dadu042

Information

This update has been approved by the team.

Differences

@@ -0,0 +1,170 @@
+#!/bin/bash
+# Date : (2009-07-07 19-30)
+# Last revision : (2018-08-01)
+# Wine version used : 2.22-staging
+# Distribution used to test : N/A
+# Author : Asimov and SuperPlumus
+# Contributor: freedumb2000 vi2nano
+   
+# CHANGELOG
+# [Dadu042] (2019-08-01)
+#   Wine 1.9.20-staging -> 2.22-staging (according Appdb.winehq.org)
+# [vi2nano] (2016-10-13 20-20)
+#        Updated for Legion
+#        Updated wine version to 1.9.20-staging
+#        Added Override for msvcp140(native,builtin)
+#        added XP as default OS
+#        commented out dotnet30sp1 install. It's no longer required also (md5 mismatch was inevitable)
+# [vi2nano] (2016-06-18 16-38)
+#   Updated Wine Version to 1.9.12 (Works with new 6.2.4 patch)
+#   Added dotnet30sp1 to fix errors logging into Battle.net.
+#   Added a few message windows during install to point users in the right direction setting ptrace_scope
+#    and regarding installation of libldap (ArchLinux doesn't include it in base system their may be Distros also)
+# [freedumb200] (2014-11-14 17-15)
+#   Update Wine version to 1.5.29 (known to work with Draenor).
+#   Added dbghelp dll override to fix a crsh in the BattleNet client.
+# [SuperPlumus] (2013-05-12 15-55)
+#   Update Wine version to 1.5.29 to fix bug #2284
+#   Add --allow-kill in POL_Wine_WaitExit
+# [SuperPlumus] (2013-05-19 20-47)
+#   gettext
+   
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+   
+TITLE="World of Warcraft : Legion"
+PREFIX="WorldOfWarcraft : Legion"
+WORKING_WINE_VERSION="2.22-staging"
+   
+POL_GetSetupImages "http://files.playonlinux.com/resources/setups/wow/top.jpg" "http://files.playonlinux.com/resources/setups/wow/left.jpg" "$TITLE"
+POL_SetupWindow_Init
+POL_SetupWindow_SetID 14
+POL_Debug_Init
+   
+POL_SetupWindow_presentation "$TITLE" "Blizzard Entertainment" "http://www.blizzard.com" "Asimov and SuperPlumus" "$PREFIX"
+   
+POL_Wine_SelectPrefix "$PREFIX"
+POL_System_SetArch "x86" # je ne sais pas si ca fonctionne en x64
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+   
+POL_System_TmpCreate "$PREFIX"
+   
+ 
+POL_Call POL_Install_gecko
+#POL_Call POL_Install_dotnet30sp1
+POL_SetupWindow_message "$(eval_gettext 'If this fails check the debug, if missing libldap.so, and please install libldap from your Repo')" "$TITLE"
+   
+Set_OS "winxp"
+POL_Wine_OverrideDLL "dbghelp"
+POL_Wine_OverrideDLL "native,builtin" "msvcp140"
+   
+POL_SetupWindow_InstallMethod "CD,DVD,LOCAL"
+   
+if [ "$INSTALL_METHOD" = "CD" ]
+then
+   
+# Le nombre de cd varie selon les boitiers
+POL_SetupWindow_menu "$(eval_gettext 'Which version do you have?')" "$TITLE" "4 CDs~5 CDs" "~"
+NOMBRE_CD="$APP_ANSWER"
+   
+POL_SetupWindow_message "$(eval_gettext 'Please insert game media 1 into your disk drive\nif not already done.')" "$TITLE"
+POL_SetupWindow_cdrom
+POL_SetupWindow_check_cdrom "Installer Tome.mpq"
+POL_SetupWindow_wait "$(eval_gettext 'Wait while the installation is prepared...')" "$TITLE"
+cp -r "$CDROM"/* "$POL_System_TmpDir"
+   
+POL_SetupWindow_message "$(eval_gettext 'Please insert game media 2 into your disk drive\nif not already done.')" "$TITLE"
+POL_SetupWindow_cdrom
+POL_SetupWindow_check_cdrom "Installer Tome 2.mpq"
+POL_SetupWindow_wait "$(eval_gettext 'Wait while the installation is prepared...')" "$TITLE"
+cp -r "$CDROM"/*.mpq "$POL_System_TmpDir"
+   
+POL_SetupWindow_message "$(eval_gettext 'Please insert game media 3 into your disk drive\nif not already done.')" "$TITLE"
+POL_SetupWindow_cdrom
+POL_SetupWindow_check_cdrom "Installer Tome 3.mpq"
+POL_SetupWindow_wait "$(eval_gettext 'Wait while the installation is prepared...')" "$TITLE"
+cp -r "$CDROM"/*.mpq "$POL_System_TmpDir"
+   
+POL_SetupWindow_message "$(eval_gettext 'Please insert game media 4 into your disk drive\nif not already done.')" "$TITLE"
+POL_SetupWindow_cdrom
+POL_SetupWindow_check_cdrom "Installer Tome 4.mpq"
+POL_SetupWindow_wait "$(eval_gettext 'Wait while the installation is prepared...')" "$TITLE"
+cp -r "$CDROM"/*.mpq "$POL_System_TmpDir"
+   
+   
+if [ "$NOMBRE_CD" = "5 CDs" ]; then
+POL_SetupWindow_message "$(eval_gettext 'Please insert game media 5 into your disk drive\nif not already done.')" "$TITLE"
+POL_SetupWindow_cdrom
+POL_SetupWindow_check_cdrom "Installer Tome 5.mpq"
+POL_SetupWindow_wait "$(eval_gettext 'Wait while the installation is prepared...')" "$TITLE"
+cp -r "$CDROM"/*.mpq "$POL_System_TmpDir"
+fi
+   
+cd "$POL_System_TmpDir"
+POL_Wine_WaitBefore "$TITLE"
+POL_Wine "Installer.exe"
+POL_Wine_WaitExit "$TITLE" --allow-kill
+   
+fi
+if [ "$INSTALL_METHOD" = "DVD" ]
+then
+   
+POL_SetupWindow_message "$(eval_gettext 'Please insert game media into your disk drive\nif not already done.')" "$TITLE"
+POL_SetupWindow_cdrom
+POL_SetupWindow_check_cdrom "Installer Tome.mpq"
+POL_SetupWindow_wait "$(eval_gettext 'Wait while the installation is prepared...')" "$TITLE"
+cp -r "$CDROM"/* "$POL_System_TmpDir"
+   
+cd "$POL_System_TmpDir"
+POL_Wine_WaitBefore "$TITLE"
+POL_Wine "Installer.exe"
+POL_Wine_WaitExit "$TITLE" --allow-kill
+   
+fi
+if [ "$INSTALL_METHOD" = "LOCAL" ]
+then
+   
+cd "$HOME"
+POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
+POL_Wine_WaitBefore "$TITLE"
+POL_Wine start /unix "$APP_ANSWER"
+POL_Wine_WaitExit "$TITLE" --allow-kill
+   
+   
+fi
+   
+POL_Wine_SetVideoDriver
+   
+POL_SetupWindow_VMS
+   
+   
+POL_SetupWindow_wait "$(eval_gettext 'Please wait...')" "$TITLE"
+   
+# Fichier Config.wtf
+cd "$WINEPREFIX/drive_c/$PROGRAMFILES/World of Warcraft/WTF"
+cat << EOF > Config.wtf
+SET gxApi "D3D9"
+SET ffxDeath "0"
+SET SoundOutputSystem "1"
+SET SoundBufferSize "150"
+SET MasterSoundEffects "0"
+EOF
+   
+# AddOn ApplyToForehead (evite les crash de wow sur l'ecran des reglages)
+mkdir -p "$WINEPREFIX/drive_c/$PROGRAMFILES/World of Warcraft/Interface"
+cd "$WINEPREFIX/drive_c/$PROGRAMFILES/World of Warcraft/Interface"
+wget "$SITE/divers/ApplyToForehead.zip"
+unzip "ApplyToForehead.zip"
+rm "ApplyToForehead.zip"
+   
+POL_Wine_InstallFonts
+Set_SoundDriver alsa
+   
+POL_System_TmpDelete
+   
+POL_Shortcut "Wow.exe" "$TITLE"
+POL_Shortcut_InsertBeforeWine "$TITLE" "mkdir -p \"$WINEPREFIX/drive_c/$PROGRAMFILES/World of Warcraft/WTF/\""
+POL_Shortcut_InsertBeforeWine "$TITLE" "cp \"$WINEPREFIX/drive_c/Config.wtf\" \"$WINEPREFIX/drive_c/$PROGRAMFILES/World of Warcraft/WTF/Config.wtf\""
+   
+POL_SetupWindow_Close
+exit
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2009-07-07 19-30)
# Last revision : (2018-08-01)
# Wine version used : 2.22-staging
# Distribution used to test : N/A
# Author : Asimov and SuperPlumus
# Contributor: freedumb2000 vi2nano
   
# CHANGELOG
# [Dadu042] (2019-08-01)
#   Wine 1.9.20-staging -> 2.22-staging (according Appdb.winehq.org)
# [vi2nano] (2016-10-13 20-20)
#        Updated for Legion
#        Updated wine version to 1.9.20-staging
#        Added Override for msvcp140(native,builtin)
#        added XP as default OS
#        commented out dotnet30sp1 install. It's no longer required also (md5 mismatch was inevitable)
# [vi2nano] (2016-06-18 16-38)
#   Updated Wine Version to 1.9.12 (Works with new 6.2.4 patch)
#   Added dotnet30sp1 to fix errors logging into Battle.net.
#   Added a few message windows during install to point users in the right direction setting ptrace_scope
#    and regarding installation of libldap (ArchLinux doesn't include it in base system their may be Distros also)
# [freedumb200] (2014-11-14 17-15)
#   Update Wine version to 1.5.29 (known to work with Draenor).
#   Added dbghelp dll override to fix a crsh in the BattleNet client.
# [SuperPlumus] (2013-05-12 15-55)
#   Update Wine version to 1.5.29 to fix bug #2284
#   Add --allow-kill in POL_Wine_WaitExit
# [SuperPlumus] (2013-05-19 20-47)
#   gettext
   
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
   
TITLE="World of Warcraft : Legion"
PREFIX="WorldOfWarcraft : Legion"
WORKING_WINE_VERSION="2.22-staging"
   
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/wow/top.jpg" "http://files.playonlinux.com/resources/setups/wow/left.jpg" "$TITLE"
POL_SetupWindow_Init
POL_SetupWindow_SetID 14
POL_Debug_Init
   
POL_SetupWindow_presentation "$TITLE" "Blizzard Entertainment" "http://www.blizzard.com" "Asimov and SuperPlumus" "$PREFIX"
   
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86" # je ne sais pas si ca fonctionne en x64
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
   
POL_System_TmpCreate "$PREFIX"
   
 
POL_Call POL_Install_gecko
#POL_Call POL_Install_dotnet30sp1
POL_SetupWindow_message "$(eval_gettext 'If this fails check the debug, if missing libldap.so, and please install libldap from your Repo')" "$TITLE"
   
Set_OS "winxp"
POL_Wine_OverrideDLL "dbghelp"
POL_Wine_OverrideDLL "native,builtin" "msvcp140"
   
POL_SetupWindow_InstallMethod "CD,DVD,LOCAL"
   
if [ "$INSTALL_METHOD" = "CD" ]
then
   
# Le nombre de cd varie selon les boitiers
POL_SetupWindow_menu "$(eval_gettext 'Which version do you have?')" "$TITLE" "4 CDs~5 CDs" "~"
NOMBRE_CD="$APP_ANSWER"
   
POL_SetupWindow_message "$(eval_gettext 'Please insert game media 1 into your disk drive\nif not already done.')" "$TITLE"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "Installer Tome.mpq"
POL_SetupWindow_wait "$(eval_gettext 'Wait while the installation is prepared...')" "$TITLE"
cp -r "$CDROM"/* "$POL_System_TmpDir"
   
POL_SetupWindow_message "$(eval_gettext 'Please insert game media 2 into your disk drive\nif not already done.')" "$TITLE"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "Installer Tome 2.mpq"
POL_SetupWindow_wait "$(eval_gettext 'Wait while the installation is prepared...')" "$TITLE"
cp -r "$CDROM"/*.mpq "$POL_System_TmpDir"
   
POL_SetupWindow_message "$(eval_gettext 'Please insert game media 3 into your disk drive\nif not already done.')" "$TITLE"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "Installer Tome 3.mpq"
POL_SetupWindow_wait "$(eval_gettext 'Wait while the installation is prepared...')" "$TITLE"
cp -r "$CDROM"/*.mpq "$POL_System_TmpDir"
   
POL_SetupWindow_message "$(eval_gettext 'Please insert game media 4 into your disk drive\nif not already done.')" "$TITLE"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "Installer Tome 4.mpq"
POL_SetupWindow_wait "$(eval_gettext 'Wait while the installation is prepared...')" "$TITLE"
cp -r "$CDROM"/*.mpq "$POL_System_TmpDir"
   
   
if [ "$NOMBRE_CD" = "5 CDs" ]; then
POL_SetupWindow_message "$(eval_gettext 'Please insert game media 5 into your disk drive\nif not already done.')" "$TITLE"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "Installer Tome 5.mpq"
POL_SetupWindow_wait "$(eval_gettext 'Wait while the installation is prepared...')" "$TITLE"
cp -r "$CDROM"/*.mpq "$POL_System_TmpDir"
fi
   
cd "$POL_System_TmpDir"
POL_Wine_WaitBefore "$TITLE"
POL_Wine "Installer.exe"
POL_Wine_WaitExit "$TITLE" --allow-kill
   
fi
if [ "$INSTALL_METHOD" = "DVD" ]
then
   
POL_SetupWindow_message "$(eval_gettext 'Please insert game media into your disk drive\nif not already done.')" "$TITLE"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "Installer Tome.mpq"
POL_SetupWindow_wait "$(eval_gettext 'Wait while the installation is prepared...')" "$TITLE"
cp -r "$CDROM"/* "$POL_System_TmpDir"
   
cd "$POL_System_TmpDir"
POL_Wine_WaitBefore "$TITLE"
POL_Wine "Installer.exe"
POL_Wine_WaitExit "$TITLE" --allow-kill
   
fi
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
   
cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
POL_Wine_WaitBefore "$TITLE"
POL_Wine start /unix "$APP_ANSWER"
POL_Wine_WaitExit "$TITLE" --allow-kill
   
   
fi
   
POL_Wine_SetVideoDriver
   
POL_SetupWindow_VMS
   
   
POL_SetupWindow_wait "$(eval_gettext 'Please wait...')" "$TITLE"
   
# Fichier Config.wtf
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/World of Warcraft/WTF"
cat << EOF > Config.wtf
SET gxApi "D3D9"
SET ffxDeath "0"
SET SoundOutputSystem "1"
SET SoundBufferSize "150"
SET MasterSoundEffects "0"
EOF
   
# AddOn ApplyToForehead (evite les crash de wow sur l'ecran des reglages)
mkdir -p "$WINEPREFIX/drive_c/$PROGRAMFILES/World of Warcraft/Interface"
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/World of Warcraft/Interface"
wget "$SITE/divers/ApplyToForehead.zip"
unzip "ApplyToForehead.zip"
rm "ApplyToForehead.zip"
   
POL_Wine_InstallFonts
Set_SoundDriver alsa
   
POL_System_TmpDelete
   
POL_Shortcut "Wow.exe" "$TITLE"
POL_Shortcut_InsertBeforeWine "$TITLE" "mkdir -p \"$WINEPREFIX/drive_c/$PROGRAMFILES/World of Warcraft/WTF/\""
POL_Shortcut_InsertBeforeWine "$TITLE" "cp \"$WINEPREFIX/drive_c/Config.wtf\" \"$WINEPREFIX/drive_c/$PROGRAMFILES/World of Warcraft/WTF/Config.wtf\""
   
POL_SetupWindow_Close
exit

Replies

Edited by Dadu042

vi2nano Friday 14 October 2016 at 4:12
vi2nano

Warning

This update has not been approved yet by the team.
Use it at your own risk

Differences

@@ -0,0 +1,168 @@
+#!/bin/bash
+# Date : (2009-07-07 19-30)
+# Last revision : (2016-06-18 16-38)
+# Wine version used : 1.9.12
+# Distribution used to test : N/A
+# Author : Asimov and SuperPlumus
+# Contributor: freedumb2000 vi2nano
+  
+# CHANGELOG
+# [vi2nano] (2016-10-13 20-20)
+#	Updated for Legion
+#	Updated wine version to 1.9.20-staging
+#	Added Override for msvcp140(native,builtin)
+#	added XP as default OS
+#	commented out dotnet30sp1 install. It's no longer required also (md5 mismatch was inevitable)
+# [vi2nano] (2016-06-18 16-38)
+#   Updated Wine Version to 1.9.12 (Works with new 6.2.4 patch)
+#   Added dotnet30sp1 to fix errors logging into Battle.net.
+#   Added a few message windows during install to point users in the right direction setting ptrace_scope
+#    and regarding installation of libldap (ArchLinux doesn't include it in base system their may be Distros also)
+# [freedumb200] (2014-11-14 17-15)
+#   Update Wine version to 1.5.29 (known to work with Draenor).
+#   Added dbghelp dll override to fix a crsh in the BattleNet client.
+# [SuperPlumus] (2013-05-12 15-55)
+#   Update Wine version to 1.5.29 to fix bug #2284
+#   Add --allow-kill in POL_Wine_WaitExit
+# [SuperPlumus] (2013-05-19 20-47)
+#   gettext
+  
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+  
+TITLE="World of Warcraft : Legion"
+PREFIX="WorldOfWarcraft : Legion"
+WORKING_WINE_VERSION="1.9.20-staging"
+  
+POL_GetSetupImages "http://files.playonlinux.com/resources/setups/wow/top.jpg" "http://files.playonlinux.com/resources/setups/wow/left.jpg" "$TITLE"
+POL_SetupWindow_Init
+POL_SetupWindow_SetID 14
+POL_Debug_Init
+  
+POL_SetupWindow_presentation "$TITLE" "Blizzard Entertainment" "http://www.blizzard.com" "Asimov and SuperPlumus" "$PREFIX"
+  
+POL_Wine_SelectPrefix "$PREFIX"
+POL_System_SetArch "x86" # je ne sais pas si ca fonctionne en x64
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+  
+POL_System_TmpCreate "$PREFIX"
+  
+
+POL_Call POL_Install_gecko
+#POL_Call POL_Install_dotnet30sp1
+POL_SetupWindow_message "$(eval_gettext 'If this fails check the debug, if missing libldap.so, and please install libldap from your Repo')" "$TITLE"
+  
+Set_OS "winxp"
+POL_Wine_OverrideDLL "dbghelp"
+POL_Wine_OverrideDLL "native,builtin" "msvcp140"
+  
+POL_SetupWindow_InstallMethod "CD,DVD,LOCAL"
+  
+if [ "$INSTALL_METHOD" = "CD" ]
+then
+  
+# Le nombre de cd varie selon les boitiers
+POL_SetupWindow_menu "$(eval_gettext 'Which version do you have?')" "$TITLE" "4 CDs~5 CDs" "~"
+NOMBRE_CD="$APP_ANSWER"
+  
+POL_SetupWindow_message "$(eval_gettext 'Please insert game media 1 into your disk drive\nif not already done.')" "$TITLE"
+POL_SetupWindow_cdrom
+POL_SetupWindow_check_cdrom "Installer Tome.mpq"
+POL_SetupWindow_wait "$(eval_gettext 'Wait while the installation is prepared...')" "$TITLE"
+cp -r "$CDROM"/* "$POL_System_TmpDir"
+  
+POL_SetupWindow_message "$(eval_gettext 'Please insert game media 2 into your disk drive\nif not already done.')" "$TITLE"
+POL_SetupWindow_cdrom
+POL_SetupWindow_check_cdrom "Installer Tome 2.mpq"
+POL_SetupWindow_wait "$(eval_gettext 'Wait while the installation is prepared...')" "$TITLE"
+cp -r "$CDROM"/*.mpq "$POL_System_TmpDir"
+  
+POL_SetupWindow_message "$(eval_gettext 'Please insert game media 3 into your disk drive\nif not already done.')" "$TITLE"
+POL_SetupWindow_cdrom
+POL_SetupWindow_check_cdrom "Installer Tome 3.mpq"
+POL_SetupWindow_wait "$(eval_gettext 'Wait while the installation is prepared...')" "$TITLE"
+cp -r "$CDROM"/*.mpq "$POL_System_TmpDir"
+  
+POL_SetupWindow_message "$(eval_gettext 'Please insert game media 4 into your disk drive\nif not already done.')" "$TITLE"
+POL_SetupWindow_cdrom
+POL_SetupWindow_check_cdrom "Installer Tome 4.mpq"
+POL_SetupWindow_wait "$(eval_gettext 'Wait while the installation is prepared...')" "$TITLE"
+cp -r "$CDROM"/*.mpq "$POL_System_TmpDir"
+  
+  
+if [ "$NOMBRE_CD" = "5 CDs" ]; then
+POL_SetupWindow_message "$(eval_gettext 'Please insert game media 5 into your disk drive\nif not already done.')" "$TITLE"
+POL_SetupWindow_cdrom
+POL_SetupWindow_check_cdrom "Installer Tome 5.mpq"
+POL_SetupWindow_wait "$(eval_gettext 'Wait while the installation is prepared...')" "$TITLE"
+cp -r "$CDROM"/*.mpq "$POL_System_TmpDir"
+fi
+  
+cd "$POL_System_TmpDir"
+POL_Wine_WaitBefore "$TITLE"
+POL_Wine "Installer.exe"
+POL_Wine_WaitExit "$TITLE" --allow-kill
+  
+fi
+if [ "$INSTALL_METHOD" = "DVD" ]
+then
+  
+POL_SetupWindow_message "$(eval_gettext 'Please insert game media into your disk drive\nif not already done.')" "$TITLE"
+POL_SetupWindow_cdrom
+POL_SetupWindow_check_cdrom "Installer Tome.mpq"
+POL_SetupWindow_wait "$(eval_gettext 'Wait while the installation is prepared...')" "$TITLE"
+cp -r "$CDROM"/* "$POL_System_TmpDir"
+  
+cd "$POL_System_TmpDir"
+POL_Wine_WaitBefore "$TITLE"
+POL_Wine "Installer.exe"
+POL_Wine_WaitExit "$TITLE" --allow-kill
+  
+fi
+if [ "$INSTALL_METHOD" = "LOCAL" ]
+then
+  
+cd "$HOME"
+POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
+POL_Wine_WaitBefore "$TITLE"
+POL_Wine start /unix "$APP_ANSWER"
+POL_Wine_WaitExit "$TITLE" --allow-kill
+  
+  
+fi
+  
+POL_Wine_SetVideoDriver
+  
+POL_SetupWindow_VMS
+  
+  
+POL_SetupWindow_wait "$(eval_gettext 'Please wait...')" "$TITLE"
+  
+# Fichier Config.wtf
+cd "$WINEPREFIX/drive_c/$PROGRAMFILES/World of Warcraft/WTF"
+cat << EOF > Config.wtf
+SET gxApi "D3D9"
+SET ffxDeath "0"
+SET SoundOutputSystem "1"
+SET SoundBufferSize "150"
+SET MasterSoundEffects "0"
+EOF
+  
+# AddOn ApplyToForehead (evite les crash de wow sur l'ecran des reglages)
+mkdir -p "$WINEPREFIX/drive_c/$PROGRAMFILES/World of Warcraft/Interface"
+cd "$WINEPREFIX/drive_c/$PROGRAMFILES/World of Warcraft/Interface"
+wget "$SITE/divers/ApplyToForehead.zip"
+unzip "ApplyToForehead.zip"
+rm "ApplyToForehead.zip"
+  
+POL_Wine_InstallFonts
+Set_SoundDriver alsa
+  
+POL_System_TmpDelete
+  
+POL_Shortcut "Wow.exe" "$TITLE"
+POL_Shortcut_InsertBeforeWine "$TITLE" "mkdir -p \"$WINEPREFIX/drive_c/$PROGRAMFILES/World of Warcraft/WTF/\""
+POL_Shortcut_InsertBeforeWine "$TITLE" "cp \"$WINEPREFIX/drive_c/Config.wtf\" \"$WINEPREFIX/drive_c/$PROGRAMFILES/World of Warcraft/WTF/Config.wtf\""
+  
+POL_SetupWindow_Close
+exit
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2009-07-07 19-30)
# Last revision : (2016-06-18 16-38)
# Wine version used : 1.9.12
# Distribution used to test : N/A
# Author : Asimov and SuperPlumus
# Contributor: freedumb2000 vi2nano
  
# CHANGELOG
# [vi2nano] (2016-10-13 20-20)
#        Updated for Legion
#        Updated wine version to 1.9.20-staging
#        Added Override for msvcp140(native,builtin)
#        added XP as default OS
#        commented out dotnet30sp1 install. It's no longer required also (md5 mismatch was inevitable)
# [vi2nano] (2016-06-18 16-38)
#   Updated Wine Version to 1.9.12 (Works with new 6.2.4 patch)
#   Added dotnet30sp1 to fix errors logging into Battle.net.
#   Added a few message windows during install to point users in the right direction setting ptrace_scope
#    and regarding installation of libldap (ArchLinux doesn't include it in base system their may be Distros also)
# [freedumb200] (2014-11-14 17-15)
#   Update Wine version to 1.5.29 (known to work with Draenor).
#   Added dbghelp dll override to fix a crsh in the BattleNet client.
# [SuperPlumus] (2013-05-12 15-55)
#   Update Wine version to 1.5.29 to fix bug #2284
#   Add --allow-kill in POL_Wine_WaitExit
# [SuperPlumus] (2013-05-19 20-47)
#   gettext
  
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="World of Warcraft : Legion"
PREFIX="WorldOfWarcraft : Legion"
WORKING_WINE_VERSION="1.9.20-staging"
  
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/wow/top.jpg" "http://files.playonlinux.com/resources/setups/wow/left.jpg" "$TITLE"
POL_SetupWindow_Init
POL_SetupWindow_SetID 14
POL_Debug_Init
  
POL_SetupWindow_presentation "$TITLE" "Blizzard Entertainment" "http://www.blizzard.com" "Asimov and SuperPlumus" "$PREFIX"
  
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86" # je ne sais pas si ca fonctionne en x64
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
  
POL_System_TmpCreate "$PREFIX"
  

POL_Call POL_Install_gecko
#POL_Call POL_Install_dotnet30sp1
POL_SetupWindow_message "$(eval_gettext 'If this fails check the debug, if missing libldap.so, and please install libldap from your Repo')" "$TITLE"
  
Set_OS "winxp"
POL_Wine_OverrideDLL "dbghelp"
POL_Wine_OverrideDLL "native,builtin" "msvcp140"
  
POL_SetupWindow_InstallMethod "CD,DVD,LOCAL"
  
if [ "$INSTALL_METHOD" = "CD" ]
then
  
# Le nombre de cd varie selon les boitiers
POL_SetupWindow_menu "$(eval_gettext 'Which version do you have?')" "$TITLE" "4 CDs~5 CDs" "~"
NOMBRE_CD="$APP_ANSWER"
  
POL_SetupWindow_message "$(eval_gettext 'Please insert game media 1 into your disk drive\nif not already done.')" "$TITLE"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "Installer Tome.mpq"
POL_SetupWindow_wait "$(eval_gettext 'Wait while the installation is prepared...')" "$TITLE"
cp -r "$CDROM"/* "$POL_System_TmpDir"
  
POL_SetupWindow_message "$(eval_gettext 'Please insert game media 2 into your disk drive\nif not already done.')" "$TITLE"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "Installer Tome 2.mpq"
POL_SetupWindow_wait "$(eval_gettext 'Wait while the installation is prepared...')" "$TITLE"
cp -r "$CDROM"/*.mpq "$POL_System_TmpDir"
  
POL_SetupWindow_message "$(eval_gettext 'Please insert game media 3 into your disk drive\nif not already done.')" "$TITLE"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "Installer Tome 3.mpq"
POL_SetupWindow_wait "$(eval_gettext 'Wait while the installation is prepared...')" "$TITLE"
cp -r "$CDROM"/*.mpq "$POL_System_TmpDir"
  
POL_SetupWindow_message "$(eval_gettext 'Please insert game media 4 into your disk drive\nif not already done.')" "$TITLE"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "Installer Tome 4.mpq"
POL_SetupWindow_wait "$(eval_gettext 'Wait while the installation is prepared...')" "$TITLE"
cp -r "$CDROM"/*.mpq "$POL_System_TmpDir"
  
  
if [ "$NOMBRE_CD" = "5 CDs" ]; then
POL_SetupWindow_message "$(eval_gettext 'Please insert game media 5 into your disk drive\nif not already done.')" "$TITLE"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "Installer Tome 5.mpq"
POL_SetupWindow_wait "$(eval_gettext 'Wait while the installation is prepared...')" "$TITLE"
cp -r "$CDROM"/*.mpq "$POL_System_TmpDir"
fi
  
cd "$POL_System_TmpDir"
POL_Wine_WaitBefore "$TITLE"
POL_Wine "Installer.exe"
POL_Wine_WaitExit "$TITLE" --allow-kill
  
fi
if [ "$INSTALL_METHOD" = "DVD" ]
then
  
POL_SetupWindow_message "$(eval_gettext 'Please insert game media into your disk drive\nif not already done.')" "$TITLE"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "Installer Tome.mpq"
POL_SetupWindow_wait "$(eval_gettext 'Wait while the installation is prepared...')" "$TITLE"
cp -r "$CDROM"/* "$POL_System_TmpDir"
  
cd "$POL_System_TmpDir"
POL_Wine_WaitBefore "$TITLE"
POL_Wine "Installer.exe"
POL_Wine_WaitExit "$TITLE" --allow-kill
  
fi
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
  
cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
POL_Wine_WaitBefore "$TITLE"
POL_Wine start /unix "$APP_ANSWER"
POL_Wine_WaitExit "$TITLE" --allow-kill
  
  
fi
  
POL_Wine_SetVideoDriver
  
POL_SetupWindow_VMS
  
  
POL_SetupWindow_wait "$(eval_gettext 'Please wait...')" "$TITLE"
  
# Fichier Config.wtf
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/World of Warcraft/WTF"
cat << EOF > Config.wtf
SET gxApi "D3D9"
SET ffxDeath "0"
SET SoundOutputSystem "1"
SET SoundBufferSize "150"
SET MasterSoundEffects "0"
EOF
  
# AddOn ApplyToForehead (evite les crash de wow sur l'ecran des reglages)
mkdir -p "$WINEPREFIX/drive_c/$PROGRAMFILES/World of Warcraft/Interface"
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/World of Warcraft/Interface"
wget "$SITE/divers/ApplyToForehead.zip"
unzip "ApplyToForehead.zip"
rm "ApplyToForehead.zip"
  
POL_Wine_InstallFonts
Set_SoundDriver alsa
  
POL_System_TmpDelete
  
POL_Shortcut "Wow.exe" "$TITLE"
POL_Shortcut_InsertBeforeWine "$TITLE" "mkdir -p \"$WINEPREFIX/drive_c/$PROGRAMFILES/World of Warcraft/WTF/\""
POL_Shortcut_InsertBeforeWine "$TITLE" "cp \"$WINEPREFIX/drive_c/Config.wtf\" \"$WINEPREFIX/drive_c/$PROGRAMFILES/World of Warcraft/WTF/Config.wtf\""
  
POL_SetupWindow_Close
exit

Replies

Sunday 16 October 2016 at 12:18
Thanks!
Sunday 16 October 2016 at 12:18
Thanks
Sunday 16 October 2016 at 12:23
Oops, sorry for the double post. By the way, I would strongly recommend using a wine-staging from playonlinux instead of the system version.
Sunday 23 October 2016 at 12:32
I see you are already using the playonlinux wine-staging, so it's probably a glitch in the playonlinux website. By the way, why are you setting the sound driver to alsa?
Monday 24 October 2016 at 13:36
Sometimes with certain distros it glitches and uses a non-existant driver by default. Alsa is the more up to date sound driver for linux. Almost nobody changes it from default which is likely alsa
Monday 24 October 2016 at 13:38
And yes, When i added this installer I only had options to enter comments. I couldn't change what displayed as the wine version or anything else. Which is why the first post is a comment ;) I then had to "contribute" and add the source code.
Wednesday 8 March 2017 at 0:02
Please, update the Wine version to 2.0-staging.

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