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 - philetbabe

Pages: 1 ... 14 15 16 17 18 19 20 [21] 22 23 24 25 26
401
Tutorials and Tips / information on binding.py and the Weapon list
« on: December 04, 2008, 06:28:12 AM »
So, what are these numbers in the weapons list contained in binding.py  ?
Code: [Select]
...,'weapons':(1,2,3,4,5,6,7,8,9)}))
This numbers are assumed to be the Identifier of your weapons.
Each time you lost one, it is removed from this list.
By default, when this list is empty the strategy is changed.

This mean
* if your  list is empty, whatever your AI is, the strategy used should be the
one define in 'LostComponent' function.
* if you put number that do not correspond to Weapon Identifier (which is mostly the case if your write 1,2,3,...) you will keep your strategy even if you loose all your weapons for this list will never be empty

Usage of this list :
* to be sure that your list contains the good weapons identifier, you may fill it yourself after having a look at yotur bot with a gmf decompiler. You may also add this code to your activate function, it build a correct list of weapons Id :
Code: [Select]
   def Activate(self, active):
        if active:
              ...
            goon = 1
            i = 0
            self.weapons = []
            while goon == 1:
                if i  == self.GetNumComponents(): break # to verifiy if  i == ... or  i > ...
                currentType =  self.GetComponentType(i)
                if currentType == "Weapon": self.weapons.append (i)
                i = i+ 1
return AI.SuperAI.Activate(self, active)

For instance, here is an usage of this list :
Code: [Select]
   def __init__(self, **args):
        AI.SuperAI.__init__(self, **args)
        self.SpinTrigger = "Spin"
        self.ServoTrigger = "Servo"
         ...

    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 len(self.weapons) < 4 :
   # i have 2 motors mounted on a tri-bar extender.
# the last bar contains a hammer.
# my self.weapons list contains the Id of the weapons.
# when  only 3 weapons remains, i swith my controler
# to make my servomotor spin much like a normal motor
                        # so the AI that controls the servo become useless
                        # my bot turn to a 'normal spinner'
            self.SpinTrigger = "Servo"
            self.ServoTrigger = "NOP" # does nothing
            self.SpinSpeed =  100
           
        return AI.SuperAI.LostComponent(self, id)

Fields of investigation : does the lostcomponent function is called for each component lost or only for weapons ? What happens if one put Id of motors or other components in its self.weapons list ?

402
DSL TC Showcases / Condor's showcase
« on: December 04, 2008, 02:28:45 AM »
cyclone is a nice bot, innovative. I like it.
but is it very stable ? isn't it oftenly immobilized by other bots who slips under its large disc ?

403
Tournament Archives / Wild Robots LIVE Idea
« on: December 03, 2008, 07:28:21 AM »
Quote from: Madiaba;23462
Wham can't disclose this info yet cause I'm currently working on some of this stuff for Wham.... seeing what can be done in the time frame available. So really the balls in my court more than his right now... Maybe I could employ your services Phil.
I don't know much about arena scribbing, i've just invest AI yet. what are the special needs for the  house robot ?

maybe it shoud be an immobile (or very slow) bot, never count down immobilized, with a 'laserGuided like AI' (not tested yet) . It has not to be too strong, this is championship, the winner must be the better bot, not the more lucky one. We should also told the AI of the challenger not to fight the house bot, but this may need to touch 'all AI'.
Another yet developped AI for a house bot should be pillar.py


about my available time until 10th dec,  i've only got time between 12h and 14h for the next days, all my evenings are reserved yet and i work by day.

Or maybe, a simple fight, in a simple arena may please all the challengers and there's no much work to do !

404
DSL TC Showcases / Philetbabe DSL showcase
« on: December 03, 2008, 07:19:15 AM »
And there, the last HW bot of this team : HARA KIRI
Armor Steel 1
2 PERM 132
back protected by titanium sheet

(does not always win shebeats)


NAR : Tell  me if yout interested by this team, otherwise i will release it here... but after a while.  I think to take one of the bot of this team as a basis for my WildRobot entry.

405
Tournament Archives / Wild Robots LIVE Idea
« on: December 03, 2008, 03:11:46 AM »
I'll send you soon my bot.
But,  before 10th Dec, can you on the first post
- show the house robot (if any)
- tell finaly which will be the arena.

i do not found that in all these posts.

Thanks.

406
DSL TC Showcases / Philetbabe DSL showcase
« on: December 01, 2008, 03:28:33 PM »
Quote from: Somebody;23272
What do you have for armor on that?

Steel 1, but the back is protected with titanium half sheet

407
DSL TC Showcases / Philetbabe DSL showcase
« on: December 01, 2008, 02:19:33 PM »
here is the reshaped "Drowned" renamed as "poison of Maatet" (one of the scorpion guard of goddess Isis)



SpinServo Ai : 2 custom zones are defined. when an ennemy enter on of theses, the servo turns to face its weapons on the good direction. thus, if 'Poison of maatet' is taken apart from behind, better then turning its all chasis, it turns its weapon.

