Forums » General
Bind script: toggle turbo and normal turbo modes with single button
Hi there!
(As I couldn't find any appropriate and writable thread to add this post to, I will do this within a new thread.)
I wrote a bind script that addresses the following problem(s):
("1"+"2" are just too long recaps of what you most likley already know. If you do so, just go to "3")
1) The game's original way to utilize the ship's turbo function is to e.g. bind +turbo to a key, e.g.:
/bind TAB +turbo
Then the ship's turbo thruster is active WHILE PRESSING e.g. the TAB key.
2) There are bind scripts like this one on the wiki ( http://www.vo-wiki.com/wiki/Turbo_lock_bind ) which allow to "toggle" the turbo mode by binding an alias to a key like:
/bind TAB +myTurboToggle
The result is that with either tap the turbo is enabled or disabled. This isn't only handy if you want to turbo through space while doing stuff in menus like "navigation" (N), "Cargo Jettison" (J) etc. but also makes it just comfortable not having to press that key.
3) the mentioned bind script does not combine these two features IN ONE KEY. It only offers to bind the "keep pressed" method to one key and the "tap to toggle" method to another one.
That fact annoyed me and so I spent more time "developing" my own Turbo Assist script than playing VO.
The bind script can be found here ( http://pastebin.com/a6Z8udCZ ) as the forum software _might_ distort the script's formatting.
An explanation/documentation of the bind script that I made in my own pseudo-language can be found here ( http://pastebin.com/WjLtKt1X ) - so take a look if you are interested what I am doing how and why.
Comments, critics, suggestions, bug reports are welcome (in general, but time might pass until I come back)
And: please be gentle, I am new to all this. And I am tired at this time of night. ;-)
(As I couldn't find any appropriate and writable thread to add this post to, I will do this within a new thread.)
I wrote a bind script that addresses the following problem(s):
("1"+"2" are just too long recaps of what you most likley already know. If you do so, just go to "3")
1) The game's original way to utilize the ship's turbo function is to e.g. bind +turbo to a key, e.g.:
/bind TAB +turbo
Then the ship's turbo thruster is active WHILE PRESSING e.g. the TAB key.
2) There are bind scripts like this one on the wiki ( http://www.vo-wiki.com/wiki/Turbo_lock_bind ) which allow to "toggle" the turbo mode by binding an alias to a key like:
/bind TAB +myTurboToggle
The result is that with either tap the turbo is enabled or disabled. This isn't only handy if you want to turbo through space while doing stuff in menus like "navigation" (N), "Cargo Jettison" (J) etc. but also makes it just comfortable not having to press that key.
3) the mentioned bind script does not combine these two features IN ONE KEY. It only offers to bind the "keep pressed" method to one key and the "tap to toggle" method to another one.
That fact annoyed me and so I spent more time "developing" my own Turbo Assist script than playing VO.
The bind script can be found here ( http://pastebin.com/a6Z8udCZ ) as the forum software _might_ distort the script's formatting.
An explanation/documentation of the bind script that I made in my own pseudo-language can be found here ( http://pastebin.com/WjLtKt1X ) - so take a look if you are interested what I am doing how and why.
Comments, critics, suggestions, bug reports are welcome (in general, but time might pass until I come back)
And: please be gentle, I am new to all this. And I am tired at this time of night. ;-)
I think you're overthinking it. I always just use this:
/alias t "+turbo"
/bind <somekey> t
Done!
For fancier stuff there's always the InfiniTurbo plugin.
/alias t "+turbo"
/bind <somekey> t
Done!
For fancier stuff there's always the InfiniTurbo plugin.
Hi abortretryfail!
As I wrote, my intention is to use "toggling turbo" and "activating turbo as long button is pressed" by using ONE button. As I said above "turbo lock bind" script does the toggle thing, but I wanted extended functionality it.
This bind script does not try to imitate or compete the InfiniTurbo plugin ( http://vo-wiki.com/wiki/Plug-ins#InfiniTurbo ) as that one has quite different aims (lock on a target speed, keeping powercell at and above 25% so you can always jump, loading powercell while turboing).
And I just wanted to share my "creation" with others to get some feedback on the subject. I am not saying this is very special or great. It is just a bind script. People will like it or not. People will use it or not. People won't even need it, or they will. It's up to them.
Greetings! Alphantomega
Please, no offense intended:
> I think you're overthinking it. I always just use this: [...]
I am not sure what you are trying to accomplish with that alias and bind, but with me it starts the turbo and won't stop unless a) the powercell is drained or b) you initiate the "+turbo 0" manually or with another keybind.
Youi might(!) be using:
/alias +t "+turbo"
/alias -t "+turbo 0"
/bind <somekey> +t
But in effect this actually does nothing else than what the game itselfs does:
If you go to the "controls" config menu, select "turbo" and add enter your <anykey> which is the same to:
/bind <anykey> "+turbo"
As I wrote, my intention is to use "toggling turbo" and "activating turbo as long button is pressed" by using ONE button. As I said above "turbo lock bind" script does the toggle thing, but I wanted extended functionality it.
This bind script does not try to imitate or compete the InfiniTurbo plugin ( http://vo-wiki.com/wiki/Plug-ins#InfiniTurbo ) as that one has quite different aims (lock on a target speed, keeping powercell at and above 25% so you can always jump, loading powercell while turboing).
And I just wanted to share my "creation" with others to get some feedback on the subject. I am not saying this is very special or great. It is just a bind script. People will like it or not. People will use it or not. People won't even need it, or they will. It's up to them.
Greetings! Alphantomega
Please, no offense intended:
> I think you're overthinking it. I always just use this: [...]
I am not sure what you are trying to accomplish with that alias and bind, but with me it starts the turbo and won't stop unless a) the powercell is drained or b) you initiate the "+turbo 0" manually or with another keybind.
Youi might(!) be using:
/alias +t "+turbo"
/alias -t "+turbo 0"
/bind <somekey> +t
But in effect this actually does nothing else than what the game itselfs does:
If you go to the "controls" config menu, select "turbo" and add enter your <anykey> which is the same to:
/bind <anykey> "+turbo"
No, I'm using exactly what I typed. It works.
If you press another key that's bound to +turbo, it cuts out of turbo once you release that key.
The trouble with overloading the turbo key to lock on a tap is that in some combat situations you need to cut turbo on and off in short bursts to get closer to the enemy's ship. If it stays on for more than a moment it makes you into a very easy target moving in a straight line, especially with ships that don't have a high thrust to mass ratio.
If you press another key that's bound to +turbo, it cuts out of turbo once you release that key.
The trouble with overloading the turbo key to lock on a tap is that in some combat situations you need to cut turbo on and off in short bursts to get closer to the enemy's ship. If it stays on for more than a moment it makes you into a very easy target moving in a straight line, especially with ships that don't have a high thrust to mass ratio.
I guess you weren't aware of the TapLockTurbo plugin. It locks turbo when you double-tap, and otherwise works like the normal turbo.
I always just press tab to turbo, then hold shift while releasing tab, then release shift. My turbo is then locked until I tap tab again.
Hi there!
@Pizzasgood you are right, I wasn't aware of that plugin as I do not always check with VOUPR's plugin database. Also, I didn't want to dig into Lua at the moment, so I decided in doing things with "just" bind scripts. I also did not consider your plugin's solution of double tapping for locking the turbo. I think, doing this as a bind script would blow away my fuses, if it was possible at all.
@abortretryfail Ah, I understand now. That you binded a second key to "+turbo" or alike was what I didn't get. And yes, your need in doing fast/short independant turbo thrusts to control velocity/distance in battle makes sense to me, even if I am not into that level of fighting. But I will consider your experience, as I move on in the game.
@SkinWalker Ah, I see, I didn't know that and tried it immediatly and successfully.
I do think it works that way: On pressing <key1> which is bound to "+turbo", you trigger the <key1> "down" event, on pressing <shift>, you toggle the <key1> meaning (e.g. <f> triggers one thing, <F> (which is Shift+f) triggers another). So you never trigger the "up" event by releasing the <key1>, as you trigger the Shift+<key1> up event on releasing <key1>. (Well, that's a guess on how and why your method works.)
(AFAIK the only modifier button is <Shift> as it seems a function cannot succesfully be bound to it (e.g. "/bind shift +turbo" does not work on my system) . <Ctrl> and <Alt> are action keys themselves, and not modifiers (as in many other games, e.g. <Ctrl> crawling or ducking in some ego shooter) Therefor "/bind <key> +turbo" with <key>=ctrl or <key>=alt" does work.
Oh well, one does never stop to learn! Thanks!
@Pizzasgood you are right, I wasn't aware of that plugin as I do not always check with VOUPR's plugin database. Also, I didn't want to dig into Lua at the moment, so I decided in doing things with "just" bind scripts. I also did not consider your plugin's solution of double tapping for locking the turbo. I think, doing this as a bind script would blow away my fuses, if it was possible at all.
@abortretryfail Ah, I understand now. That you binded a second key to "+turbo" or alike was what I didn't get. And yes, your need in doing fast/short independant turbo thrusts to control velocity/distance in battle makes sense to me, even if I am not into that level of fighting. But I will consider your experience, as I move on in the game.
@SkinWalker Ah, I see, I didn't know that and tried it immediatly and successfully.
I do think it works that way: On pressing <key1> which is bound to "+turbo", you trigger the <key1> "down" event, on pressing <shift>, you toggle the <key1> meaning (e.g. <f> triggers one thing, <F> (which is Shift+f) triggers another). So you never trigger the "up" event by releasing the <key1>, as you trigger the Shift+<key1> up event on releasing <key1>. (Well, that's a guess on how and why your method works.)
(AFAIK the only modifier button is <Shift> as it seems a function cannot succesfully be bound to it (e.g. "/bind shift +turbo" does not work on my system) . <Ctrl> and <Alt> are action keys themselves, and not modifiers (as in many other games, e.g. <Ctrl> crawling or ducking in some ego shooter) Therefor "/bind <key> +turbo" with <key>=ctrl or <key>=alt" does work.
Oh well, one does never stop to learn! Thanks!
Well, a lot of folk wrote a lot of binds way back before lua, good to see alphatomega having a go.
This lot should get you started;
http://www.vendetta-online.com/x/msgboard/16/3229?page=1
This lot should get you started;
http://www.vendetta-online.com/x/msgboard/16/3229?page=1