The Incomplete and Unofficial Guide to /bind (1.1)


Aarzak

 

Posted

Another confusion here:
if I type in /bind 7 "powexec_slot 7$$powexec_toggleoff sprint" then it works just fine, everytime I press '7' I use my move in slot 7 and turn off sprint if it is on.
However, when I type in a .txt file: 7 powexec_slot 7$$powexec_toggleoff sprint === then it won't recognize it....any help here?


 

Posted

[ QUOTE ]
Another confusion here:
if I type in /bind 7 "powexec_slot 7$$powexec_toggleoff sprint" then it works just fine, everytime I press '7' I use my move in slot 7 and turn off sprint if it is on.
However, when I type in a .txt file: 7 powexec_slot 7$$powexec_toggleoff sprint === then it won't recognize it....any help here?

[/ QUOTE ]

Did you remember the quotes?

7 "powexec_slot 7$$powexec_toggleoff sprint"

[ QUOTE ]
Also, a small one here, I've set up the bind:
/bind w "+forward$$powexec_name sprint" <--or a prestige power type of sprint.
This works well except that, sometimes because of qued attacks or something, I begin to deactivate sprint when I hit 'w' and reactivate when I release. I was wondering if there was a more specific way to type the bind that will clarify to powexec_toggleon when i hit w and powexec_toggleoff when I release?

[/ QUOTE ]

Try this:

W "+down$$-down$$+forward$$powexec_name Sprint"

Or if you want more stability and don't mind a little more complexity, try this:

SPRINTON.TXT

W "+down$$-down$$powexec_toggleon Sprint$$+forward$$bind_load_file c:\<bindpath>\SPRINTOFF.TXT"


SPRINTOFF.TXT

W "+down$$-down$$powexec_toggleoff Sprint$$bind_load_file c:\<bindpath>\SPRINTON.TXT"


Dear NCsoft, if you go through with this shutdown you've guaranteed you'll not see another dime from me on any project you put out, ever.


http://xx-starhammer-xx.deviantart.com/

 

Posted

[ QUOTE ]

Try this:

W "+down$$-down$$+forward$$powexec_name Sprint"

Or if you want more stability and don't mind a little more complexity, try this:

SPRINTON.TXT

W "+down$$-down$$powexec_toggleon Sprint$$+forward$$bind_load_file c:\<bindpath>\SPRINTOFF.TXT"


SPRINTOFF.TXT

W "+down$$-down$$powexec_toggleoff Sprint$$bind_load_file c:\<bindpath>\SPRINTON.TXT"

[/ QUOTE ]

Gave that sprinton/sprintoff one a try...it made me move forward and I couldn't stop, also it toggled sprint everytime I clicked 'W'.

About my attempt on 7 "powexec..etc..etc, I've tried with and without the quotes, and I've switched the order of the commands...it won't read it from a bind_load_file but it understands the command when I manually enter it...I'm very confused by this one.


 

Posted

Since i finally was able to figure it out I thought I'd share for those who'd be interested, my auto-sprint bind. using the bind_load_file command you can set this string to give the commands to turn on sprint any time you use the keyboard to move your character, and each time you use a power on your tray it will deactivate sprint. Also, obviously feel free to simply replace the word sprint with prestige power rush or super speed or any other travel power. Thanks to those who helped out while I was figuring this out, and once again, this is the coolest thread on the entire CoH forum.

[ QUOTE ]

w "+forward$$powexec_toggleon sprint"
s "+backward$$powexec_toggleon sprint"
a "+left$$powexec_toggleon sprint"
d "+right$$powexec_toggleon sprint"
space "+up$$powexec_toggleon sprint"
0 " $$powexec_toggleoff sprint$$powexec_slot 10"
9 " $$powexec_toggleoff sprint$$powexec_slot 9"
8 " $$powexec_toggleoff sprint$$powexec_slot 8"
7 " $$powexec_toggleoff sprint$$powexec_slot 7"
6 " $$powexec_toggleoff sprint$$powexec_slot 6"
5 " $$powexec_toggleoff sprint$$powexec_slot 5"
4 " $$powexec_toggleoff sprint$$powexec_slot 4"
3 " $$powexec_toggleoff sprint$$powexec_slot 3"
2 " $$powexec_toggleoff sprint$$powexec_slot 2"
1 " $$powexec_toggleoff sprint$$powexec_slot 1"


