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

Offline Madiaba

Re: AI-ing (.py files, coding, R+D, and help)
« Reply #460 on: April 18, 2010, 08:45:58 PM »
Though I didn't look at it yet, Click, why would it be too difficult to assign a variable to the desired parameter(s) of 'GetMotorAngle' and pipe it out to the Bindings line for particular-bot adjustments?

I'll check it out...
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 #461 on: April 24, 2010, 02:24:35 PM »
Is there a way to stop weapon motors from reaching max speed using the AI code. I have a bot that works really well but wobbles because the motors are spinning too fast. Can you slow the max speed down just a little bit?
You got my vote for RA2 Wizard. Always and forever.

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 #462 on: April 24, 2010, 02:34:48 PM »
LOL, I was just about to ask that myself.
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: 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 #463 on: April 24, 2010, 02:38:44 PM »
Yes there is. You need to mod a spinner AI.py (or anything that supports spinning weapons) with an analog control rather than a button for the spinner, and when the function that makes the spinning is called, just put self.Imput("Spin", 0, X) where X is the spinner's throttle (for button controls X is 0 or 1). Default 100, so technically if you get it lower than 100 the spinner will be less powerful.

I think.

Offline Madiaba

Re: AI-ing (.py files, coding, R+D, and help)
« Reply #464 on: April 24, 2010, 02:54:43 PM »
Nice job there, Nar. I now know why Joe has an affinity toward you... ;)    That can be done quickly and easily.  And Nar is becoming a coder...

Also, you might try CB's RPM monitoring AI and code the top R's like a rev-limiter.
 
 
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 #465 on: April 24, 2010, 02:55:09 PM »
Great.
You got my vote for RA2 Wizard. Always and forever.

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 #466 on: April 24, 2010, 03:00:23 PM »
I now know why Joe has an affinity toward you... ;)

Should i conclude you believe in the lies that are circulating about me and Joe ?

Offline Badnik96

  • tired of your shit
  • *
  • Posts: 17537
  • Rep: 3
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #467 on: April 24, 2010, 03:04:51 PM »
How would I AI a full body popup?

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 #468 on: April 24, 2010, 03:08:29 PM »
the same as a regular one.
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: 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 #469 on: April 24, 2010, 03:10:05 PM »
Yup. It might drive badly because the chassis moves a lot, but still it's the simpler way to do this.

Offline Badnik96

  • tired of your shit
  • *
  • Posts: 17537
  • Rep: 3
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #470 on: April 24, 2010, 07:12:24 PM »
Could I use Timber.py to make the bot drive better?

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 #471 on: April 25, 2010, 01:10:28 AM »
Ask Click. I don't know.

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 #472 on: April 25, 2010, 05:25:45 AM »
How would I AI a full body popup?
Been there, done that. I just used popup.py.
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
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #473 on: April 25, 2010, 06:39:52 AM »
I tested it with Timber, works pretty well.

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 #474 on: April 29, 2010, 11:57:16 AM »

I AI'ed this with Omni but it drives backwards in KotH matches sometimes.
Also, is there a version of pinner with a spinning weapon allowed?
Better than GK since 2009.
I think SM is a pretty cool guy, eh builds unicycle-bots and doesn't afraid of anything

Offline somestrangeguy

  • *
  • Posts: 2068
  • Rep: 2
  • If you can read this, your monitor is turned on.
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #475 on: April 29, 2010, 12:24:47 PM »
Yes, in KotH matches robots do drive backwards just to be in the zone, so you need to build your KotH AI bots with that in mind.

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 #476 on: April 29, 2010, 01:00:11 PM »
I've never seen other bots do that, anyway what about a (s)pinner.py?
Better than GK since 2009.
I think SM is a pretty cool guy, eh builds unicycle-bots and doesn't afraid of anything

Offline S.T.C.

  • *
  • Posts: 2105
  • Rep: 3
  • Not to be confused with STDs.
    • www.youtube.com/user/Shad
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #477 on: April 29, 2010, 06:02:12 PM »
I'd try to use that .py and see what happens.



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 #478 on: April 30, 2010, 12:50:06 AM »
Wire the spinner to the forward drive, there's no spin in pinner.
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 #479 on: April 30, 2010, 12:52:48 AM »
if you want it to keep spinning in a countout wire it to backwards also

if not leave it be and it wont spin while backing up