gametechmods
Robot Arena => General Support => Topic started by: Resetti's Replicas 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:
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)}))
-
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.
-
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.
-
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.