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

Offline Trovaner

  • *
  • Posts: 1222
  • Rep: 32
    • View Profile
    • Awards
AI-ing (.py files, coding, R+D, and help)
« Reply #40 on: January 15, 2009, 09:45:48 PM »
Quote from: philetbabe;26762
That's a great question, looking at the code i do not see much difference between spinner and directionnal spinner.  Is there really a difference ? where is it defined ?
The only significant difference that I can see is that Spinner uses the RobotInRange function to do something while DirectionalSpinner doesn't.

Offline Madiaba

AI-ing (.py files, coding, R+D, and help)
« Reply #41 on: January 15, 2009, 11:12:32 PM »
I don't remember and I can't find that AI.py. Don't know who wrote that one, either. Could one of you guys PM it to me please,... though I would trust Phil and Trov's assessment.
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 Somebody

  • *
  • Posts: 7200
  • Rep: 13
  • CP: +2
    • SomebodyofGTM
    • View Profile
    • My site
    • Awards
AI-ing (.py files, coding, R+D, and help)
« Reply #42 on: January 16, 2009, 06:29:58 PM »
OK.
1. My computer was infested with viruses, and Hamachi is deleted and gone for a good while.

Mad: I will PM the bots to you as soon as I can.
I built that big robot on that TV show that time


Offline Madiaba

AI-ing (.py files, coding, R+D, and help)
« Reply #43 on: January 17, 2009, 10:15:59 PM »
Here it is and I paralleled like sections so you can see for yourselves:
 
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 #44 on: January 19, 2009, 02:20:20 AM »
Quote from: Madiaba;26934
Here it is and I paralleled like sections so you can see for yourselves:

directionnal spinner inherits from spinner, that mean it does eveything spinner does as long as it dosen't overwrite the function. for instance the 'RobotInRange' function used for directionnal spinner is the same as the one for spinner.


In fact, the only 'add-on' of  directionnal spinner seems to be its capability to rename the trigger with something else than 'Spin'.

am i wrong ?

Offline Somebody

  • *
  • Posts: 7200
  • Rep: 13
  • CP: +2
    • SomebodyofGTM
    • View Profile
    • My site
    • Awards
AI-ing (.py files, coding, R+D, and help)
« Reply #45 on: January 19, 2009, 02:43:10 PM »
I sent the bots. What do you want to do with them?
I built that big robot on that TV show that time


Offline philetbabe

  • *
  • Posts: 497
  • Rep: 2
  • Drop D
    • View Profile
    • Awards
AI-ing (.py files, coding, R+D, and help)
« Reply #46 on: January 20, 2009, 06:39:16 AM »
Quote from: Somebody;27039
I sent the bots. What do you want to do with them?


maybe new hybrids from counter-nature experiments !

Offline Madiaba

AI-ing (.py files, coding, R+D, and help)
« Reply #47 on: January 27, 2009, 11:43:22 AM »
Here's a handy AI.py: 'OmniRam_EnergyMiser'. It is a version of 'OmniRam' with an appended energy(Battery) saver. It uses an analog control to switch on/off quick-spin-up weapon motor(s). It turns the weapon motor off whenever the nearest enemy is 'x' (user set) distance away, thus potentially saving significant Bat. energy for when/where it's needed; toward the opponent (maneuvering and weapons). It is ideal for Face Spinners, etc...) with ramming tactic.
 
OmniRam_EnergyMiser]OmniRam_EnergyMiser
 
It is simple to use and the instructions are in the AI.py, including sample Bindings line. It was written for one of Somebody's bots that was weak on energy. Thought it'd be useful to save energy in general too, because many matches have been won/lost on available energy, for sure.
PM or post any questions or feedback.
 
*Credit to SC for the original OmniRam.py*
 
 
..
[/URL]
« Last Edit: January 27, 2009, 05:31:12 PM by Madiaba »
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 #48 on: January 27, 2009, 12:21:21 PM »
I've already used that energy save feature (a great idea) on one of my sawbots.

But rather than a specialized .py, i just use a small 'range' value...

EDIT: Wait, it's "towards the opponent"? It's better than mine then.

Offline philetbabe

  • *
  • Posts: 497
  • Rep: 2
  • Drop D
    • View Profile
    • Awards
AI-ing (.py files, coding, R+D, and help)
« Reply #49 on: January 27, 2009, 02:05:52 PM »
Quote from: Madiaba;27615
Here's a handy AI.py: 'OmniRam_EnergyMiser'. It is a version of 'OmniRam' with an appended energy(Battery) saver

the economic crisis is felt here too. It is necessary to save energy.
when will one see a bot  with a coal-fired boiler?

Edit :  to avoid any misunderstanding, i did not want to oppose Mad and NAr solutions.
« Last Edit: January 28, 2009, 02:38:28 AM by philetbabe »

Offline Somebody

  • *
  • Posts: 7200
  • Rep: 13
  • CP: +2
    • SomebodyofGTM
    • View Profile
    • My site
    • Awards
