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

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 #100 on: June 08, 2009, 11:28:13 PM »
I have a question to ask. This is for the bots with AGODed weapons.

Is it possible for an AI'ed bot to move its weapons during the intro or the countdown? Because I usually press the pause button before the match starts, and spin the weapons so that the bots return to its natural position without flopping around.
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 philetbabe

  • *
  • Posts: 497
  • Rep: 2
  • Drop D
    • View Profile
    • Awards
AI-ing (.py files, coding, R+D, and help)
« Reply #101 on: June 09, 2009, 10:42:19 AM »
Quote from: Pwnator;43212
I have a question to ask. This is for the bots with AGODed weapons.

Is it possible for an AI'ed bot to move its weapons during the intro or the countdown? Because I usually press the pause button before the match starts, and spin the weapons so that the bots return to its natural position without flopping around.



AGODed ?

anyway, until the function Activate()  is called we are not sure the our bot is fully build.
And it feels like this function is called just after the countdown. What make me think that, is, if you put bad code in your activate function, it crashes the system after the countdow.

but if any one has another experiment on the domain, i hear  him/her.

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 #102 on: June 09, 2009, 02:04:23 PM »
it usually stops the weapons right at 0 for me if i start them before the countdown. almost like it resets Havok.
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 chart 2.3
« Reply #103 on: June 17, 2009, 07:16:05 AM »
here is a new version of the AI chart
https://gametechmods.com/uploads/files/AI-Chart-2.3.rar

no much new informations but :

-more standard AIS are referenced (FBS, SOW AIs)

-pictures have been added to illustrate the AI

-the AI.py are joined with the archive (more easy to get)

-chart is given in .pdf and .doc version (thus someone may enriched the.doc).

