You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
When calling a Unit command like
someUnit.gather(mineralSpot)
from a different thread than the main thread consistently returnsfalse
;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.
The text was updated successfully, but these errors were encountered: