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

Offline Sage

  • *
  • Posts: 6182
  • Rep: 11
  • RA2 Wizard & GTM's Favorite Stock Builder 2015
  • Awards Sage's Favorite BOTM Winner
    • View Profile
    • Awards
AI-ing (.py files, coding, R+D, and help)
« Reply #60 on: March 17, 2009, 10:21:47 AM »
Quote from: Naryar;30807
Does anyone know what AI has been used for bots like Inf's Spyguy or Sorrow's Anduril ? (maybe PillarPlus) And how can they be used - i need to AI Corona and i'm clueless about what to do.

use the py madiaba listed above (FBS_2) and just wire it the same as pinball is.
You got my vote for RA2 Wizard. Always and forever.

Offline Clickbeetle

  • *
  • Posts: 3375
  • Rep: 21
  • In Soviet Russia, bugs stomp YOU!
  • Awards BOTM Winner
    • View Profile
    • Beetle Bros site
    • Awards
AI-ing (.py files, coding, R+D, and help)
« Reply #61 on: March 18, 2009, 10:02:43 PM »
Quote from: Madiaba;30295
> CB tweaked FBS_1 to add a few more features. I think they're useful. Here it is:
https://gametechmods.com/uploads/files/FBS_2.rar
(Thanks, CB for your input. And sorry I didn't look at it until now...)
..


Something that should be added to this.  I just found out that in order for FBS_2 to work properly, you need to identify the correct ID's for the bot's weapons in the 'weapons' part of Bindings.py.  Otherwise it won't register when it gets a hit, and the AI will stop spinning and try to chase the opponent when it's not supposed to.

To lack feeling is to be dead, but to act on every feeling is to be a child.
-Brandon Sanderson, The Way of Kings

Offline roboman2444

  • Ultra Heavyweight
  • Posts: 1212
  • Rep: 0
  • Linux, Nexuiz, Quake, and Darkplaces lover.
    • View Profile
    • http://www.freewebs.com/teamrckm
    • Awards
AI-ing (.py files, coding, R+D, and help)
« Reply #62 on: April 04, 2009, 11:28:13 AM »
Does anybody have suggestions for a True full body spinner( whole entire bot rotates) all the stock ones dont actually move towards the other robot while spinning. Does anybody have a suggestion on how to do this?
« Last Edit: April 24, 2009, 09:04:32 AM by roboman2444 »
Real life robotics team www.teamrckm.tk
Real life game studio www.v2games.tk


Offline Naryar

  • Posts: 23283
  • Rep: 21
  • hybrids oui oui
    • http://www.youtube.com/us
  • Awards BOTM Winner
    • View Profile
    • Awards
  • Skype: TheMightyNaryar
AI-ing (.py files, coding, R+D, and help)
« Reply #63 on: April 04, 2009, 11:51:02 AM »
You're not the only one to search for that...

There is one on beetlebros.gametechmods.com, one on R0B0SH4RK's showcase, also a vid on Youtube contains a pic of a true FBS:

Offline Somebody

  • *
  • Posts: 7200
  • Rep: 13
  • CP: +2
    • SomebodyofGTM
    • View Profile
    • My site
    • Awards
AI-ing (.py files, coding, R+D, and help)
« Reply #64 on: April 04, 2009, 01:10:55 PM »
What is the one on the beetlebros site?

EDIT: Aaahh I see. never mind.
I built that big robot on that TV show that time


Offline philetbabe

  • *
  • Posts: 497
  • Rep: 2
  • Drop D
    • View Profile
    • Awards
AI-chart 2
« Reply #65 on: May 25, 2009, 03:50:03 AM »
cleaning my disk, i found a file i've worked on, as many other people did too (and madiaba in particular )  but it seems it has never been published (or i have not seen where).

so here is it : it's another AI tutos.

https://gametechmods.com/uploads/files/3830AI-Chart-2.rar

for Mad : if this file 'has not' to be published yet (or have been published yet and i haven't seen where)  or if some people's name have to be mentionned do not hesitate to delete this post.

For everyone : If you would like to complete this file, let me know, i will send you the .doc.

future AI i will show here  : "omniInvert" ; for bots that feel better when they are inverted : anti gut-rippers
« Last Edit: May 25, 2009, 04:13:43 AM by philetbabe »

Offline philetbabe

  • *
  • Posts: 497
  • Rep: 2
  • Drop D
    • View Profile
    • Awards
AI-ing (.py files, coding, R+D, and help)
« Reply #66 on: May 25, 2009, 06:44:17 AM »
double post yeah !

so here is the 'OmniInverted' AI.

after the countdown, the bot self invert and is happy like that.

this kind of AI may feat bots like 'noble sacrifice' (
Quote from: Clickbeetle;24604
look here
), or in the hand of good builder may be used as anti gut ripper in DSL.

here is a picture and the AI :



https://gametechmods.com/uploads/files/Omninverted.rar

I will send a movie before the end of the week.
As ever, feed back, self experiment or idea of bots using this or other uncommons AI are always welcomed.

Offline Pwnator

  • *
  • Posts: 6676
  • Rep: 15
  • Awards BOTM Winner
    • View Profile
    • http://pwnator.tumblr.com
    • Awards
  • See profile for gamer tags: Yes
AI-ing (.py files, coding, R+D, and help)
« Reply #67 on: May 25, 2009, 06:46:53 AM »
Awesome! Imagine an OmniInverted juggler. :O
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 somestrangeguy

  • *
  • Posts: 2068
  • Rep: 2
  • If you can read this, your monitor is turned on.
  • Awards BOTM Winner
    • View Profile
    • Awards
AI-ing (.py files, coding, R+D, and help)
« Reply #68 on: May 25, 2009, 06:56:22 AM »
Nice, now we have a whole lot of more freedom in bot building :D

Offline Madiaba

AI-ing (.py files, coding, R+D, and help)
« Reply #69 on: May 25, 2009, 07:46:41 AM »
Nice Phil. Thanks for continuing the work.
Just a couple thoughts Phil:
-When you explain Analog commands you might show the parameters are "0-100" (not between 0-1 like a switch).
-You might also utilize the 'Nose' correction chart I wrote (and posted above in this thread). (Maybe also: explain 'radians')
-There are more AI.py than I listed in this document, that should be added eventually, like FBS_1 and FBS_2.
-SOW though more involved should probably be put up as an option for more experienced members.
 
Thanks again for your help. Been too busy to breathe, myself.
.
Input is appreciated. :)
-Arrogance is a quantity devoid of quality...
-As a client once told me "This is my story, and it's sticking to me!"
-Relationships these days are like the 'Arrival' section of the airport: a lot of baggage is being revealed in one place, and not a lot of it is being correlated to its real owners...

Offline philetbabe

  • *
  • Posts: 497
  • Rep: 2
  • Drop D
    • View Profile
    • Awards
AI-ing (.py files, coding, R+D, and help)
« Reply #70 on: May 25, 2009, 08:01:31 AM »
Quote from: Madiaba;40485
.. Thanks for continuing the work...

Mad, as administrator, do you know if there is way to reference the chart AND  all those .rar (AI + sample bots) somewhere else than on this thread. Thus 'everyone' should find ithem  easily and i, or others, may propose update. -> should it be referenced in the tutorial part of this site (https://gametechmods.com/?do=Tutorials) ? if 'yes', what should be the processus to activate an update ?
==

btw, i will update the document,  its AI list. its 'nose info' and so.

Offline Madiaba

AI-ing (.py files, coding, R+D, and help)
« Reply #71 on: May 25, 2009, 09:16:30 AM »
That IS the final objective. Shouldn't be a problem.
BTW, you might give at your discretion a 'version #' to this doc., so that when it is updated people can know that they have the latest info.
Input is appreciated. :)
-Arrogance is a quantity devoid of quality...
-As a client once told me "This is my story, and it's sticking to me!"
-Relationships these days are like the 'Arrival' section of the airport: a lot of baggage is being revealed in one place, and not a lot of it is being correlated to its real owners...

Offline infiniteinertia

  • *
  • Posts: 1853
  • Rep: 6
    • View Profile
    • Awards
AI-ing (.py files, coding, R+D, and help)
« Reply #72 on: May 25, 2009, 02:33:27 PM »
I wish I understood half of this stuff
#MakeStockGreatAgain


#BANtheHS The Movement

Offline Naryar

  • Posts: 23283
  • Rep: 21
  • hybrids oui oui
    • http://www.youtube.com/us
  • Awards BOTM Winner
    • View Profile
    • Awards
  • Skype: TheMightyNaryar
AI-ing (.py files, coding, R+D, and help)
« Reply #73 on: May 25, 2009, 02:57:22 PM »
Quote from: philetbabe;40453
https://gametechmods.com/uploads/files/3830AI-Chart-2.rar

^^Awesome. You guys should check this if you haven't already.

Offline roboman2444

  • Ultra Heavyweight
  • Posts: 1212
  • Rep: 0
  • Linux, Nexuiz, Quake, and Darkplaces lover.
    • View Profile
    • http://www.freewebs.com/teamrckm
    • Awards
AI-ing (.py files, coding, R+D, and help)
« Reply #74 on: May 25, 2009, 03:36:25 PM »
ok i checked it.
what is the thing hat would tell if the desired heading is in front or behind a robot
Real life robotics team www.teamrckm.tk
Real life game studio www.v2games.tk


Offline philetbabe

  • *
  • Posts: 497
  • Rep: 2
  • Drop D
    • View Profile
    • Awards
AI-ing (.py files, coding, R+D, and help)
« Reply #75 on: May 25, 2009, 04:34:45 PM »
Quote from: roboman2444;40555
ok i checked it.
what is the thing that would tell if the desired heading is in front or behind a robot


do you talk about the value to give to the 'nose' parameter in the binding line (file bindings.py) or do you talk about writing you own AI and testing the position of your bot compare to another bot ?

For the first point, Madiaba talks about the value of 'nose' in the post :
Quote from: Madiaba;28207
...


For the second point, there are few command that give information about  your current position and ennemy position.

i  engage you to have a look at the coding of tactics.py to have usage sample.
here are some command you may use :

range = self.GetDistanceToID(robot_id)
GetPath(self, from_world, to_world)
IsStraightPathClear(self, from_world,to_world)
DriveToLocation(…)
plus.getLocation(IdRobot)

have also a look to SOW AIs, they compare angle position of a servo motor and an ennmy.

Offline roboman2444

  • Ultra Heavyweight
  • Posts: 1212
  • Rep: 0
  • Linux, Nexuiz, Quake, and Darkplaces lover.
    • View Profile
    • http://www.freewebs.com/teamrckm
    • Awards
AI-ing (.py files, coding, R+D, and help)
« Reply #76 on: May 25, 2009, 04:57:31 PM »
no Im talking in the actual coding for a robot. like if the enemy was in one direction the robot could fire its weapon towards that direction without smartzones
Real life robotics team www.teamrckm.tk
Real life game studio www.v2games.tk


Offline philetbabe

  • *
  • Posts: 497
  • Rep: 2
  • Drop D
    • View Profile
    • Awards
AI-ing (.py files, coding, R+D, and help)
« Reply #77 on: May 26, 2009, 02:13:56 AM »
Quote from: roboman2444;40563
no Im talking in the actual coding for a robot. like if the enemy was in one direction the robot could fire its weapon towards that direction without smartzones


if you mount your weapon on servo motors, there are AI that make your servo point to the ennemy without the help of smartzone. have a look at this thread :
https://gametechmods.com/forums/showthread.php?t=1492


you should also download a tazbot replica with such a AI or admire the beauty of SOW in action, viewing the Madiaba's bot in Gumba tourney.

http://raw.gametechmods.com/bracket_1.html



if you want your bot to point toward the ennemy, this is more a matter of tactics than of AI.
Almost all tactics tends to move you bot toward your ennemy.

basically :
- tactics.py deals with  the way your bot move
-AIs.py : deals with the way you use smartzone and/or weapons

if you want your bot to change direction to point toward an ennemy, without moving, you must write a tacticts.py.  if you want your bot to move toward an ennemy, just use some tactics ("engage" is almost good for everything).

Online apanx

AI-ing (.py files, coding, R+D, and help)
« Reply #78 on: June 01, 2009, 07:16:15 AM »
No need really to fiddle with the tacitics.py if you want to do your own AI.
Too easy to screw something up.

Just put the instructions in the Tick part and remove the assigned tactics from the AI.

Just remember that the inverthandler overrides the Tick part if you plan on staying immobile for too long

Offline JoeBlo

AI-ing (.py files, coding, R+D, and help)
« Reply #79 on: June 01, 2009, 07:49:36 AM »
welcome to GTM

philetbabe is one really good AI'er with solutions to some of the most complicated weapon systems I have cooked up

but it is a nice change to find a new person who already has a good knowledge of the game :-D stick around and maybe showcase some of your bots