to learn more about this AI and others, see :
https://gametechmods.com/forums/showthread.php?t=1103

408
DSL TC Showcases / Philetbabe DSL showcase
« on: December 01, 2008, 06:57:13 AM »
This will be one of the HW bot of this team.
I have to make it more compact, relook it, certainly rename it, but it looks promising .

It uses the 'SpinServo AI' which drives the servo motor.



Next post will show it finalized.

409
DSL TC Showcases / Urjaks Showcase
« on: November 30, 2008, 01:41:18 PM »
i like the way you attach your 'DSL axle mount'

Ps : did you resolve your problem with lousy launcher V2 ?

410
DSL TC Showcases / Philetbabe DSL showcase
« on: November 30, 2008, 01:36:05 PM »
Quote from: Sage;23132
no. the top drum is USELESS.


finally drop the top drum and increase armor tot Titanimum 3

411
DSL TC Showcases / Philetbabe DSL showcase
« on: November 30, 2008, 10:25:02 AM »
Quote from: Naryar;23121
Honestly this weapon is really bad.

Dual drum is completely pointless if you have one with 14kg for weapon. Even True Love has more weight on it's weapon.

Just stick to that front drum and make it larger and stronger.

is it better ?


it is my first bot that ever wins enfilad !

412
General Support / AIing Trouble
« on: November 30, 2008, 08:08:27 AM »
Quote from: WhamettNuht;23048
I have a bot of a prblem as well.
My Beauty 2 replica selfrights when on its flipper, but when it gets on its back, it wont fire again.
Can someone help me aswell?


show picture with explanation and tell what AI you use please.

413
DSL TC Showcases / Philetbabe DSL showcase
« on: November 30, 2008, 08:06:13 AM »
Bad mood : second MW of team suicide


To be true, does not always win HC, about 1/2 on combat arena and worth on BBean arena.

414
General Support / AIing Trouble
« on: November 27, 2008, 01:46:04 PM »
Hack the AI (save it before):
add a command to turn your wheels when inverted :
Code: [Select]

   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)
                self.Input('LeftRight', 0, 100)
            for i in range(0, 8):
                self.Input('LeftRight', 0, 100)

and if you want to do it clean, copy your AI under 'myAIName.py'

change the InvertHandler function as above and change also :
Code: [Select]
class MyAIName(AI.SuperAI):
    "MyAIName strategy"
    name = "MyAIName"
...
AI.register(MyAIName)

and if you want to turn the other direction : self.Input('LeftRight', 0, -100)

Well if that works it may be your FIRST AI !

415
General Support / AIing Trouble
« on: November 27, 2008, 12:40:24 PM »
Quote from: Urjak;22922
Okay, I will. Thanks.

if your bot is invertible this mean you can drive it while inverted. this is not the case.

More over it 's a kind of cheat because many AI continue to fight bot invertible that are inverted (and give them a chance to get back on their wheels) while they let them get immobilized when they are not invertible.

By the way :
- tell you're bot is not invertible
- verify that your Srimech control start with 'S' and not 's'
- at last, verify the AI you use get this code
Code: [Select]
  def __init__(self, **args):
        AI.SuperAI.__init__(self, **args)
               
        self.zone = &quot;weapon&quot;
        self.triggers = [&quot;Fire&quot;]
self.trigger2 = [&quot;Srimech&quot;]
 ...

   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

416
DSL TC Showcases / Philetbabe DSL showcase
« on: November 27, 2008, 07:15:43 AM »
and the second LW of this team : Medecine
Titanium 3.



Lot of empty space, but i like its look. And by the Way, my first used  of metal hinge !

417
DSL TC Showcases / Overdose
« on: November 25, 2008, 07:41:37 AM »
this is the second bot of team suicide : 'Overdose' : 3mm titanium, a classical bot.


418
Tutorials and Tips / Laser Guided AI
« on: November 24, 2008, 03:22:03 PM »
Big name for little AI !
https://gametechmods.com/uploads/files/tazbot.rar

this is a variant of 'SpinServo AI'. it is  based on Madiaba work.

Here the servo must spin horizontaly only, but you may attach it a spin motor or a fired weapon (piston). In both case, no need of custom zone.

Sample shows  TazBot from DSL 2.1

Fixed : the AI seems to crash the game when the bot is inverted !

419
DSL TC Showcases / Naryar's DSL freaks
« on: November 23, 2008, 02:10:44 PM »
Quote from: Naryar;22674
A bot named Louis XIV ???


King Louis XIV used to represent himself as the sun

420
DSL TC Showcases / team suicide
« on: November 23, 2008, 11:58:26 AM »
This is the first bot of this Team : Call of the tomb, LW


for Nayard, this bot is slighly different from the one i send you for you AI team, but as this one has not be retained ...

Pages: 1 ... 14 15 16 17 18 19 20 [21] 22 23 24 25 26