gametechmods

Robot Arena => General Support => Topic started by: Resetti's Replicas on May 23, 2011, 10:36:41 AM

Title: Shift Weapon AI help
Post by: Resetti's Replicas on May 23, 2011, 10:36:41 AM
I'm tinkering with the ShiftWeapon AI for one of my bots (It's the one where you mount a spin motor onto a servo so that the configuration of your spin weapon changes constantly) and I don't understand what the variables do.  Can anyone explain these, plus the range of acceptable numbers?
'servoNbPos', 'servoTimer', ''servodelta,' and 'servorange.'

Also is there a way to make the servo pivot less often.  At the moment it's shifting about once per 1-2 seconds
Title: Re: Shift Weapon AI help
Post by: Squirrel_Monkey on May 23, 2011, 10:42:34 AM
list.append( ("shiftweapon II", "ShiftWeapon3", { 'nose': math.pi, 'servospeed':30,'servodelta':0.05, 'servoTimer':35, 'servoNbPos':4,'weapons': (1,2,3,4) }) )
EDIT to fit bot.
Title: Re: Shift Weapon AI help
Post by: Resetti's Replicas on May 23, 2011, 10:45:36 AM
I have that already, I want to know how it affects the bot's performance when I change the numbers
Title: Re: Shift Weapon AI help
Post by: Squirrel_Monkey on May 23, 2011, 10:47:12 AM
Experiment I guess.
servospeed might be how fast it turns.
EDIT: Seems to explain it well in the python file.
Title: Re: Shift Weapon AI help
Post by: Clickbeetle on May 29, 2011, 08:53:40 PM

Already explained this in a PM.  But for this

Also is there a way to make the servo pivot less often.  At the moment it's shifting about once per 1-2 seconds


you want to increase servoTimer.
Title: Re: Shift Weapon AI help
Post by: ACAMS on May 29, 2011, 10:59:31 PM
Experiment I guess.
servospeed might be how fast it turns.
EDIT: Seems to explain it well in the python file.


Are you Sparkbutt double accounting????


We don't guess in Technical support, if you don't know then keep quiet!
Title: Re: Shift Weapon AI help
Post by: Squirrel_Monkey on May 30, 2011, 04:13:38 AM
Well, no-one else was helping so I did my own experiments with the .py file to see what it did then made observations.