gametechmods

Robot Arena => General Support => Topic started by: RTC on June 23, 2018, 05:50:36 AM

Title: Having trouble AI'ing a Judge Hammer
Post by: RTC on June 23, 2018, 05:50:36 AM
The robot will move around, but will never swing its hammer, even when another robot enters its smart zone. I've named the smart zone "weapon" and the control "Hammer" respectively, as to match the other DSL Beta hammers that use the script, but the robot will simply not use its hammer. It also doesn't even attempt to self-right, whereas the AI Beta attempts it.

Any idea what's going wrong?
Title: Re: Having trouble AI'ing a Judge Hammer
Post by: freeziez on June 23, 2018, 12:17:37 PM
Have you used the Exporter to assign the right motor to the AI?
Title: Re: Having trouble AI'ing a Judge Hammer
Post by: RTC on June 23, 2018, 12:59:18 PM
I have not, and by Exporter, do you mean exporting in the bot lab, or another program?
Title: Re: Having trouble AI'ing a Judge Hammer
Post by: freeziez on June 25, 2018, 01:23:05 PM
I have not, and by Exporter, do you mean exporting in the bot lab, or another program?

Apanx's bot exporter.
Title: Re: Having trouble AI'ing a Judge Hammer
Post by: Jaydee99 on June 26, 2018, 08:15:19 AM
The smart zone needs to be named 'whipzone', hope it helps


Also the ai name is either Frenzy or THZ if you have the py files
Title: Re: Having trouble AI'ing a Judge Hammer
Post by: Badger on June 26, 2018, 08:17:19 AM
The smart zone needs to be named 'whipzone', hope it helps


Also the ai name is either Frenzy or THZ if you have the py files
No, for servo hammers you should use Judge.py and the smartzone should just be called 'weapon'
Title: Re: Having trouble AI'ing a Judge Hammer
Post by: freeziez on June 26, 2018, 12:21:18 PM
The smart zone needs to be named 'whipzone', hope it helps


Also the ai name is either Frenzy or THZ if you have the py files
No, for servo hammers you should use Judge.py and the smartzone should just be called 'weapon'

^this
Title: Re: Having trouble AI'ing a Judge Hammer
Post by: kix on July 17, 2018, 10:26:16 AM
To Further extend this dilemma. What do i do if i have 2 servos?
Set my main servo as motorid, but it wont work. It doesnt even go down, where i set it to go
Title: Re: Having trouble AI'ing a Judge Hammer
Post by: Clickbeetle on August 07, 2018, 12:40:54 AM
Bit of a late reply, but in addition to MotorID (case sensitive - make sure it is capitalized like that in Bindings), you also need the correct StartAngle (also case sensitive).  There's no easy way to figure this out, but generally it will be 0, +/- math.pi/2, or +/- math.pi.  Guess until you get it right.

There is no script at the moment that can handle two servos.  You could perhaps wire the secondary servo to the same control and hope for the best.