Author Topic: New Flipper AI  (Read 7498 times)

Offline Clickbeetle

  • *
  • Posts: 3375
  • Rep: 21
  • In Soviet Russia, bugs stomp YOU!
  • Awards BOTM Winner
    • View Profile
    • Beetle Bros site
    • Awards
New Flipper AI
« on: February 18, 2012, 11:41:55 PM »
It's common knowledge that Flipper.py includes some code for detecting whether the opponent is upside down, and to stop firing the weapon if they are.  However, this code is not very well implemented and usually fails.  I figured it's about time somebody cleaned it up.
 
The NEW Flipper.py features some significant improvements:
 
- Improved immobility detection with customizable settings in Bindings.py: make your bot more or less sensitive to movement until it works just right.
- The AI will stop firing its flipper AND stop driving if its opponent is not moving.  No more stupidly pushing the opponent around so they avoid being counted out!
- In a rumble, the AI will ignore bots that are not moving.
- Added support for a secondary popup weapon with NoChassisTime feature and an analog spinner control, so you can AI popups and VS's with Flipper.py.
- Added "Srimech" control for self-righting.
 
Could this possibly mean... that flippers can now be competitive in enclosed arenas??? :eek:   That's what I'm hoping with this; we'll see how it works in practice.

UPDATE as of 6/9/2014:

- Reduced occurrence of "flipper staredowns" in flipper vs. flipper battles.  They still happen, but not nearly as often.
- Added capability to set 'sweapons' in Bindings, and when these components break, to become invertible.

Download (Included in AI Essentials pack)
« Last Edit: June 09, 2014, 04:55:34 PM by Clickbeetle »

To lack feeling is to be dead, but to act on every feeling is to be a child.
-Brandon Sanderson, The Way of Kings

Offline FOTEPX

  • Your dad
  • Giga Heavyweight
  • Posts: 6797
  • Rep: 5
  • Thank you, meow.
    • Bamzookiman130
    • View Profile
    • Awards
  • Skype: f0tepx
  • Discord: Shima33 #9110
Re: New Flipper AI
« Reply #1 on: February 18, 2012, 11:50:37 PM »
Clickbeetle...

Did I ever tell you that I FLIPPIN' LOVE YOU!?


Currently listening to: Marblehead Johnson - The Bluetones

Offline Pwnator

  • *
  • Posts: 6676
  • Rep: 15
  • Awards BOTM Winner
    • View Profile
    • http://pwnator.tumblr.com
    • Awards
  • See profile for gamer tags: Yes
Re: New Flipper AI
« Reply #2 on: February 19, 2012, 01:38:51 AM »
Did I ever tell you that I FLIPPIN' LOVE YOU!?

Clash Cubes 1 - Grey Matter (Runner-Up)
King of Karnage - Sideshow Freak (Runner-Up, Best Engineered)
Rust In Pieces - Paper Cut 3 (Grand Champion, Most Dangerous Bot)
Wheely Tag Tournament - Ion Thruster (Grand Champion, along with Ounces' DiSemboweLment)
UK vs USA - Dark Striker (Grand Champion)
Rust In Pieces 2 - Claymore (Runner-Up, Favourite Bot)
BBEANS 6 - Infection 4 (Runner-Up)
RA2 Team Championships - Serious Business, Skeksis (Runner-Up, along with Scrappy, S_M, and Badnik)
RA2 Team Championships 2 - The Other Stig (Runner-Up, along with Scrappy, S_M, Badnik, 090901, and R1885)
Replica Wars 3 - Abaddon (Runner-Up, Luckiest Bot)
BroBots - wheebot & yaybot (Runner-Up)
Robo Zone 2 - Dipper (4th place, Survival Champion, & Best Axle Bot)
ARBBC - The Covenant (3rd place, BW Rumble Winner, Most Feared BW)

Offline Jonzu95

  • Giga Heavyweight
  • Posts: 12638
  • Rep: -28
    • View Profile
    • Awards
Re: New Flipper AI
« Reply #3 on: February 19, 2012, 01:50:18 AM »
Did I ever tell you that I FLIPPIN' LOVE YOU!?

Offline Philippa

  • The Queen of GTM
  • Giga Heavyweight
  • Posts: 6186
  • Rep: 0
  • ✊ Viva la Standard! ✊
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: New Flipper AI
« Reply #4 on: February 19, 2012, 03:37:40 AM »
Did I ever tell you that I FLIPPIN' LOVE YOU!?


Edit: Ninja'd

Offline Naryar

  • Posts: 23278
  • Rep: 20
  • hybrids oui oui
    • http://www.youtube.com/us
  • Awards BOTM Winner
    • View Profile
    • Awards
  • Skype: TheMightyNaryar
Re: New Flipper AI
« Reply #5 on: February 19, 2012, 03:48:13 AM »
Stop spamming this thread !

Nice job click, there's just something... does the .py mechanism that stops the flipper detects forward speed, rotational speed or both ? I suppose it detects forward speed. If it doesn't detect rotational speed, then i can just enter a SnS against your flipper and be all :trollface .


Offline Thyrus

  • *
  • Posts: 6218
  • Rep: 19
  • Back to purple '17
    • http://www.youtube.com/Th
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: New Flipper AI
« Reply #6 on: February 19, 2012, 03:54:03 AM »
This comes a few weeks to late. With this Spawn Again would`ve beaten Thor in Sonnys wikiwars 2 :p

very nice stuff. will check it out later. someone give this guy a reputation boost

Offline Pwnator

  • *
  • Posts: 6676
  • Rep: 15
  • Awards BOTM Winner
    • View Profile
    • http://pwnator.tumblr.com
    • Awards
  • See profile for gamer tags: Yes
Re: New Flipper AI
« Reply #7 on: February 19, 2012, 03:59:55 AM »
does the .py mechanism that stops the flipper detects forward speed, rotational speed or both ?

IIRC it detects movement by checking the distance between the flipper and the opponent. So if the SnS doesn't use MeltyBrain, it won't flip.
Clash Cubes 1 - Grey Matter (Runner-Up)
King of Karnage - Sideshow Freak (Runner-Up, Best Engineered)
Rust In Pieces - Paper Cut 3 (Grand Champion, Most Dangerous Bot)
Wheely Tag Tournament - Ion Thruster (Grand Champion, along with Ounces' DiSemboweLment)
UK vs USA - Dark Striker (Grand Champion)
Rust In Pieces 2 - Claymore (Runner-Up, Favourite Bot)
BBEANS 6 - Infection 4 (Runner-Up)
RA2 Team Championships - Serious Business, Skeksis (Runner-Up, along with Scrappy, S_M, and Badnik)
RA2 Team Championships 2 - The Other Stig (Runner-Up, along with Scrappy, S_M, Badnik, 090901, and R1885)
Replica Wars 3 - Abaddon (Runner-Up, Luckiest Bot)
BroBots - wheebot & yaybot (Runner-Up)
Robo Zone 2 - Dipper (4th place, Survival Champion, & Best Axle Bot)
ARBBC - The Covenant (3rd place, BW Rumble Winner, Most Feared BW)

Offline Clickbeetle

  • *
  • Posts: 3375
  • Rep: 21
  • In Soviet Russia, bugs stomp YOU!
  • Awards BOTM Winner
    • View Profile
    • Beetle Bros site
    • Awards
Re: New Flipper AI
« Reply #8 on: February 19, 2012, 03:21:44 PM »
Stop spamming this thread !

Nice job click, there's just something... does the .py mechanism that stops the flipper detects forward speed, rotational speed or both ? I suppose it detects forward speed. If it doesn't detect rotational speed, then i can just enter a SnS against your flipper and be all :trollface .

No, my flipper will be the one that's all  :trollface  as it waits safely out of range of your SnS until it begins to be counted out... at which point your SnS will have to move and the flipper will attack it while it's not spinning.
 
Also, the movement detection works by measuring how far the opponent moves in a certain time.  The default settings are if the opponent doesn't move at least 1 meter in any direction in 3 seconds, to consider them immobile.  These settings seem to work well in testing but they can be tweaked to preference in Bindings as well.

To lack feeling is to be dead, but to act on every feeling is to be a child.
-Brandon Sanderson, The Way of Kings

Offline Jack Daniels

  • *
  • Posts: 2719
  • Rep: 9
  • Losing Tournaments with Style
    • matt.morrill.12
  • Awards BOTM Winner
    • View Profile
    • My abandoned online RPG project.
    • Awards
Re: New Flipper AI
« Reply #9 on: February 19, 2012, 03:49:15 PM »
Geordi Smart.

Offline cephalopod

Re: New Flipper AI
« Reply #10 on: February 20, 2012, 05:45:44 AM »
This looks awesome! If it does the same stuff in VS mode, I think I may be using this in future :P
bristol bot builders / two headed death flamingo / snappy robots
//
kindest and friendliest '13, '15, '16, '17 / favourite staff member '14, '15

Offline Badnik96

  • tired of your shit
  • *
  • Posts: 17536
  • Rep: 3
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: New Flipper AI
« Reply #11 on: February 20, 2012, 11:13:43 AM »
I will be using this for BoF2.

Thank you Click.

Offline Naryar

  • Posts: 23278
  • Rep: 20
  • hybrids oui oui
    • http://www.youtube.com/us
  • Awards BOTM Winner
    • View Profile
    • Awards
  • Skype: TheMightyNaryar
Re: New Flipper AI
« Reply #12 on: February 21, 2012, 02:18:15 AM »
Stop spamming this thread !

Nice job click, there's just something... does the .py mechanism that stops the flipper detects forward speed, rotational speed or both ? I suppose it detects forward speed. If it doesn't detect rotational speed, then i can just enter a SnS against your flipper and be all :trollface .

No, my flipper will be the one that's all  :trollface  as it waits safely out of range of your SnS until it begins to be counted out... at which point your SnS will have to move and the flipper will attack it while it's not spinning.
 
Also, the movement detection works by measuring how far the opponent moves in a certain time.  The default settings are if the opponent doesn't move at least 1 meter in any direction in 3 seconds, to consider them immobile.  These settings seem to work well in testing but they can be tweaked to preference in Bindings as well.

And then I counter with a slow FBS.py ?

Offline Hercules

  • Heavyweight
  • Posts: 459
  • Rep: 1
  • The Argentinian member that loves chicken
    • View Profile
    • Awards
  • Skype: HLPablo2
Re: New Flipper AI
« Reply #13 on: February 24, 2012, 08:31:58 PM »
The flipper py detectes when an opponent is upside down so..
what happen if a flipper faces an Ultimate sacriface style bot?








Click us!!!!!!!!!!!

Offline Pwnator

  • *
  • Posts: 6676
  • Rep: 15
  • Awards BOTM Winner
    • View Profile
    • http://pwnator.tumblr.com
    • Awards
  • See profile for gamer tags: Yes
Re: New Flipper AI
« Reply #14 on: February 24, 2012, 08:44:45 PM »
The flipper py detectes when an opponent is upside down so..
what happen if a flipper faces an Ultimate sacriface style bot?

Sacrifice-style bots still move while inverted, so the flipper's still gonna do its job.
Clash Cubes 1 - Grey Matter (Runner-Up)
King of Karnage - Sideshow Freak (Runner-Up, Best Engineered)
Rust In Pieces - Paper Cut 3 (Grand Champion, Most Dangerous Bot)
Wheely Tag Tournament - Ion Thruster (Grand Champion, along with Ounces' DiSemboweLment)
UK vs USA - Dark Striker (Grand Champion)
Rust In Pieces 2 - Claymore (Runner-Up, Favourite Bot)
BBEANS 6 - Infection 4 (Runner-Up)
RA2 Team Championships - Serious Business, Skeksis (Runner-Up, along with Scrappy, S_M, and Badnik)
RA2 Team Championships 2 - The Other Stig (Runner-Up, along with Scrappy, S_M, Badnik, 090901, and R1885)
Replica Wars 3 - Abaddon (Runner-Up, Luckiest Bot)
BroBots - wheebot & yaybot (Runner-Up)
Robo Zone 2 - Dipper (4th place, Survival Champion, & Best Axle Bot)
ARBBC - The Covenant (3rd place, BW Rumble Winner, Most Feared BW)

Offline Badnik96

  • tired of your shit
  • *
  • Posts: 17536
  • Rep: 3
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: New Flipper AI
« Reply #15 on: February 24, 2012, 10:29:25 PM »
Well the new py has already claimed victims in BoF2, so I have to approve this :D Great job again Click.

Offline Resetti's Replicas

  • *
  • Posts: 4399
  • Rep: 18
  • Replica King
    • ResettisReplicas
  • Awards BOTM Winner
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: New Flipper AI
« Reply #16 on: February 25, 2012, 03:51:17 PM »
That's awesome!  Would it be possible to do for Omni and OmniMultiZone too?

Offline Clickbeetle

  • *
  • Posts: 3375
  • Rep: 21
  • In Soviet Russia, bugs stomp YOU!
  • Awards BOTM Winner
    • View Profile
    • Beetle Bros site
    • Awards
Re: New Flipper AI
« Reply #17 on: February 29, 2012, 12:14:58 AM »
That's awesome!  Would it be possible to do for Omni and OmniMultiZone too?

No need really... the new Flipper.py can do anything Omni can do (except use rammer tactics; I'll add that if there's ever a need for it) and it has support for 2 smart zones.

To lack feeling is to be dead, but to act on every feeling is to be a child.
-Brandon Sanderson, The Way of Kings

Offline Gropaga

  • Heavyweight
  • Posts: 560
  • Rep: -2
  • "0" is the past and "1" is the future
    • View Profile
    • Awards
Re: New Flipper AI
« Reply #18 on: February 29, 2012, 03:36:33 AM »
That's awesome!  Would it be possible to do for Omni and OmniMultiZone too?

No need really... the new Flipper.py can do anything Omni can do (except use rammer tactics; I'll add that if there's ever a need for it) and it has support for 2 smart zones.
I used New Fliper.py on emergency and it became idiot affter ripping all of its flipper because it used rammer tactics.
Revolutionary Revolution

Offline Clickbeetle

  • *
  • Posts: 3375
  • Rep: 21
  • In Soviet Russia, bugs stomp YOU!
  • Awards BOTM Winner
    • View Profile
    • Beetle Bros site
    • Awards
Re: New Flipper AI
« Reply #19 on: March 04, 2012, 08:49:44 PM »
Get the new Tactics.py; it won't be an idiot then. ;)
 
Also, it should switch tactics regardless of which Flipper.py it is using.  I didn't touch any of that code.

To lack feeling is to be dead, but to act on every feeling is to be a child.
-Brandon Sanderson, The Way of Kings