Author Topic: Spinning weapons do not start when match starts  (Read 1411 times)

Offline Thrackerzod

  • Sparkle up your day!
  • *
  • Posts: 2035
  • Rep: 10
  • The distant future... the year 2000...
  • Awards BOTM Winner
    • View Profile
    • Awards
Spinning weapons do not start when match starts
« on: February 27, 2015, 12:31:15 PM »
I was trying to AI some robots that have spinning weapons.  It looks like the weapons do not begin spinning until a few seconds after the match begins.  What should I be doing so that they begin spinning right as the match begins?

Also, how do I add and use more .pys without crashing the game?

Offline helloface

  • Ultra Heavyweight
  • Posts: 3902
  • Rep: -11
  • 090901's cumslave
    • https://www.youtube.com/c
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
  • Skype: helloface199
  • Discord: Helloface#2112
Re: Spinning weapons do not start when match starts
« Reply #1 on: February 27, 2015, 12:42:36 PM »
Increase the range. 99 usually does the trick.
Oh I'll be doing some banging.......

Offline Thrackerzod

  • Sparkle up your day!
  • *
  • Posts: 2035
  • Rep: 10
  • The distant future... the year 2000...
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: Spinning weapons do not start when match starts
« Reply #2 on: February 27, 2015, 12:50:59 PM »
That did it, thanks.

EDIT: Now I have a hammer bot that isn't firing its hammer.  Any idea as to what could be causing that?
« Last Edit: February 27, 2015, 01:26:19 PM by Thrackerzod »

Offline I Like Tacos

  • Lightweight
  • Posts: 177
  • Rep: 4
    • View Profile
    • Awards
Re: Spinning weapons do not start when match starts
« Reply #3 on: February 27, 2015, 02:38:51 PM »
Do you have a smartzone named 'weapon'?

Offline Thrackerzod

  • Sparkle up your day!
  • *
  • Posts: 2035
  • Rep: 10
  • The distant future... the year 2000...
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: Spinning weapons do not start when match starts
« Reply #4 on: February 27, 2015, 05:21:50 PM »
Yes, including the lowercase.  The control that fires the hammer is named "Fire".

Offline cephalopod

Re: Spinning weapons do not start when match starts
« Reply #5 on: February 27, 2015, 05:25:36 PM »
What .py are you using for it?
bristol bot builders / two headed death flamingo / snappy robots
//
kindest and friendliest '13, '15, '16, '17 / favourite staff member '14, '15

Offline Thrackerzod

  • Sparkle up your day!
  • *
  • Posts: 2035
  • Rep: 10
  • The distant future... the year 2000...
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: Hammer weapon does not fire
« Reply #6 on: February 27, 2015, 05:33:20 PM »
Omni at the moment.

Updated thread name.

Offline cephalopod

Re: Spinning weapons do not start when match starts
« Reply #7 on: February 27, 2015, 05:35:15 PM »
That should work. Does your binding have a 'weapons' section with any numbers in it? If it doesn't, it needs one
bristol bot builders / two headed death flamingo / snappy robots
//
kindest and friendliest '13, '15, '16, '17 / favourite staff member '14, '15

Offline Thyrus

  • *
  • Posts: 6210
  • Rep: 19
  • Back to purple '17
    • http://www.youtube.com/Th
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: Spinning weapons do not start when match starts
« Reply #8 on: February 27, 2015, 05:53:48 PM »
does "Fire" and "Spin" do the same for spinning weapons that use omni?

Offline Thrackerzod

  • Sparkle up your day!
  • *
  • Posts: 2035
  • Rep: 10
  • The distant future... the year 2000...
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: Spinning weapons do not start when match starts
« Reply #9 on: February 27, 2015, 05:56:09 PM »
It didn't have any numbers.  I copied the "weapons" section from the line above it, and now it fires.  Should the numbers be anything in particular?

does "Fire" and "Spin" do the same for spinning weapons that use omni?

I switched over to a different problem involving a hammer bot and didn't feel like making a new thread.

Offline Resetti's Replicas

  • *
  • Posts: 4399
  • Rep: 18
  • Replica King
    • ResettisReplicas
  • Awards BOTM Winner
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: Spinning weapons do not start when match starts
« Reply #10 on: February 27, 2015, 06:06:26 PM »
If you have no numbers in the "weapons" section, your bot thinks it has no active weapons and will act accordingly.  You know how each component in your bot has a number, ie the first one you place is #1, second is #2, etc?  That's what the numbers in the "weapons" section means.  When all of the corresponding components have broken off, your bot switches to weaponless mode, where it cautiously moves back and forth at the opponent.  If you never want it to go into weaponless mode, put in a number that corresponds to something attached to the baseplate, like a battery.

Offline Thrackerzod

  • Sparkle up your day!
  • *
  • Posts: 2035
  • Rep: 10
  • The distant future... the year 2000...
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: Spinning weapons do not start when match starts
« Reply #11 on: February 27, 2015, 06:09:30 PM »
That makes sense.  How do I know what number corresponds to which component, though?  Or was I just supposed to remember the order I built it in?

Offline Thyrus

  • *
  • Posts: 6210
  • Rep: 19
  • Back to purple '17
    • http://www.youtube.com/Th
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: Spinning weapons do not start when match starts
« Reply #12 on: February 27, 2015, 06:13:24 PM »
This thread should be added to something like a trouble scouting thread for AIing n stuff.

Offline cephalopod

Re: Spinning weapons do not start when match starts
« Reply #13 on: February 27, 2015, 06:15:22 PM »
You can use Apanx Bot Exporter to find the numbers, but I just put 0 into most of my lines - 0 corresponds to the chassis, so the weapons will always try to fire.
bristol bot builders / two headed death flamingo / snappy robots
//
kindest and friendliest '13, '15, '16, '17 / favourite staff member '14, '15

Offline Resetti's Replicas

  • *
  • Posts: 4399
  • Rep: 18
  • Replica King
    • ResettisReplicas
  • Awards BOTM Winner
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: Spinning weapons do not start when match starts
« Reply #14 on: February 27, 2015, 06:41:17 PM »
If you're using Win7, you' may need to do this fix to make it work (don't worry, nothing too painful)

http://windowsxp.mvps.org/comdlg32.htm