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

Offline Naryar

  • Posts: 23278
  • 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 #580 on: May 23, 2010, 10:38:40 AM »
Omni's srimech function doesn't works with VS (unless they have a burst motor self righter, and in that case it is really fail).

You might want to try Click's VertSpinner.py, but you'll need to wire your weapon controls on an analog.

Offline JoeBlo

Re: AI-ing (.py files, coding, R+D, and help)
« Reply #581 on: May 23, 2010, 10:44:11 AM »
oh  :embarr I just assumed it was burst srimech

Offline Naryar

  • Posts: 23278
  • 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 #582 on: May 23, 2010, 10:45:22 AM »
It is burst srimech, and really only works for burst srimechs.

Offline JoeBlo

Re: AI-ing (.py files, coding, R+D, and help)
« Reply #583 on: May 23, 2010, 11:05:46 AM »
I should have been clearer :P

I assumed Gazea's robot utilized a burst srimech therefor a simple omni could make do.. but that would be the wrong thing as you pointed out if that isnt the case.

Offline Gazea2

  • Ultra Heavyweight
  • Posts: 3670
  • Rep: 9
  • the one and only
    • View Profile
    • Awards
  • Skype: gazea2
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #584 on: May 23, 2010, 11:12:02 AM »
It does have a burst srimech. It has two snapper 2's. So, should I use omni?


Offline JoeBlo

Re: AI-ing (.py files, coding, R+D, and help)
« Reply #585 on: May 23, 2010, 11:17:55 AM »
omnis just a great "base" py.. nothing technical, very simple to use and remember it all.. works perfectly for general spinners with burst srimechs or firing weapons

Offline Madiaba

Re: AI-ing (.py files, coding, R+D, and help)
« Reply #586 on: May 23, 2010, 03:15:32 PM »
Controls for FBS_1 are:
                    self.Input("LeftRight", 0, 0)
                    self.Input("Ahead", 0, 100) # then Go.
                    self.Input("Spin", 0, 0)

Note that 'Forward' is not used....  Instead is 'Ahead'.
 
 
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 nicsan2009

  • Ultra Heavyweight
  • Posts: 1836
  • Rep: 5
  • Here we go again!
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #587 on: May 23, 2010, 08:18:43 PM »
If you have an SnS and you want to replace a flipper can you do that? (probbably another n00b guestion)
in all the tutorials it says it must be the SAME type of bot
Hosted 2 Legit 2 Quit tourney Congrats Somebody
Hosted 2 Legit 2 Quit 2 congrats to Plazmic Inferno as well as Somebody (again)
Hosted RA2 World Cup Congrats to Senstro
Hosted TGRR congrats to 090901
ITAT Tournament- Champion
Beetle Bashers- Champion
Father and Son Tournament 2- Champion
GTM All Stars- HW Champion; MW runner up
Father and Son Tournament- Runner up
All Time Record 51-36

Offline Clickbeetle

  • *
  • Posts: 3375
  • 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 #588 on: May 23, 2010, 08:49:13 PM »
Yes, you just have to change the AI type from "Flipper" to "FBS_2" or whatever AI you want to use, and add any new parameters you might need (such as 'range').

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 JoeBlo

Re: AI-ing (.py files, coding, R+D, and help)
« Reply #589 on: May 23, 2010, 09:57:20 PM »
Controls for FBS_1 are:
                    self.Input("LeftRight", 0, 0)
                    self.Input("Ahead", 0, 100) # then Go.
                    self.Input("Spin", 0, 0)

Note that 'Forward' is not used....  Instead is 'Ahead'.

Im sure I used forward before.. I know it says ahead in the python.... unless I edited mine :P

Offline Madiaba

Re: AI-ing (.py files, coding, R+D, and help)
« Reply #590 on: May 23, 2010, 11:54:32 PM »
'Forward' will work due to the 'tactics.py' driving it.

'Ahead' is the command in the AI.py that controls it.

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 JoeBlo

Re: AI-ing (.py files, coding, R+D, and help)
« Reply #591 on: May 24, 2010, 12:00:00 AM »
figured it was an underlying thing like that

any difference with the 2 ?

Offline nicsan2009

  • Ultra Heavyweight
  • Posts: 1836
  • Rep: 5
  • Here we go again!
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #592 on: May 25, 2010, 10:37:39 PM »
i have a qustion. How would you add a team to the default 14 teams. i wanna make team 15 but every time i try my game crashes
Hosted 2 Legit 2 Quit tourney Congrats Somebody
Hosted 2 Legit 2 Quit 2 congrats to Plazmic Inferno as well as Somebody (again)
Hosted RA2 World Cup Congrats to Senstro
Hosted TGRR congrats to 090901
ITAT Tournament- Champion
Beetle Bashers- Champion
Father and Son Tournament 2- Champion
GTM All Stars- HW Champion; MW runner up
Father and Son Tournament- Runner up
All Time Record 51-36

Offline Madiaba

Re: AI-ing (.py files, coding, R+D, and help)
« Reply #593 on: May 26, 2010, 12:38:37 AM »
i have a qustion. How would you add a team to the default 14 teams. i wanna make team 15 but every time i try my game crashes
Yes, but I have no brain at this hour for me... I'll let another show you, else I'll help you out shortly...
 
 
 
figured it was an underlying thing like that

any difference with the 2 ?
Yea, 'Forward' uses the tactics to drive, and may be fighting the spinning, and thus slowing it down at times...
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: 12156
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #594 on: May 26, 2010, 12:39:37 AM »
Nic, take us through the steps you used.
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 #595 on: May 26, 2010, 12:44:48 AM »
Thanks, GK...
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 JoeBlo

Re: AI-ing (.py files, coding, R+D, and help)
« Reply #596 on: May 26, 2010, 12:55:17 AM »
Yea, 'Forward' uses the tactics to drive, and may be fighting the spinning, and thus slowing it down at times...

awesome... I never knew it held off ahead.. thanks Mad

@Nic: a tutorial is coming in a min :D

Offline JoeBlo

Re: AI-ing (.py files, coding, R+D, and help)
« Reply #597 on: May 26, 2010, 01:19:44 AM »
ok one is up in this forum section but still follow through with GK (post above) as its always good to figure out what you did wrong

Offline nicsan2009

  • Ultra Heavyweight
  • Posts: 1836
  • Rep: 5
  • Here we go again!
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #598 on: May 26, 2010, 06:57:03 PM »
ok i tried it and it worked problem solved
Hosted 2 Legit 2 Quit tourney Congrats Somebody
Hosted 2 Legit 2 Quit 2 congrats to Plazmic Inferno as well as Somebody (again)
Hosted RA2 World Cup Congrats to Senstro
Hosted TGRR congrats to 090901
ITAT Tournament- Champion
Beetle Bashers- Champion
Father and Son Tournament 2- Champion
GTM All Stars- HW Champion; MW runner up
Father and Son Tournament- Runner up
All Time Record 51-36

Offline Gazea2

  • Ultra Heavyweight
  • Posts: 3670
  • Rep: 9
  • the one and only
    • View Profile
    • Awards
  • Skype: gazea2
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #599 on: May 29, 2010, 10:16:44 AM »
I tried a.i-ing my VS using omni.py and it crashes my game when I try to go into battle with it. The team.txt, the bindings and the controls look fine. Any help?