-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mac OSX Data Install Issue #404
Comments
Could you try running it in the terminal and pasting any output you get here? You may also want to try building it from source if you are comfortable with that. I have some instructions on building it on macOS here: https://github.com/Wargus/stratagus/wiki/Building-on-macOS . |
I was able to get the script working in Terminal. It failed entirely at first until I installed Homebrew and FFMPEG for macOS. Running the script gave me a similar output to what I get in Windows but it created the files in a folder called "data" in my macOS user folder ("/data") instead of "/Library/Stratagus/data.Wargus/". Here is my log for running wartool in Terminal: Leaving the files there or moving them to proper location results in Wargus starting up and saying the Wargus format has changed, and then fails to fix it with the following messages when I try to launch: |
Running wartool manually to extract the data results in this: ./wartool -r -v /Volumes/Warcraft\ 2 ~/Library/Stratagus/data.Wargus It appears to be munging the path. MacBook Pro 16,1 |
I'm not a developer, but I know enough to be dangerous. Looking through the logic to detect versions and paths for case sensitivity gave me the idea. I copied everything from the BNECD and wrote a small shell script to rename all files and folders to lower case. The GUI still failed to load after selecting install.exe, so no change there, however that allowed the wartool to work as expected when ran manually. Placing the extracted data in ~/Library/Stratagus/data.Wargus resulted in "Stratagus failed to load game data" when launching the GUI and running via command line threw an error for missing images in a /ui folder. I was able to locate those files in "contrib" and put them in place. Still the GUI failed, but running via command line worked specifying the data and user paths. Finally able to somewhat launch the app, trying to start the campaign fails with the menu going in circles back to the beginning. Hope this helps. |
I have compile stratagus 3.3.3 and wargus from source code. After run And run game. I share precompiled binaries here https://github.com/JiLiZART/wargus-3.3.3-macos-m1-app (well tested on MacOS 12.4 M1 Chip) |
Thank you for the binaries JiLiZART! It's finally working, but not completely. I'll explain. After following your steps, if I try running the App from finder I get this error: But if I use terminal and go into the Package itself, into Contents/MacOS and run ./wargus it works great! I'm sure it's something stupid, but what? Thanks again for your help! |
This should be fixed now if you build Stratagus and Wargus yourself. You should be able to launch by just opening the app now. No need to open through Terminal anymore. Please retest. |
Wartool ran as expected, however a new issue has crept up with the extraction process resulting in failure to launch. Couldn't load file /Users/..me../Library/Application Support/Stratagus/data.Wargus/graphics/ui/human/filler-right.png: Unsupported image formatCan't load the graphic '/Users/..me../Library/Application Support/Stratagus/data.Wargus/graphics/ui/human/filler-right.png It appears all UI elements among other asset PNGs are 0 bytes. |
Are you extracting from the DOS version or the GOG version? |
The only copy I’ve got is an original Battle.net edition CD from ‘99 |
It might be an issue specific to the CD version maybe? I'll see if I can dig up a copy to test on. |
I recently just discovered a few things that might help you: 1: Wartool will fail if you delete the source code folder. See #438 for details. 2: The Windows BNE version comes on a CD that has an 3: It will complain when trying to extract from the BNE data, but it will actually open a Terminal window in the background and start working. |
May have found something with wartool. Managed to get my hands on ancient DOS versions of the original and expansion. They both contain the same errors when extracting from tomes. The libpng warning repeats many times.
|
Did you build the app yourself? If so, libpng should be up to date.... |
I did indeed compile stratagus and wargus from source. |
Can you export your terminal output from when you build and post here as a text file? I might spot something. Actually, maybe we can chat in the discord channel so we don't pollute GitHub.... |
This issue can likely be closed, unless other people are still having trouble. There is still a data extraction issue in #438 that is the cause of trouble for most people, but that is a separate issue. |
Describe the bug
Cannot Install Data on Mac OSX 12.0.1
My Original Disk is: WAR2_122 : Warcraft II Tides of Darkness
To Reproduce
Upon Launching I get the message:
Wargus data was not extracted, is corrupted, or outdated.
You need to extract it from original Warcraft II DOS REZDAT.WAR or BNE INSTALL.MPQ/INSTALL.EXE file. Please select the Warcraft II DOS REZDAT.WAR or BNE INSTALL.MPQ/INSTALL.EXE file
I select DATA/REZDAT.WAR
Result:
There was an error copying the data, could not discover contributed directory path.
Screen Captures
The text was updated successfully, but these errors were encountered: