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

Issuing Unit commands on a different thread returns false #19

Open
vyo opened this issue Dec 1, 2015 · 1 comment
Open

Issuing Unit commands on a different thread returns false #19

vyo opened this issue Dec 1, 2015 · 1 comment

Comments

@vyo
Copy link

vyo commented Dec 1, 2015

When calling a Unit command like someUnit.gather(mineralSpot) from a different thread than the main thread consistently returns false;
calling on the main thread consistently returns true, all else being equal.

Any ideas why that might be? Is that a BWAPI thing?

Update:

Seems to have been a programming error on my part, I suspect an uncaught exception sometime during the onFrame event.

Update 2:

That was premature; still investigating.

@vyo vyo closed this as completed Dec 10, 2015
@vyo vyo reopened this Dec 10, 2015
@sebbi08
Copy link

sebbi08 commented Jan 4, 2016

This is because BWAPI is not designt for multithreating you can only call commands while in you onFrame() methode so try to do it without threads or use a flag if u are in your onFrame() methode

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