The Incomplete and Unofficial Guide to /bind (1.1)
Can't test this at the moment, but this might work:
/bind r "powexec_name Fly$$powexec_abort$$powexec_name Hover$$powexec_abort$$powexec_name Sprint"
[ QUOTE ]
Can't test this at the moment, but this might work:
/bind r "powexec_name Fly$$powexec_abort$$powexec_name Hover$$powexec_abort$$powexec_name Sprint"
[/ QUOTE ]
that should do it, I believe you only need the one powexec_abort before activating Sprint, just in case.
[ QUOTE ]
Can't test this at the moment, but this might work:
/bind r "powexec_name Fly$$powexec_abort$$powexec_name Hover$$powexec_abort$$powexec_name Sprint"
[/ QUOTE ]
Not sure it has to be that complex.
powexec_name Fly$$powexec_name Hover$$powexec_name Sprint
Multiple powexecs together result in the following behavior:
- If all powers are off, the last one will be turned on.
- Any powers that are on will be turned off.
- If all but one power are on, they will be turned off and the one will be turned on.
So this will turn on Sprint if all 3 powers are off or if either Hover or Fly are off. If all 3 are on, all 3 will be turned off. If Fly and Hover are on but Sprint is off, Fly and Hover will be turned off and Sprint will be turned on.
I thought powexec_abort was only used to cancel powexec_auto
In regards to the bind_load_file c:\coh\$name.txt bind setup, I've tried this and the bind command doesn't swap the variable. It looks for a file SPECIFICALLY named $name.txt.
I don't know if this is a bug or intentional, but i've never gotten it to work for me.
Can't tell ya how useful this guide's been Cudos and thanks.
Addition:
<font class="small">Code:[/color]<hr /><pre>/say <duration #></pre><hr />
Sets the time on the screen of the chat balloon for that message only. Duration limitations are unknown. <> commands can be used with any chat channel prefix (/page, /tell, /whisper, /request, /auction, /emote, etc.)
[ QUOTE ]
In regards to the bind_load_file c:\coh\$name.txt bind setup, I've tried this and the bind command doesn't swap the variable. It looks for a file SPECIFICALLY named $name.txt.
I don't know if this is a bug or intentional, but i've never gotten it to work for me.
[/ QUOTE ]
I would expect as much, but i have read that $name with no extension works IF you delete the extension on the binds file it's trying to call.
[ QUOTE ]
[ QUOTE ]
In regards to the bind_load_file c:\coh\$name.txt bind setup, I've tried this and the bind command doesn't swap the variable. It looks for a file SPECIFICALLY named $name.txt.
I don't know if this is a bug or intentional, but i've never gotten it to work for me.
[/ QUOTE ]
I would expect as much, but i have read that $name with no extension works IF you delete the extension on the binds file it's trying to call.
[/ QUOTE ]
Yes, taking out the ".txt" part of the file name will do it.
If your player is named Bill, then you should name the file "bill", not "bill.txt".
And the command should be: bind_load_file c:\coh\$name
[ QUOTE ]
[ QUOTE ]
[ QUOTE ]
In regards to the bind_load_file c:\coh\$name.txt bind setup, I've tried this and the bind command doesn't swap the variable. It looks for a file SPECIFICALLY named $name.txt.
I don't know if this is a bug or intentional, but i've never gotten it to work for me.
[/ QUOTE ]
I would expect as much, but i have read that $name with no extension works IF you delete the extension on the binds file it's trying to call.
[/ QUOTE ]
Yes, taking out the ".txt" part of the file name will do it.
If your player is named Bill, then you should name the file "bill", not "bill.txt".
And the command should be: bind_load_file c:\coh\$name
[/ QUOTE ]
huh, just tried renaming a .txt to "test" without a file extension and...it works. Call me superstitious, but I was always under the impression that it's a big no-no to go changing or erasing file extensions. How come this works wihtout rendering the file unreadable?
rendering a file unreadable is a bunch of hooey.
If you know what program calls a specific file you can run a file with any old extension.
There are specific CONVENTIONS for file extensions (exe for executable, bin for binary, cab for cabinet) but these are simply ease of use rather than rules set in stone.
The key is:
the calling program needs a file named X and expects it in format Y.
There is a program X in format Y.
Program will execute.
Get either of them wrong and it will result in an error/unreadable file.
But anything that is actually text can be parsed and opened with a text browser, extension or no extension.
Hey does anyone know a bind to keep a power like Combat jumping or sprint on only while a particular button it pressed. Example: I want my combat jumping to beon when I have the shift key pressed and turn off when I take my finger off the shift button. Is that even possible? Thanks guys
Grey Ghost Music
[ QUOTE ]
If you have three characters with different bind files, but don't want to make 3 different macros for loading them, do this:
Name the files the same as your character names, but with NO extension. So if your characters are Bill and Bob, you would name the bind files "bill" and "bob" (NOT "bill.txt" and "bob.txt").
Now you can load them both with the same macro. If the path to your files is "c:\binds", then the macro command would be:
bind_load_file c:\binds\$name
That way the name of the character you have currently logged in will be inserted in the filepath, and the correct file loaded. So only one bind/macro to load bind file for all characters.
[/ QUOTE ]
How should I name the files if my characters' names have a space in them? I have removed the file extension from the .txt file but I can't seem to get it to work for Super Volt. I tried naming the file:
<ul type="square">[*]supervolt[*]super_volt[*]super volt[*]Super Volt[*]Super_Volt[/list]but none of them worked. Any advice?
Hmm, did you put the command between quotes?
I mean like this:
"bind_load_file c:\binds\$name"
This might help, because with a character named "Super Volt" the result of that command will be:
bind_load_file c:\binds\Super Volt
And any command with a space in it needs to be between quotes to show where it starts and ends.
Hopefully that will do it.
Supper Volt,
It may not be the syntax. You may be having a problem with the name being to long to recognize all the characters. This problem is talked about on the "post your binds here" thread. Try shortening the file name to "sv" or something with 8 or fewer characters.
I have to admit, I've not seent this problem using file names quite a bit longer, but I've got the extension on all of them. I don't know if that will make a difference.
[ QUOTE ]
Hmm, did you put the command between quotes?
I mean like this:
"bind_load_file c:\binds\$name"
This might help, because with a character named "Super Volt" the result of that command will be:
bind_load_file c:\binds\Super Volt
And any command with a space in it needs to be between quotes to show where it starts and ends.
[/ QUOTE ]
Yes, the command was in quotes. I thought all commands had to be in quotes. The complete command I used, as it appears in my keybinds.txt file, is: NUMPAD9 "bind_load_file c:\kb/$name". The character named files are all sitting in c:\ and they have no file extensions. When I try to load the keybinds in-game using this command I get a message along the lines of "unable to read bind file."
[ QUOTE ]
Supper Volt,
It may not be the syntax. You may be having a problem with the name being to long to recognize all the characters. This problem is talked about on the "post your binds here" thread. Try shortening the file name to "sv" or something with 8 or fewer characters. I have to admit, I've not seent this problem using file names quite a bit longer, but I've got the extension on all of them. I don't know if that will make a difference.
[/ QUOTE ]
Your response doesn't seem related to my issue. I'm trying to utilize the keybind that will auto load my current character's custom binds, as per the posts above...so having a file extension on the keybind files isn't an option. I'm supposed to re-name each character's custom keybinds to match the name of that character so they can be loaded using the $name variable.
SV - Here is an exerpt of what I meant. but I think you've probably seen it already.
[ QUOTE ]
"C:\program file" is also "C:\progra~1" under windows. It's called msdos compatibility
So, try :
/bind c "bind_load_file c:\Progra~1\City~1\binds\myFly.txt"
[/ QUOTE ]
Going back and looking, I think you've probably seen it already as you've also posted there... In any case, I thought that this problem may be what you are seeing as well, though I've not had any similar problems my self, and I don't know if this is OS dependant, but thought it may be worth a shot.
Now, looking at the command you've put in your last post:
[ QUOTE ]
NUMPAD9 "bind_load_file c:\kb/$name". The character named files are all sitting in c:\
[/ QUOTE ]
If they are all sitting in the C:\ directory, shouldn't the command be:
NUMPAD9 "bind_load_file c:\$name"
As you've typed it here, it suggests that the files would be in a foulder named "kb" in the c:\ directory, though one of the slashes is going the wrong way for that. Was this just a typo here, or a cut and paste?
In any case, I've gotten the same error message when I mis-typed the file path, so this could fix your problem.
Hope it helps!
Super Volt, you're hit.
AFAIK there's no way to correct the empty space issue with loading bind files.
Not that it CAN'T be done, I just don't know any way to do it.
[ QUOTE ]
Now, looking at the command you've put in your last post:
Quote:
--------------------------------------------------------------------------------
NUMPAD9 "bind_load_file c:\kb/$name". The character named files are all sitting in c:\
--------------------------------------------------------------------------------
If they are all sitting in the C:\ directory, shouldn't the command be:
NUMPAD9 "bind_load_file c:\$name"
[/ QUOTE ]
Thanks, Blue Volt. Oddly enough, CoH will accept either one if the filepath is correct. I have no problem loading my binds with the command "bind_load_file c:\kb/sv/supervolt.txt" even though it include some forward slashes. Not sure why that is but it works.
[ QUOTE ]
Super Volt, you're hit.
AFAIK there's no way to correct the empty space issue with loading bind files.
Not that it CAN'T be done, I just don't know any way to do it.
[/ QUOTE ]
Thanks, White Hat. I was afraid of this. Has anyone been able to use the $name vairiable to load a heros who has two words in the name with a space betweeen words? I'd love to use this command to load custom binds more easily.
I don't think there is a way to load keybind files when there's a space anywhere in the path. I tried moving my keybinds to my CoH folder (c:\program files\city of heroes\binds\) and I can load them from the game by manually typing the whole thing because putting the "" around the path makes the game recognize it as one parameter. However, I've tried single quotes and double quotes in a bind_load_file bind to a key and it just doesn't work...ever.
Often in programing, you have to use double double quotes to get a quote to show up in a string. Something like
/bind NumPad0, "bind_load_file ""c:\program files\city of heroes\binds\$name"""
just a thought ... haven't tried it ...
Arc: A Little RnR (17523) - Poster
Char Site | My DeviantArt
Global=@Thornster
[ QUOTE ]
I don't think there is a way to load keybind files when there's a space anywhere in the path. I tried moving my keybinds to my CoH folder (c:\program files\city of heroes\binds\) and I can load them from the game by manually typing the whole thing because putting the "" around the path makes the game recognize it as one parameter. However, I've tried single quotes and double quotes in a bind_load_file bind to a key and it just doesn't work...ever.
[/ QUOTE ]
I haven't had a problem with that...I keep all my keybinds in a subdir of City of Heroes.
Speaking of which....can a macro call binds? I heard of this one user that everytime he went afk it would start playing a scripted conversation. I thought this was so cool I wanted to use it for my char...I've got teh duration problem figured out but I'm kinda screwed with the length limitation. My solution was to have it so that it would load a whole new bind.txt when I went afk and then trigger each one in a sequence... is such a thing possible?
can anyone point me to the city of bindings program that someone named jonathan created? It was great but I can't find it back on the boards!
Hmm, this is strange. Earlier I could load a bind file in the City of Heroes directory using the $name variable, like this
"bind_load_file <path>\City of Heroes\$name"
But now it does not seem to work...
If I hardcode the name, that is put the player name instead of $name in the path, it works fine.
Anyone know if bind_load_file command has changed, or something else has changed?
As I said, earlier I could do this, even if the path included spaces...
[ QUOTE ]
Hmm, this is strange. Earlier I could load a bind file in the City of Heroes directory using the $name variable, like this
"bind_load_file <path>\City of Heroes\$name"
But now it does not seem to work...
If I hardcode the name, that is put the player name instead of $name in the path, it works fine.
Anyone know if bind_load_file command has changed, or something else has changed?
As I said, earlier I could do this, even if the path included spaces...
[/ QUOTE ]
I would guess that you used a single word name when it worked and are failing with a name involving a space. I am surprised that \city of heroes\ worked for you, I've seen people resort to using cityof~1 or was it cityofh~1 because of spaces. I haven't fussed with pathing, all my bind editing has been done on c:\
I already have a binding to switch between hover and fly. Now I am trying to figure out how to bind a key to shutdown hover and fly (whichever is on at the time) and activate sprint. Any ideas?
Thanks in advance!