What would the code be for eternalflame.py?
list.append(("Enter Bot Name","EternalFlame",{'invertible':True,'flame_range':99,'radius':0.1,'throttle':130,'topspeed':99,'turn':50,'turnspeed':2,'weapons':(0,)}))
Thank You :D
import mathdef load(list): print "Loading AI bindings" # binding format: # ( 'name of robot from .bot file', 'name of AI from script class', # {'optional constructor parameter':value, 'another':value} ) # constructor parameters: # nose - "front" of bot in radians (default 0) # invertible - can function upside-down (default False) # topspeed - speed in meters/second AI will attempt not to exceed (default 4.0) # throttle - maximum analog value AI will attempt not to exceed (default 100) # turnspeed - turning in radians/second AI will attempt not to exceed (default 2.5) # turn - maximum analog value AI will attempt not to exceed (default 60) # radius - bot radius to use for checking for hazards and walls (default 1.0) # 0 - Finished "That's where your bot will be after ten seconds with ours!" list.append(("A Torner","Spinner",{'nose':math.pi*2,'radius':0.1,'topspeed':100,'throttle':100,'turn':30,'turnspeed':5,'weapons':(8,9)})) list.append(("Assassin The Finest","DirectionalSpinner",{'invertible':True,'nose':math.pi*2,'radius':0.1,'topspeed':100,'throttle':130,'turn':60,'turnspeed':5,'weapons':(13,14,16,17,18)})) list.append(("Bang Bang","Rammer",{'nose':math.pi*2,'range':99,'radius':0.1,'topspeed':100,'throttle':130,'turn':60,'turnspeed':5,'weapons':(18,19)})) list.append(("Bashur","DirectionalSpinner",{'nose':math.pi,'radius':0.1,'topspeed':100,'throttle':130,'turn':60,'turnspeed':2.5,'weapons':(25,)})) list.append(("Beast","DirectionalSpinner",{'nose':math.pi,'radius':0.1,'topspeed':100,'throttle':130,'turn':60,'turnspeed':2.5,'weapons':(4,)})) list.append(("Bolt","Rammer",{'invertible':False,'nose':math.pi,'range':99,'radius':0.1,'topspeed':100,'throttle':80,'turn':25,'turnspeed':1.5,'weapons':(20,)})) # 1 - Finished "Badder and still bloodthirsty!" list.append(("Clusterbot Spinnys","DirectionalSpinner",{'nose':math.pi,'radius':0.1,'topspeed':100,'throttle':130,'turn':60,'turnspeed':2.5})) list.append(("Crank Dat Spine","Whipper",{'invertible':True,'nose':math.pi*2,'radius':0.2,'topspeed':100,'throttle':130,'turn':60,'turnspeed':3.5,'weapons':(10,11,12,13,14,15,16,17,18,19)})) list.append(("Cypher","DirectionalSpinner",{'invertible':True,'nose':math.pi*2,'range':500,'radius':1,'topspeed':3,'throttle':130,'turn':60,'turnspeed':5,'weapons':(27,28,29,30,35,36,37,38,39,40,41,42,43,44,45,46,47,48,53,54)})) list.append(("DarkNight","Rammer",{'nose':math.pi,'radius':0.1,'topspeed':100,'throttle':130,'turn':60,'turnspeed':2.5})) list.append(("Destiny Is Final","DirectionalSpinner",{'nose':math.pi,'radius':0.1,'range':99,'topspeed':100,'throttle':130,'turn':60,'turnspeed':2.5,'weapons':(24,25,26)})) list.append(("Flatire","DirectionalSpinner",{'nose':math.pi,'radius':0.1,'topspeed':100,'throttle':130,'turn':60,'turnspeed':2.5,'weapons':(6,23)})) # 2 - Finished "Don't need nuthin' but my truck, my shotgun, my new bots, and my REVENGE!" list.append(("Force","DirectionalSpinner",{'nose':math.pi*2,'radius':0.1,'topspeed':100,'throttle':130,'turn':60,'turnspeed':2.5})) list.append(("Foul Lem","DirectionalSpinner",{'nose':math.pi*2,'radius':.1,'range':99,'topspeed':100,'throttle':130,'turn':60,'turnspeed':3,'weapons':(3,4,5,6)})) list.append(("Frightener","Poker",{'nose':math.pi*2,'range':99,'radius':0.1,'topspeed':100,'throttle':130,'turn':30,'turnspeed':3,'weapons':(22,23,24,25)})) list.append(("Fwacker","DirectionalSpinner",{'nose':math.pi,'radius':0.1,'range':99,'topspeed':100,'throttle':130,'turn':60,'turnspeed':2.5,'weapons':(17,)})) list.append(("Harmless","Poker",{'invertible':True,'nose':math.pi,'radius':0.1,'topspeed':100,'throttle':130,'turn':60,'turnspeed':2.5,'weapons':(6,)})) list.append(("Lavra","DirectionalSpinner",{'invertible':True,'nose':math.pi*2,'radius':1,'topspeed':100,'throttle':130,'turn':60,'turnspeed':2.5,'weapons':(11,),'sweapons':(28,29,)})) # 3 - Finished "If you defeat us again, we will sneak in at night and steal your bots." list.append(("No Mercy 4 U","Poker",{'nose':math.pi*2,'range':99,'radius':0.1,'range':99,'topspeed':100,'throttle':130,'turn':60,'turnspeed':2,'weapons':(4,5)})) list.append(("Nothing Is Everything But Me","DirectionalSpinner",{'nose':math.pi*2,'radius':0.1,'topspeed':100,'throttle':130,'turn':60,'turnspeed':3.5,'weapons':(9,10)})) list.append(("Red Brawler","DirectionalSpinner",{'invertible':True,'nose':math.pi*2,'range':99,'radius':0.1,'topspeed':100,'throttle':130,'turn':60,'turnspeed':1,'weapons':(13,14,15,16)})) list.append(("Slam and Dank","Rammer",{'invertible':True,'radius':0.3,'range':2.5,'topspeed':100,'throttle':130,'turn':60,'turnspeed':3,'weapons':(25,)})) list.append(("Slam and Dank (Thwack)","Whipper",{'invertible':True,'nose':math.pi,'radius':0.1,'topspeed':100,'throttle':130,'turn':60,'turnspeed':2.5,'weapons':(19,)})) list.append(("Slice and Dice 'em","DirectionalSpinner",{'radius':0.1,'range':99,'topspeed':100,'throttle':130,'turn':60,'turnspeed':2.5,'weapons':(55,)})) # 4 - Finished "The BLACK STORM was only getting started with our old bots!" list.append(("SpamYou","Spinner",{'nose':math.pi*2,'radius':0.1,'range':99,'topspeed':100,'throttle':130,'turn':60,'turnspeed':2.5,'weapons':(19,)})) list.append(("Spikez","DirectionalSpinner",{'nose':math.pi*2,'radius':0.1,'range':99,'topspeed':100,'throttle':130,'turn':60,'turnspeed':2})) list.append(("Stein","Poker",{'nose':math.pi*2,'radius':0.1,'range':99,'topspeed':150,'throttle':130,'turn':60,'turnspeed':4,'weapons':(29,41,42)})) list.append(("Tetsuke","Poker",{'nose':math.pi,'radius':0.1,'range':99,'topspeed':100,'throttle':130,'turn':25,'turnspeed':3,'weapons':(7,)})) list.append(("Toart","DirectionalSpinner",{'invertible':True,'nose':math.pi,'radius':0.1,'range':99,'topspeed':6,'throttle':60,'turn':60,'turnspeed':2.5,'weapons':(15,)})) list.append(("Uproar","Flipper",{'invertible':False,'nose':math.pi,'range':99,'radius':0.1,'topspeed':100,'throttle':130,'turn':30,'turnspeed':3,'weapons':(25,29)})) # 5 - Finished "EMERGENCY is back with a vengeance, faster and more furious." list.append(("WeSpin","Spinner",{'nose':math.pi*2,'radius':0.1,'range':99,'topspeed':100,'throttle':130,'turn':60,'turnspeed':2.5,'weapons':(12,)})) list.append(("Yayuia","Spinner",{'nose':math.pi*2,'radius':0.1,'topspeed':100,'throttle':130,'turn':130,'turnspeed':5,'weapons':(12,17)}))
topic merged with ai topic.
5 turnspeed is way too high for anything that isn't a SnS. Look at some other AI lines (like the ones in Starcore AI v4).You can also just copy+paste other AI lines and edit the number values and name to lower the chances of it crashing.
Have you tried just wiping the offending line and starting from scratch? When you can't solve the problem with a toothpick, a sledgehammer is the next-best thing.
Quote from: Mr. AS on March 31, 2015, 07:49:08 PM5 turnspeed is way too high for anything that isn't a SnS. Look at some other AI lines (like the ones in Starcore AI v4).You can also just copy+paste other AI lines and edit the number values and name to lower the chances of it crashing.Okay (I took these from the DSL, btw). Thanks. Is that what makes the game crash before I can even enter the game?Dangit, it didn't work. I'm still not sure what's making the game crash right away.