Flee From All Enemy

User avatar
0x1de
Automaton
Automaton
Posts: 131

Flee From All Enemy

Post#1 » 10 Aug 2017, 21:29

This isn't behaving as I would expect.

In this case my bot is executing Flee From All Enemy (Not Out Of Range) AND (Attacking Me). There are two enemies attacking, one at short range and the other at medium. I would expect my bot to flee on a line that bisects the angle between the enemies equally. In fact it is heavily biased towards the further enemy.

If anything, it should be biased so that I run away more from the closer attacker.

You can see this in match 749714, between 4:52 and 4:48. My assault in bottom left is trying to flee from two enemy assaults.

User avatar
GFX47
Dev Team
Posts: 1922

Re: Flee From All Enemy

Post#2 » 10 Aug 2017, 21:36

The fled position is the average position of the targets.

User avatar
TheGnoo
Automaton
Automaton
Posts: 155

Re: Flee From All Enemy

Post#3 » 10 Aug 2017, 22:10

Yes, I made the same mistake. The average angle would be maybe interesting.

pier4r
Skynet
Skynet
Posts: 2720

Re: Flee From All Enemy

Post#4 » 10 Aug 2017, 22:43

If you see it as "center of mass" of the selected enemy entities,it is not so bad.

https://en.wikipedia.org/wiki/Center_of_mass
http://www.reddit.com/r/Gladiabots/wiki/players/pier4r_nvidia_shield_k1 -> Gladiabots CHAT, stats, insights and more ;

User avatar
GFX47
Dev Team
Posts: 1922

Re: Flee From All Enemy

Post#5 » 10 Aug 2017, 23:15

pier4r wrote:If you see it as "center of mass" of the selected enemy entities,it is not so bad.

https://en.wikipedia.org/wiki/Center_of_mass


That's the spirit :)

User avatar
0x1de
Automaton
Automaton
Posts: 131

Re: Flee From All Enemy

Post#6 » 10 Aug 2017, 23:27

So, let me get this straight. If one enemy is at (-1,1) and the other is (5,1), relative to me, then I flee from (2,1)?

pier4r
Skynet
Skynet
Posts: 2720

Re: Flee From All Enemy

Post#7 » 10 Aug 2017, 23:56

I would say yes, waiting for GFX
http://www.reddit.com/r/Gladiabots/wiki/players/pier4r_nvidia_shield_k1 -> Gladiabots CHAT, stats, insights and more ;

User avatar
GFX47
Dev Team
Posts: 1922

Re: Flee From All Enemy

Post#8 » 10 Aug 2017, 23:59

Yes

User avatar
0x1de
Automaton
Automaton
Posts: 131

Re: Flee From All Enemy

Post#9 » 11 Aug 2017, 00:32

Well I can code around it, but it's not intuitive, given that nearer enemies are more dangerous. I did think that adding flee from all would help inexperienced users, but maybe it won't.

Rather than centre of mass, why not consider gravity as an analogy? Which direction do I need to go to escape from the combined pull?

User avatar
Ritter Runkel
Neural Network
Neural Network
Posts: 443

Re: Flee From All Enemy

Post#10 » 11 Aug 2017, 07:40

0x1de wrote:Well I can code around it, but it's not intuitive, given that nearer enemies are more dangerous.


Not really. From further enemies you can flee more easily. So before we had this possibility, I always flee from furthest, not nearest, attacking me.

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 1 guest