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

Offline Squirrel_Monkey

  • Squirrel_Monkeyweight
  • *
  • Posts: 7587
  • Rep: 7
  • [Insert clever and witty comment here]
    • 0SquirrelMonkey0
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #660 on: June 25, 2010, 10:26:31 AM »
Any .py to convert to a crawler if the wheels fall off?
I want to AI this:
Better than GK since 2009.
I think SM is a pretty cool guy, eh builds unicycle-bots and doesn't afraid of anything

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, R+D, and help)
« Reply #661 on: June 25, 2010, 10:31:22 AM »
I win the wildcard :P

and I don't know about the PY. Maybe ask Mad?

Offline JoeBlo

Re: AI-ing (.py files, coding, R+D, and help)
« Reply #662 on: June 25, 2010, 10:37:21 AM »
could be done using the weapons attribute of the bindings and some python tweaking / rewriting

Offline Squirrel_Monkey

  • Squirrel_Monkeyweight
  • *
  • Posts: 7587
  • Rep: 7
  • [Insert clever and witty comment here]
    • 0SquirrelMonkey0
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #663 on: June 25, 2010, 10:45:22 AM »
*Asks politely whether anyone has time to do this*
Better than GK since 2009.
I think SM is a pretty cool guy, eh builds unicycle-bots and doesn't afraid of anything

Offline JoeBlo

Re: AI-ing (.py files, coding, R+D, and help)
« Reply #664 on: June 25, 2010, 11:23:11 AM »
What else?
Paypal so people can give me monies when I do stuff for them  :gawe:

for Thyrus's tourney ? if I have the time I will do it when I do my AI for said tournament

but I will need the bot file

Offline Madiaba

Re: AI-ing (.py files, coding, R+D, and help)
« Reply #665 on: June 25, 2010, 07:09:33 PM »
Any .py to convert to a crawler if the wheels fall off?
I want to AI this:
(Image removed from quote.)
Thanks, Joe...
SM, just for curiosity's sake, 'convert' to what?
 
 
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 Sage

  • *
  • Posts: 6182
  • Rep: 11
  • RA2 Wizard & GTM's Favorite Stock Builder 2015
  • Awards Sage's Favorite BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #666 on: June 25, 2010, 08:36:15 PM »

Any .py to convert to a crawler if the wheels fall off?
I want to AI this:
*picture*

oh hai mammoth

so when the wheels fall off you want the two different weapon motors to spin different ways, making it bumble-bee like in it's attack?

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

Offline JoeBlo

Re: AI-ing (.py files, coding, R+D, and help)
« Reply #667 on: June 25, 2010, 11:09:48 PM »
I assumed to make the weapon motors spin counter directions making it an SnS...

full movement would be worth the time as it needs something to push off against which will probably be destroyed soon after the wheels

Offline G.K.

  • *
  • Posts: 12157
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #668 on: June 26, 2010, 05:04:00 AM »
What is the 'math.pi' value of a bot who's Forward Heading has been rotated one 'bit' more than 180 degrees?
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 #669 on: June 26, 2010, 05:55:18 AM »
ummm rebuild LOL (honestly I keep track of nose positions for easy AI when building)

you have to start working with small numbers (I cannot recall how many forward points there is)

math.pi*0.25 or -math.pi*0.25 I think... its really a trial and error thing

Offline Naryar

  • Posts: 23283
  • Rep: 21
  • 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 #670 on: June 26, 2010, 06:14:44 AM »
Did you even got trigonometry lessons joey ? It's math.pi*11/10

Offline Doomkiller

  • Ultra Heavyweight
  • Posts: 2112
  • Rep: 1
  • I HAS DOUBLE PISTOLS
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #671 on: June 26, 2010, 06:16:18 AM »
Did you even got trigonometry lessons joey ? It's math.pi*11/10

Did you even 'get' english lesson Naryar?  :p
 
only teasing you
"I make death fun!"
Quote from: NerdCubed
OH MY GOD IT'S JAWS!

Offline Naryar

  • Posts: 23283
  • Rep: 21
  • 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 #672 on: June 26, 2010, 06:20:26 AM »
Did you even got trigonometry lessons joey ? It's math.pi*11/10

Did you even 'get' english lessons Naryar?  :p
 
only teasing you

Not as much as you native speakers :P

*tries to remember not to make that same mistake again*

Offline JoeBlo

Re: AI-ing (.py files, coding, R+D, and help)
« Reply #673 on: June 26, 2010, 07:35:38 AM »
Did you even got trigonometry lessons joey ? It's math.pi*11/10

I was on my way out and was thinking about something else to do with AI

anyway one more radial then 180 degrees should be (providing GK is accurate with what he wrote)

7pi / 6

so math.pi*7/6

Offline G.K.

  • *
  • Posts: 12157
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #674 on: June 26, 2010, 07:38:52 AM »
Well I failed quite miserably there lol. I worked out that it was math.pi*0.55. Is there a picture showing all of these?
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 #675 on: June 26, 2010, 07:41:09 AM »


math.pi*2 is the default heading when you dont change it.. so as I said if you provided the correct details with (just past 180)

Offline Madiaba

Re: AI-ing (.py files, coding, R+D, and help)
« Reply #676 on: June 26, 2010, 08:11:03 AM »
Hehe, you guys' interaction is funny. ;)   And your help is greatly appreciated, thanks.
 
Anyway, here is the work done GK,.. (though it's good to understand the math/logic).
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.
 
 
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.

You might copy this to the top of your Bindings.py for easy reference.
 
(This was posted earlier in this thread)
 
 
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 G.K.

  • *
  • Posts: 12157
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #677 on: June 26, 2010, 08:15:00 AM »
I'm helping Thyrus AI some SnS'es for his tourney, but one keeps alternating between spinning CW and CCW for ages, before it eventually spins in one direction.

Here's the AI line:

Code: [Select]
    list.append(("Scarlet Transmission","FBS_1",{'invertible':True,'SpinDirection(1/-1)':1,'ReMobilizeRoutineTime(10-60)':60,'PreSpinEntrance':20,'range':30,'radius':0.1, 'topspeed':100, 'throttle':130, 'turn':60, 'turnspeed':3,'weapons':(0,)}))
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 Madiaba

Re: AI-ing (.py files, coding, R+D, and help)
« Reply #678 on: June 26, 2010, 08:22:52 AM »
GK, lower the
         'ReMobilizeRoutineTime(10-60)':60 
to 20 or so...
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 G.K.

  • *
  • Posts: 12157
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #679 on: June 26, 2010, 08:23:51 AM »
Will do.
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)