build order bwapi

https://github.com/bwapi/bwapi
abhisheknage
Posts: 5
Joined: Wed Jan 12, 2011 5:52 am

build order bwapi

Postby abhisheknage » Wed Jan 12, 2011 9:46 am

hey guys,

So my question is how do i get bwapi to get to do a specific build order. Do i do the build order in onstart or onframe. I really have no clue on how to start with a build order, and i do not want to use bwsal. The technical parts on how to create a build order will be greatly appreciated.

Thanks,
Darklord
krasi0
Posts: 254
Joined: Thu Dec 18, 2008 12:42 pm

Postby krasi0 » Wed Jan 12, 2011 4:06 pm

BWAPI itself doesn't support following build orders if you mean the construction of buildings and producing units in a specific order.
BWSAL has its BuildOrderManager which takes a list of build/buildAdditional commands and adds the items to a queue supporting priorities.
It's best if you add a few items to that queue in onStart and then add/remove/update during onFrame depending on the game state
abhisheknage
Posts: 5
Joined: Wed Jan 12, 2011 5:52 am

Postby abhisheknage » Wed Jan 12, 2011 9:49 pm

:o so i can change what happens in onstart from the responses in onframe?
krasi0
Posts: 254
Joined: Thu Dec 18, 2008 12:42 pm

Postby krasi0 » Thu Jan 13, 2011 11:46 am

My idea is that you construct an initial build order but after the game advances, adapt it to the opponent like pro gamers do.
Have a look at how BWSAL's buildordermanager works. This will be very useful to you.
abhisheknage
Posts: 5
Joined: Wed Jan 12, 2011 5:52 am

Postby abhisheknage » Sun Jan 16, 2011 3:49 am

i see that makes a lot of sense :o thanks again

Return to “BWAPI (wrappers in other languages / questions and announcements related to BWAPI itself)”

Who is online

Users browsing this forum: No registered users and 1 guest