-
Posts
97 -
Joined
-
[ QUOTE ]
Is it legal to put a /bind command INTO another bind command?
[/ QUOTE ]
Yes, but you can't rebind the same key as you are using. So, you could use the S key to rebind the F key, but you can't use the F key to rebind itself. Also, even if it was possible, you couldn't use this to toggle between states, since you would need to bind a bind command which binds a bind command which binds a bind command...and so on.
Also, you can't nest quotes, which limits the complexity of the bound bind. -
[ QUOTE ]
/Macro Woodsy "settitle 197$$cc 2"
/Bind <key> "settitle 197$$cc 2"
And this is an example if you want to trigger a power,set a badge title and change costume at the same time.
/Macro "Bluestuff" "local Gather for some bluestuff!$$settitle 113$$cc 3$$powexec_name Recovery aura"
[/ QUOTE ]
Corrected macros/binds. No need for the $$ at the beginning, and commas don't get used for these commands. -
[ QUOTE ]
<ul type="square">[*]coh:x=float[*]coh:y=float[*]coh:z=float[/list]
[/ QUOTE ]
It would be good to also have the yaw/pitch/roll of the camera in there. That way it would be easy to set up a demo with the camera in the exact same location and pointed in the same direction. -
[ QUOTE ]
Here's one that came up last night. can anyone thinl of a macro that will toggle the FPS display?
[/ QUOTE ]
/macro fps "++showfps$$++netgraph" should work. -
A couple of tip addendums:
instead of popping out to windows to rename demo files, make a bind like this:
/bind <key> "beginchat /demorecord "
Then you hit that key, type a quick name like 1, 2, etc. and you don't have to switch out and rename to avoid overwriting.
You could also make it "beginchat /demorecord demo" so that you would always have a prefix of demo on your recordings, or you could hit your key then enter to quickly record to demo.cohdemo.
You could also bind multiple keys to "demorecord demo1", "demorecord demo2" etc.
For playback you could create a file association for .cohdemo in Windows to get it to do the right thing when you double click (or right click and select something).
From an Explorer window select Tools->Folder Options, then select the File Types tab.
Hit the New button, and put in cohdemo as the extension.
With the newly created COHDEMO association selected, hit the Advanced button (this opens the Edit File Type dialog).
In that dialog you can specify a nicer name for the type in that top text box (ie. "CoH Demo File"), you can also specify multiple actions. The first one will be the default action, which is what happens when you double click on the file. You can also change the default after you specify a couple actions. Non-default actions appear at the top of the context menu when you right click on the file.
Checking the "Always show extension" box could be helpful too.
I'd recommend at least two actions, one to play the demo, and one to edit it. If you record demos on Test of features that don't yet exist on live, a third action to play the demo using the test client would be nice. The New button opens a New Action dialog for this.
In that New Action Dialog, the "Action:" text box is for the name of the action and the "Application used..." text box is for the command line to perform it. Here's some sample actions/applications:
Action => Application
Play demo => C:\Program Files\City of Heroes\CityOfHeroes.exe demoplay "%1"
Play demo on test => C:\Program Files\cohtest\CityOfHeroes.exe demoplay "%1"
Edit demo => C:\WINDOWS\NOTEPAD.EXE "%1"
Windows takes the %1 in all those and replaces it with the file name of the file you double clicked or right clicked. The quotation marks are needed just in case of spaces in the path or file name. The paths to the applications will of course need to match what you have on your system. Also, if you have a preferred text editor, substitute the path to that for the notepad above. -
[ QUOTE ]
Some powers have spaces and the like in their name, so you can't just type in what the power is called by the game.
[/ QUOTE ]
Powers with spaces work fine with powexec_*, you don't even need quotes. Just use the name of the power as appears when you right click on it. There were instances where this did not work, but that was because the power name was bugged to have a space after it as well, which had to be there for the command to work.
Spaces also are fine with inspexec_name.
For example, here's a bind I use frequently:
[ QUOTE ]
shift+numpadenter "powexecname quills$$powexecname death shroud$$powexecname dark embrace$$powexecname obsidian shield$$powexecname cloak of darkness$$powexecname oppressive gloom$$powexecname cloak of fear$$powexecunqueue"
[/ QUOTE ] -
[ QUOTE ]
Is there a way to set a bind such that it only affects the active global channel?
That is to say:
I'm lazy. I'd like to write a bind that does the auto-ident for the character name and level in global chat channels as well as allow for the entry of a text string. This bind would affect the current global tab's default channel.
Any ideas on how to accomplish this?
I could do specific channels, but, as noted: I'm lazy.
Thanks in advance.
[/ QUOTE ]
/bind <somekey> "chat_set A$$beginchat $name ($level)" -
It just takes a little state machine thinking:
Base state, both buttons unpressed:
c:\cohbinds\up_mc_0_0.txt
[ QUOTE ]
mousechord "+forward$$bindloadfile c:\cohbinds\up_mc_0_1.txt"
up "+forward$$bindloadfile c:\cohbinds\up_mc_1_0.txt"
[/ QUOTE ]
Up not pressed, mousechord pressed:
c:\cohbinds\up_mc_0_1.txt
[ QUOTE ]
mousechord " $$forward 0$$bindloadfile c:\cohbinds\up_mc_0_0.txt"
up "+ $$bindloadfile c:\cohbinds\up_mc_1_1.txt"
[/ QUOTE ]
up pressed, mousechord not:
c:\cohbinds\up_mc_1_0.txt
[ QUOTE ]
mousechord "+ $$bindloadfile c:\cohbinds\up_mc_1_1.txt"
up " $$forward 0$$bindloadfile c:\cohbinds\up_mc_0_0.txt"
[/ QUOTE ]
Both pressed:
c:\cohbinds\up_mc_1_1.txt
[ QUOTE ]
mousechord " $$bindloadfile c:\cohbinds\up_mc_1_0.txt"
up " $$bindloadfile c:\cohbinds\up_mc_0_1.txt"
[/ QUOTE ]
I refuse to even consider taking the w into account as well. If something gets messed up, either by zoning or hitting w, just press and release one, then the other. Start by loading c:\cohbinds\up_mc_0_0.txt. -
Replied in the other thread too.
rbutton + lbutton can be bound as mousechord.
To change to the behavior you want:
/bind mousechord "+forward"
If you have both w and up already bound to +forward, you won't be able to use that exact bind. Instead you can use a slightly modified version which does the same exact thing:
/bind mousechord "+forward$$nop"
Making it so that you can use both mousechord and the up arrow without interfering with each other is difficult. What will happen in the simple scenario of both being bound to +forward is that when you have both pressed you will move forward, but will stop if you release either.
To correct this would involve loading bind files when you press one, then other bind files when you press the other while still holding the first, and still more when one or the other is released. Or you can suck it up and just release and press the button again to restart moving. -
You are holding the button down, right?
I'll try this at home to see if I missed something. -
I posted this in your question thread also.
Piece of cake
c:\cohbinds\mouselook1.txt
[ QUOTE ]
rbutton "+mouselook$$turnleft 0$$turnright 0$bind_load_file c:\cohbinds\mouselook2.txt"
left "+turnleft"
right "+turnright"
[/ QUOTE ]
c:\cohbinds\mouselook2.txt
[ QUOTE ]
rbutton " $$mouselook 0$$left 0$$right 0$$bind_load_file c:\cohbinds\mouselook1.txt"
left "+left"
right "+right"
[/ QUOTE ]
The <movement> 0 commands in the rbutton binds are to prevent a turn or movement command from getting stuck if you press or release the right button while holding down the left or right arrow keys. -
[ QUOTE ]
APPS "powexec_name Recall Friend$$team I'm teleporting $target to me."
SHIFT+APPS "team Does anyone want to be teleported to here?"
[/ QUOTE ]
What the heck is an APPS button? Do you have one of those multimedia keyboards? -
[ QUOTE ]
/bind numpad2+lbutton "powexec_name recall friend$$team $target, Stand clear! Im going to TP you!"
[/ QUOTE ]
You can only combine shift/alt/ctrl with other keys. Your combination of numpad2+lbutton will not work. -
[ QUOTE ]
Does anyone know the command for changing your badge title?
[/ QUOTE ]
There isn't one that is able to be used directly. The /set_title command will change your badge title, but it uses an internal number as its parameter, not the name. Trying to use it with a badge name just results in your badge title being cleared. -
[ QUOTE ]
LSHIFT+LBUTTON "powexec_name Teleport"
RSHIFT+LBUTTON "powexec_name Tar Patch$$local Laying down Tar Patch."
LALT+LBUTTON "powexec_name Recall Friend$$team I'm recalling $target to me."
RALT+LBUTTON "powexec_name Dark Servant$$local Come forth, Dark Servant."
However, I find that only the Tar Patch and Dark Servant binds get activated. It just doesn't seem to matter whether I use the left or right SHIFT and ALT buttons.
Also, can I bind something to the key with the window icon on it? If so, what is that key called?
[/ QUOTE ]
When doing modifier key + another key, the left and right are ignored. So, your second bind is overwriting the first. You'll have to make do with three targeted binds (shift, alt, and ctrl).
As for the other, I don't believe that you'll be able to use the windows key. Even if CoH recognizes it, I think it will still pop up the Windows start menu every time you press it. To find out if CoH recognizes it, go to the options menu and try to assign it to something. If it takes, do a /bind_save_file to see what the name of the key was. -
[ QUOTE ]
But, the dismissal only seems to work if the teleport power is in a visible power tray.
[/ QUOTE ]
I'm a bit wrong about this, the teleport power just needs to be in a tray, it doesn't need to be one of the active (visible) ones.
[ QUOTE ]
As for your second request, this wouldn't work since the same command brings the targeting cursor up and dismisses it. If you actually teleported while shift was held down in this scheme, you would get the targetting cursor again when you released the key.
[/ QUOTE ]
And I'm a bit wrong here as well, powexec_unqueue will cancel the teleport target, so you can use the following bind to bring up the targetting cursor when lshift is pressed, and dismiss it when lshift is released. (thanks Innovator for the bind)
c:\cohbinds\tp1.txt
[ QUOTE ]
lshift "+ $$powexec_name teleport$$bind_load_file c:\cohbinds\tp2.txt"
[/ QUOTE ]
C:\cohbinds\tp2.txt
[ QUOTE ]
lshift " $$powexec_unqueue$$bind_load_file c:\cohbinds\tp1.txt"
[/ QUOTE ]
Init with /bind_load_file c:\cohbinds\tp1.txt -
[ QUOTE ]
I want a bind that activates the targeter for teleport when I push it once (which I can do easily) and deactivates it when I push it again if I decide not to teleport at just that time (which I absolutely CANNOT GET TO WORK!!). It works this way when it's on the power tray and I hit the number key, but when I bind it it doesn't. What is the proper bind command for this?
Even better, is it possible to make it such that holding down one key activates the targetter and letting go deactivates it? I mean, is there a way to bind the activation of teleport to lshift being pressed and the deactivation of teleport to lshift being released, so I always AND only get the targetter/option to teleport while lshift is held down? That would be best, for me.
[/ QUOTE ]
/powexec_name teleport, like you are most likely using in your bind, is the correct command, both for bringing up the targetting cursor, and for dismissing it. But, the dismissal only seems to work if the teleport power is in a visible power tray.
As for your second request, this wouldn't work since the same command brings the targeting cursor up and dismisses it. If you actually teleported while shift was held down in this scheme, you would get the targetting cursor again when you released the key. -
[ QUOTE ]
i'm wondering how you reply to tells while tp'ing, if you have a macro of "say can't talk teleporting" and you hit backspace to reply then that macro, would that work? is there a separate code for a bind or macro specifically to reply to a tell?
[/ QUOTE ]
Unfortunately, there isn't a way to automate a reply to a tell. So you are limited to either an extremely short response like "nntp", which of course no one would understand, or you can do what I usually do, plummet to the ground while making a reply. At higher levels the falling damage is pretty low, and if you are going to missions in low level zones, you don't have to worry about enemies on the ground (well, except for their cruel laughter at your splatting on the ground).
Other things you could try:
<ul type="square">[*]Compose a "Can't talk teleporting" message in Notepad. Copy it to the clipboard. When you get a tell hit [backspace][ctrl+V][enter].[*]If you have a smallish group of people who regularly send you tells while you port, make a "Can't talk, teleporting" bind for each of them (global chat names work better here).[*]If you have a somewhat larger group of folks, put 'em on your friends list and respond to tells by sending to the friends channel. Use the supergroup channel if they are in that group.[*]Don't reply right away, land somewhere and start your reply with: "Sorry, I was teleporting"[/list] -
There is no slash command which does the left click action, so you will always have to use the mouse to select your destination.
-
[ QUOTE ]
QUESTION 2:
Is there a way to /bind_save to a specific drive location? ie /bind_save_file c:\Sprintset\reset.txt (this does not work of course). I want to be able to save bind sets as they vary quite significantly from character to character so I don't have to worry about messing it up or losing it.
[/ QUOTE ]
That /bind_save_file should work, they added that command after this guide was written. -
[ QUOTE ]
here is the file contents:
DwnFMOD.txt [down keypress event file]:
JOYSTICK1_Up +down$$-down$$+forward$$canlook 1$$bind_load_file C:\kb\UpFMOD.txt
UpFMOD.txt [up keypress event file]:
JOYSTICK1_Up +down$$-down$$-forward$$canlook 0$$bind_load_file C:\kb\dwnFMOD.txt
does anyone see anything wrong with this?
can someone test to see if this crashes on there machine?
[/ QUOTE ]
I'm not sure why it is crashing the client, but there are some changes I would recommend. I would lose the +down$$-down, you don't need it for this bind since the +forward takes care of the magic +. Secondly, try adding quotes around the binds like so:
C:\kb\DwnFMOD.txt
[ QUOTE ]
JOYSTICK1_Up "+forward$$canlook 1$$bind_load_file C:\kb\UpFMOD.txt"
[/ QUOTE ]
C:\kb\UpFMOD.txt
[ QUOTE ]
JOYSTICK1_Up "-forward$$canlook 0$$bind_load_file C:\kb\dwnFMOD.txt"
[/ QUOTE ]
You might also try using mouselook instead of canlook.
Lil_Wayne
Only one power at a time can be activated. And SS doesn't stack with SJ anyway, so why would you need it added?
OmniMax
The trick to cycling binds is that the bind replaces itself with the new bind on activation. There is no way to modify or delete an existing macro, so cycling macros cannot be created.
The closest you could get would be a macro that changes the tray so that a different macro was sitting in the same slot. To do this with your alt tray use the /nexttrayalt and /prevtrayalt commands (or in I4 the /gototrayalt # or /gototrayalt2 # commands) -
[ QUOTE ]
Also, does anyone know a way to change the chat-channel to a global channel through a bind as above?
Volt
[/ QUOTE ]
If you have the channel set as the default for a tab, and that tab is active, then you can use /chat_set A to chat on it using startchat. If you change like this, then the other chat_set's still work.
Combine this with tab_select to change to a specific global channel. -
You are probably just getting red-circled. If you try to target somewhere that the game doesn't like, the targetting circle will appear (in red), and will not allow the teleport to complete until the targeting circle is moved somewhere that it likes.
Yes, it is annoying. -
[ QUOTE ]
[ QUOTE ]
Fliers get the shortest end of this stick. They have no bonuses associated with their travel power that could be retained to preserve some usefulness in a no-travel-powers scenario.
[/ QUOTE ]
Flight has hover, which provides defense. Speed has hasten, which provides defense. Leaping has CJ, which provides defense. The level 14 powers in each of these PPs do not provide a defense bonus.
If anything, your argument is only valid for Teleporters... who don't have def bonuses in their entire pool.
[/ QUOTE ]
Maybe no def bonuses, but Posi did specifically mention that Teleport Foe would still work in No Travel Powers mode. So that is something at least. Possibly a very nice something if you are fighting on a map with nice tall buildings. -
[ QUOTE ]
I'm wondering about the "+down" and "-down" prefixes on a lot of these binds; I don't see them listed in the master keybind list, I assume it refers to "while this key is pressed down/released do X", but where are these documented, and which is which?
[/ QUOTE ]
+down is a command which makes you go down, much like +forward makes you go forward and +left makes you strafe left. -down makes you stop going down. Combine the two into +down$$-down, and you get a command which does nothing.
"Huh? Why would you want that?" you might ask.
Having a + at the beginning of a bind results in the bind being activated twice, once when you press the key down, and once when you release it. This allows you to do neat things that you couldn't do otherwise.
Of course, using +down$$-down is now obsolete, because Innovator found an easier, possibly less confusing way of getting that + at the beginning of a bind. The new method is to start the bind with "+ $$" (that's a plus sign, then a space, then two dollar signs). The game doesn't complain about the + being attached to a command that can't use a +, and you get the key down/key up action.
That would make the first shift bind look like this:
[ QUOTE ]
shift "+ $$vis_scale 1.0$$shadowvol 0$$ss 0$$camdist 12$$window_show chat$$window_show target$$window_show tray$$bind_load_file c:\cohkeybinds\letharga\teleport_off.txt"
[/ QUOTE ]