Author Topic: AI-ing (.py files, coding, nose-orienting R+D, and help)  (Read 235903 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, nose-orienting R+D, and help)
« Reply #840 on: June 25, 2011, 12:12:11 PM »
It's just it can't stop spinning. I don't think it'l translate.
Better than GK since 2009.
I think SM is a pretty cool guy, eh builds unicycle-bots and doesn't afraid of anything

Offline Vertigo

  • *
  • Posts: 4547
  • Rep: 5
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #841 on: June 25, 2011, 12:16:53 PM »
Well a trinity SNS won't immobilise itself, surely

So no need to stop spinning

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, nose-orienting R+D, and help)
« Reply #842 on: June 25, 2011, 12:19:21 PM »
I guess so. Any ideas about those weightless smartzones?
Better than GK since 2009.
I think SM is a pretty cool guy, eh builds unicycle-bots and doesn't afraid of anything

Offline Vertigo

  • *
  • Posts: 4547
  • Rep: 5
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #843 on: June 25, 2011, 12:29:57 PM »
Doesn't matter if you're entering it in a tourney, smartzones aren't included in the bots weight

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, nose-orienting R+D, and help)
« Reply #844 on: June 25, 2011, 12:53:52 PM »
I know, but I wish to find them for a purpose I do not wish to reveal.
Better than GK since 2009.
I think SM is a pretty cool guy, eh builds unicycle-bots and doesn't afraid of anything

Offline Vertigo

  • *
  • Posts: 4547
  • Rep: 5
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #845 on: June 25, 2011, 01:07:59 PM »
Not a clue then :P

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, nose-orienting R+D, and help)
« Reply #846 on: June 25, 2011, 02:12:49 PM »
I have made a py file for trinity SnS, but it failed.

Offline Mr. AS

  • TheGloriousCarbideArstotzkanIronsideChaosProtocol
  • *
  • Posts: 7557
  • Rep: 19
    • robotarenagtm
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #847 on: June 25, 2011, 02:27:14 PM »
Also, I can't seem to find the link to those weightless smartzones.

One of the components in here is a no-wieght smartzone:
https://gametechmods.com/Robot_Arena2/Components/zonemodpack.zip
How you make Alarm Clock Pizza is:
Step 1: You buy an alarm clock from the store, and then you have to break it and put it in the sauce.
Step 2: Fold the sauce in 5 slices and put it in the dough.
Step 3: Paint the eggs with a pitcher of a clock showing what time you want to wake up and eat pizza for breakfast.
Step 4: Put the eggs in the dough.
Step 5: Make it flat into a round shape and draw the time you want on it.
Step 6: Put some old steel to prevent other peple from stealing it.
Step 7: Make it flat and cut into 60 slices 1 for each minute in 1 our.
Step 8: Put in the oven set the timer to 30048813.2884 seconds and put the temperature on 'Volcano' setting.
Step 9: If you think it is take to long, then get yor alarm clock and set it to now so that it will ring and you can take it out.
Step 10: Take it out uv the uvin wen it is redy and go to bed. In the morning eat pizza and also eat yor hands bi mistake.

Offline JoeBlo

Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #848 on: June 25, 2011, 10:32:09 PM »
Leave it to the pro's :P

1) The weightless SZ's are Mad's, just go back through the pages in the "Mods and Designs" section and find the topic "Mad's Mods, Thoughts and Tweaks" they are on the last or second last page (if memory serves)

2) I am working on a Trinity python for the flier challenge right now, When I get them to AI ok I will hook you up with the files and info..

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, nose-orienting R+D, and help)
« Reply #849 on: June 26, 2011, 04:25:35 AM »
@ JB, thanks and thanks.
Better than GK since 2009.
I think SM is a pretty cool guy, eh builds unicycle-bots and doesn't afraid of anything

Offline Conraaa

  • Certified Hood Classic
  • *
  • Posts: 3325
  • Rep: 10
  • I like my sugar with coffee and cream
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #850 on: July 16, 2011, 12:03:29 PM »

Does anyone have any experience with ElectricHammer ai? Aka the ai used on Bisector?
I am trying to Ai this and it is refusing to even attempt to swing the hammer. The motor is a NPCfast which can swing the hammer fine.
I've got the Motorid right so I have no idea whats going on.
Or if anyone else could suggest an alternative that'd be great.

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, nose-orienting R+D, and help)
« Reply #851 on: August 10, 2011, 06:43:50 PM »
GRAAARGH

I AM TRYING TO AI MY BOT FOR IRONBOT AND EITHER IT'S NOT WORKING, EITHER I AM UNHAPPY WITH IT

Here's the special AI for it:

Code: [Select]
from __future__ import generators
import plus
import AI
from AI import vector3
import Arenas
import Gooey
import math
import Tactics

class SZSpinnerPopup(AI.SuperAI):
    "Like Omni, but does not use a range value for a spinning weapon ; instead uses a smartzone"
    name = "SZSpinnerPopup"
   
    #Just like said, this is an AI that activates it's spinning weapon via a smartzone (that you need to name "spinner") rather than a range value.
    #For very short spinup time robots (jugglers, drums, face spinners, etc) that only really need to spin their weapons when the opponent is on them.
