Warcraft II: Battle.net Edition

Informations

Creator Message
ntzrmtthihu777

Warning

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

Informations

Platforms:
Downloads: 16088
Wine: System

Feedbacks

Description

Warcraft II: Battle.net Edition is an Battle.net-enabled version of Warcraft II: Tides of Darkness, with the expansion Warcraft II: Beyond the Dark Portal built in. It was released Sepember 30, 1999.[1] This is essentially the same as Warcraft II, but it allows for usage on Battle.net, and, unlike its offline counterparts, does require a CD Key to install.

Screenshots

Miniature

Source code

#!/bin/bash
# Date                      : (2013-05-11 09-35)
# Last revision             : see changelog
# Wine version used         : 
# Distribution used to test : Xubuntu 12.04.2 LTS
# Author                    : ntzrmtthihu777
# Testers                   :
#
# CHANGELOG
# [ntzrmtthihu777] (2013-05-10 06-25)
#   Initial script.
# [Dadu042] (2020-01-22 13:30)
#   Wine 1.5.29 -> system

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

TITLE="Warcraft II - Battle.net Edition"
PREFIX="WarcraftII_BNE"

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" "Blizzard" "http://us.blizzard.com/en-us/" "ntzrmtthihu777" "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate

# choses cd, installs program
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "SETUP.EXE"
POL_Wine "$CDROM/SETUP.EXE"
POL_Wine_WaitExit "$TITLE"

# sets some registry keys needed for full function on some systems
POL_Wine_X11Drv "GrabFullscreen" "Y"
POL_Wine_X11Drv "Decorated" "N"
POL_Wine_X11Drv "Managed" "N"

# creates shortcut
POL_Shortcut "Warcraft II BNE.exe" "Warcraft II" "" "" "Game;StrategyGame;"
POL_Shortcut "Warcraft II Map Editor.exe" "Warcraft II Map Editor" "" "" "Game;StrategyGame;"
POL_SetupWindow_Close

exit 0

Contributions

Filters:

Contribute
Member Message
Dadu042 Thursday 30 January 2020 at 23:12
Dadu042

Information

This update has been approved by the team.

Differences

@@ -1,10 +1,16 @@
 #!/bin/bash
-# Date                      : (2013-05-10 06-25)
-# Last revision             : (2013-05-11 09-35)
-# Wine version used         : 1.5.29
+# Date                      : (2013-05-11 09-35)
+# Last revision             : see changelog
+# Wine version used         : 
 # Distribution used to test : Xubuntu 12.04.2 LTS
 # Author                    : ntzrmtthihu777
 # Testers                   :
+#
+# CHANGELOG
+# [ntzrmtthihu777] (2013-05-10 06-25)
+#   Initial script.
+# [Dadu042] (2020-01-22 13:30)
+#   Wine 1.5.29 -> system
 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
@@ -18,7 +24,7 @@
 POL_Debug_Init
 POL_SetupWindow_presentation "$TITLE" "Blizzard" "http://us.blizzard.com/en-us/" "ntzrmtthihu777" "$PREFIX"
 POL_Wine_SelectPrefix "$PREFIX"
-POL_Wine_PrefixCreate "1.5.29"
+POL_Wine_PrefixCreate
 
 # choses cd, installs program
 POL_SetupWindow_cdrom

New source code

#!/bin/bash
# Date                      : (2013-05-11 09-35)
# Last revision             : see changelog
# Wine version used         : 
# Distribution used to test : Xubuntu 12.04.2 LTS
# Author                    : ntzrmtthihu777
# Testers                   :
#
# CHANGELOG
# [ntzrmtthihu777] (2013-05-10 06-25)
#   Initial script.
# [Dadu042] (2020-01-22 13:30)
#   Wine 1.5.29 -> system

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

TITLE="Warcraft II - Battle.net Edition"
PREFIX="WarcraftII_BNE"

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" "Blizzard" "http://us.blizzard.com/en-us/" "ntzrmtthihu777" "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate

# choses cd, installs program
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "SETUP.EXE"
POL_Wine "$CDROM/SETUP.EXE"
POL_Wine_WaitExit "$TITLE"

# sets some registry keys needed for full function on some systems
POL_Wine_X11Drv "GrabFullscreen" "Y"
POL_Wine_X11Drv "Decorated" "N"
POL_Wine_X11Drv "Managed" "N"

# creates shortcut
POL_Shortcut "Warcraft II BNE.exe" "Warcraft II" "" "" "Game;StrategyGame;"
POL_Shortcut "Warcraft II Map Editor.exe" "Warcraft II Map Editor" "" "" "Game;StrategyGame;"
POL_SetupWindow_Close

exit 0

Replies

Saturday 31 December 2022 at 17:25
This install script doesn't work on (or even I think help with) LAN multiplayer. For single-player on Linux it's arguably better to use wargus. For LAN, IPX is required which is no longer supported in the Linux kernel (which seems to be fatal in wine, even if a sufficiently old windows version is selected). There is ipxemu in windows but on wine this needs a special wsocks.dll and WINEDLLOVERRIDES=wsock32=n to be set, which I can't work out how to do in POL. Also this seems to want a cd or iso when many users now will want to use the GOG installer.