gametechmods

Robot Arena => General Support => Topic started by: Resetti's Replicas on April 13, 2012, 10:29:44 PM

Title: ElectricHammer problems
Post by: Resetti's Replicas on April 13, 2012, 10:29:44 PM
I'm having some problems getting ElecticHammer AI to work.  For whatever reason, the hammer doesn't want to work, evne though I have a Smartzoe labelled weapon and the control labelled Fire.   The hammer is kind of heavy, needs a sustained 2 seconds on the motor to go all the way over.  Can someone post a sample binding that has worked for them?  I feel like that would be the easiest way to attack this.  Thanks.
Title: Re: ElectricHammer problems
Post by: Wolfsbane on April 15, 2012, 10:26:42 AM
try renaming Fire to weapon
Title: Re: ElectricHammer problems
Post by: Conraaa on April 15, 2012, 10:31:30 AM
You could politely ask Freeziez for my King Crab bot and ai, that sort of worked. I can't find my own copy at the moment though.
Title: Re: ElectricHammer problems
Post by: Badnik96 on April 15, 2012, 10:57:55 AM
There's a "weaponid" thingy in the ElectricHammer bindings. You have to make that ID number the component number of the weapon, based on when it was put on. Open the bot file and count the number of components until you reach the weapon motor. If it's the first part, it's 0, second part, 1, so on until you reach the weapon motor.
Title: Re: ElectricHammer problems
Post by: Mr. AS on April 18, 2012, 03:57:29 PM
Can someone post a sample binding that has worked for them?  I feel like that would be the easiest way to attack this.  Thanks.
Code: [Select]
    list.append(("Bisector","ElectricHammer",{'invertible':True,'radius':1.5,'topspeed':99,'throttle':100,'turn':50,'turnspeed':1.5,'MotorID':20,'NoChassisTime':-1,'StartAngle':-math.pi/2,'SwingTime':5,'weapons':(25,)}))
there ya go