gametechmods

Robot Arena => General Support => Topic started by: helloface on May 20, 2013, 02:15:03 PM

Title: AI won't spin their weapons.
Post by: helloface on May 20, 2013, 02:15:03 PM
I am just starting out AIing. I've made spinners in stock before, but for some reason it isn't working in DSL. I named the SWITCH "Spin" and  named it as a Spinner in the bindings. It acts like spinner, but the weapon won't work. The AI guide says I don't need a smart zone, so I'm confused.
Title: Re: AI won't spin their weapons.
Post by: Resetti's Replicas on May 20, 2013, 02:17:01 PM
Is it an of/off swich or button?  The switch might not work.  Also, use Omni instead of Spinner
Title: Re: AI won't spin their weapons.
Post by: Naryar on May 20, 2013, 02:18:09 PM
Don't use a switch, use a button.

Did you named it "Spin" WITHOUT spaces before or after the word ?

Did you made an error in the binding ?

ai is the exact same thing in stock and dsl just so you know.
Title: Re: AI won't spin their weapons.
Post by: helloface on May 20, 2013, 02:43:08 PM
Changed "Spin" to a button. Didn't spin with Omni or Spinner binding.
Title: Re: AI won't spin their weapons.
Post by: Probably Rob on May 20, 2013, 02:45:20 PM
It's DirectionalSpinner.
Title: Re: AI won't spin their weapons.
Post by: Naryar on May 20, 2013, 02:50:17 PM
Also, use Omni instead of Spinner
It's DirectionalSpinner.

That has nothing to do with the problem. They're all spinner ai's and they all work equally as well.

Post the bindings so we may see if there is a problem.
Title: Re: AI won't spin their weapons.
Post by: helloface on May 20, 2013, 02:51:41 PM
It's DirectionalSpinner
Jesus, that was fast.

DirectionalSpinner did not work.
Title: Re: AI won't spin their weapons.
Post by: helloface on May 20, 2013, 02:52:46 PM
Disclaimer: These are not my bots. I'm bored so I'm AIing them for fun.

# 22 - Team USA
    list.append(("AW-Clementiny","DirectionalSpinner",{'nose':math.pi,'range':100,'radius':1,'topspeed':1000,'throttle':1000,'turn':75,'turnspeed':3}))
    list.append(("AW-Flaze III","DirectionalSpinner",{'nose':math.pi*2,'range':100,'radius':1,'topspeed':1000,'throttle':1000,'turn':75,'turnspeed':3}))
    list.append(("AW-Lethal Hummingbird","DirectionalSpinner",{'nose':math.pi,'range':100,'radius':1,'topspeed':1000,'throttle':1000,'turn':75,'turnspeed':3}))
Title: Re: AI won't spin their weapons.
Post by: Naryar on May 20, 2013, 02:54:49 PM
You forgot the 'weapons' entry. They're not rammer.py.

Reduce throttle and topspeed to 130 and 50, because 1000 throttle is hax.
Title: Re: AI won't spin their weapons.
Post by: helloface on May 20, 2013, 03:10:54 PM
You forgot the 'weapons' entry. They're not rammer.py.

Reduce throttle and topspeed to 130 and 50, because 1000 throttle is hax.

My bot exporter doesn't work so I don't know what weapons numbers to put.
Title: Re: AI won't spin their weapons.
Post by: Naryar on May 20, 2013, 03:13:46 PM
You forgot the 'weapons' entry. They're not rammer.py.

Reduce throttle and topspeed to 130 and 50, because 1000 throttle is hax.

My bot exporter doesn't work so I don't know what weapons numbers to put.

Numbers and number of numbers are irrelevant.
Title: Re: AI won't spin their weapons.
Post by: helloface on May 20, 2013, 03:33:39 PM
Fixed. I but some random BS numbers as Naryar said and it worked
Title: Re: AI won't spin their weapons.
Post by: Thyrus on May 20, 2013, 04:12:02 PM
are you using notepad++?
Title: Re: AI won't spin their weapons.
Post by: helloface on May 20, 2013, 04:49:22 PM
are you using notepad++?
No.
Title: Re: AI won't spin their weapons.
Post by: Naryar on May 20, 2013, 04:50:40 PM
You should. It is more helpful.
Title: Re: AI won't spin their weapons.
Post by: Thyrus on May 20, 2013, 05:18:15 PM
I had this problem once as well. notepad shows you when there`s something wrong. you have to fix it then and it`ll work