Difference between revisions of "FBS.py"

From RA2Wiki
Jump to navigation Jump to search
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
== Background Info ==
 
== Background Info ==
  
An [[AI Python file]] originally written by [[Apanx]] for Translational Drift FBS robots (Nicknamed Melty Brain). Simply the AI allows a robot to follow an opponent which spinning its self around using the drive.
+
An [[AI Python file]] originally written by [[Apanx]] for Translational Drift SnS robots (Nicknamed Melty Brain). Simply the AI allows a robot to follow an opponent which spinning its self around using the drive.
 +
 
 +
NOT to be confused with the [[FBS]] robot type that has it's drive motors on another motor.
  
 
Slowly gained popularity after is public release and is now quite heavily used (especially by [[Naryar]] and [[G.K.]])
 
Slowly gained popularity after is public release and is now quite heavily used (especially by [[Naryar]] and [[G.K.]])
Line 7: Line 9:
 
== Versions / Variants ==  
 
== Versions / Variants ==  
  
'''FBSPlus.py''' Modded by Naryar, It is simply FBS.py with separate spinning weapon support.  
+
'''FBSPlus.py''' Modded by Naryar, It is simply FBS.py with separate spinning weapon support. Recently modified by [[Clickbeetle]] for BBEANS 6 to make it less laggy in videos.
  
'''FBSInvertDir.py''' Also Modded by Naryar, FBS.py that changes spinning direction of the robot when inverted, very helpful for unidirectional weaponry robots (robots that only deal damage one direction)
+
'''FBSInvertDir.py''' Also Modded by Naryar, FBS.py that changes spinning direction of the robot when inverted, very helpful for unidirectional weaponry robots (robots that only deal damage one direction). As FBSPlus, it also was modified by Clickbeetle for less lag.
  
'''FBS.py (Low Lag)''' Recently modified by [[Clickbeetle]] for BBEANS 6 to make it less laggy in videos.
 
  
 
== How to wire ==
 
== How to wire ==
Line 26: Line 27:
  
 
''''range':''' Same as [[Spinner.py]], but default here is 40.
 
''''range':''' Same as [[Spinner.py]], but default here is 40.
 +
 +
 +
== Example Bindings Line ==
 +
 +
    list.append(("Feeblemind","FBS",{'invertible':True,'nose':math.pi*18/10,'radius':.3,'topspeed':30,'throttle':100,'turn':80,'turnspeed':5,'weapons':(28,)}))
  
 
== Examples of RA2 Robots ==
 
== Examples of RA2 Robots ==
  
[[Feeblemind]], [[Cataclysm]] 2...
+
[[Feeblemind]], [[Cataclysm]] 2
  
 
== Examples of Real Robots ==  
 
== Examples of Real Robots ==  

Latest revision as of 04:46, 9 June 2010

Background Info

An AI Python file originally written by Apanx for Translational Drift SnS robots (Nicknamed Melty Brain). Simply the AI allows a robot to follow an opponent which spinning its self around using the drive.

NOT to be confused with the FBS robot type that has it's drive motors on another motor.

Slowly gained popularity after is public release and is now quite heavily used (especially by Naryar and G.K.)

Versions / Variants

FBSPlus.py Modded by Naryar, It is simply FBS.py with separate spinning weapon support. Recently modified by Clickbeetle for BBEANS 6 to make it less laggy in videos.

FBSInvertDir.py Also Modded by Naryar, FBS.py that changes spinning direction of the robot when inverted, very helpful for unidirectional weaponry robots (robots that only deal damage one direction). As FBSPlus, it also was modified by Clickbeetle for less lag.


How to wire

Very easy. FBS.py uses just Forward and LeftRight analog controls and FBSPlus.py uses an additional Spin control.

Binding Variables

'spinspeed': (values : 0 to infinity, but 20 is already more than enough) Minimum turning speed the bot need to attain. Default value is 6. Higher means less translational speed, but more rotational speed - putting it high enough would make it a normal SnS.

'direction': (value : 1 or -1) The spinning direction (1 is clockwise, -1 is counterclockwise). Default is 1.

'accuracy': ?

'range': Same as Spinner.py, but default here is 40.


Example Bindings Line

   list.append(("Feeblemind","FBS",{'invertible':True,'nose':math.pi*18/10,'radius':.3,'topspeed':30,'throttle':100,'turn':80,'turnspeed':5,'weapons':(28,)}))

Examples of RA2 Robots

Feeblemind, Cataclysm 2

Examples of Real Robots

Y-Pout, Melty Brain