Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - 123savethewhales

Pages: 1 ... 28 29 30 31 32 33 34 [35] 36 37 38 39 40 41 42 ... 138
681
General Support / Re: Is combining OmniInverted and Popup .py possible.
« on: November 05, 2012, 10:41:14 AM »
Thanks.  So all I needed now is something for the starting location.

682
Off-Topic Discussion / Re: General Chatter Thread
« on: November 04, 2012, 11:45:41 AM »
Back from China, what did I miss?
Enjoyed the toxic smokey grey sky?

683
General Support / Is combining OmniInverted and Popup .py possible.
« on: November 04, 2012, 11:25:12 AM »
I was trying to AI this bot



I want to combine the OmniInverted.py with the Popup.py.  But when I tried doing it it won't fire on smart zone, then it rams the wall and crash the game on quit.  I am not sure what I am doing wrong.  Also, is it possible to alter the starting facing without changing the nose (so it faces forward immediately after the flip)?

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

class PopupInverted(AI.SuperAI):
    "Popup inverted strategy"
    name = "PopupInverted"
    # bot has to be invertible, not mandatory to mention it in your binding, it is force.
    # much like Popup except that the bot use a button control called 'Inverter' to invert itself if it is not.
    def __init__(self, **args):
        AI.SuperAI.__init__(self, **args)
               
           # force bot to be invertible :
        self.invertible = True
        self.zone1 = "weapon"
        self.triggers1 = ["Fire"]
        self.triggers2 = ["Srimech"]
        self.reloadTime = 0
        self.reloadDelay = 3
        self.InverterTime  = 3

        if 'zone' in args: self.zone = args['zone']
       
        if 'triggers' in args: self.triggers1 = args['triggers']
        if 'triggers' in args: self.triggers2 = args['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.zone1, 1)
           
        return AI.SuperAI.Activate(self, active)

    def Tick(self):
        # fire weapon

            # If the bot is not inverted, try to invert it : use the button control called 'Inverter' :
            # here again, slight delay before inverting
            if self.InverterTime > 0: self.InverterTime -= 1

            #if (not self.ai.IsUpsideDown()) and (self.InverterTime <= 0) :
            #if (self.InverterTime <= 0) :
            if (not self.IsUpsideDown()) and (self.InverterTime <= 0) :
                self.Input("Inverter", 0, 1)
                self.InverterTime = self.reloadDelay
                   
        targets = [x for x in self.sensors.itervalues() if x.contacts > 0 \
                and not plus.isDefeated(x.robot)]
       
            # slight delay between firing
            if self.reloadTime > 0: self.reloadTime -= 1
           
            if len(targets) > 0 and self.reloadTime <= 0:
                try:
                    trigger = self.triggerIterator.next()
                except StopIteration:
                    self.triggerIterator = iter(self.triggers)
                    trigger = self.triggerIterator.next()
               
                self.Input(trigger, 0, 1)
                self.reloadTime = self.reloadDelay
                       
        bReturn = AI.SuperAI.Tick(self)
       
        return bReturn

    def InvertHandler(self):
        # fire all weapons once per second (until we're upright!)
        while 1:
            for trigger in self.triggers2:
                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
        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 == 1 and self.weapons:
            if chassis:
                if direction == 1:
                    for trigger in self.triggers1: self.Input(trigger, 0, 1)
        return True
   
AI.register(PopupInverted)

684
Stock Showcases / Re: Mr AwesumSauce Stock Showcase
« on: November 03, 2012, 06:01:30 PM »
If you turn it to a true popup it would perfect self right without the help of wedge.  You would need to reverse the way you mount the burst though.

If you don't want to rebuild all that motors, you can also send it over and I can help you convert it using BFE.

685
DSL TC Showcases / Re: Mystic2000 crap showcase - DSL version
« on: November 03, 2012, 08:21:22 AM »
You don't need steel extenders.  Maybe DSL bars at most.

Then you probably have weight for vlad spikes instead of swords, which isn't too bad.

686
Stock Showcases / Re: Scrapyard24c's Stock Garage
« on: November 01, 2012, 01:22:40 PM »
ummm.....
clone this first okay:
(Image removed from quote.)

you honestly believe that he can build anything near this right now?
Why not?  It's like mad ez.  Just open another bot and take it apart to see how it's done.

687
Off-Topic Discussion / Re: General Chatter Thread
« on: November 01, 2012, 10:23:35 AM »
(Image removed from quote.)

Finally someone used the "reason" as a troll mechanism.

688
Stock Showcases / Re: G.K.'s Stock Showcase
« on: October 31, 2012, 04:37:20 PM »
You can kill HS better if you make it a true popup.  They are better at hitting where it counts.

689
Chatterbox / Re: About Ian.
« on: October 31, 2012, 02:01:13 PM »
People are just making smart-ass comments for their own sakes.

By the end of the day, nobody is the center of the universe here.

690
Chatterbox / Re: About Ian.
« on: October 31, 2012, 08:34:42 AM »
I think ppl are just trying way too hard to get attentions around here.  That's really all there is to it.  It got nothing to do with being nice or being helpful, it's just pure attention whoring.

691
Stock Showcases / Re: TheRoyalBadger's Stock Showcase
« on: October 30, 2012, 07:27:13 AM »
It's people like you who ruin tourneys. Instead of entering for fun, with the offchance to win, you enter a cheap ass bot that's highly likely to win and kill all of the fun of the tourney and make the hosts life dull.

I hope you're happy.
I can always enter my FSnS to kill his.

Razors stand no chance against bearclaws in a de-weapon fight, and the way it is set up is just asking for the extenders to break.

692
DSL TC Showcases / Re: Suede's DSL Showcase
« on: October 30, 2012, 07:23:23 AM »
Drop it down to 80cm for more HP.  120cm is awfully unnecessary with heavy plow wedge.

693
DSL TC Showcases / Re: CameraFan's DSL fail-palace
« on: October 28, 2012, 02:54:48 PM »
Well, lesson 1 of DSL

MOAR RAZORZ.

694
Stock Showcases / Re: Mr AwesumSauce Stock Showcase
« on: October 28, 2012, 02:42:41 PM »
Mace is OLD NEWS!!!!  MOAR BEARCLAWZ!!!!

695
Hax mode exostacking == perfect invulnerable chassis.  And perfect invulnerability is just stupid in any game.

Hax mode without exostacking would do nothing but make HS chassis a bit smaller, while taking away most of the design step.  I am not seeing where the excitement is.  By the end of the day what matters is still the de-weapon game.


1. What do you want to see more of? 
2. Why don't you comment much? (ignore if you do).
3. Where do you spend most of your time on the forum?
4. Do you watch tournament videos that don't feature your own bot?
5. Why don't you enter BOTM? 
6. How many AI packs do you have?
7. Do you play stock, DSL or both?
8. What have you given to the community?
1.  n00bs
2.  Because I would sound like a broken record.  DSL == MOAR RAZORZ, Stock == MOAR BEARCLAWZ.
3.  On the main page
4.  I don't even watch videos with my own bot.
5.  The rules tend to be too restricting for me, so I only enter those "do whatever the heck you want" ones.
6.  While I have others, I only play 123AI on DSL because I am self absorb like that.
7.  DSL, maybe a bit of stock now but not really.
8.  Nothing.

Also you are building AW stock AI pack and an "I DON"T ACCEPT NEW BOT" pack....  Like just maybe they are not the most interesting things in the universe...

696
Discussion / Re: DSL Standard Ruleset - Discussion
« on: October 28, 2012, 11:44:19 AM »
This is so confusing......

It is like a legal document that no-one will read besides those who are already familiar with the law.

697
Stock Showcases / Re: G.K.'s Stock Showcase
« on: October 28, 2012, 10:35:46 AM »
Snapper 2 is the bomb.  Don't know why everyone uses DDT.

You probably only need 3 razor per snapper 2 though.

698
Stock Showcases / Re: G.K.'s Stock Showcase
« on: October 27, 2012, 10:05:26 AM »
Does it matter if your wedge breaks?  I mean, you only need the small wedge against another wedge bot, which the spike strip doesn't help against.  Against a non wedge bot such as HS, you can get under with just the chassis slope alone, so it doesn't matter if they break the wedge.

699
Off-Topic Discussion / Re: General Chatter Thread
« on: October 27, 2012, 06:58:51 AM »
I would prove it, but that would involve giving their identities away, and I don't want that.
Pics or it didn't happen.

700
Off-Topic Discussion / Re: General Chatter Thread
« on: October 27, 2012, 06:20:06 AM »
Yeah using Facebook is dumb.

Don't ppl know by now that anything you said in Facebook is recorded and can be used against you by either law enforcement or your potential employers?

Pages: 1 ... 28 29 30 31 32 33 34 [35] 36 37 38 39 40 41 42 ... 138