Author Topic: AI-ing (.py files, coding, nose-orienting R+D, and help)  (Read 158219 times)

Offline Lightning S.

  • Heavyweight
  • Posts: 440
  • Rep: 6
  • no one knows except the nose
    • https://www.youtube.com/c
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1280 on: October 18, 2017, 05:26:24 PM »
i changed all the "engage"s to "evade"s in the wimpomni py file and that didn't seem to do anything. is there a specific line/lines i need to copy and paste over?
sorry if these are stupid questions btw

Offline Asbestosstar

  • Most Bizzare of 2017. Also2nd Best new host of 2017
  • Super Heavyweight
  • Posts: 862
  • Rep: -4
    • Asbestosstar Gaming
    • View Profile
    • Asbestosstar.com
    • Awards
  • See profile for gamer tags: Yes
  • Skype: Asbestosstar
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1281 on: October 18, 2017, 06:56:44 PM »
Managed to edit together a new AI code. No idea if this has been done before, but I figured it'd be useful.

https://gametechmods.com/uploads/files/7620WimpOmni.rar

This AI, as you can probably tell by its name, is a small variation on the standard Omni py file. Instead of switching to the Shove tactic when its weapons runs out, it instead switches to Evade (which is within Tactics_2.py, which I've included in the rar for ease of access). So instead of suiciding onto the opponent's remaining weapons, it runs away.

Bump

Glad to see people are still using and adapting my Omni.py

Didn't know if it was still useful for people to AI their bots or if they had moved to something majorily different. That was some 12ish years ago.

Starcore
Wow, YOu made that?

I cant belive, i still use it. IT AWWSOME

Offline PopsicleStick :D

  • Antweight
  • Posts: 5
  • Rep: 0
  • A Noob...
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1282 on: October 21, 2017, 01:43:31 AM »
I didn't took enough time time (an hour maybe) to search about "How to determine a component ID in the bindings.py file", but I couldn't find any info about that. So actually, how DO you (or I,whatever), determine a component ID? :confused:

Offline Fracture

  • Super Mega Hyper Giga
  • Ultra Heavyweight
  • Posts: 1506
  • Rep: 11
  • how about i shove my big dog up your hanky panky
  • Awards GTMCS2 Divison Winner BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1283 on: October 21, 2017, 09:53:35 AM »
Do you mean how to fill out the weapons tuple for a bot's AI line, like 'weapons':(16,17,18,19)? Easiest way is to download apanx's .bot exporter as it tells you all the components and their corresponding IDs. Or you can go into the file with Notepad++ and count in which order each component was attached with the first attached component being ID 1.

Offline PopsicleStick :D

  • Antweight
  • Posts: 5
  • Rep: 0
  • A Noob...
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1284 on: October 21, 2017, 02:25:20 PM »
Do you mean how to fill out the weapons tuple for a bot's AI line, like 'weapons':(16,17,18,19)? Easiest way is to download apanx's .bot exporter as it tells you all the components and their corresponding IDs. Or you can go into the file with Notepad++ and count in which order each component was attached with the first attached component being ID 1.
Nice man!! I should be doing that tomorrow right after I wake up, err... Thanks a lot Fracture! I actually already came across the bot exporter but never thought it would be useful :claping

Offline Lightning S.

  • Heavyweight
  • Posts: 440
  • Rep: 6
  • no one knows except the nose
    • https://www.youtube.com/c
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1285 on: November 09, 2017, 01:51:31 PM »
trying to ai a heroic  sacrifice type bot (the kind that flips then fights because they run upside down). inverts just fine, but this happens once it's up:

bindings:
Code: [Select]
    list.append(("BANNED","Popup",{'nose':math.pi,'invertible':True,'radius':1,'topspeed':100,'throttle':100,'turn':100,'turnspeed':2.5,'NoChassisTime':2,'RunUpsideDown':1,'weapons':(0,)}))

please help me

Offline Badnik96

  • tired of your shit
  • *
  • Posts: 17537
  • Rep: 3
    • Badnik96GTM
  • Awards BOTM Winner
    • View Profile
    • BattleBots Wiki
    • Awards
  • See profile for gamer tags: Yes
  • Skype: Badnik96
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1286 on: November 09, 2017, 01:58:08 PM »
looks like your drive is wired backwards and your turnspeed is too high

Offline Lightning S.

  • Heavyweight
  • Posts: 440
  • Rep: 6
  • no one knows except the nose
    • https://www.youtube.com/c
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1287 on: November 09, 2017, 02:23:53 PM »
working now, thanks. wondering if i can make it more aggressive though, as its smartzone is kinda high up and it just stops moving forward upon simply touching another bot

Offline jdg37

  • Heavyweight
  • Posts: 496
  • Rep: 0
  • I got kids
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1288 on: November 30, 2017, 07:35:45 PM »
So any ideas for AIing a Gabriel style vertical thwack? Maybe same as TRFBD?

Trying to run it like Gadreel from SoG, but that AI seems currently mia with Rob.

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
« Last Edit: December 01, 2017, 08:38:26 AM by 090901 »

Offline SagarisRA2

  • Orc's Favourite Son
  • Middleweight
  • Posts: 258
  • Rep: 4
    • https://www.youtube.com/c
    • View Profile
    • Awards

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: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1291 on: December 01, 2017, 08:38:37 AM »
fixxed

Offline jdg37

  • Heavyweight
  • Posts: 496
  • Rep: 0
  • I got kids
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1292 on: December 01, 2017, 11:28:53 AM »
Gracias, will hopefully test this evening

Offline RedAce

  • Host of The Award Winning Deathmatch Series
  • *
  • Posts: 3966
  • Rep: 21
  • Yep, I'm that RedAce guy.
  • Awards BOTM Winner
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
  • Skype: redaceofsp4des
  • Discord: ThatRedAceGuy#3618
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1293 on: July 07, 2018, 03:54:43 PM »
So I'm having a bit of trouble AI'ing this thing.  By that, I mean the weapon really doesn't want to work.  I was suggested to fix the MotorID, I messed around with the StartAngle, and yet it doesn't want to attack.  Anyone know how to fix this?



Code: [Select]
    list.append(("Executioner","Judge",{'beta':-64000,'MotorID':0,'StartAngle':-math.pi/2,'reload':5,'radius':1,'topspeed':100,'throttle':100,'turn':100,'turnspeed':2.5,'weapons':(0,)}))

Online apanx

Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1294 on: July 08, 2018, 09:04:07 AM »
Set MotorID to the component ID of the spinmotor for the weapon. Setting it to 0 is wrong.
Check the basic things as well: Hammer spinmotor wired to analog control named Hammer, smart zone named weapon

Also negative beta applies constant downward force on the robot using plus.force
Avoid setting turn to 100 as this makes the minimum input on Turning to 100, which leads to crabbing motions when combined with low turnspeed.

Offline FOTEPX

  • Your dad
  • Giga Heavyweight
  • Posts: 6797
  • Rep: 5
  • Thank you, meow.
    • Bamzookiman130
    • View Profile
    • Awards
  • Skype: f0tepx
  • Discord: Shima33 #9110
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1295 on: August 11, 2018, 02:08:10 AM »
How do I get the 'weapons' value right at the end of a bot's AI string? I want to have a bot that, once it loses all it's weapons, it runs inverted - I'll program the .py, just need to know how to get the weapons value right so it properly detects when it's lost them.


Currently listening to: Marblehead Johnson - The Bluetones

Offline Pwnator

  • *
  • Posts: 6676
  • Rep: 15
  • Awards BOTM Winner
    • View Profile
    • http://pwnator.tumblr.com
    • Awards
  • See profile for gamer tags: Yes
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1296 on: August 11, 2018, 02:26:36 AM »
Use apanx's bot exporter.
Clash Cubes 1 - Grey Matter (Runner-Up)
King of Karnage - Sideshow Freak (Runner-Up, Best Engineered)
Rust In Pieces - Paper Cut 3 (Grand Champion, Most Dangerous Bot)
Wheely Tag Tournament - Ion Thruster (Grand Champion, along with Ounces' DiSemboweLment)
UK vs USA - Dark Striker (Grand Champion)
Rust In Pieces 2 - Claymore (Runner-Up, Favourite Bot)
BBEANS 6 - Infection 4 (Runner-Up)
RA2 Team Championships - Serious Business, Skeksis (Runner-Up, along with Scrappy, S_M, and Badnik)
RA2 Team Championships 2 - The Other Stig (Runner-Up, along with Scrappy, S_M, Badnik, 090901, and R1885)
Replica Wars 3 - Abaddon (Runner-Up, Luckiest Bot)
BroBots - wheebot & yaybot (Runner-Up)
Robo Zone 2 - Dipper (4th place, Survival Champion, & Best Axle Bot)
ARBBC - The Covenant (3rd place, BW Rumble Winner, Most Feared BW)

Offline CrustyRaisins

  • Antweight
  • Posts: 14
  • Rep: 0
  • Probably trash.
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1297 on: February 04, 2019, 03:52:14 PM »
How would I AI a robot with a geared beta motor and a flaming hammer?
Made you look!

Offline Redalert

  • The inventor of Wandering Spinners and invincirammers
  • Ultra Heavyweight
  • Posts: 1349
  • Rep: -48
  • Yes, I’m an outsider.
    • View Profile
    • RedStorm's RA2 website
    • Awards
  • Discord: RedStorm
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1298 on: February 04, 2019, 04:13:04 PM »
That's rather tricky, but...
>wire a button titled "Fire" to the flamethrower and hammer. Have the hammer fire down.
>wire another button titled "Srimech." Have it move the hammer back to the loaded position.
>Incorporate your chassis into the hammer so this works properly, and use an Omni binding for it.

Still not getting it? ask me to post a tutorial about it.


Offline pokebro14

  • Your mother
  • Super Heavyweight
  • Posts: 1091
  • Rep: 3
  • Interior crocodile alligator 🤔
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1299 on: February 04, 2019, 04:52:48 PM »
dont ask him to make a tutorial on it.
Achievements and tournament placings