gametechmods

Robot Arena => General Support => Topic started by: powerrave on March 10, 2010, 02:53:48 PM

Title: SnS AI not working properly.
Post by: powerrave on March 10, 2010, 02:53:48 PM
i have been getting into AIing and found no trouble AIing flippers and rammers, but when i AI FBS magnet with the whipper.py, it will not spin around when an enemy is in the smartzone.
another bot from a friend, using the same attacking way that arc pounder has, does barely anything. it strangely wobbles towards the other bot to... just go on with being sluggish. it doesn't do anything at all further.

this is all in stock. here are the AI lines:
    list.append( ("FBS Magnet 3", "Whipper", { 'nose' : math.pi, 'invertible': True, 'whip': "around", 'zone': "swing", 'turnspeed':4.5, 'turn':80, 'topspeed':17.0, 'throttle': 110, 'weapons':(14,34,13,85,4,62,58,2,) }) )
    list.append( ("M.A.S.H.E.D. v2", "Whipper", { 'nose' : math.pi, 'invertible': True, 'whip': "around", 'zone': "swing", 'turnspeed':3.5, 'turn':80, 'topspeed':15.0, 'throttle': 110, 'weapons':(14,34,13,8,) }) )

please help me out with this.
Title: Re: SnS AI not working properly.
Post by: Badnik96 on March 10, 2010, 03:16:51 PM
Use FBS_2.py.
Title: Re: SnS AI not working properly.
Post by: powerrave on March 10, 2010, 03:19:10 PM
my stock does not have FBS_2.py
if i know where to get it, it would help.
Title: Re: SnS AI not working properly.
Post by: Badnik96 on March 10, 2010, 03:27:06 PM
As far as I know, it's somewhere in here:
https://gametechmods.com/forums/index.php/topic,1103.105.html (https://gametechmods.com/forums/index.php/topic,1103.105.html)
Title: Re: SnS AI not working properly.
Post by: powerrave on March 10, 2010, 03:51:12 PM
got the AI. was in a whole pack with .py files. FBS magnet worked nicely. my friends bot did know how to give a swing at a few points but further remained the same... with the FBS_2.py.
Title: Re: SnS AI not working properly.
Post by: System32 on March 10, 2010, 09:02:17 PM
Whipper AI needs smartzones to work, sadly...
Title: Re: SnS AI not working properly.
Post by: JoeBlo on March 10, 2010, 09:18:13 PM
did you name it Whipzone ? or something else ?
Title: Re: SnS AI not working properly.
Post by: Naryar on March 11, 2010, 08:54:38 AM
It's "whipzone" with no capitalized letter :P

Anyways, FBS.py pwns all.

Title: Re: SnS AI not working properly.
Post by: JoeBlo on March 11, 2010, 10:00:38 AM
is it even case sensitive ? im sure I always use the caps anyway?
Title: Re: SnS AI not working properly.
Post by: powerrave on March 11, 2010, 11:06:59 AM
It's "whipzone" with no capitalized letter :P

Anyways, FBS.py pwns all.
don't have that one.

did you name it Whipzone ? or something else ?
i did call the smartzone whipzone.
Title: Re: SnS AI not working properly.
Post by: Naryar on March 11, 2010, 11:10:06 AM
FBS.py is in NAR AI.
Title: Re: SnS AI not working properly.
Post by: powerrave on March 11, 2010, 01:03:36 PM
got, it tried it. been trying different things with it, but all it does now is aimlessly spin around. it won't drive towards my bot or anything, i will just keep spinning, hitting about every wall and hazard from the arena.
maybe i'm doing something wrong with the AI line?
    list.append( ("M.A.S.H.E.D. v2", "FBS", { 'nose' : math.pi, 'invertible': True, 'spinspeed':17, 'direction':1, 'turnspeed':3.5, 'turn':80, 'topspeed':15.0, 'throttle': 110, 'weapons':(14,34,13,8,) }) )
Title: Re: SnS AI not working properly.
Post by: Squirrel_Monkey on March 11, 2010, 01:07:00 PM
What are the controls wired as?
Title: Re: SnS AI not working properly.
Post by: powerrave on March 11, 2010, 01:14:48 PM
(http://i159.photobucket.com/albums/t146/powerrave_NL/cntrl.jpg)

hope this is what you mean...
Title: Re: SnS AI not working properly.
Post by: Squirrel_Monkey on March 11, 2010, 01:21:35 PM
Looks Alright..... I'm no more help.
Title: Re: SnS AI not working properly.
Post by: G.K. on March 11, 2010, 01:29:51 PM
You might need to wire A-D the other way round.
Title: Re: SnS AI not working properly.
Post by: powerrave on March 11, 2010, 01:46:10 PM
done that. that did give some improvement. the bot now aims to hit me, coming towards me while spinning, taking wide corners. it has become combat effective now, so i'm happy.
when i get any other troubles, i will just ask in this topic.
Title: Re: poker AI not working properly.
Post by: powerrave on March 14, 2010, 05:46:33 PM
new problem. i AIed a poker bot, but the pistons aren't used. i did use a smartzone and had called it fire. here is the AI line:
    list.append(("Loudness Of Lasers","Poker",{'invertible':True,'nose':math.pi,'range':99,'radius':0.5,'topspeed':80,'throttle':130,'turn':60,'turnspeed':3.6,'weapons':(10,11,12,13,14,15,16,17)}))

please help with this. i had this before but didn't think of posting it then.
Title: Re: SnS AI not working properly.
Post by: Badnik96 on March 14, 2010, 07:23:31 PM
tha smartzone has to be named "weapon".
Title: Re: SnS AI not working properly.
Post by: powerrave on March 15, 2010, 12:55:30 PM
tested and FFFFUUUUUU!!! it worked. tut has been misinforming me there. now to fix some other pokers.