gametechmods
Robot Arena => General Support => Topic started by: Thrackerzod 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?
-
Increase the range. 99 usually does the trick.
-
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?
-
Do you have a smartzone named 'weapon'?
-
Yes, including the lowercase. The control that fires the hammer is named "Fire".
-
What .py are you using for it?
-
Omni at the moment.
Updated thread name.
-
That should work. Does your binding have a 'weapons' section with any numbers in it? If it doesn't, it needs one
-
does "Fire" and "Spin" do the same for spinning weapons that use omni?
-
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.
-
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.
-
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?
-
This thread should be added to something like a trouble scouting thread for AIing n stuff.
-
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.
-
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 (http://windowsxp.mvps.org/comdlg32.htm)