Skip to content
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

[macOS] Startool not working on macOS #62

Open
shinra-electric opened this issue Nov 19, 2023 · 5 comments
Open

[macOS] Startool not working on macOS #62

shinra-electric opened this issue Nov 19, 2023 · 5 comments

Comments

@shinra-electric
Copy link
Contributor

shinra-electric commented Nov 19, 2023

I'm trying to extract the Starcraft game data on Mac, but Startool is not working.

First I pointed it to a PC install (I have a Wine install), where StarDat.mpq and BrooDat.mpq are present. Neither files are shown as detected. Then Startool will segfault.

Then I tried again but this time with INSTALL.EXE present. It is detected, but then it will fail with a file not found error:
libc++abi: terminating due to uncaught exception of type FileNotFoundException: File not found: 'dataset/units.json'.

Here is the terminal log:
Startool Output.txt

@shinra-electric
Copy link
Contributor Author

Update: I noticed that the missing dataset/units.json file was in the Stargus source directory, so I copied all of the source files into the Stargus.app bundle and ran it again.

It ran, but it did not seem to run completely. Even though I used the -v command, it didn't convert any videos.
Startool Output 2.txt

I launched Stargus using the command line, and it fails saying that there are missing items, including the ogg files.
Stargus Output.txt

@shinra-electric
Copy link
Contributor Author

Update 2: It turns out I was using the -v arg in the wrong place.

using the command ./startool -v /source_dir /destination_dir got it working. However, the music files were not converted, and Stargus will still crash saying that it is missing music/title.ogg. There was no music folder extracted...
Startool Output 3.txt

@andreas-volz
Copy link
Collaborator

The sound parameter was documented wrong. You've to run startool with --sound or -s to extract the audio.
I pushed the help change to my feature branch. I'll merge it with the next feature change to the official repo.
But it the parameter works, it's just the wrong help.

@shinra-electric
Copy link
Contributor Author

shinra-electric commented Nov 19, 2023

Thanks for the tip! Using ./startool -v -s /source_dir /destination_dir did extract the music and sound files! I can get a little bit further now.

However, Stargus still won't launch at all when opening the app bundle, and crashes when trying to load the menu when run through terminal. There is no error printed in the terminal output (except for the few missing Lua files that are the same as in the previous output above). Here is the system crash report in case it might help at all...

Stargus crash report.txt

Screenshot 2023-11-19 at 14 39 04

@shinra-electric
Copy link
Contributor Author

Here are the steps I took in getting this far, just for anyone else following along:

  1. Built Stratagus and Stargus (including running the bundle script)
  2. Copied the install.exe from a starcraft CD to the root of the stargus folder
  3. Copied startool from stargus/build/src/ to the root of the stargus folder
  4. Ran startool from the command line with ./startool -v -s /source_dir /destination_dir where source is the stargus folder and the destination directory is ~/Library/Application Support/Stratagus/data.Stargus
  5. Cd'd into the stargus.app bundle cd Stargus.app/Contents/MacOS/
  6. Ran ./stargus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants