You are here    Supported software    Warcraft III - 1.28.3+ nl sv ru pl es de fr

Warcraft III - 1.28.3+

Informations

Creator Message
Simoms

Warning

This installer has not been approved yet by the team.

Informations

Platforms:
Downloads: 0
Wine: System

Feedbacks

Description

With 1.28.3, Blizzard added a new common installer and launcher for both Reign of Chaos and The Frozen Throne.

The old PlayOnLinux scripts do not work for Warcraft III 1.28.3+.

Source code

				

Contributions

Filters:

Contribute
Member Message
Simoms Thursday 10 May 2018 at 10:52
Simoms

Warning

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

Differences

@@ -0,0 +1,53 @@
+#!/bin/bash
+# Date : (2018-05-05 14:00)
+# Last revision : (2018-05-05 14:00)
+# Wine version used : 3.7
+# Distribution used to test : Ubuntu 16.04
+# Author : Simoms
+# Licence : Retail
+
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+
+PREFIX="WarcraftIII"
+WINEVERSION="3.7"
+TITLE="Warcraft III"
+EDITOR="Blizzard Entertainment"
+GAME_URL="https://www.blizzard.com/"
+AUTHOR="Simoms"
+
+# PlayOnLinux Setup
+POL_SetupWindow_Init
+POL_Debug_Init
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
+
+# Get installer file
+if [ "$POL_SELECTED_FILE" ];  then
+    INSTALLER="$POL_SELECTED_FILE"
+else
+    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
+    INSTALLER="$APP_ANSWER"
+fi
+
+[ "$INSTALLER" = "" ] && exit 0
+
+# Create prefix
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WINEVERSION"
+
+# Install game
+POL_Wine_WaitBefore "$TITLE"
+POL_Wine "$INSTALLER"
+POL_Wine_WaitExit "$TITLE"
+
+# Ask about GPU memory size
+POL_SetupWindow_VMS
+
+# Create shortcuts
+POL_Shortcut "$TITLE.exe" "$TITLE"
+POL_Shortcut "$TITLE Launcher.exe" "$TITLE Launcher"
+POL_Shortcut "World Editor.exe" "$TITLE - World Editor"
+POL_Shortcut_QuietDebug "$TITLE"
+
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2018-05-05 14:00)
# Last revision : (2018-05-05 14:00)
# Wine version used : 3.7
# Distribution used to test : Ubuntu 16.04
# Author : Simoms
# Licence : Retail

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

PREFIX="WarcraftIII"
WINEVERSION="3.7"
TITLE="Warcraft III"
EDITOR="Blizzard Entertainment"
GAME_URL="https://www.blizzard.com/"
AUTHOR="Simoms"

# PlayOnLinux Setup
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"

# Get installer file
if [ "$POL_SELECTED_FILE" ];  then
    INSTALLER="$POL_SELECTED_FILE"
else
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
    INSTALLER="$APP_ANSWER"
fi

[ "$INSTALLER" = "" ] && exit 0

# Create prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"

# Install game
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$INSTALLER"
POL_Wine_WaitExit "$TITLE"

# Ask about GPU memory size
POL_SetupWindow_VMS

# Create shortcuts
POL_Shortcut "$TITLE.exe" "$TITLE"
POL_Shortcut "$TITLE Launcher.exe" "$TITLE Launcher"
POL_Shortcut "World Editor.exe" "$TITLE - World Editor"
POL_Shortcut_QuietDebug "$TITLE"

POL_SetupWindow_Close
exit 0

Replies