#This version is similar to Popup.py, only the chassis of an opponent will trigger the spinning.
    #Brought to you by Naryar and inspired by Madiaba's Arrowhead.py.
   
    def __init__(self, **args):
        AI.SuperAI.__init__(self, **args)
               
        self.zone = "weapon"
        self.triggers = ["Spin"]
        self.trigger2 = ["Srimech"]
        self.botinzone = 0
       
     
        if 'triggers' in args: self.triggers = args['triggers']
       
        self.triggerIterator = iter(self.triggers)
 
        self.tactics.append(Tactics.Engage(self))
       
    def Activate(self, active):
        if active:
            if AI.SuperAI.debugging:
                self.debug = Gooey.Plain("watch", 0, 75, 100, 75)
                tbox = self.debug.addText("line0", 0, 0, 100, 15)
                tbox.setText("Throttle")
                tbox = self.debug.addText("line1", 0, 15, 100, 15)
                tbox.setText("Turning")
                tbox = self.debug.addText("line2", 0, 30, 100, 15)
                tbox.setText("")
                tbox = self.debug.addText("line3", 0, 45, 100, 15)
                tbox.setText("")
           
            self.RegisterSmartZone(self.zone, 1)
            self.RegisterSmartZone(self.zone1, 2)
           
        return AI.SuperAI.Activate(self, active)

    def Tick(self):
        # fire weapon
        if self.weapons:
            # spin up if enemy is in smartzone.
            if self.botinzone1 == 1:
                self.Input("Spin", 0, 1)
            else:
                self.Input("Spin", 0, 0)
           
           
            targets = [x for x in self.sensors.itervalues() if x.contacts > 0 \
                and not plus.isDefeated(x.robot)]

        return AI.SuperAI.Tick(self)

    def InvertHandler(self):
        # fire all weapons once per second (until we're upright!)
        while 1:
            for trigger in self.trigger2:
                self.Input(trigger, 0, 1)
           
            for i in range(0, 8):
                yield 0
               
    def LostComponent(self, id):
        # if we lose all our weapons, stop using the Engage tactic and switch to Shove (absolutely worthless, that said)
        if id in self.weapons: self.weapons.remove(id)
       
        if not self.weapons:
            tactic = [x for x in self.tactics if x.name == "Engage"]
            if len(tactic) > 0:
                self.tactics.remove(tactic[0])
               
                self.tactics.append(Tactics.Shove(self))
                self.tactics.append(Tactics.Charge(self))
           
        return AI.SuperAI.LostComponent(self, id)
               
    def DebugString(self, id, string):
        if self.debug:
            if id == 0: self.debug.get("line0").setText(string)
            elif id == 1: self.debug.get("line1").setText(string)
            elif id == 2: self.debug.get("line2").setText(string)
            elif id == 3: self.debug.get("line3").setText(string)
    def SmartZoneEvent(self, direction, id, robot, chassis):
        if id == 0 and self.weapons:
            if chassis:
                if direction == 1:
                    self.botinzone == 1;
        return True
AI.register(SZSpinnerPopup)

That is not working. It launches the game fine, then at the end of the match starting countdown it randomly crashes.

AND NOW THERE IS A MOSQUITO ANNOYING ME. HIS END WILL BE SWIFT AND PAINFUL.

Offline Badnik96

  • tired of your shit
  • *
  • Posts: 17536
  • Rep: 3
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #852 on: August 10, 2011, 07:04:51 PM »
lol

Just use Popup, name the spinner command "fire" and the SZ "weapon". Works for BountyHunter and LSoDG (AKA my BTTB4 entry)

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, nose-orienting R+D, and help)
« Reply #853 on: August 10, 2011, 07:29:56 PM »
lol

Just use Popup, name the spinner command "fire" and the SZ "weapon". Works for BountyHunter and LSoDG (AKA my BTTB4 entry)

Do you think I did not tried that ?

It worked, but the spinner WOULD NOT STOP SPINNING after first getting contact with the chassis. And that I do not want, mostly because my razors might hit the enemy's weapons, and no gut-ripper keeps his weapons outside when not attacking !

Offline Badnik96

  • tired of your shit
  • *
  • Posts: 17536
  • Rep: 3
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #854 on: August 10, 2011, 08:15:51 PM »
oh.


Offline Badnik96

  • tired of your shit
  • *
  • Posts: 17536
  • Rep: 3
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #855 on: August 13, 2011, 05:24:51 AM »
DP

How would I AI this?

(Image removed from quote.)

I tried to AI it with THZ.py but the actuators trinity on me and the clamps move at an ungodly speed.

ElectricHammer was not much better.

Help?

Offline JoeBlo

Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #856 on: August 13, 2011, 06:48:37 AM »
THZ is a motor hammer python.. so even if the robot didnt glitch it wouldnt work..

Try Kheper.py 

Put the linear's on the analog control "Servo" with positive axis as open and negative axis as closed (or vice versa if it keeps them closed all the time)

Offline Badnik96

  • tired of your shit
  • *
  • Posts: 17536
  • Rep: 3
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #857 on: August 17, 2011, 03:01:31 PM »
Is there an AI out there that makes the bot back up at the beginning but is then just a normal Omni-style bot?

Offline G.K.

  • *
  • Posts: 12156
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #858 on: August 17, 2011, 03:02:33 PM »
For how long?

This isn't my BoR bot is 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 Badnik96

  • tired of your shit
  • *
  • Posts: 17536
  • Rep: 3
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #859 on: August 17, 2011, 03:05:10 PM »
no, it's my bot for Un-generic-ness.

for like 3 seconds.