gametechmods

Robot Arena => General Support => Topic started by: Gazea2 on March 23, 2010, 01:10:24 PM

Title: A.I-ing Problem
Post 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:
Code: [Select]
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)}))
Title: Re: A.I-ing Problem
Post by: G.K. on March 23, 2010, 01:11:58 PM
Two thing. Did you add a smartzone called weapon? Did you use the right nose value?
Title: Re: A.I-ing Problem
Post by: Squirrel_Monkey on March 23, 2010, 01:12:25 PM
Check you have made all the controls move all the motors needed, sometimes you might miss out a "Clockwise" on one motor or something.
Title: Re: A.I-ing Problem
Post by: Gazea2 on March 23, 2010, 01:13:22 PM
I have added a smartzone called weapon and whenever I drive it it doesn't swerve.
Title: Re: A.I-ing Problem
Post by: G.K. on March 23, 2010, 01:14:26 PM
Did you add the SZ before or after I told you?
Title: Re: A.I-ing Problem
Post by: Gazea2 on March 23, 2010, 01:15:40 PM
Did you add the SZ before or after I told you?

Before.
Title: Re: A.I-ing Problem
Post by: G.K. on March 23, 2010, 01:18:34 PM
weapon control named Fire?
Title: Re: A.I-ing Problem
Post by: Gazea2 on March 23, 2010, 01:18:54 PM
weapon control named Fire?

Yes.
Title: Re: A.I-ing Problem
Post by: G.K. on March 23, 2010, 01:19:19 PM
With a capital?
Title: Re: A.I-ing Problem
Post by: Gazea2 on March 23, 2010, 01:19:41 PM
With a capital?

Yes.
Title: Re: A.I-ing Problem
Post by: G.K. on March 23, 2010, 01:20:05 PM
And the SZ doesn't have a capital?
Title: Re: A.I-ing Problem
Post by: Gazea2 on March 23, 2010, 01:20:25 PM
And the SZ doesn't have a capital?

Yes. 
Title: Re: A.I-ing Problem
Post by: G.K. on March 23, 2010, 01:22:27 PM
And you have a completely clean, unmodded poker.py?
Title: Re: A.I-ing Problem
Post by: Gazea2 on March 23, 2010, 01:23:54 PM
And you have a completely clean, unmodded poker.py?

Yes, I haven't touched it at all.
Title: Re: A.I-ing Problem
Post by: G.K. on March 23, 2010, 01:25:25 PM
And you have definitely spelt Fire and weapon correctly?
Title: Re: A.I-ing Problem
Post by: Gazea2 on March 23, 2010, 01:26:42 PM
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:
Title: Re: A.I-ing Problem
Post by: G.K. on March 23, 2010, 01:27:42 PM
You gave it a topspeed of 200. That might be a tad too much.
Title: Re: A.I-ing Problem
Post by: Gazea2 on March 23, 2010, 01:28:09 PM
You gave it a topspeed of 200. That might be a tad too much.

Before it was 150 but it still started to snake.
Title: Re: A.I-ing Problem
Post by: G.K. on March 23, 2010, 01:30:07 PM
Try 99.
Title: Re: A.I-ing Problem
Post by: Gazea2 on March 23, 2010, 01:30:52 PM
Try 99.

Ok.  :bigsmile:
Title: Re: A.I-ing Problem
Post by: Gazea2 on March 23, 2010, 01:36:40 PM
Now it snakes sometimes.  :confused:

Any other suggestions?

EDIT: Thanks, G.K! I changed the top speed to 99 and the throttle.  :bigsmile:
Title: Re: A.I-ing Problem
Post by: G.K. on March 23, 2010, 01:45:12 PM
So it works?
Title: Re: A.I-ing Problem
Post by: Gazea2 on March 23, 2010, 01:46:32 PM
So it works?

Yes, thanks!  :bigsmile:
Title: Re: A.I-ing Problem
Post by: JoeBlo on March 26, 2010, 02:18:58 AM
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  ;)