Author Topic: Electric Hammer Help  (Read 1829 times)

Offline Philippa

  • The Queen of GTM
  • Giga Heavyweight
  • Posts: 6186
  • Rep: 0
  • ✊ Viva la Standard! ✊
  • Awards BOTM Winner
    • View Profile
    • Awards
Electric Hammer Help
« on: February 09, 2018, 10:31:38 AM »
electrichammer.png

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?

Offline doot

Re: Electric Hammer Help
« Reply #1 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.

Offline Philippa

  • The Queen of GTM
  • Giga Heavyweight
  • Posts: 6186
  • Rep: 0
  • ✊ Viva la Standard! ✊
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: Electric Hammer Help
« Reply #2 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.

Offline kix

  • RR2 dev
  • *
  • Posts: 3452
  • Rep: -3
  • H
    • View Profile
    • Awards
Re: Electric Hammer Help
« Reply #3 on: February 09, 2018, 11:04:17 AM »
Use judge.py
Nice to se my bot ****s up

Offline Philippa

  • The Queen of GTM
  • Giga Heavyweight
  • Posts: 6186
  • Rep: 0
  • ✊ Viva la Standard! ✊
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: Electric Hammer Help
« Reply #4 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.
« Last Edit: February 09, 2018, 12:19:32 PM by Philippa »

Offline 090901

  • alcoholic in denial
  • *
  • Posts: 7005
  • Rep: 22
  • :mrgreen:
  • Awards Donated money for site hosting 2019 GTMCS2 Divison Winner GTMCS Division Winner
    • View Profile
    • Awards
Re: Electric Hammer Help
« Reply #5 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,)}))

Offline kix

  • RR2 dev
  • *
  • Posts: 3452
  • Rep: -3
  • H
    • View Profile
    • Awards
Re: Electric Hammer Help
« Reply #6 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

Offline Philippa

  • The Queen of GTM
  • Giga Heavyweight
  • Posts: 6186
  • Rep: 0
  • ✊ Viva la Standard! ✊
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: Electric Hammer Help
« Reply #7 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:

Offline doot

Re: Electric Hammer Help
« Reply #8 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 :/)

Offline Jaydee99

  • Waltuhweight
  • *
  • Posts: 1938
  • Rep: -23
  • :/
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: Electric Hammer Help
« Reply #9 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.

Offline Philippa

  • The Queen of GTM
  • Giga Heavyweight
  • Posts: 6186
  • Rep: 0
  • ✊ Viva la Standard! ✊
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: Electric Hammer Help
« Reply #10 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:
code.png

Offline Dreamcast

  • Posts: 1431
  • Rep: 1
    • View Profile
    • Awards
Re: Electric Hammer Help
« Reply #11 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.

Offline 09090901

  • competitive irl
  • *
  • Posts: 1742
  • Rep: 22
  • anti-boomer super soldier
    • View Profile
    • Awards
Re: Electric Hammer Help
« Reply #12 on: February 09, 2018, 04:19:18 PM »
I think that's enough technical support for one thread
DSL-IRL is the libtard’s meta. Go drink more soylent, retard! #BLUELIVESMATTER