[/ QUOTE ]


 

Posted

The way to load binds is now \bind_load_file "<path>" This worked perfectly/ Type the path exactly as listed by your computer and you will be fine.


 

Posted

Heh all, I've been looking for the bind command to select a named friend or pet. A while ago I made a bind to automatically select my Dark Servant and cast Recall Friend on him, I can't seem to remember which command to select him anymore. I'm looking for a command that's something like "target_select_custom FriendA/PetA$$pwexecname heal" Is there such a command I can use? Not sure how I did it before, but if anyone show me again, would greatly appreciate it.
Thanks!


 

Posted

[ QUOTE ]
I read about a bind a while back that used I believe +/- keys to activate 2 powers? On keystroke one power would fire, upon release a second power could be fired? Anyone know if that is still possible and if so the bind?

[/ QUOTE ]

This should work:

/bind <KEY> "+ $$powexecname A$$powexecname B"

e.g.

/bind 1 "+ $$powexecname Jab$$powexecname Punch"

Note: That space between the "+" and the first "$$" is intended and necessary.


 

Posted

As of issue 8, "+ " doesn't work any more (which was mentioned upthread a bit). People are using "+down" instead now.


 

Posted

[ QUOTE ]
As of issue 8, "+ " doesn't work any more (which was mentioned upthread a bit). People are using "+down" instead now.

[/ QUOTE ]

Can you clarify? Looked back over the past few pages and didn't quite understand.

/bind 1 "+ $$powexecname Jab$$powexecname Punch"

Would then become:

/bind 1 "+down $$powexecname Jab$$powexecname Punch" ?

Would this bind to the down-arrow key, or to the numberpad + key, or .... uh... ? Sigh. Confusion =)

I'm interested in this to get my FF defender to double-bubble teammates.

EDIT - Oh, I think I get it now. +down means when the key is pressed down, as opposed to when it's released? I feel this urge to print this entire thread and memorize it.


It is critical that you pay attention at this time.

Gaming in Limited Times
Guide to Plant/Ice Doms

 

Posted

No, "down" as in moving in a downward direction when you're in the air. It's as close to a null command as people could figure out that still used "+", as far as I know.


 

Posted

Try putting this at the beginning of your command line inside the bind:

"+down$$-down$$"

For instance:

/bind K "+down$$-down$$powexec_toggleon Plasma Shield$$powexec_toggleon Fire Shield"

Then when you press down on the "K" button, the Fire SHield power will activate. When you release the key (effectively pressing "up" on it) then plasma Shield will come on as well. I've found that if you just tap the key too lightly or too quickly however, you may only get one power, the other power, or possibly even neither power.

By the way, if you do this with the SPACE bar, you can just hold it down and it repeats the up/down internally. I use that as an emergency off switch for my least necessary toggles, in case I'm getting low on end and want to make sure that some toggles go off before others do.

In my experience, this doesn't work very smoothly with "click" powers though, only toggles.

To set of two "click" powers in a row with one keypress, I've had to resort to using multiple bind files with one loading the next. Here's an example that I think will work for you, but you'll probably need to customize the file path to however you set yours up.

file1.txt

KEY "+down$$-down$$powexec_name Physical Bubble$$bind_load_file c:\bindpath\file2.txt"

file2.txt

KEY "+down$$-down$$powexec_name Energy Bubble$$bind_load_file c:\bindpath\file1.txt"

(Please, nobody try to do this with the "KEY" key, because I really don't have the patience to explain why that won't work on most keyboards)

