Page 1 of 1

Tagging to target different resources

Posted: 06 Oct 2018, 21:58
by SwampRatUK
What ways do you use to avoid multiple bots chasing the same resource?

My attempts at sorting it by tagging haven't gone well (everyone tagged the resource at the same time) and looking for a resource that no one else is moving to seems to end in constant switching of targets.

Re: Tagging to target different resources

Posted: 06 Oct 2018, 23:09
by pier4r
let only one bot tag resources (say, an assault, or a bot you always have in your team). The first A, the second B and so on.

Then each bot can be defined to go for A or B or C according to its class or other identifiers.

A nice idea that can help is: in sandbox, try to develop an ai that only collect resources as fast as possible (with the enemy team made out of idle AIs)

Re: Tagging to target different resources

Posted: 06 Oct 2018, 23:27
by Jeffrey Harpen
SwampRatUK wrote:What ways do you use to avoid multiple bots chasing the same resource?

None. I find it useful when bots help one another carry the resource to the base.

Re: Tagging to target different resources

Posted: 07 Oct 2018, 11:08
by Gooru
I have the shotgun collect far away res close to a base, as it moves fast as long a not carrying
The MG gets the res that has no base nearby, as it moves fast after collecting.
This way there are "natural" priorities and they donĀ“t interfere much.

Re: Tagging to target different resources

Posted: 11 Oct 2018, 02:18
by FranchuFranchu
What I do is team tag the resource I am looking for, and before chasing a resource I check if it is not tagged

Re: Tagging to target different resources

Posted: 10 Nov 2018, 19:50
by Bluburro7
i made this sub AI, i think this is what you are looking for. https://imgur.com/AZbrl9S

Re: Tagging to target different resources

Posted: 27 Jan 2019, 11:52
by masterplayer
SwampRatUK wrote:What ways do you use to avoid multiple bots chasing the same resource?

I use the nodes below to solve this problem.
Put the "untag A" node at the very beginning of your AI to prevent bugs.

If you want to save a few ticks, you will have to duplicate all nodes and replace all "teamtag A" with other teamtags and add "not teamtagged A" to the duplicated nodes.

Re: Tagging to target different resources

Posted: 30 Apr 2019, 17:50
by balakrishnan1992
I have an Assault, Sniper, Machine gun, Assault setup. After I have individually tagged with team tags A, B, C and D, I tried:
1. MG picks the closest resource after tagging it C.
2. Sniper picks the closest resource that is not tagged C after tagging it D.
3. Assaults then pick the closest not tagged by any of the others, etc..

However, it doesnt work as tagging doesnt consume ticks. I have used a counter to synchronize this as shown

Unique tags.png
Unique tags.png (829.99 KiB) Viewed 643 times


But it still doesnt work. resources get multiple tags. No idea why this is happening.