The Incomplete and Unofficial Guide to /bind (1.1)


Aarzak

 

Posted

Hmm. That should be working.

You might check to see if you accidentally bound the same key twice.

Another possibility is that you have two binds on the same line. Make sure there's a line break after each command. I've had that happen before, but I don't recall the error it gave me.

You could always try going through the command menu and manually setting things there. It should overwrite any duplicates. After that, save do a /bindsave.

Other than that... I'm not sure what to suggest, short of copy/pasting the entire keybind file here for folks to looks at.


 

Posted

Go into options and clear the extra key bound to those commands. If you use single command binds which match those which can be set in the options menu, this problem happens, since the options menu only allows 2 keys to be bound to the commands it lists.


 

Posted

Observation:
When using $target for a bind, in a say; results work as desired, when using $target with a macro, results less than admirable.

Can this be done effectively?

Example
/bind will say "Move over Sorceror"
/macro will say "Move over $target"

Solution?


 

Posted

Yeah, there are some piculularities like that between binds and macros. I'd suggest just binding the key instead of making a macro...

Probably not exactly what you were looking for, but it's the best I can do...


 

Posted

[ QUOTE ]
[ QUOTE ]
The oly thing you forgot was to specify "say"... i.e.

/bind t "say Bity Kitty claws and scratches and begins to teleport group $target to her location.$$powexec_name Recall Friend"

[/ QUOTE ]
actually, based on the way your planning to make your post, using "em" instead of say would be better since it will give you a thought bubble emote rather than spoken word...unless of course you commonly refer to yourself in the third person when you do speak....in which case, rock on with "say", just be wary of what chat mode youre in. using "local" "team" "or any other specific chat command will override your own chat style appearace and default you to the standard black on white. so if youre going for style...perhaps your own would be best. in which case "say" is the way to go.
As said above, it would be better to use "team" instead of "say," and you want to delete the word "group" from your message. I think you intended "group" to be your channel command, but it has to be at the front of the statement, instead of just before the variable.

[/ QUOTE ]


 

Posted

Thank you for this!.. I'll have to try my hand at this one day soon.


 

Posted

Help out a newb here, guys. I've read through the guides but the information is vast about binds and I'm starting to get a headache.

What I'd like to do:
When I click a movement key (i.e. jump) have my toon say/think something. Now, I've tried doing this with

[ QUOTE ]
<key> "+up$$local Something"

[/ QUOTE ]

but when I do that I get "Something" when I press the key and "Something" when I release it, which I don't want. How do I get it to just do it once?


 

Posted

Try:

[ QUOTE ]
<key> "local Something$$+up"

[/ QUOTE ]

I'm not positive, but I think the 'press and release' operation is only assigned to the portion of the bind after the '+' sign.


 

Posted

[ QUOTE ]
Try:

[ QUOTE ]
<key> "local Something$$+up"

[/ QUOTE ]

I'm not positive, but I think the 'press and release' operation is only assigned to the portion of the bind after the '+' sign.

[/ QUOTE ]

Nope. It does make it say "something" only once, but I never stop jumping. Funny, but not what I was looking for.


 

Posted

