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

Offline S.T.C.

  • *
  • Posts: 2105
  • Rep: 4
  • 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 #400 on: March 21, 2010, 07:10:56 PM »
For some reason when I AI a bot, it won't move at all, plz help

btw, this is the first time this has happened to me.



Offline Badnik96

  • tired of your shit
  • *
  • Posts: 17536
  • Rep: 3
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #401 on: March 21, 2010, 07:12:08 PM »
Are the controllers named Forward and LeftRight?

Offline S.T.C.

  • *
  • Posts: 2105
  • Rep: 4
  • 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 #402 on: March 21, 2010, 07:20:44 PM »
Are the controllers named Forward and LeftRight?
Yeah
 
I figured out what happened, Sparkey has a weird way of controlling bots.



Offline Somebody

  • *
  • Posts: 7201
  • Rep: 13
  • CP: +2
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #403 on: March 22, 2010, 02:39:53 PM »
Does anybody know where I can get a download of the latest AI Chart?
I built that big robot on that TV show that time


Offline Stagfish

  • Ultra Heavyweight
  • Posts: 2963
  • Rep: 0
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #404 on: March 24, 2010, 03:11:25 PM »
Are the controllers named Forward and LeftRight?
Yeah
 
I figured out what happened, Sparkey has a weird way of controlling bots.

how does he control them?

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 #405 on: March 24, 2010, 03:19:32 PM »
Like that other game goose posted about.
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 027 LB

  • some guy???
  • Lightweight
  • Posts: 242
  • Rep: -24
  • SCOOT THE BURBS
    • AwEsOmE4938
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #406 on: March 26, 2010, 06:19:08 PM »
Thanks to Badnik96, I have a new AI!
https://gametechmods.com/uploads/files/MultiPiston.rar
It allows you to fire 6 different pistons wired to different controls. The buttons have to be wired Fire1, Fire2 etc and the Smartzones have to be named Piston1 (with caps), Piston2, etc.

Will get a video on how it works soon.

Offline Badnik96

  • tired of your shit
  • *
  • Posts: 17536
  • Rep: 3
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #407 on: March 26, 2010, 06:29:14 PM »
Yeah, I did make it. It will be implemented in his RA2 Trials bot.

Offline Sparkey98

  • Giga Heavyweight
  • Posts: 5738
  • Rep: -20
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #408 on: March 26, 2010, 08:47:46 PM »
That's not "weird". I have a diferent drive style. You're all "weird" beacuse you build unrealistic in stock.

Offline Somebody

  • *
  • Posts: 7201
  • Rep: 13
  • CP: +2
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #409 on: March 26, 2010, 09:44:09 PM »
 :idea2: Or are you weird because you don't...
*The fabric of space tears releasing waves of philosophy*
I built that big robot on that TV show that time


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 #410 on: March 27, 2010, 03:47:07 AM »
@Badnik/027: Does it have a srimech?
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 #411 on: March 27, 2010, 06:54:29 AM »
It has "def InvertHandler(self):" for weapon trigger names 'Fire1', 'Fire2', 'Fire3', 'Fire4'.
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 Badnik96

  • tired of your shit
  • *
  • Posts: 17536
  • Rep: 3
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #412 on: March 27, 2010, 07:14:17 AM »
hmm, I will add a srimech later.

Offline powerrave

  • Giga Heavyweight
  • Posts: 5372
  • Rep: 2
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #413 on: March 27, 2010, 06:50:55 PM »
:idea2: Or are you weird because you don't...
*The fabric of space tears releasing waves of philosophy*

i build realistic in stock if i build there too, but i consider myself decently normal.
"Always be yourself, unless you're a loser"


Offline Somebody

  • *
  • Posts: 7201
  • Rep: 13
  • CP: +2
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #414 on: March 27, 2010, 08:12:23 PM »
Problem is that I just remembered that sparkey does build unrealistic in stock  :ouch:

hmmm...
I built that big robot on that TV show that time


Offline JoeBlo

Re: AI-ing (.py files, coding, R+D, and help)
« Reply #415 on: March 28, 2010, 10:48:11 AM »
interesting python Badnik/027

was it built off a whip python or did you add the back and forth whip motion to it ?

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 #416 on: April 02, 2010, 10:31:40 PM »
Hoping you guys can help me out here.  pretty new to ai'ing, but getting the hang of it.  However, i can't seem to figure out how i can ai my Ka'Dargo bot correctly ( https://gametechmods.com/forums/index.php?topic=3572.15 ).  I've gotten it to where it fires the hammer at the right time, no problem.  The problem is getting the piston attached to it to fire at the right time.  I want it to fire just after the hammer swings, and only fire once per hammer swing.   As it stands now, they both fire at the same time, and the piston constantly fires the whole time the other bot is in the smart zone, which keeps the hammer from retracting quickly. 
 
Any ideas? and thank you in advance.
Survival of the Fittest Is Finished!  Congratulations 090901

Offline Madiaba

Re: AI-ing (.py files, coding, R+D, and help)
« Reply #417 on: April 03, 2010, 10:11:12 AM »
Couple ideas:
1. You can code your py to fire the piston a short interval after the burstmotor (hammer).

2. You can attach a SZ to the piston that will move/swing with the arm, and fire only when an enemy is under it's pointytips. (BFE)
 
3. You can see if you can get a legit return from "self.GetMotorAngle(CompID)" - This returns the angle of a motor in radians, but I've never tried it on a 'burst' motor so not sure what you'll get back.  If you get a valid return, then since the angle of the BM is adjustable, you'll also have to play around to find out where you have the parameters of the burstmotor set for your bot's application (start position, and fired position [in radians: 0-6.28]).
Here's some basic coding adapted from a servomotor:
 
    self.burstangle = self.GetMotorAngle(Component ID) #Find angle of burst motor.
    if self.burstangle > ?: #If angle of burst motor is beyond it's 'start' position (by whatever amount),
        self.Input("Fire_1", 0, 1) #Then fire the piston.
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 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 #418 on: April 04, 2010, 05:12:44 AM »
Couple ideas:
1. You can code your py to fire the piston a short interval after the burstmotor (hammer).

2. You can attach a SZ to the piston that will move/swing with the arm, and fire only when an enemy is under it's pointytips. (BFE)
 
3. You can see if you can get a legit return from "self.GetMotorAngle(CompID)" - This returns the angle of a motor in radians, but I've never tried it on a 'burst' motor so not sure what you'll get back.  If you get a valid return, then since the angle of the BM is adjustable, you'll also have to play around to find out where you have the parameters of the burstmotor set for your bot's application (start position, and fired position [in radians: 0-6.28]).
Here's some basic coding adapted from a servomotor:
 
    self.burstangle = self.GetMotorAngle(Component ID) [/color]#Find angle of burst motor.
   if self.burstangle > ?: #If angle of burst motor is beyond it's 'start' position (by whatever amount),
        self.Input("Fire_1", 0, 1)
#Then fire the piston.

uhmm...whew...i'll try and figure it out.  thanks for the input.  Should've pointed out that i'm currently at the state of feeling an accomplishment when i choose the correct py to go on the bot lol.  Talk to me like i'm 5 maybe?
Survival of the Fittest Is Finished!  Congratulations 090901

Offline JoeBlo

Re: AI-ing (.py files, coding, R+D, and help)
« Reply #419 on: April 04, 2010, 05:47:38 AM »
that will teach you for spending more time in the arcade then the forum itself :P