-all about nose (Madiaba's post in this thread)


For those who don't know it yet, this document explains :
-how to substitute a bot from the Aied ones with one of your own bot
-how to 'bind' (<-> Ai) your bot
-how to create a new Aied team
-some useful information for the creation of your own AI
« Last Edit: June 17, 2009, 10:45:59 AM by philetbabe »

Offline The Ounce

  • *
  • Posts: 1256
  • Rep: 4
  • Up and about
    • View Profile
    • Awards
AI-ing (.py files, coding, R+D, and help)
« Reply #104 on: July 08, 2009, 04:10:13 AM »
Does anyone know where to get the Popup AI.py?  It does not appear to have been included in the AI chart folder.
Tournament Record: 94 Wins - 50 Losses
Challenge Record: 2 Wins - 2 Losses


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 #105 on: July 08, 2009, 04:13:56 AM »
As far as I know, I found one in R1's AI pack. But for everyone's convenience, I'll post it here. :D

https://gametechmods.com/uploads/files/PopupAI.rar
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 The Ounce

  • *
  • Posts: 1256
  • Rep: 4
  • Up and about
    • View Profile
    • Awards
AI-ing (.py files, coding, R+D, and help)
« Reply #106 on: July 08, 2009, 05:15:16 AM »
Thank you so much Pwnator!
Tournament Record: 94 Wins - 50 Losses
Challenge Record: 2 Wins - 2 Losses


Offline JoeBlo

AI-ing (.py files, coding, R+D, and help)
« Reply #107 on: July 08, 2009, 05:21:44 AM »
hunh I never  knew about that lol I normally use omni.py with smartzone "weapon"

Offline Madiaba

AI-ing (.py files, coding, R+D, and help)
« Reply #108 on: July 08, 2009, 01:05:35 PM »
We're going to make all of the AI.py available as an appendage to the Tutorial....
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 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 #109 on: July 08, 2009, 03:56:33 PM »
I really don't get the PillarPlus.py.

I used it for a disc SnS, and i did put 'range2' as an average value (less than 20), but the dang thing spun right on at the beggining.

Offline infiniteinertia

  • *
  • Posts: 1853
  • Rep: 6
    • View Profile
    • Awards
AI-ing (.py files, coding, R+D, and help)
« Reply #110 on: July 08, 2009, 05:21:00 PM »
I like the idea of PillarPlus, but I have the same issue as Nary.
#MakeStockGreatAgain


#BANtheHS The Movement

Offline philetbabe

  • *
  • Posts: 497
  • Rep: 2
  • Drop D
    • View Profile
    • Awards
AI-ing (.py files, coding, R+D, and help)
« Reply #111 on: July 09, 2009, 02:04:12 AM »
Quote from: Madiaba;49837
We're going to make all of the AI.py available as an appendage to the Tutorial....


version 2.3 of the archive comes with almost all of the AI.py (but Popup that i did not have, anyway, popup brings nothing more than a standard 'omni' as noticed in a post above).

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 #112 on: July 09, 2009, 03:41:58 AM »
Nar, Inf, range2 needs a REAL small number, my Big Bad Brother and Cube Of Pure Evil have something like 2 as far as I remember, I lost their bindings when I found out that my Multiextenders were all 3kgs and I reinstalled DSL clean version.

Offline philetbabe

  • *
  • Posts: 497
  • Rep: 2
  • Drop D
    • View Profile
    • Awards
AI-ing (.py files, coding, R+D, and help)
« Reply #113 on: July 09, 2009, 03:48:42 AM »
Description: - Sits-and-spins in just one direction once opponent is in specified range, and doesn't stop unless immobile counter begins.  For sit-and-spinners that only spin one direction.
Define 2 ranges :
        self.spin_range = 50 -default value- : use to activate the Spin button (parameter “range”)
        self.turn_range = 3 -default value-: if enemy < turn_range and not immobile: turn. (parameter “range2”)
    ir argument “right” == 1 -> turn right, otherwise will turn left.
Bindings  Info/Example(s):
Code: [Select]
   list.append((&quot;Haymaker&quot;,&quot;PillarPlus&quot;,{'nose':math.pi,'invertible':True,'range2':12,'radius':2,'topspeed':100,'throttle':130,'turn':20,'turnspeed':2,'weapons':(11,12)}))
    list.append((&quot;Iron Spaghetti&quot;,&quot;PillarPlus&quot;,{'nose':math.pi*2,'range':99,'range2':6,'radius':1,'topspeed':100,'throttle':130,'turn':2,'turnspeed':0.1,'weapons':(21,25,26,27,33,34,35,36)}))

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 #114 on: July 09, 2009, 03:51:27 AM »
Ok, so Range is the usual spinup range (just like in Omni, Spinner, etc), but i still didn't get Range2... is that something with immobility?

Offline philetbabe

  • *
  • Posts: 497
  • Rep: 2
  • Drop D
    • View Profile
    • Awards
AI-ing (.py files, coding, R+D, and help)
« Reply #115 on: July 09, 2009, 04:11:48 AM »
Right,

a good "PillarPlus" mounts its weapon on motor.
while ennemy in 'range', it spins its motor.
To make more damage, when ennemy is in 'range2' -which must be shorter not to get immobilized- it turns on itself, emphazing so the spin of the motor with it self-spinning (much like a whipper).

Offline Trovaner

  • *
  • Posts: 1222
  • Rep: 32
    • View Profile
    • Awards
AI-ing (.py files, coding, R+D, and help)
« Reply #116 on: July 09, 2009, 04:23:29 PM »
So in other words, range is the maximum distance (defaults to 50) before the weapon motors start spinning while range2 is the maximum distance (defaults to 3) before the bot itself starts spinning. While the bot itself is spinning, it won't stop even if it is being counted out so you don't want to set it too high...

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 #117 on: July 11, 2009, 06:47:21 PM »
I have a piston bot and the piston wont fire.

The control is a button named "Fire"

The smartzone is named "weapon"

I am using Omni.py, and have tried Poker.py. Niether work.
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 #118 on: July 11, 2009, 07:24:37 PM »
That's weird.

Well... is the control wired to the piston?  Maybe you replaced it and forgot to re-wire it?

Is the smart zone in an easily accessible place?  Maybe try using an overly huge smart zone just for testing purposes.

Does the bot have air tanks?

Also posting the Bindings and maybe a picture of the bot would help.

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 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 #119 on: July 11, 2009, 07:29:42 PM »
list.append(("Stinger","Omni",{'invertible':True,'nose':math.pi,'topspeed':99,'throttle':130,'turnspeed':2.5,'turn':60,'radius':0.3,'range':99,'weapons':(1,2,3,4)}))


You got my vote for RA2 Wizard. Always and forever.