When you use that particular combination, the first time you press down on the key you want to use for your power you will activate your bubble to protect against smashing/lethal (I forgot it's name), then the bind will rebind itself before you let up on the key. When you do take your finger off the key, it will activate the energy protection bubble (yeah, forgot it's name too... I like bubblers, but don't have one currently), and will simultaneously rebind itself once again to how it started.

Personally I use a variation of this on my Stalkers to activate their Build Up power, then immediately activate their Assassin Strike afterwards (along with some other complexities that detoggle sprint and a single move command to make sure I'm not set to "follow" anything)

Theoretically you can extend the chain to include numerous additional files and power activations. That's how I have 6 or more attacks set to go off in sequence based on their recharge time with repeated pressing of the green button on my XBOX controller

If you don't want to mess with multiple files for your bubbling, you can try this, but it can be sloppy:

KEY "powexec_name Physical Bubble$$powexec_auto Energy Bubble"

The problem is that doing it this way, you will often get a 2 or more Energy Bubbles activating on the same person, and you have to watch your recharge timers to make sure you don't miss one of the bubbles on someone. Plus you need to deactivate the auto, or deselect any allies once you're done or the second bubble will just keep going off. Both sloppy and inefficient. There are many good uses for that setup though, which you'll find with a little experimentation.

Hope this helps everyone


Dear NCsoft, if you go through with this shutdown you've guaranteed you'll not see another dime from me on any project you put out, ever.


http://xx-starhammer-xx.deviantart.com/

 

Posted

Okay, I tried every variation mentioned above and the ones that worked only fired off the furthest right command ie Insulation shield.

I tried

/bind alt+end "+down$$-down$$powexecname deflection shield$$powexecname insulation shield"

and it only does the Insulation shield but does it twice. Same results with toggleon. The PowExecAuto bit did work but as you say, gotta toggle off the auto attack or it keeps firing.


 

Posted

[ QUOTE ]
Okay, I tried every variation mentioned above and the ones that worked only fired off the furthest right command ie Insulation shield.

I tried

/bind alt+end "+down$$-down$$powexecname deflection shield$$powexecname insulation shield"

and it only does the Insulation shield but does it twice. Same results with toggleon. The PowExecAuto bit did work but as you say, gotta toggle off the auto attack or it keeps firing.

[/ QUOTE ]

Yep, what you have listed will only activate the second one twice. For smoothest results, you have to use the variation that requires saving the two separate .txt files that load each other.

Unfortunately, the more complex the bind codes seem, the smoother they make things run (if they are written correctly)

If you are up to the task of writing those, that's the way to go. If not, let me know, and I'll write out exactly what you need to save and where, if you tell me where you want the files stored.


Dear NCsoft, if you go through with this shutdown you've guaranteed you'll not see another dime from me on any project you put out, ever.


http://xx-starhammer-xx.deviantart.com/

 

Posted

I'm trying to set up my left click button to move my character's view when I hold it down and move the mouse. I accomplished this with /bind lbutton "+mouse_look" but now i can no longer single left click anything to target things, scroll windows down, or drag items.

Anyone know the extra command I need to have it do both?


 

Posted

[ QUOTE ]
I'm trying to set up my left click button to move my character's view when I hold it down and move the mouse. I accomplished this with /bind lbutton "+mouse_look" but now i can no longer single left click anything to target things, scroll windows down, or drag items.

Anyone know the extra command I need to have it do both?

[/ QUOTE ]

You can't. Type "/unbind lbutton" without the quotes to undo your mistake. The left mouse button is the only button/key in the game that can not be remapped, btw. The only thing you could do if you're dead set on using the left mouse button is use another key to switch the left mouse look on and then switch it off when you're done looking. This kind of bind would ulitize text files in the bind.

I believe the right mouse button is already set up to do what you want, correct? I'm guessing your'e a lefty? If so, one possible solution would be to use your mouse software to switch the left and right mouse buttons. There might also be an option for this in the game (Menu, Options, Keymapping tab), but I'm not certain.


Level 50s:
BlackSpectre, Dark Defender (Guardian)
Thorin, Invul/Axe Tank (Justice)
Volcano Juice, Fire/Stone Tank
Professor ?, Mind/FF Controller
Stone Forge, Stone/Fire Tank

 

Posted

Nah, not a lefty. After so many years of holding left click down to movie my character's view, and holding right click to pan the camera around, I've found myself unable to become accustomed to not having my exact setup.

Thanks for the response, though.


 

Posted

[ QUOTE ]
APPENDIX C: NAMED KEYS

This Appendix contains a list of all the known "named keys" that can be used with the /bind command. A "named key" is a key that you must identify with a name rather than with a symbol: for example, the left shift is called "lshift" when using it with /bind.


These keys are a bit more obscure:

capital (The Caps Lock key)
scroll (The Scroll Lock key)
tilde (The "`" and "~" key, on the numbers row of your keyboard -- usually)


[/ QUOTE ]

I have another key name to ADD

SYSRQ (Print screen)

I use a Zboard 'Merc' keyboard and the printscreen key
is one of the keys mirrored on the game-pad side of the keyboard.

Yettie aka Bill B and yettie32


 

Posted

I've had a bit of trouble with a certain bind I can't get to work but I'm unsure if it's even possible. Before I give up, I figure I may as well ask here first.

Is it possible to have a bind that switches to a certain power tray by number when the button is held down but reverts back when the button is lifted?


 

Posted

[ QUOTE ]
I've had a bit of trouble with a certain bind I can't get to work but I'm unsure if it's even possible. Before I give up, I figure I may as well ask here first.

Is it possible to have a bind that switches to a certain power tray by number when the button is held down but reverts back when the button is lifted?

[/ QUOTE ]

I asked pretty much the same question just a few posts ago and from what I'm seeing its no longer possible. I'd be pleased if someone could prove me wrong though.


 

Posted

[ QUOTE ]
[ QUOTE ]
I've had a bit of trouble with a certain bind I can't get to work but I'm unsure if it's even possible. Before I give up, I figure I may as well ask here first.

Is it possible to have a bind that switches to a certain power tray by number when the button is held down but reverts back when the button is lifted?

[/ QUOTE ]

I asked pretty much the same question just a few posts ago and from what I'm seeing its no longer possible. I'd be pleased if someone could prove me wrong though.

[/ QUOTE ]Lookup the details and 'programming' behind "Speed on Demand" and every other binding method of having one set of commands go off on keypress and another set on keyrelease. The old method was to use "+ $$" and "- $$", but that produces Unknown Command errors. Below is a possible example, however I do not condone it's use. One key, one action (with exceptions).

tray1.txt
K "+ $$gototray 2$$bindloadfile tray2.txt"

tray2.txt
K "- $$gototray 1$$bindloadfile tray1.txt"


 

Posted

[ QUOTE ]
[ QUOTE ]
[ QUOTE ]
I've had a bit of trouble with a certain bind I can't get to work but I'm unsure if it's even possible. Before I give up, I figure I may as well ask here first.

Is it possible to have a bind that switches to a certain power tray by number when the button is held down but reverts back when the button is lifted?

[/ QUOTE ]

I asked pretty much the same question just a few posts ago and from what I'm seeing its no longer possible. I'd be pleased if someone could prove me wrong though.

[/ QUOTE ]Lookup the details and 'programming' behind "Speed on Demand" and every other binding method of having one set of commands go off on keypress and another set on keyrelease. The old method was to use "+ $$" and "- $$", but that produces Unknown Command errors. Below is a possible example, however I do not condone it's use. One key, one action (with exceptions).

tray1.txt
K "+ $$gototray 2$$bindloadfile tray2.txt"

tray2.txt
K "- $$gototray 1$$bindloadfile tray1.txt"

[/ QUOTE ]

Yes, that technique will work, and yes, it will produce "Unknown Command" Error messages. There are a couple ways to deal with this though...

If you want to keep your keybind length to a minimum (which is important for fairly long binds, but probably not much of an issue for this) then go with the "+ $$" & "- $$" as mentioned above. If you don't want to see the Unknown Command error popping up in your chatbox every time you do it, then just remove the "error" tab from that chat tab. (I have one tab for system and error al by themselves, just for troubleshooting and such, but I usually have a different tab open to avoid the myriad error messages that come from having so many extensive and complex binds for each character)

If you don't mind a few extra letters in the keybind itself, try this:

Tray7.txt
<font class="small">Code:[/color]<hr /><pre>F11 "+down$$-down$$gototray 7$$bind_load_file c:\~filepath\tray8.txt" </pre><hr />

Tray8.txt
<font class="small">Code:[/color]<hr /><pre>F11 "+down$$-down$$gototray 7$$bind_load_file c:\~filepath\tray7.txt" </pre><hr />

you can do it with just the "+down$$" in one and the "-down$$" in the other, but if you are flying when you do it, you will move down...

Both variants work fine though (I tested them before writing this). the +down$$-down$$ version may be a bit messy from a programming view (and may someday stop working if they change movement coding), but it doesn't produce unnecessary error spam either.


Dear NCsoft, if you go through with this shutdown you've guaranteed you'll not see another dime from me on any project you put out, ever.


http://xx-starhammer-xx.deviantart.com/

 

Posted

I just tried that string for a bubbling bind.

Bub1.txt

equals "+down$$-down$$powexecname deflection shield$$bindloadfile C:\~path\bub2.txt"

and Bub2.txt

equals "+down$$-down$$powexecname insulation shield$$bindloadfile C:\~path\bub1.txt"

and nothing happened! no error no nothing.... suggestions?


 

Posted

[ QUOTE ]
I just tried that string for a bubbling bind.

Bub1.txt

equals "+down$$-down$$powexecname deflection shield$$bindloadfile C:\~path\bub2.txt"

and Bub2.txt

equals "+down$$-down$$powexecname insulation shield$$bindloadfile C:\~path\bub1.txt"

and nothing happened! no error no nothing.... suggestions?

[/ QUOTE ]

May be a simple syntax error, you use exactly what's up there? the correct syntax is "powexec_name powername", and "bind_load_file c:\~path\filename.txt".


Dear NCsoft, if you go through with this shutdown you've guaranteed you'll not see another dime from me on any project you put out, ever.


http://xx-starhammer-xx.deviantart.com/

 

Posted

"+down$$-down" works fine. All my binds using that work, and I can create new binds using it and they work too.

There are a lot of things I can think of that would cause that bind to be inoperable in a case like this. Either lag or too many changes to the key mapping system have been made by the user, for example. The game sometimes wigs out a bit if you've made too many changes. So first, exit game, reboot, and try again.

Second, hold down the key and keep it there... see if the power activates. If it doesn't then there is most likely a problem with that first bind.

Make sure your text file is saved as a text (.txt) document with ANSI encoding (Notepad in Windows usually defaults to this, but check it anyway -- if you're using a different program to make the text file, try using Notepad... Start, Programs, Accessories, Notepad). Do not save it with formatting. Make sure there are no spaces or carriage returns before or after the bind string.

Thrid, save your current keybinds by using /bindsavefile c:\~path\binds.txt. Now reset all keybinds (/keybind_reset) and try loading in the bind again. When loading in text binds I recommend you simply copy the first line in your first text file, and paste it into the chat box with /bind in the front. Test to see if it works. Later, you can load your old binds back in.

Oh and lastly, make sure your path for the bindloadfile command doesn't have any spaces in it. The game supports long file names but not spaces between file names or directories. Or, if you prefer to save your files in a directory with spaces in its name, then convert the name into the MS DOS 8.3 standard naming convention to translate the long directory/file names into a form the game can understand. Instructions are in this Guide.

Off the top of my head, those are my best guesses.


Level 50s:
BlackSpectre, Dark Defender (Guardian)
Thorin, Invul/Axe Tank (Justice)
Volcano Juice, Fire/Stone Tank
Professor ?, Mind/FF Controller
Stone Forge, Stone/Fire Tank