AI-ing (.py files, coding, R+D, and help)
« Reply #50 on: January 27, 2009, 02:26:16 PM »
I'm gonna guess that it was Pit Viper.
I built that big robot on that TV show that time


Offline Madiaba

AI-ing (.py files, coding, R+D, and help)
« Reply #51 on: January 27, 2009, 03:48:51 PM »
-Nar, I used an analog control instead of a button or switch. As you know they don't always act kosher anyway, but the analog has been the most consistent for accurate on/off control of motors, in my coding experience.
 
- Phil, Thanks, for your optimistic perspective of my work/me. But je suis juste une personne, and no more.  Ceci est juste un passe-temps de prendre une 'pause' de travail.  RA2 ne signifie rien dans la vie.  I only like the logic of coding, allot like you too. It's fun to figure out.  And thanks for your help, with the AI stuff, chart and feedback..

-SB, it was 'Coral Snake'.
 
...
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 Somebody

  • *
  • Posts: 7200
  • Rep: 13
  • CP: +2
    • SomebodyofGTM
    • View Profile
    • My site
    • Awards
AI-ing (.py files, coding, R+D, and help)
« Reply #52 on: January 27, 2009, 04:57:54 PM »
1 million times thanks for the AIing. Coral Snake was a little lacking in the battery department.
I built that big robot on that TV show that time


Offline Madiaba

AI-ing (.py files, coding, R+D, and help)
« Reply #53 on: February 05, 2009, 08:10:38 AM »
Here SB, for you and anyone else.
This is coming out in the "AI-ing Chart" soon:
 
Code: [Select]
    # nose is "front" of bot-
        #Nose paradigm: All 360 rotational degrees for "math.pi" are represented by the factor '2'.
            #thus:  '2'=360degrees,   '1'=180degrees,   '0.5'=90degrees,   '0.25'=45degrees.
        #The direction of change(CW/CCW)is determined by the "-" or "+" before the statement.
            #thus: '+' causes rotation CCW,  '-' causes rotation CW.
        #Format examples:
            # " 'nose':math.pi*0.25 "  will rotate the bot 45degrees/CCW.
            # " 'nose':-math.pi*0.25 " will rotate the bot 45degrees/CW.
            # " 'nose':math.pi*0.5 "   will rotate the bot 90degrees/CCW.
            # " 'nose':-math.pi*0.5 "  will rotate the bot 90degrees/CW.
            # " 'nose':math.pi*0.75 "  will rotate the bot 135degrees/CCW.
            # " 'nose':-math.pi*0.75 " will rotate the bot 135degrees/CW.
            # (Make sure there is a comma(,)after the the value # (to separate it from the next characteristic and its value).
            #(-----notes-----)
                # Note1:  "math.pi"   AND   'nose':math.pi*1.0 "   AND  " 'nose': -math.pi*1.0 "   will rotate the bot 180 degrees.
                    #   (The first two are the same, and the last two just rotate different directions to get 180 degrees.}
                    #   Thus there is no real reason to have a factor greater than '1',
                    #   since after that you just move into the other half of the circle covered by the other '+' or '-' sign.
                # Note2: "math.pi*0" or "math.pi*2" = the same as no new heading.
Take this and paste it to the top of your Bindings.py for easy reference.
 
How to use:
1. Find out where your bot is without any nose bias.
2. Then use this chart to turn it to face forward, NP.
 
.....
« Last Edit: June 26, 2010, 08:13:07 AM by Madiaba »
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 #54 on: February 05, 2009, 11:59:40 AM »
Quote from: Madiaba;28207
...


Pretty idea to enrich the bindings.py header with all those guidelines. perhaps we may propose a template of bindings.py with other informations.

Offline Somebody

  • *
  • Posts: 7200
  • Rep: 13
  • CP: +2
    • SomebodyofGTM
    • View Profile
    • My site
    • Awards
AI-ing (.py files, coding, R+D, and help)
« Reply #55 on: February 05, 2009, 04:12:31 PM »
Wow that helps. B01000N should be AIed and working soon, after another rebuild.
I built that big robot on that TV show that time


Offline Madiaba

AI-ing (.py files, coding, R+D, and help)
« Reply #56 on: March 05, 2009, 06:49:39 PM »
> 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...)
 
 
> Here is the SOW.bot, AI.py, and Bindings line I posted above:
https://gametechmods.com/uploads/files/SOW.rar
This bot is DSL, but you can use this coding in stock too, no prob.
 
..
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 #57 on: March 06, 2009, 07:39:46 AM »
Quote from: Madiaba;30295
>
> Here is the SOW.bot, AI.py, and Bindings line I posted above:


Right, even if you are not interested in SOW, the bindings file starts with a good comment part that everybody should include in its own bindings.py

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 #58 on: March 13, 2009, 03:13:57 PM »
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.

Offline Somebody

  • *
  • Posts: 7200
  • Rep: 13
  • CP: +2
    • SomebodyofGTM
    • View Profile
    • My site
    • Awards
AI-ing (.py files, coding, R+D, and help)
« Reply #59 on: March 17, 2009, 06:23:30 AM »
huh?
I built that big robot on that TV show that time