Pesky nine button limit ruining your dreams of a AI controlled Machine-gun tank?
All the cool kids have more than nine buttons on their controllers so why should you not?
You only need to take up the dark art of bot file editing for it to work.
1. Wire up nine slots.
2. Realise you need more
3. Open bot file using text editor capable of interpreting linefeed(0x10) only as newline, that means Notepad++ or TextPad (or vi or EMACS)
4. Hax :P. Find the section describing your controllers.
Looks like this
Name: Forward
2 0 1
2
1 0 3 0
1 0 2 0
or this:
Name: 1
0 0 4
1
0 0 8 0
or like this:
Name: Spin
2 0 2
1
0 0 57 0
Now the first row is the name, the second row is the one we are interested in. You see, the standard uncool controller only gives us positions X= 0-2, Y=0-2. By moving already defined controls out to lets say X=3,Y=4. We can free up space from the part the uncool kidds can play with. It is also possible to stack controllers on each other, just be sure you do not want to change them, cause that is going to be annoying.
(X,Y,Type of control 1=analog, 2=switch, 4=button)
The third row is just the number of keys that are bound to the control. 1 for swtiches and buttons, 2 for analog.
The fourth row is some cryptic keycodes. Dont mess with these unless you have a cheat sheet tucked away somewhere.
5. If you need even more keys, Goto 1 else end.
GL HF
You too can have a nice controller. Do not touch it(edit anything in botlab), or it will break.