gametechmods

Robot Arena => General Support => Topic started by: Philippa on February 09, 2018, 10:31:38 AM

Title: Electric Hammer Help
Post by: Philippa on February 09, 2018, 10:31:38 AM
 [ This attachment cannot be displayed inline in 'Print Page' view ]
Code: [Select]
    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?
Title: Re: Electric Hammer Help
Post by: doot on February 09, 2018, 10:45:59 AM
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.
Title: Re: Electric Hammer Help
Post by: Philippa on February 09, 2018, 10:53:38 AM
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.
Title: Re: Electric Hammer Help
Post by: kix on February 09, 2018, 11:04:17 AM
Use judge.py
Nice to se my bot ****s up
Title: Re: Electric Hammer Help
Post by: Philippa on February 09, 2018, 11:38:57 AM
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.
Title: Re: Electric Hammer Help
Post by: 090901 on February 09, 2018, 12:14:13 PM
tip: like never listen to kix when it comes to AIing

Code: [Select]
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,)}))
Title: Re: Electric Hammer Help
Post by: kix on February 09, 2018, 12:24:58 PM
tip: like never listen to kix when it comes to AIing
Tip: me acually telling a tip is a joke
Title: Re: Electric Hammer Help
Post by: Philippa on February 09, 2018, 12:25:34 PM
tip: like never listen to kix when it comes to AIing

Code: [Select]
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:
Title: Re: Electric Hammer Help
Post by: doot on February 09, 2018, 12:36:19 PM
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 :/)
Title: Re: Electric Hammer Help
Post by: Jaydee99 on February 09, 2018, 12:43:55 PM
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.
Title: Re: Electric Hammer Help
Post by: Philippa on February 09, 2018, 12:46:18 PM
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 ]
Title: Re: Electric Hammer Help
Post by: Dreamcast on February 09, 2018, 02:44:06 PM
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.
Title: Re: Electric Hammer Help
Post by: 09090901 on February 09, 2018, 04:19:18 PM
I think that's enough technical support for one thread