gametechmods
Robot Arena => Discussion => Topic started by: Tigermisu on February 27, 2011, 04:40:37 PM
-
I got an idea for the new DSL: The Sequencer chip.
You can wire controls to it as the normal circuit board, but this one follows them in a sequence.
<imagination>
[S11] [S12] [S13] <- Sequence 1
[S21] [S22] [S23] <- Sequence 2
[S31] [S32] [S33] <- Sequence 3
All start running at the same time, but you can make longer ones as in the example:
</imagination>
Example:
Bob wires a piston and a Ztek Motor.
Bob programs the sequencer to fire the piston when <key> is pressed, then keep it stretched for 3 seconds.
Bob proceeds to program the ztek to move clockwise and counter clockwise.
Bob programs the piston to retreat (takes 0.5s)
Bob programs the piston to do a quick fire (takes 0.5s)
Bob programs a hidden hammer so it crushes the damaged bot when the sequence is over.
<sequence><imagination>
[Pistonstretch 3s] [PistonRetreat0,5s] [Pistonquickfire 0,5s]
[Ztekclock 0,5s] [Ztekcounter0,5s] [repeatlastacion 2times]
[wait 4s] [hammerquickfire 0,5s] [hammerRetreat 0,5s]
</sequence></imagination>
-
Interesting!
-
...
What?
-
Really well thought out.
-
I hope you got my idea. Because im not good explaining.
Basically a part that lets components activate/deactivate in a sequence, in order to do complex movements.
-
You can do that with an AI.py file.
-
Unfortunately, we are extremely limited when it comes to user-controlled bots. We can't add new types of control boards because the EXE regulates what happens (the Component.txt files don't have any sort of functionality of their own). We can however do this using AI bots because the AI.py files are regulating what is sent to the EXE (in the form of commands instead of keyboard input).
If you really want this feature, look into downloading GlovePIE. Its a handy program that allows you to do many things including automate key presses.
-
...
What?
You ether had to be ADHDAHDADAD, or completely retarded to not understand that.
It's is a very good idea!
-
I know for a fact Madiaba has 1 or more .py's already made that can fire up to 7 controls with 7 SZ's in a sequence.