Author Topic: Having trouble AI'ing a Judge Hammer  (Read 1381 times)

Offline RTC

  • Antweight
  • Posts: 89
  • Rep: -1
  • Owen Wilson on Ritalin and 'Roids
    • View Profile
    • Awards
Having trouble AI'ing a Judge Hammer
« 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?

Offline freeziez

  • Ultra Heavyweight
  • Posts: 4720
  • Rep: 2
  • He's Mr. White Christmas, he's Mr. Snow...
    • youtube.com/freeziezGTM
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: Having trouble AI'ing a Judge Hammer
« Reply #1 on: June 23, 2018, 12:17:37 PM »
Have you used the Exporter to assign the right motor to the AI?
obligatory battlebots 5 comment

GTM Awards 2011

Best Tournament: B4ttlebots (freeziez)
Best New Tournament Host: freeziez
Most Suprising Tournament: B4ttlebots (freeziez)

Offline RTC

  • Antweight
  • Posts: 89
  • Rep: -1
  • Owen Wilson on Ritalin and 'Roids
    • View Profile
    • Awards
Re: Having trouble AI'ing a Judge Hammer
« Reply #2 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?

Offline freeziez

  • Ultra Heavyweight
  • Posts: 4720
  • Rep: 2
  • He's Mr. White Christmas, he's Mr. Snow...
    • youtube.com/freeziezGTM
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: Having trouble AI'ing a Judge Hammer
« Reply #3 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.
obligatory battlebots 5 comment

GTM Awards 2011

Best Tournament: B4ttlebots (freeziez)
Best New Tournament Host: freeziez
Most Suprising Tournament: B4ttlebots (freeziez)

Offline Jaydee99

  • Waltuhweight
  • *
  • Posts: 1938
  • Rep: -23
  • :/
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: Having trouble AI'ing a Judge Hammer
« Reply #4 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

Offline Badger

  • Permanent Artifact
  • Giga Heavyweight
  • Posts: 6318
  • Rep: 3
  • I wish to be with my people
  • Awards BOTM Winner Donated money for site hosting 2019
    • View Profile
    • Awards
Re: Having trouble AI'ing a Judge Hammer
« Reply #5 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'
also lol at most toxic guy around calling others out on this sh**
Google Drive with my newer bots

Offline freeziez

  • Ultra Heavyweight
  • Posts: 4720
  • Rep: 2
  • He's Mr. White Christmas, he's Mr. Snow...
    • youtube.com/freeziezGTM
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: Having trouble AI'ing a Judge Hammer
« Reply #6 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
obligatory battlebots 5 comment

GTM Awards 2011

Best Tournament: B4ttlebots (freeziez)
Best New Tournament Host: freeziez
Most Suprising Tournament: B4ttlebots (freeziez)

Offline kix

  • RR2 dev
  • *
  • Posts: 3452
  • Rep: -3
  • H
    • View Profile
    • Awards
Re: Having trouble AI'ing a Judge Hammer
« Reply #7 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

Offline Clickbeetle

  • *
  • Posts: 3375
  • Rep: 21
  • In Soviet Russia, bugs stomp YOU!
  • Awards BOTM Winner
    • View Profile
    • Beetle Bros site
    • Awards
Re: Having trouble AI'ing a Judge Hammer
« Reply #8 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.

To lack feeling is to be dead, but to act on every feeling is to be a child.
-Brandon Sanderson, The Way of Kings