gametechmods
Robot Arena => General Support => Topic started by: Gazea2 on March 23, 2010, 01:10:24 PM
-
I have A.I-ed before but I have never A.I-ed a poker. Whenever it moves it swerves and it won't fire it's weapon. I have labelled all of the controls correctly, though. :confused:
Here are the bindings:
list.append(("HammerHead A.I","Poker",{'invertible':True,'radius':0.1,'nose':math.pi*2.5, 'topspeed':200,'throttle':150,'turnspeed':5,'weapons':(13,14,15,16,17)}))
-
Two thing. Did you add a smartzone called weapon? Did you use the right nose value?
-
Check you have made all the controls move all the motors needed, sometimes you might miss out a "Clockwise" on one motor or something.
-
I have added a smartzone called weapon and whenever I drive it it doesn't swerve.
-
Did you add the SZ before or after I told you?
-
Did you add the SZ before or after I told you?
Before.
-
weapon control named Fire?
-
weapon control named Fire?
Yes.
-
With a capital?
-
With a capital?
Yes.
-
And the SZ doesn't have a capital?
-
And the SZ doesn't have a capital?
Yes.
-
And you have a completely clean, unmodded poker.py?
-
And you have a completely clean, unmodded poker.py?
Yes, I haven't touched it at all.
-
And you have definitely spelt Fire and weapon correctly?
-
And you have definitely spelt Fire and weapon correctly?
Yes.
EDIT: The piston fires now but it still drives weirdly... It snakes around the arena. :confused:
-
You gave it a topspeed of 200. That might be a tad too much.
-
You gave it a topspeed of 200. That might be a tad too much.
Before it was 150 but it still started to snake.
-
Try 99.
-
Try 99.
Ok. :bigsmile:
-
Now it snakes sometimes. :confused:
Any other suggestions?
EDIT: Thanks, G.K! I changed the top speed to 99 and the throttle. :bigsmile:
-
So it works?
-
So it works?
Yes, thanks! :bigsmile:
-
Now it snakes sometimes. :confused:
Any other suggestions?
EDIT: Thanks, G.K! I changed the top speed to 99 and the throttle. :bigsmile:
when in doubt set all values to the defaults (located at the top of the bindings) have your robot running fine then tweak out what you want ;)