gametechmods
Robot Arena => General Support => Topic started by: Philippa on February 09, 2018, 10:31:38 AM
-
[ This attachment cannot be displayed inline in 'Print Page' view ]
list.append(("Return Of Panic Attack B","ElectricHammer",{'nose':math.pi*2,'invertible':False,'radius':0.5,'topspeed':100,'throttle':100,'turn':100,'turnspeed':2.5,'MotorID':23,'NoChassisTime':2,'StartAngle':-math.pi*2,'SwingTime':5,'weapons':(0,)}))
(Download for the .bot file should be at the bottom of the post if you wanna check it out.)
So I've got this one robot left to AI for Swiss Army Warfare but I don't really know how to go about doing that. It drives around fine, but the hammer just doesn't do anything, it stays in the starting position (fully upright) and that's it. It doesn't move when something's in the Smartzone and it doesn't move when it's upside down.
The Beta motor is the 24th component according to the .bot file, so I think that makes it the ID 23. Also I've tried a few values for StartAngle but they don't have any effect.
Any suggestions?
-
The "Fire" Analog should be named to "Hammer", if memory serves me right. Haven't AI'd in a while, though, so I could be very wrong.
-
I thought that was Frenzy.py? I tried it and the hammer retracts fully back but won't fire at any point, so it's a little bit of progress.
-
Use judge.py
Nice to se my bot ****s up
-
Not really getting anywhere using Judge.
Edit: I've checked the wiring for The Judge and Beta, both are in line with ROPA here, and I've even tried just copying the exact same bindings from both robots, but I still have exactly the same problems. The hammer retracts, but won't fire under any circumstances.
-
tip: like never listen to kix when it comes to AIing
list.append(("Return Of Panic Attack B","THZ",{'nose':math.pi*2,'invertible':False,'radius':0.5,'topspeed':100,'throttle':100,'turn':100,'turnspeed':2.5,'NoChassisTime':2,'weapons':(0,)}))
-
tip: like never listen to kix when it comes to AIing
Tip: me acually telling a tip is a joke
-
tip: like never listen to kix when it comes to AIing
list.append(("Return Of Panic Attack B","THZ",{'nose':math.pi*2,'invertible':False,'radius':0.5,'topspeed':100,'throttle':100,'turn':100,'turnspeed':2.5,'NoChassisTime':2,'weapons':(0,)}))
That seems to do the trick. :heart_smiley:
-
Bollocks, could've done it faster if not for 09. Ah, well, here's a Judge.py line which I think is more reliable IMHO.
list.append(("Return Of Panic Attack B","Judge",{'nose':math.pi*2,'MotorID':24,'StartAngle':math.pi/2,'reload':6,'radius':0.5,'topspeed':100,'throttle':100,'turn':50,'turnspeed':2.5,'weapons':(56,)}))
(idunno how to put code in boxes, sorry :/)
-
When I AI robots that use the Beta hammer, the smartzone is named "whipzone", the control as "Hammer", and the bindings weapon type as "Frenzy". Hope this helps.
-
Bollocks, could've done it faster if not for 09. Ah, well, here's a Judge.py line which I think is more reliable IMHO.
list.append(("Return Of Panic Attack B","Judge",{'nose':math.pi*2,'MotorID':24,'StartAngle':math.pi/2,'reload':6,'radius':0.5,'topspeed':100,'throttle':100,'turn':50,'turnspeed':2.5,'weapons':(56,)}))
(idunno how to put code in boxes, sorry :/)
This is a much better performing binding since it retracts the hammer after each hit just fine and self rights a lot quicker. Big thanks.
Also: [ This attachment cannot be displayed inline in 'Print Page' view ]
-
tip: like never listen to kix when it comes to AIing
Tip: me acually telling a tip is a joke
You're not supposed to sh**e post in the technical support pages of a website.
-
I think that's enough technical support for one thread