SCV Mining Resources

1 view
Skip to first unread message

Macbeth76

unread,
Apr 27, 2010, 1:39:15 PM4/27/10
to BWAPI JBridge
I tried to use bwapi-bridge to get the SCV to mine minerals but it
seems that if I use the rightclick method with the Unit parameter,
they go to the spot where the minerals are but don't mine them. If I
use the position the game just freezes. I tried the last release and
the code in the head. Could you please help?


--
Subscription settings: http://groups.google.com/group/bwapi-jbridge/subscribe?hl=en

David Hall

unread,
Apr 27, 2010, 2:26:40 PM4/27/10
to bwapi-...@googlegroups.com
you're probably clicking on every frame, which basically breaks the
API. try something hacky like clicking every 20 frames or so.

Macbeth76

unread,
Apr 28, 2010, 5:08:20 PM4/28/10
to BWAPI JBridge
I got the SCV to start mining. It turns out that I was using the wrong
version of the Chaoslauncher plugin. Now I ran into another problem
though. I can't seem to get the SCV to build a barracks.
I get no errors and nothing freezes. I am only selecting one of them
to go build. I am marking the location with a circle. Any thought on
this one?


On Apr 27, 2:26 pm, David Hall <d...@cs.berkeley.edu> wrote:
> you're probably clicking on every frame, which basically breaks the
> API. try something hacky like clicking every 20 frames or so.
>

David Hall

unread,
Apr 28, 2010, 5:16:02 PM4/28/10
to bwapi-...@googlegroups.com
We've had this problem, I think. Usually we do things like

if(frameNum % 10 == 0) {
// go build
}

and it seems to work around any quirks in the engine... I know I'm
pushing the same solution, but it really seems to solve most problems.

-- David
Reply all
Reply to author
Forward
0 new messages