Forums » General
Is the full syntax for keys in the /bind command available somewhere? Simple shifted and unshifted "graphic" keys are pretty obvious. A couple of non-graphic keys can be seen in the default settings in wgaf.cfg -- Tab, Space, PageUp, PageDown, F1, etc. But is there a syntax for chorded keys, e.g. Ctl-A, Shift-Tab, Alt-1? Can such keys be bound at all? The graphical interface doesn't seem to let you assign such -- Shift-Tab is treated as Tab, and any attempt to use the Ctl key just gets you Ctl by itself. (This doesn't bode well for chords that include the Ctl key!)
I was also curious if there's a way to undefine an alias -- this might be useful for cleaning up experimental aliases.
I was also curious if there's a way to undefine an alias -- this might be useful for cleaning up experimental aliases.
/bind unbind "w"
/bind w ""
Thanks, but that's about unbinding keys, not undefining aliases. Basically, I'd like a way get an alias' definition removed from wgaf.cfg.
You can just open up your wgaf.cfg file and delete the lines that contain aliases you don't want.
You could even delete the whole file, and a fresh default config will be put in place next time you launch the game.
You could even delete the whole file, and a fresh default config will be put in place next time you launch the game.
Yeah, I knew I could edit the file directly. I was wondering if there was a "programmatic" way to do it. Didn't know about the auto-defaulting of the file, though -- that's a handy fact! Thanks.
The main question still hasn't been answered. There needs to be a newbie-friendly way to introduce people to binds/aliases. Example audience: me. I see posts about "favorite binds" etc. but I don't understand any of it (aside from cut & paste into my wgaf.cfg). To make matters worse, it seems that some scripts can crash either the client or perhaps the server. That's scary.
Like the thread originator, I need a complete reference manual for messing with this stuff. I would be happy to make it "nice looking" and I'd even consider coding a web to help generate bindcode.
Like the thread originator, I need a complete reference manual for messing with this stuff. I would be happy to make it "nice looking" and I'd even consider coding a web to help generate bindcode.
Take a look at this page and let me know what you think:
http://www.spookydistance.com/cgi-bin/public-wiki.pl?Vendetta_Online_Customization
It's a work in progress. For instance, I haven't added what I've learned in this thread to it yet.
http://www.spookydistance.com/cgi-bin/public-wiki.pl?Vendetta_Online_Customization
It's a work in progress. For instance, I haven't added what I've learned in this thread to it yet.
While were already at it, is there a way to bin a certain message to the sector to a button?
Like a simple example:
bind "button" "saysector Hello Guys!"
Like a simple example:
bind "button" "saysector Hello Guys!"
yes there is. Ive done it before but its been awile since ive done it so when i double check the keys ill edit this one and tell ya
You were very close, twist3r. It would look like this:
/alias HelloGuys "say_sector 'Hello Guys!'"
/bind "G" HelloGuys
(Edited to correct obvious stupid brain-dead error.)
/alias HelloGuys "say_sector 'Hello Guys!'"
/bind "G" HelloGuys
(Edited to correct obvious stupid brain-dead error.)
thanks a lot, now i can spam teh sectors and advertise!
j/k
j/k
miller, bind only takes two arguments:
bind <key> [command]
You describe it often as taking 3 which is not true:
bind <key> [command] [arguments of command]
That doesn't actually work.
bind "G" say_sector "Hello Guys!"
Would give you an error message.
Similarly alias doesn't work as you describe it on your page. It is actually:
alias <name> <command>
Therefore this works:
/alias my-alias "echo 'my very own alias'"
but this does not:
/alias my-alias echo "my very own alias"
bind <key> [command]
You describe it often as taking 3 which is not true:
bind <key> [command] [arguments of command]
That doesn't actually work.
bind "G" say_sector "Hello Guys!"
Would give you an error message.
Similarly alias doesn't work as you describe it on your page. It is actually:
alias <name> <command>
Therefore this works:
/alias my-alias "echo 'my very own alias'"
but this does not:
/alias my-alias echo "my very own alias"
TheMiller, the link http://www.vendetta-online.com/manual/app_commands.htm gives a 404.
The page you referenced gives a fair enough introduction to the concepts, and that's nice. In addition to Eldrad's corrections, it needs to explicitly describe the syntactic role of single quotes, double quotes, semicolons, and what constitutes an EOL signal to the script parser (i.e., the parser obviously does not quit after consuming just the "command" portion of the line or else Eldrad's comment about generating an error would not occur). Handling of whitespace is also something that should be explained.
There is also a presentational concern: users need to be given a context for custom binding. Is it merely a time-saver? Critically important? Just for fun? For example, will you get utterly owned in pvp if your opponent is a good scripter? (If so that sort of bites. I haven't pvp'd yet so I don't know.) To that end one or two concrete teaching examples should be provided showing why the context is true. After that, base the remainder of the tutorial on deconstructing the example(s) to retain continuity.
The page you referenced gives a fair enough introduction to the concepts, and that's nice. In addition to Eldrad's corrections, it needs to explicitly describe the syntactic role of single quotes, double quotes, semicolons, and what constitutes an EOL signal to the script parser (i.e., the parser obviously does not quit after consuming just the "command" portion of the line or else Eldrad's comment about generating an error would not occur). Handling of whitespace is also something that should be explained.
There is also a presentational concern: users need to be given a context for custom binding. Is it merely a time-saver? Critically important? Just for fun? For example, will you get utterly owned in pvp if your opponent is a good scripter? (If so that sort of bites. I haven't pvp'd yet so I don't know.) To that end one or two concrete teaching examples should be provided showing why the context is true. After that, base the remainder of the tutorial on deconstructing the example(s) to retain continuity.
Argh, sorry about that. Fingers working, brain not engaged.
/alias HelloGuys "say_sector 'Hello Guys!'"
/bind "G" HelloGuys
That oughta work better.
Wylfing: Thanks, I corrected the link.
Eldrad: I though that for a single command you could omit the extra quotes, even if it took an argument, but you're probably right. I'll check tonight when I get home.
/alias HelloGuys "say_sector 'Hello Guys!'"
/bind "G" HelloGuys
That oughta work better.
Wylfing: Thanks, I corrected the link.
Eldrad: I though that for a single command you could omit the extra quotes, even if it took an argument, but you're probably right. I'll check tonight when I get home.
Nice. I edited my previous post to include more (hopefully constructive) criticism. I hit post too quickly last time.
Thanks for the comments, wylfing. Regarding the importance of custom bindings: I'll give it a shot, but I'm not yet fit to judge some of your suggested reasons. In particular, do the unwashed masses get owned by customizers in PVP? I haven't got a clue what the answer to that is yet. Opinions from more experienced VO pilots are welcome...
miller: No, while bindings are extremely useful for automating some things, they dont make a HUGE difference in combat, with 1 significant exception.
by typing in the following:
/alias name_1 "set autoaim 1;echo 'autoaim on';bind KEY name_2"
/alias name_2 "set autoaim 0;echo 'autoaim off';bind KEY name_1"
/bind KEY name_1
You can create a toggle to easily turn the aiming assist on/off which can be a huge advantage in combat.
by typing in the following:
/alias name_1 "set autoaim 1;echo 'autoaim on';bind KEY name_2"
/alias name_2 "set autoaim 0;echo 'autoaim off';bind KEY name_1"
/bind KEY name_1
You can create a toggle to easily turn the aiming assist on/off which can be a huge advantage in combat.
Thanks, Spellcast. I was wondering how much advantage there is to turning autoaim off. With the bots and the guns I've used so far, I haven't noticed any advantage to turning it off, but I've done virtually no PvP as yet.
BTW, note that, by default, ":" is bound to the alias toggleautoaim, which is defined very much like your example, lacking only the handy echo messages.
BTW, note that, by default, ":" is bound to the alias toggleautoaim, which is defined very much like your example, lacking only the handy echo messages.
Is there a command to have it pause for a moment during an action? For instance, I want to bind a key to shoot a missile, wait for a few seconds, then say "Heads up!" to my target.