gametechmods

Robot Arena => General Support => Topic started by: kix on September 27, 2018, 10:04:58 AM

Title: Judge.py not working on a bot
Post by: kix on September 27, 2018, 10:04:58 AM
So to help a host out, i decided to ai my own entrant. Used Judge.py, and a line from dsl replica
Bot retracts the hammer, but never fires/self-rights it.
What did i do wrong?
AI Line:
    list.append(("Poison Berry","Judge",{'MotorID':85,'StartAngle':math.pi*2,'reload':3,'nose':math.pi*2,'radius':0.5,'topspeed':100,'throttle':100,'turn':60,'turnspeed':2.5,'weapons':(88,)}))
BOT:

Lol, my 2000th post, yay
Title: Re: Judge.py not working on a bot
Post by: Badger on September 27, 2018, 10:07:54 AM
Your start angle is probably wrong. Try other values, starting at -math.pi*2
Title: Re: Judge.py not working on a bot
Post by: kix on September 27, 2018, 11:39:21 AM
Nope, doesnt work. One thing i noticed is that no matter what angle, axe retracts. Also bot works perfectly fine with frenzy/THZ.py
Title: Re: Judge.py not working on a bot
Post by: Clickbeetle on October 01, 2018, 01:07:16 AM
Also bot works perfectly fine with frenzy/THZ.py

In that case it's probably a smart zone naming issue.  Frenzy/THZ.py use a smart zone named "whipzone"; Judge uses one named "weapon".

If that's not the problem, try increasing 'tolerance' in Bindings, or 'reload' if it is a slow hammer.