Eh, the only way I know of is a bit complex. Make jump1.txt and jump2.txt in your CoH folder. (and, assuming you're using the numpad0 button)

jump1.txt:
numpad0 "+ $$local Something$$up 1$$bindloadfile ./jump2.txt"

jump2.txt:
numpad0 "+ $$up 0$$bindloadfile ./jump1.txt"

In the chat window, type :
/bindloadfile ./jump1.txt


 

Posted

[ QUOTE ]
Eh, the only way I know of is a bit complex. Make jump1.txt and jump2.txt in your CoH folder. (and, assuming you're using the numpad0 button)

jump1.txt:
numpad0 "+ $$local Something$$up 1$$bindloadfile ./jump2.txt"

jump2.txt:
numpad0 "+ $$up 0$$bindloadfile ./jump1.txt"

In the chat window, type :
/bindloadfile ./jump1.txt

[/ QUOTE ]

Not that complex, and it does what I want. Thanks!


 

Posted

Trying to get a bind figured out that when I press P four different times I can activate these powers. Cant seem to get it right, please help!!

Begin quote:

The first thing you need to do is to create 4 keybind files:

AA1.txt
AA2.txt
AA3.txt
AA4.txt

In each AA file, you need to put in the /bind command that gets executed. So each file would look like this:

--AA1.txt--
p "powexec_name Build Up$$bind_load_file c:\keybinds\AA2.txt"

--AA2.txt--
p "powexec_name Aim$$bind_load_file c:\keybinds\AA3.txt"

--AA3.txt--
p "powexec_name Power Boost$$bind_load_file c:\keybinds\AA4.txt"

--AA4.txt--
p "powexec_name Boost Range$$bind_load_file c:\keybinds\AA1.txt"

End quote.

Do I have to make four SEPARATE notepad keybind files.

For example: Open keybinds file, select new from file. In that new, currently untitled notepad file do I put the first keybind?

--AA1.txt--
p "powexec_name Build Up$$bind_load_file c:\keybinds\AA2.txt" ---exactly like this?

Then save that as AA1.txt. Then do I open a brand new, untitled notepad file for the rest, i.e AA2.txt, AA3.txt etc.?

If that is then the case, do I then go to the game, type the bind: /bind p "$$powexec_name Boost Range$$bind_load_file c:\keybinds\AA1.txt" or I can place that bind in the orignal keybind file.

then type /bind_load?


Any help would be appreciated.


 

Posted

Yes they are 4 separate files each with one line in them exactly as shown.

To start it all up load the first file:

/bind_load_file c:\keybinds\aa1.txt

and you should be all set


 

Posted

You're pretty much already describing how to do it.
(Yes, you are making four separate files.)

Make a TXT file in a folder named "Keybinds" directly on your C: drive called: AA1.txt
The file should contain the following:
p "powexec_name Build Up$$bind_load_file c:\keybinds\AA2.txt"


Make a TXT file in a folder named "Keybinds" directly on your C: drive called: AA2.txt
The file should contain the following:
p "powexec_name Aim$$bind_load_file c:\keybinds\AA3.txt"

Make a TXT file in a folder named "Keybinds" directly on your C: drive called: AA3.txt
The file should contain the following:
p "powexec_name Power Boost$$bind_load_file c:\keybinds\AA4.txt"

Make a TXT file in a folder named "Keybinds" directly on your C: drive called: AA4.txt
The file should contain the following:
p "powexec_name Boost Range$$bind_load_file c:\keybinds\AA1.txt"

When you are online, type/paste the following command into your chat dialog:
/bind_load_file c:\keybinds\AA1.txt"


The end result:
You will load the AA1.txt bind manually. The next time you press the <p> key, it will execute the command to use Build Up and load the AA2.txt bind. From there, it will continue to rotate the bind.


Things to Note:[*]If you press the key too quickly in succession, the powers may not all have time to execute.[*]If you are unable to execute a power, the bind will still rotate.[*]You can not go back if you have missed a power; you can only go forward to it in sequence.


Let me know if you need further help or explanation.


 

Posted

Crappy, still cant get it to work. The boost range fires off, but the others do not. I must be missing a step somewhere.

Do I make a whole new folder named "keybinds". Or do I put these commands in the keybind file made when I did the bind_save?

I tried making a whole new folder in the CoH file, named it keybinds. In that folder I put each of the notepad files. One notepad file for each power. So there is a total of 4 files in the folder name "keybinds"

Sorry if I sound like a dill-hole. Im an RN, I save lifes. Break a bone and I can help you. Break you computer and your screwed.


 

Posted

It doesn't matter what the folder name is, as long as the binds point to it properly. (Capitalization won't matter, but spaces do.)

The bind examples above point to a folder named 'keybinds' that is located directly on the 'C:' drive. If you do not have that folder, then you must create it. If you wish to use another folder in a different location, then you'll need to change the keybinds to reflect that.


 

Posted

I suggest making them in the City Of Heroes folder that you run the game from. Than you can access them through "bindloadfile .\<filename>". (for those interested, bindloadfile and bind_load_file call the same command).

For example, with the keybind folder in the City of Heroes directory, you'd change the bindfiles to be :

AA1.txt:
p "powexec_name Build Up$$bind_load_file .\keybinds\AA2.txt"

AA2.txt
p "powexec_name Aim$$bind_load_file .\keybinds\AA3.txt"

AA3.txt
p "powexec_name Power Boost$$bind_load_file .\keybinds\AA4.txt"

aa4.txt
p "powexec_name Boost Range$$bind_load_file .\keybinds\AA1.txt"

In chat :
/bind_load_file .\keybinds\AA1.txt"

These should work with your existing set-up; you only need to change the information in the text files.


 

Posted

[ QUOTE ]
These will also select pets. Don't know if that will me a problem for you. It'd be nice if there was a 'notpet' parameter...
[ QUOTE ]
<key> "target_custom_next friend"
<key> "target_custom_prev friend"
<key> "target_custom_near friend"
<key> "target_custom_far friend"

[/ QUOTE ]

On the other hand, if you're playing a master mind, the following is quite helpful and keeps you from needing to click on the pet window.
[ QUOTE ]
<key> "target_custom_next mypet"

[/ QUOTE ]

[/ QUOTE ]

I was trying to do similar bind with my MM's pets. I had seen "toggle enemy" and tried to use "toggle friend" but was told that is not a vaild command? Anyone know why? Just curious....


 

Posted

(Cross posted in the Tanker forum)

Any bind gurus out there that can help? I want to be able to toggle on a Granite mode that would shut Rooted off when I move, but activate it when I stop.

I tried it this way:

w "+forward$$powexec_name Rooted"
a "+left$$powexec_name Rooted"
d "+right$$powexec_name Rooted"
s "+backward$$powexec_name Rooted"

I have a load file bind that will toggle on Granite and then Rooted and load this bind when I push numpad 6. When I move Rooted therefore shuts off, but when I stop it turns it on. The problem is if I execute anything else, the bind "breaks" and I get the opposite effect. Any suggestions?

I couldn't figure out how to do it with the toggleon and off commands. Because I want Rooted to "toggle on" when I am NOT pressing a movement key. So w "+forward$$powexec_toggleoff Rooted" would turn it off when I am moving, but how do I get it to toggle back on when I let go of the key?


EveryNighters:

Tar Heel Lvl 50 Inv/SS Tank
Knight of Purgatory Lvl 50 Fire/Ax Tank
Kilmainham Wall Lvl 50 Stone/Stone Tank
Re-Fridgerator Lvl 50 Ice/Ice Tank
Yankee Doodle Dandy Lvl 50 Will/Eng Tank
Teen Tar Heel Lvl 50 MA/SR Scrapper

EvilNighters:

Tar Heel Dead Lvl 50 DD Brute

 

Posted

You need to do a bind-load toggle that changes the functions of the keys mid-press. To do this, make two text files as follows:

rooted_off.txt
w "+forward$$powexec_toggleoff Rooted$$powexec_toggleon granite$$bind_load_file c:/bind/rooted_off.text"
a "+left$$powexec_toggleoff Rooted$$powexec_toggleon granite$bind_load_file c:/bind/rooted_off.text"
d "+right$$powexec_toggleoff Rooted$$powexec_toggleon granite$bind_load_file c:/bind/rooted_off.text"
s "+backward$$powexec_toggleoff Rooted$$powexec_toggleon granite$bind_load_file c:/bind/rooted_off.text"
shift+w "powexec_toggleoff granite$$powexec_toggleoff rooted$$bind_load_file bind_load_file c:/bind/rooted_off.text"

rooted_on.txt
w "+forward$$powexec_toggleon Rooted$$powexec_toggleoff granite$$bind_load_file c:/bind/rooted_on.text"
a "+left$$powexec_toggleon Rooted$$powexec_toggleoff granite$bind_load_file c:/bind/rooted_on.text"
d "+right$$powexec_toggleon Rooted$$powexec_toggleoff granite$bind_load_file c:/bind/rooted_on.text"
s "+backward$$powexec_toggleon rooted$$powexec_toggleoff granite$bind_load_file c:/bind/rooted_on.text"

Now, make a folder on the c: root directory called 'bind' and put these there (note, you can put them in a different folder, but you need to change the path in the bind to match if you do...).

Once this is all done, type:

/bind_load_file bind_load_file c:/bind/rooted_on.text

This will turn rooted on when you press a move key, and turn it off when you release the key.

A word of caution - this bind-method has problems with breaking if you press more than one move key at a time. You may not really like how this works in that regard. The only way to fix that is with VERY large sets of binds that you can get some detail on in the 'best hover-fly bind ever' thread (or something like that...).

This was the reason I put in the 'shift+w' key. Press this while stationary, and it will re-set the bind, turn on rooted, and turn off granite so you're back to your starting condition.

Any way, have a try and see if it's what you want.


 

Posted

Personally, I'd go with the text bind above. It's likely to have less errors than any other type of bind. On the other hand, you could try this simpler bind and see if it works well enough for you if you're shy of creating text binds...

w "+forward$$powexec_name Rooted$$powexec_name Granite"
a "+left$$powexec_name Rooted$$powexec_name Granite""
d "+right$$powexec_name Rooted$$powexec_name Granite""
s "+backward$$powexec_name Rooted$$powexec_name Granite""

This bind above will toggle between the two powers depending upon their on/off state. If the powers get out of sequence during use, just click off the one you want to turn on next.

This bind also will have problems if you press two bound movement keys at the same time. Also if you encounter a lot of lag, commands bound to movement keys are likely to mess up. Personally, I wouldn't bind the A, S, or D keys, and just have the powers toggle on and off only when moving forward (on the W key only), or perhaps backward as well (the S key) since you don't ever move foward and backward at the same time. On the other hand, I don't know how Granite and Rooted work, so it might be best to bind the left and right movement keys too.

Anyway, good luck.


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

Here's what I did based off your suggestions. I wanted to keep Granite on the whole time, just toggle on/off Rooted depending on movement (because the stacked slows from the powers are too much). When I am out in Granite on the other hand, I want to toggle manually between Sprint and Rooted.

Kil.txt (the main bind)
umpad4 "powexec_toggleoff Rock Armor$$powexec_toggleoff Mud Pots$$powexec_toggleoff Mineral Armor$$powexec_toggleoff Granite Armor$$bind_load_file c:\coh\sprint.txt"
numpad5 "powexec_toggleon Rock Armor$$powexec_toggleon Mud Pots$$powexec_toggleon Mineral Armor$$bind_load_file c:\coh\sprint.txt"
numpad6 "powexec_toggleon Mud Pots$$powexec_toggleon Rooted$$powexec_toggleon Granite Armor$$bind_load_file C:\coh\nosprint.txt"

sprint.txtnumpad0 "powexec_name Sprint$$powexec_name Rooted"
w "+forward"
a "+left"
d "+right"
s "+backward"



nosprint.txt
w "+forward$$powexec_toggleoff Rooted$$bind_load_file C:\coh\nosprint2.txt"
a "+left$$powexec_toggleoff Rooted$$bind_load_file C:\coh\nosprint2.txt"
d "+right$$powexec_toggleff Rooted$$bind_load_file C:\coh\nosprint2.txt"
s "+backward$$powexec_toggleoff Rooted$$bind_load_file C:\coh\nosprint2.txt"

nosprint2.txt
w "+forward$$powexec_toggleon Rooted$$bind_load_file C:\coh\nosprint.txt"
a "+left$$powexec_toggleon Rooted$$bind_load_file C:\coh\nosprint.txt"
d "+right$$powexec_toggleon Rooted$$bind_load_file C:\coh\nosprint.txt"
s "+backward$$powexec_toggleon Rooted$$bind_load_file C:\coh\nosprint.txt"


Well, it didn't work in combat. I think the problem is the recharge on Rooted is fairly long so whenever I attack before it comes back up, the binds break. Unless somebody can see where I went wrong, I think I'd have to set up a ton of binds like Gnarley's Speed on Demand binds.


EveryNighters:

Tar Heel Lvl 50 Inv/SS Tank
Knight of Purgatory Lvl 50 Fire/Ax Tank
Kilmainham Wall Lvl 50 Stone/Stone Tank
Re-Fridgerator Lvl 50 Ice/Ice Tank
Yankee Doodle Dandy Lvl 50 Will/Eng Tank
Teen Tar Heel Lvl 50 MA/SR Scrapper

EvilNighters:

Tar Heel Dead Lvl 50 DD Brute

 

Posted

[ QUOTE ]
I think the problem is the recharge on Rooted is fairly long so whenever I attack before it comes back up, the binds break. Unless somebody can see where I went wrong, I think I'd have to set up a ton of binds like Gnarley's Speed on Demand binds.

[/ QUOTE ]

Hmmm, not having rooted, I didn't realize it has a long re-charge time (though i should have thought about it..).

In any case, even with somethign like Gnarly's binds, you'll still have the problem of the binds breaking and rooted being unavailable in combat. This sort of configuration os really best suited to 'instant' toggles such as with the move powers. I don't think you're going to get what you're looking for, unfortunately...


-V


 

Posted

Yeah, that is my conclusion. Thanks for the help though.


EveryNighters:

Tar Heel Lvl 50 Inv/SS Tank
Knight of Purgatory Lvl 50 Fire/Ax Tank
Kilmainham Wall Lvl 50 Stone/Stone Tank
Re-Fridgerator Lvl 50 Ice/Ice Tank
Yankee Doodle Dandy Lvl 50 Will/Eng Tank
Teen Tar Heel Lvl 50 MA/SR Scrapper

EvilNighters:

Tar Heel Dead Lvl 50 DD Brute

 

Posted

Sorry if this is already answered somewhere, but alot of thread to sift through and i didnt see this in the beggining part.

Along time Ago I thought i saw a hover fly bind that was based on some comand that made it so pressing a button down would activate one power, and releasing it would activate a different one. So as long as the button was held down power 1 would be active, but when you realease the button power 2 would kick on.

Long story short i am trying to make a button that while held down my pets will "attack" and when released they will switch to defensive follow.

Right now the best i can do is 2 different binds (one of each) right next to eachother, but was wondering if there was a way i could make holding down the button be attck, and releasing it switch to defensive?