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

Offline JoeBlo

Re: AI-ing (.py files, coding, R+D, and help)
« Reply #440 on: April 06, 2010, 08:59:12 PM »
once thing that can trip up a lot of people is ensure there are no extra spaces in the bot name

I know some people in CC put a space at the end of the name by mistake which casues headaches

Offline 090901

  • alcoholic in denial
  • *
  • Posts: 7006
  • 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, R+D, and help)
« Reply #441 on: April 06, 2010, 09:02:49 PM »
No extra spaces in the name, show I'm not sure what's up with it.
I only have one other bot AIed and that was my BBEANS6 entry..


*Edit* Duh, I put a : after math

Offline JoeBlo

Re: AI-ing (.py files, coding, R+D, and help)
« Reply #442 on: April 06, 2010, 09:26:35 PM »
lol didnt see that :P damn stupid eyes

Offline 090901

  • alcoholic in denial
  • *
  • Posts: 7006
  • 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, R+D, and help)
« Reply #443 on: April 06, 2010, 09:27:54 PM »
lol didnt see that :P damn stupid eyes
lol, I looked over it a couple times before I noticed it too.
Back to AIing the rest of my team now.
Also what's the nose math on this bot?



Offline JoeBlo

Re: AI-ing (.py files, coding, R+D, and help)
« Reply #444 on: April 06, 2010, 09:34:36 PM »
either math.pi/2 or -math.pi/2 I think ? hehe I forgot which I usually plan out my robots to use pi*2 :P

Offline 123savethewhales

  • *
  • Posts: 2923
  • Rep: 30
  • Friendship is Magic
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #445 on: April 07, 2010, 01:02:10 AM »
Is there an AI that flicks a switch at start and leave it on?  It is important that it uses a switch so it doesn't stop at any time.  I wanted to use it for this


Offline JoeBlo

Re: AI-ing (.py files, coding, R+D, and help)
« Reply #446 on: April 07, 2010, 01:11:50 AM »
put it as a button name it spin and omni ?

I dont recall omni stops spinning in the case of a count out

Offline 123savethewhales

  • *
  • Posts: 2923
  • Rep: 30
  • Friendship is Magic
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #447 on: April 07, 2010, 01:49:26 AM »
So if I want it to start spinning right away (rather than after the 3 ticks), how would I do it?

So far my code looks like this

Quote
    def Tick(self):

        self.Input("Spin", 0, 1)

        return AI.SuperAI.Tick(self)

Offline JoeBlo

Re: AI-ing (.py files, coding, R+D, and help)
« Reply #448 on: April 07, 2010, 02:02:10 AM »
if you set a large enough range omni should spin straight away ?

Offline 123savethewhales

  • *
  • Posts: 2923
  • Rep: 30
  • Friendship is Magic
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #449 on: April 07, 2010, 02:09:06 AM »
if you set a large enough range omni should spin straight away ?
It spins once the 3 ticks countdown end.  But prespin helps keep this bot balance.  I wanted the switch to be turn on before the match starts (during the countdown).

Offline JoeBlo

Re: AI-ing (.py files, coding, R+D, and help)
« Reply #450 on: April 07, 2010, 02:18:19 AM »
but the game stops this motion before match starts anyway ?

but still you will have to consult mad and he knows how to break the RA2 rules in python :P

Offline 123savethewhales

  • *
  • Posts: 2923
  • Rep: 30
  • Friendship is Magic
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #451 on: April 07, 2010, 02:58:15 AM »
but the game stops this motion before match starts anyway ?

but still you will have to consult mad and he knows how to break the RA2 rules in python :P
I would think so too.  But the result varies from the AI to when I manually flicking the switch before the timer starts.  I am not sure what it is though.

Offline yoda9726

  • Heavyweight
  • Posts: 538
  • Rep: 5
  • You can't really dust for vomit
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #452 on: April 07, 2010, 10:59:29 AM »
When i made Doom Dreidel, a friend of mine was here with me.  We were joking that it'd probably be the easiest bot in the world to AI.  Now, I come here and see a question about AI'ing his offspring (and mega upgrade).  Thanks for ruining my joke, 123 :P
Survival of the Fittest Is Finished!  Congratulations 090901

Offline G.K.

  • *
  • Posts: 12155
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #453 on: April 14, 2010, 07:50:09 AM »
Where did Click release Kheper.py?

And where's that handy picture of all the different math.pi?
My above post explains everything about everything.

Host of: Wheely Tag, Back To The Beginnings, BTTB 2, BTTB 3, BTTB 4, & BTTB V.

