-
Notifications
You must be signed in to change notification settings - Fork 2
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
Linux bin (not Wine) not working? #49
Comments
The bot-simple example can require some command line arguments to get started properly especially in the headless linux version since there is no standard install location. What versions and map packs do you have installed and what arguments are you passing into the example program? |
Here is how I did the setup:
Then I launch bot-simple with:
|
After some more digging, it seems that one of the Starcraft processes is not looking for the correct path. One is uppercase, and the other one is lowercase:
Here, process ID 26809 looks for Strange bug indeed! |
Windows (and wine) allows that sort of thing to happen since the paths are case-insensitive. It could be that SC2 is the culprit since linux isn't their primary platform. They do tell people to use a I think this problem does originate outside of sc2-rs, but since pysc2 works OK, I think there is probably a way to get around it for the headless linux version. A quick hack to get it working in both cases might be to just symlink |
You are correct: after renaming the dir to It's still unexpected that one of the processes find the Maps dir, but not the other one. |
First off, congratulations for your work!
I tried to run the
bot-simple
example on a Linux, using the native Starcraft bin (without Wine).The example seems to start fine, but exists right away. Nothing is ever printed, and exit code is 0.
I might be dump, but it seems to me that the into_future function in Melee does nothing if
break_on_ctrlc
is nottrue
I tried to fix it by adding a
self.run()
call (ctrl-C seems to be handled fine):sc2-rs/src/services/melee_service.rs
Lines 207 to 209 in 75a4727
The program starts fine, until:
Then nothing else happens. I added a bunch of prints in the bot code, but
on_event
andon_step
are never called.Using
pysc2_agent
from https://github.com/deepmind/pysc2 works fine, I get:Am I missing something?
The text was updated successfully, but these errors were encountered: