Author Topic: FBS_2 binding help  (Read 978 times)

Offline Resetti's Replicas

  • *
  • Posts: 4399
  • Rep: 18
  • Replica King
    • ResettisReplicas
  • Awards BOTM Winner
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
FBS_2 binding help
« on: June 29, 2011, 06:18:45 PM »
I'm having a problem with the FBS_2 binding.  As you know, it's programmed to stop spinning and chase its opponent after a time specified by "Chase_Time", the problem is, my robot won't ever start spinning in place again after the first time.  Can anyone help, or recommend a better binding to use? (I need one that lets the robot SnS and use spinning weapons)  Here's the code if it helps.  I set the fbs_range low because I don't want it to spin in palce unless the opponent is really close:

Code: [Select]
list.append(("13 Black","FBS_2",{'nose':math.pi,'chase_time':15,'fbs_range':30,'right':1,'PreSpinEntrance':30,'radius':0.3,'topspeed':150,'range':99,'throttle':130,'turn':60,'turnspeed':2.5,'weapons':(9,10,11,12)}))

Offline Clickbeetle

  • *
  • Posts: 3374
  • Rep: 21
  • In Soviet Russia, bugs stomp YOU!
  • Awards BOTM Winner
    • View Profile
    • Beetle Bros site
    • Awards
Re: FBS_2 binding help
« Reply #1 on: July 04, 2011, 01:58:57 AM »
Are the weapon ID's correct?  The AI "knows" when it makes contact with the opponent again based on self.TimeSinceLastGoodHit, so if the weapon ID's are wrong, the AI won't register any hits and it won't know when it should SnS again.


Also, 'fbs_range':30 is huge.  That's almost the full length of the Combat Arena.  'PreSpinEntrance':30 is also huge; it means the bot won't start SnSing until 30 seconds into the match.

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 Resetti's Replicas

  • *
  • Posts: 4399
  • Rep: 18
  • Replica King
    • ResettisReplicas
  • Awards BOTM Winner
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: FBS_2 binding help
« Reply #2 on: July 05, 2011, 09:24:52 PM »
I chose 30, becuase I thought 30 in fbs_range referred to "30% of the length of the arena."  What's a more reasonable value for fbs_range?  5? I'm most often going to be using the Robot Wars Arena.   

 I got my robot to SnS sooner than 30 seconds, I guess because of the huge range.  But yeah I didn't pay attention to the weapon ID's so that is probably the cause.

Offline Clickbeetle

  • *
  • Posts: 3374
  • Rep: 21
  • In Soviet Russia, bugs stomp YOU!
  • Awards BOTM Winner
    • View Profile
    • Beetle Bros site
    • Awards
Re: FBS_2 binding help
« Reply #3 on: July 09, 2011, 05:05:47 PM »

Ah, you'll need apanx's exporter then to get the correct weapon id's.

What's a more reasonable value for fbs_range?


Depends on the bot.  A low value lets you get closer to the opponent before you start spinning, which makes more exciting matches, but you risk getting hit before you can spin up.  If your bot can take hits then 5-10 is a good value.  If it has a really soft squishy core, then 12-20 is better.  The size of the bot also matters; a huge SHW will obviously need a bigger fbs_range than a LW.

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