ntzrmtthihu777 |
Friday 10 May 2013 at 15:09
|
ntzrmtthihu777
|
Created a script for Warcraft II: Battle.net Edition. Essentially the Tides Of Darkness with the expansion pack Beyond the Dark Portal built in, plus battle.net support. it also includes some features from Starcraft, and does not require DOS support/DOSBOX to function on modern windows or via wine. #!/bin/bash
# Date : (2013-05-10 06-25)
# Last revision : (2013-05-10 06-25)
# Wine version used : 1.5.29
# Distribution used to test : Xubuntu 12.04.2 LTS
# Author : ntzrmtthihu777
# Testers :
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE="Warcraft II - Battle.net Edition"
PREFIX="WarcraftII_BNE"
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 "1.5.29"
# choses cd, installs program
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "SETUP.EXE"
POL_Wine "$CDROM/SETUP.EXE"
POL_Wine_WaitExit "$TITLE"
#creates shortcut
POL_Shortcut "Warcraft II BNE.exe" "Warcraft II" "" "" "Game;"
POL_Shortcut "Warcraft II Map Editor.exe" "Warcraft II Map Editor" "" "" "Game;"
POL_SetupWindow_Close
exit 0 Edited by ntzrmtthihu777
|
ntzrmtthihu777 |
Friday 10 May 2013 at 15:29
|
ntzrmtthihu777
|
In-game screenie: (Note that this is a sort of game that takes the entire screen up, so under normal circumstances you could never know the origin of the screenshot. However, you can clearly see to the upper left my XFCE panel icons. Not sure why they are bleeding over, but they serve to prove the authenticity of the screenshot.) GFX: https://dl.dropboxusercontent.com/u/122492519/WC2BNE.7z Have not located/extracted a 22x22 icon as of yet, but this covers top, left, and 48x48 Edited by ntzrmtthihu777
|
petch |
Friday 10 May 2013 at 17:51
|
petch
|
Hi ntzrmtthihu777, Not much to say, maybe you could set menu entry category to "Game;StrategyGame;" to be more precise, but that's about it, everything looks ok ;)
|
ntzrmtthihu777 |
Friday 10 May 2013 at 18:29
|
ntzrmtthihu777
|
True, doable. I don't think there is such a subcategory for xfce... lemme test this.
|
petch |
Friday 10 May 2013 at 23:00
|
petch
|
Standard categories come from http://standards.freedesktop.org/menu-spec/menu-spec-1.0.html#category-registry (first table contains main sections, second one adds standard subsections)
|
ntzrmtthihu777 |
Saturday 11 May 2013 at 2:26
|
ntzrmtthihu777
|
ahh, I needed a list like that. sometimes the default locations seem dumb to me. (Personally I think POL belongs in either accessories or development, lol)
|
ntzrmtthihu777 |
Saturday 11 May 2013 at 16:38
|
ntzrmtthihu777
|
Since my last post I have discovered a solution to the above bug (and this solution was required to run this on another device, so it also enhances compatability), full patched code below: #!/bin/bash
# Date : (2013-05-10 06-25)
# Last revision : (2013-05-11 09-35)
# Wine version used : 1.5.29
# Distribution used to test : Xubuntu 12.04.2 LTS
# Author : ntzrmtthihu777
# Testers :
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE="Warcraft II - Battle.net Edition"
PREFIX="WarcraftII_BNE"
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 "1.5.29"
# 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 Edited by ntzrmtthihu777
|
PerfectTourist |
Wednesday 9 July 2014 at 21:41
|
PerfectTourist
|
In whatever level in Warcraft II: Tides of Darkness and Beyond the Dark Portal, every time there is a unit or a building in the upper left corner of the screen and I go to attack it, the game just shuts down and exits to Windows. Has this ever happened to anyone else and is there a bug to fix it? I've managed to make it to Level 2 (Human) in Beyond the Dark Portal but I can't pass it simply because there is a farm in the upper left corner. As soon as I hit it or destroy it the game exits out. Someone please help!!
|
ntzrmtthihu777 |
Friday 13 February 2015 at 14:39
|
ntzrmtthihu777
|
Erm, are you talking about playing Warcraft II on windows? No clue, if so.
|