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 - G.K.

Pages: 1 ... 626 627 628 629 630 631 632 [633] 634 635 636 637 638 639 640 ... 663
12641
Stock Showcases / Re: Sparkeys showcase
« on: January 08, 2010, 02:05:59 PM »
To make the pics smaller, in paint, scroll to the bootom right corner. There is a ble square there. Click and drag it. The lines indicate where the edge of the picture is.

As for the bot, well there's lots of empty space, you've not built to the weight limit, I bet you've only used one battery, you can easily make it 4WD and the wedge can be on a DDT as well.

I know this link has been posted before, but please make sure that you read it.

12642
DSL TC Showcases / Re: S.T.C's DSL Bots
« on: January 08, 2010, 01:54:11 PM »
Looks good S.T.C.

12643
Tournament Archives / Re: Wild Robots: Live 2 Discussion and Sign-Ups?
« on: January 08, 2010, 01:20:55 PM »
Update sent.

12644
Tournament Archives / Re: Wheely Tag Tourment - Sign up's
« on: January 08, 2010, 12:45:50 PM »
He has 2 days.

You forgot to update it to say that Urjak's entry is in.

12645
Real Robotics Discussion / Re: What would YOU build?
« on: January 08, 2010, 12:36:08 PM »
Me, a Featherweight flipper. Plans are sorted, construction suspended indefinitely.

12646
Tutorials and Tips / Re: AI-ing (.py files, coding, R+D, and help)
« on: January 08, 2010, 08:44:13 AM »
Game crashing as I try to start battle

12647
Tournament Archives / Re: The Amazing Rage Tournament Idea
« on: January 08, 2010, 08:34:42 AM »
He does. I've already updated my team god knows how many times.

12648
Tournament Archives / Re: The Amazing Rage Tournament Idea
« on: January 08, 2010, 08:33:00 AM »
I might completely rebuild Team Fedex if I can be bothered.

12649
Tournament Archives / Re: Wheely Tag Tourment - Sign up's
« on: January 08, 2010, 08:29:49 AM »
Jonzu needs to get down to building.

12650
Online Battles / Re: Online Multiplayer Battles
« on: January 08, 2010, 08:24:08 AM »
Me.

12651
Tournament Archives / Re: Clash Cubes 3 - SignUp
« on: January 08, 2010, 08:10:15 AM »
Nice work.

12652
Tournament Archives / Re: Wheely Tag Tourment - Sign up's
« on: January 08, 2010, 07:53:26 AM »
Lloopp, Nary, start pressurizing your teammates for their entry.

12653
Discussion / Re: What is your signature robot?
« on: January 08, 2010, 07:52:29 AM »
Not one to be discounted just yet. Depends on Jonzu's entry.

12654
Discussion / Re: What is your signature robot?
« on: January 08, 2010, 06:54:56 AM »
SSG's is obvious.

12655
Online Battles / Re: Online Multiplayer Battles
« on: January 08, 2010, 06:21:00 AM »
Stock battle :D (it does hav the smiley)

Is this internet or hamachi?

12656
Online Battles / Re: Online Multiplayer Battles
« on: January 08, 2010, 06:16:11 AM »
what's the server name?

12657
Tutorials and Tips / Re: AI-ing (.py files, coding, R+D, and help)
« on: January 08, 2010, 06:04:18 AM »
I was trying to make tractor compatable with a srimech, but there's something wrong, and I can't see it.

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

class Tractorright(AI.SuperAI):
    "Spins in plow style with srimech"
    # - Works just like Spinner.py but with plow and srimech incoroporated into it.
    # - Correct weapon ID numbers will help.
    # - No extra stuff needed in the bindings.
    name = "Tractorright"

    def __init__(self, **args):
        AI.SuperAI.__init__(self, **args)
       
        self.spin_range = 3.0
    self.trigger2 = ["Srimech"]       
       
        if 'range' in args:
            self.spin_range = args.get('range')

        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("")
           
        return AI.SuperAI.Activate(self, active)

    def Tick(self):
        if self.weapons:
            # spin up depending on enemy's range
            enemy, range = self.GetNearestEnemy()
           
            if enemy is not None and range < self.spin_range:
                self.Input("Spin", 0, 1)
            elif self.GetInputStatus("Spin", 0) != 0:
                self.Input("Spin", 0, 0)
           
        return AI.SuperAI.Tick(self)

    def RobotInRange(self, robot_id):
        "Return tuple of (part-of-robot-in-range, chassis-in-range)"
        # GetLastDamage returns:  component damaged, amount, at time, by player, by component
        range = self.GetDistanceToID(robot_id)
        if range < self.spin_range:
            damage = self.GetLastDamageReceived()
            if damage[3] == robot_id and (plus.getTimeElapsed() - damage[2] < 1.0):
                return (True, True)
               
        return (False, False)
       
    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):
        #print "Lost Component!"
        return AI.SuperAI.LostComponent(self, id)

    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 Disable(self,btarget):
        # Disables opponent by charging it at an angle
        # we use a different angle (depending on the size of the opponent!)
        # if target is equal in size, the plow weapon charges are more direct

        if btarget > self: self.Turn(79)
        else: self.Turn(-79)
        if btarget < self: self.Turn(35)
        else: self.Turn(-35)
        if btarget == self: self.Turn(90)
        else: self.Turn(-90)
        if self.target: self.Turn(360)
       
        return AI.SuperAI.Disable(self, btarget)
   
AI.register(Tractorright)
I think the proble is with the line defining the trigger or this bit
Quote
    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     

Edit: I've given up for the time being as it isn't working.

12658
Site News and Feedback / Re: Moar smileys ?
« on: January 08, 2010, 05:47:31 AM »
What size do they need to be?

12659
Contests / Re: BOTM Feb 2010
« on: January 07, 2010, 04:22:31 PM »

12660
Tournament Archives / Re: Wild Robots: Live 2 Discussion and Sign-Ups?
« on: January 07, 2010, 04:21:50 PM »
Wham, did you get my entry?

Pages: 1 ... 626 627 628 629 630 631 632 [633] 634 635 636 637 638 639 640 ... 663