Heavy Metal: Champion (Mockery of the Whole Concept)
Robotic International Wars Series 1: Champion (Minifridge 6)
RA2 Team Championships 1 & 2: Champion (High Speed Train & Upthrust - as part of Naryar's Not Quite Evil Council of Doom)

Runner Up in: The Amazing Rage (Team Fedex), R0B0NOVA (Zaphod Stock), Steel Warzone (Inception of Instability), Box of Nightmares (Gicquel), Wheely Tag (Minifridge the Second)

Clash Cubes IV: 5th place (Fretless)
BBEANS 6: Rumble Winner & 6th Place (Minifridge 4)

Offline JoeBlo

Re: AI-ing (.py files, coding, R+D, and help)
« Reply #454 on: April 14, 2010, 07:56:39 AM »
I dont know.. Scrap used it in a NarAI bot if I remember.. if not I can send you a copy

I dont know about the existence of this either.. I scribbled up one for HA but that's about the extent of my knowledge

Offline Naryar

  • Posts: 23267
  • Rep: 20
  • hybrids oui oui
    • http://www.youtube.com/us
  • Awards BOTM Winner
    • View Profile
    • Awards
  • Skype: TheMightyNaryar
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #455 on: April 14, 2010, 08:01:11 AM »
@GK: For the math.pi thing, that depends of the heading ruler. Extreme left is 'nose':0, middle is 'nose':math.pi, extreme right is 'nose':math.pi*2 (=0) .

I dont know.. Scrap used it in a NarAI bot if I remember.. if not I can send you a copy

He should have, but didn't since he fell on problems with the .py having problems with servo being attached to the baseplate or not and changed his servo clamping VS team to a FS team.

So no, i don't have Kheper.py... but i am really looking towards getting it  :bigsmile:

Offline G.K.

  • *
  • Posts: 12155
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #456 on: April 14, 2010, 08:03:14 AM »
I don't particularly need it, but I just wondered how Scrap got it.

I think Nary was the one who posted it.
My above post explains everything about everything.

Host of: Wheely Tag, Back To The Beginnings, BTTB 2, BTTB 3, BTTB 4, & BTTB V.

Heavy Metal: Champion (Mockery of the Whole Concept)
Robotic International Wars Series 1: Champion (Minifridge 6)
RA2 Team Championships 1 & 2: Champion (High Speed Train & Upthrust - as part of Naryar's Not Quite Evil Council of Doom)

Runner Up in: The Amazing Rage (Team Fedex), R0B0NOVA (Zaphod Stock), Steel Warzone (Inception of Instability), Box of Nightmares (Gicquel), Wheely Tag (Minifridge the Second)

Clash Cubes IV: 5th place (Fretless)
BBEANS 6: Rumble Winner & 6th Place (Minifridge 4)

Offline Naryar

  • Posts: 23267
  • Rep: 20
  • hybrids oui oui
    • http://www.youtube.com/us
  • Awards BOTM Winner
    • View Profile
    • Awards
  • Skype: TheMightyNaryar
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #457 on: April 14, 2010, 08:06:00 AM »
Ask Click.

All the servo VS py's i have in NAR AI are LittleMetalFriend.py (that is 7 years old), Phil's InMyArms2.py (that i can't get to work) and the SOW AI (that i didn't even touched yet).

Offline Clickbeetle

  • *
  • Posts: 3374
  • Rep: 21
  • In Soviet Russia, bugs stomp YOU!
  • Awards BOTM Winner
    • View Profile
    • Beetle Bros site
    • Awards
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #458 on: April 18, 2010, 12:11:44 AM »

I gave Scrap Daddy Kheper.py for his bots.  However, it is hard to use because the angles in the .py are specific to Kheper, and because of the way GetMotorAngle works I don't think they could be easily customizable.  For non-Kheper bots you probably need to make a copy of the .py and change the angles.  Be forewarned.


https://gametechmods.com/uploads/files/Kheper.zip

if you set a large enough range omni should spin straight away ?
It spins once the 3 ticks countdown end.  But prespin helps keep this bot balance.  I wanted the switch to be turn on before the match starts (during the countdown).


Put self.Input("Spin", 0, 1) in def __init__ or def Activate?  Nothing in def Tick happens until after the countdown.

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 Naryar

  • Posts: 23267
  • Rep: 20
  • hybrids oui oui
    • http://www.youtube.com/us
  • Awards BOTM Winner
    • View Profile
    • Awards
  • Skype: TheMightyNaryar
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #459 on: April 18, 2010, 03:35:59 AM »
*Pounces on the download*