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
DATAfolder andWAR1.BINsetup_warcraft_orcs__humans_1.2_(28330).exeGoG installer
- Warcraft 2
Supportfolder andInstall.mpqsetup_warcraft_ii_2.02_v5_(78104).exewithsetup_warcraft_ii_2.02_v5_(78104).bintogether
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
Openfrom the context menu. You should now get a new option toOpenanyway. If you are running macOS 15 Sequoia or later you may need to approve it from thePrivacy & Securitytab 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+Ito open theGet Infowindow (or right-click and select from the context menu). Under theOpen With:section, if Terminal is not selected chooseOther, enableAll Applicationsand navigate to/Applications/Utilities/Terminal. It should now open by double-clicking it. -
The script was written for the
Zshshell 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
cdcommand 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.