Script for extracting Warcraft 1 and 2 game data on macOS for use with the War1gus and Wargus projects
Run the script from the same folder as:
- The latest War1gus or Wargus app
- Your game data
The script can extract data from these files:
- Warcraft
DATA
folder andWAR1.BIN
setup_warcraft_orcs__humans_1.2_(28330).exe
GoG installer
- Warcraft 2
Support
folder andInstall.mpq
setup_warcraft_ii_2.02_v5_(78104).exe
withsetup_warcraft_ii_2.02_v5_(78104).bin
together
When downloaded, it's likely the script won't be able to run at first. This is expected.
-
If you get a message saying that the script can't be opened, right-click on it and select
Open
from the context menu. You should now get a new option toOpen
anyway. If you are running macOS 15 Sequoia or later you may need to approve it from thePrivacy & Security
tab in the Settings app. -
If there is still a message that says it can't be opened, try changing the Extended Attributes of the file with
xattr -cr Extractor\ script.sh
. -
The default application that is used to open the script might be set to a text editor. Change the default application by selecting the script and using
Command+I
to open theGet Info
window (or right-click and select from the context menu). Under theOpen With:
section, if Terminal is not selected chooseOther
, enableAll Applications
and navigate to/Applications/Utilities/Terminal
. It should now open by double-clicking it. -
The script was written for the
Zsh
shell environment. If run from the command line, usezsh Extractor\ script.sh
. The script will not work properly usingsh Extractor\ script.sh
. -
If you have done the above steps and nothing happens when you run it, you may need to give it executable permissions. In Terminal, use the
cd
command to navigate to where the script is and enterchmod +x Extractor\ script.sh
.
Note that the script will perform all actions in the same folder you run it from (likely your Downloads
folder), so you may need to give it permission for this, or move it somewhere else.