Scheduling concurrent unit orders

0 views
Skip to first unread message

Herve Quiroz

unread,
Mar 19, 2010, 9:09:30 PM3/19/10
to BWAPI JBridge
Hi,

I have been building basic bots using your bridge and I find it quite
nice to be able to use my day-job programming language for such a task.
So thank you for developing this project.

My first attempt was about monitoring idle workers to have them
automatically sent to harvest the nearest mineral unit. I discovered
that you cannot send too many orders to the game at once. From what I
understood so far, you may only set one order per AI frame (which would
probably be 30 per second?). Hence, so far I am using some workaround
based on Thread.sleep(). I was also planning to rely on a more robust
mechanism such as Quartz job scheduler later on. Anyway, maybe there is
already such facility in your framework that I don't know about.

Is there a preferred approach for this?

Thanks.

Herve

Reply all
Reply to author
Forward
0 new messages