Wargus / stargus

Importer and scripts for Starcraft
GNU General Public License v2.0
130 stars 24 forks source link

Stargus doesn't pick up data folder #36

Closed ThibaultLemaire closed 6 years ago

ThibaultLemaire commented 6 years ago

... and doesn't prompt for one.

Hi everyone!

I'm trying to make stargus run on Arch.

So far, I've managed to compile stargus, and to extract 545.5MB of data from a Starcraft Anthology wine install (🎉).

The issue is when I start stargus, I get this :

Stargus data was not extracted yet.

This doesn't match the behaviour described in the readme :

Upon first launch of Stargus, it will ask you for your Starcraft installation to extract the data to work with Stargus.

Anyway, digging my way through the open issues, I've managed to figure out how to use startool and to gather some hints as to where to put the extracted data so that stargus finds it.

Following are the different locations I've tried, but none of them worked, so I'm at loss right now.

I realize most of them are pretty lame attempts, as peeking into the code of stargus.cpp and stratagus-game-launcher.h seems to indicate the right location should be ~/.stratagus/data.Stargus.

So where shoud I put that data folder?

timfel commented 6 years ago

There are more files that need to be copied to the right directories, just running Startool isn't enough. The stargus binary should take care of that, the dialog you posted is correct, and upon pressing ok it should prompt you for a stardat.mpq, does that file dialog not open when you press "OK"? (Don't close the dialog with a keyboard shortcut or using the window manager's X button, then it will just cancel)

timfel commented 6 years ago

If you want to know how to do the extraction manually, pretty much all you need is in stargus.cpp, including the extra files and folders you need to copy and their target directories.

ThibaultLemaire commented 6 years ago

upon pressing ok it should prompt you for a stardat.mpq, does that file dialog not open when you press "OK"?

No it does not. Stargus simply terminates with exit status 1. I'd like to debug but I'm not very comfortable with C++ and I don't know the appropriate tools.

If you want to know how to do the extraction manually, pretty much all you need is in stargus.cpp, including the extra files and folders you need to copy and their target directories.

What do you mean? Here's what I've added without success :

ThibaultLemaire commented 6 years ago

I'm sorry it looked like I was asking you to get me started on C++. Although I am curious about the tools you use, I wouldn't want you to waste any time on teaching me the basics. I mean there are enough resources out there for me to manage on my own.

All I meant was that it might take me some time before I can properly debug and get you more info on this issue.

timfel commented 6 years ago

Hi, sorry, I had no time to look into this this week. One thing, could you try launch the game on the cmdline with stratagus -d ~/.stratagus/data.Stargus and post the output?

ThibaultLemaire commented 6 years ago

stratagus -d ~/.stratagus/data.Stargus worked and the game launched.

It looks like I made a mistake while compiling stargus. I compiled against stratagus not stratagus-git from the AUR. I'm not sure exactly why it behaved like that though.

So for the record, here's what I've done & tested functional on Arch:

  1. Install stratagus-git
  2. Install stargus-git
  3. Manually generate data into ~/.stratagus/data.Stargus

By the way, I'd like to write a wiki page giving instructions for manually generating the data as it was not so trivial for me, and other new comers might have the same difficulties making stargus work.

Additionally, I've tried to start afresh with this working installation from the AUR and make it auto-generate the data. This time I got the expected dialog-box which I pointed to StarDat.mpq from my wine installation of Starcraft Anthology, but it failed. I'm opening an other issue on that.

With your permission, I'm closing this issue and opening two new ones for the wiki page and the auto-extraction of starcraft data.

timfel commented 6 years ago

Sounds good. The idea is to get the auto-extraction working well enough that no manual extraction will be necessary.


From: Thibault Lemaire notifications@github.com Sent: Saturday, December 9, 2017 1:56:05 PM To: Wargus/stargus Cc: Tim Felgentreff; Manual Subject: Re: [Wargus/stargus] Stargus doesn't pick up data folder (#36)

stratagus -d ~/.stratagus/data.Stargus worked and the game launched.

It looks like I made a mistake while compiling stargus. I compiled against stratagushttps://aur.archlinux.org/packages/stratagus/ not stratagus-githttps://aur.archlinux.org/packages/stratagus-git/ from the AUR. I'm not sure exactly why it behaved like that though.

So for the record, here's what I've done & tested functional on Arch:

  1. Install stratagus-githttps://aur.archlinux.org/packages/stratagus-git/
  2. Install stargus-githttps://aur.archlinux.org/packages/stargus-git/
  3. Manually generate data into ~/.stratagus/data.Stargus

By the way, I'd like to write a wiki page giving instructions for manually generating the data as it was not so trivial for me, and other new comers might have the same difficulties making stargus work.

Additionally, I've tried to start afresh with this working installation from the AUR and make it auto-generate the data. This time I got the expected dialog-box which I pointed to StarDat.mpq from my wine installation of Starcraft Anthology, but it failed. I'm opening an other issue on that.

With your permission, I'm closing this issue and opening two new ones for the wiki page and the auto-extraction of starcraft data.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/Wargus/stargus/issues/36#issuecomment-350461366, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAC0m2KS6l_5A56V7gCswUYc_e-X5sadks5s-oNlgaJpZM4Q1LZh.

ThibaultLemaire commented 6 years ago

Sure, but It'd be great to have a backup plan for when it doesn't :)