[Pogamut-list] Custom-Made Items

jakub.gemrot pogamut-forum at diana.ms.mff.cuni.cz
Tue Dec 7 08:03:40 CET 2010


Re: Custom-Made Items

Author: jakub.gemrot

Hi Dirk!

I'm not quite sure what the question is, but here are some thoughts:

1) I'm not quite sure how to create custom items for UT2004, Michal
Bida will certainly be more helpful than me.

2) regarding TabooSet, it is a collection that works like "black
list", i.e., sometime death-match bot is unable to
reach a certain NavPoint or Item inside the map from his current
position but deterministic decision making algorithm (its logic)
would try to reach the same NavPoint / Item every time. Thus it is a
good technique to employ temporary "black listing" of navpoints
or items you can not currently reach. The TabooSet itself offers you
two methods how to "black list" item, either via
TabooSet.add(Item) ... which will blacklist it forever (unless removed
using remove()), or
TabooSet.add(Item, Time) ... which will blacklist it for a specifiead
amount of seconds.

Finally, the TabooSet has filter() method that may remove any
blacklisted items from a collection you pass into it.

So here it is how it is used:

1) when choosing item where to run to you do something like (pseudocode):
item = pickSomeItemFromCollection( tabooSet.filter(itemsIWantToRunTo) )

2) run to item
pathExecutor.execute(pathPlanner.compute(item))

3) if the run fails, you just tabooSet.add(item, 30) // blacklisting
item for 30 secs
goto 1 // so in (1) you won't pick the same item again

Does it help?

Cheers!
Jakub

-- 
Reply Link: <http://diana.ms.mff.cuni.cz/main/tiki-view_forum_thread.php?forumId=4&comments_reply_threadId=4&comments_parentId=453&post_reply=1#form>





More information about the Pogamut-list mailing list