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

Offline R01

  • Heavyweight
  • Posts: 769
  • Rep: 1
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1260 on: October 12, 2016, 04:29:14 PM »
Well, don't just stand there, fix it.
Fork, commit, do pull request
http://crunchify.com/how-to-fork-github-repository-create-pull-request-and-merge/

https://github.com/apanx/RA2_AI/
I do have a github account even and understand the basics, but still felt like this is such a minor thing that it's better done in a bigger change instead of filling up the changelog like that(at least that's what I was once told, still think it depends on case) is it possible to do a pull request without adding the file to one's own github?
Tournament History:
Showcases:
https://gametechmods.com/forums/index.php?topic=18882.0
https://gametechmods.com/forums/index.php?topic=19197.0

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 #1261 on: October 29, 2016, 11:09:25 PM »
Code: [Select]
    list.append(("Casualty","Bee",{'invertible':True,'nose':math.pi,'whip':around,'topspeed':99,'throttle':130,'turnspeed':2.5,'turn':60,'radius':0.3,'range':99,'weapons':(1,2,3,4,5,6,7,8,9,10,11,12)}))
Every single robot past this bindings line crashes the game, including this one. What's the deal?

Online apanx

Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1262 on: October 30, 2016, 07:05:41 AM »
You missed some double quotes for the whip function specification
Code: [Select]
    list.append(("Casualty","Bee",{'invertible':True,'nose':math.pi,'whip':"around",'topspeed':99,'throttle':130,'turnspeed':2.5,'turn':60,'radius':0.3,'range':99,'weapons':(1,2,3,4,5,6,7,8,9,10,11,12)}))

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 #1263 on: November 02, 2016, 08:32:24 AM »
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.

Online apanx

Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1264 on: November 02, 2016, 02:40:02 PM »

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 #1265 on: November 04, 2016, 08:46:32 PM »
Anyone have an AI .py file that works with full-body spinners? Not SnS, I'm talking something like this:


where the chassis spins, but the drive doesn't.

I talked to apanx on discord about it but it doesn't seem like there's one readily available. I'm still kinda clueless about the whole python thing (the one i posted a few days ago was a pretty easy copy/paste job) so I'm basically stuck.


Offline R01

  • Heavyweight
  • Posts: 769
  • Rep: 1
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1266 on: November 05, 2016, 01:14:48 PM »
Anyone have an AI .py file that works with full-body spinners? Not SnS, I'm talking something like this:

(Image removed from quote.)
where the chassis spins, but the drive doesn't.

I talked to apanx on discord about it but it doesn't seem like there's one readily available. I'm still kinda clueless about the whole python thing (the one i posted a few days ago was a pretty easy copy/paste job) so I'm basically stuck.
I guess the regular HS ones won't work for some reason because the AI's using the chassis for directions?
Tournament History:
Showcases:
https://gametechmods.com/forums/index.php?topic=18882.0
https://gametechmods.com/forums/index.php?topic=19197.0

Offline Badger

  • Permanent Artifact
  • Giga Heavyweight
  • Posts: 6318
  • Rep: 3
  • I wish to be with my people
  • Awards BOTM Winner Donated money for site hosting 2019
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1267 on: November 05, 2016, 01:58:03 PM »
Anyone have an AI .py file that works with full-body spinners? Not SnS, I'm talking something like this:

(Image removed from quote.)
where the chassis spins, but the drive doesn't.

I talked to apanx on discord about it but it doesn't seem like there's one readily available. I'm still kinda clueless about the whole python thing (the one i posted a few days ago was a pretty easy copy/paste job) so I'm basically stuck.
I guess the regular HS ones won't work for some reason because the AI's using the chassis for directions?
Yes, obviously.


Maybe you could try AI-ing it like a non-melty SnS, so it just spins in place then moves when its getting counted out?
also lol at most toxic guy around calling others out on this sh**
Google Drive with my newer bots

Online apanx

Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1268 on: November 05, 2016, 07:48:34 PM »

Offline Starcore

  • *
  • Posts: 295
  • Rep: 6
    • https://www.facebook.com/
    • View Profile
    • http://www.starcore.gametechmods.com/
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1269 on: February 05, 2017, 02:42:10 AM »
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
Founding Father, Original CEO and Lead AI of DSL
Creator of the Starcore Stock AI Packs
Spin Doctors "We'll make you a smash hit!"
MSN Messenger: jeffmilburn@hotmail.com
Email: Starcore.RA2@gmail.com

Starcore AI Packs for Stock RA2 available at:
http://www.starcore.gametechmods.com/

Offline Meganerdbomb

  • *
  • Posts: 3384
  • Rep: 6
  • Are you not entertained?
    • http://www.youtube.com/us
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1270 on: February 06, 2017, 11:39:02 AM »
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
Yeah omni is still the standard for most bots.
im just waiting for meganerdbomb to come along and kick things into gear.

Offline IceCreamRulez

  • Antweight
  • Posts: 98
  • Rep: 0
  • That guy who isn't very good at modding
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1271 on: May 04, 2017, 08:37:12 AM »
I've got a question. Is it possible for me to do some AI-ing for the Robot Wars 2013 AI Pack? I've noticed that there are 3 copies of The Bull in the AI Teams and I want to replace 2 of them with my Dextrus and Granite Grinder replicas. But because it's just a beta, I'm not sure if it's possible to do it.

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 #1272 on: May 04, 2017, 12:34:16 PM »
what

every copy of ra2 is the same, you can ai in all of them

Offline IceCreamRulez

  • Antweight
  • Posts: 98
  • Rep: 0
  • That guy who isn't very good at modding
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1273 on: May 05, 2017, 03:38:07 PM »
Never mind it's fine. While scrolling through the Robot Wars 2013 AI Pack thread, I found some files that Wham had uploaded which contained the AOD and ED robots. Beckatron and Dextrus were in those files and since they were AI-d, I figured I could just add them to the mod  :mrgreen: Still no sign of The Plague though, no idea where that one is at.

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 #1274 on: May 12, 2017, 09:38:34 PM »
If I were to start my Tournament, would anyone AI for me?

Offline Gulden

  • Am I still considered active?
  • Posts: 1331
  • Rep: 7
  • Currently trying to make a Riff in Time and Space.
    • https://www.youtube.com/c
  • Awards Donated money for site hosting 2019 BOTM Winner
    • View Profile
    • Awards
  • Discord: Gulden#1901
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1275 on: May 12, 2017, 09:45:17 PM »
If I were to start my Tournament, would anyone AI for me?
I'm afraid not...

3)   If you cannot AI, do not start a thread until you have found someone who is willing to AI for you learn how to! The best place to ask for help is the General Tournament Discussion Thread.
I have several opinions.

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 #1276 on: October 11, 2017, 08:05:27 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.
do you know if there's a way to get this ai to evade without losing any components first?

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 #1277 on: October 12, 2017, 01:31:04 AM »
yeah, just replace engage (the standard tactic) with evade

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 #1278 on: October 13, 2017, 11:31:15 PM »
in the bindings?

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 #1279 on: October 18, 2017, 05:01:16 PM »
in the .py itself