Fancy macro destroyed on zone change?


Healix

 

Posted

I came up with a fancy macro that did a couple of things, one of which was creating a new binding, so it was

blahblah command$$blahblah othercommand$$bind key "more command$$other command"

This works fine -- until I zone, at which point the binding part of it is removed. Because the binding has to have $$ in it, I can't easily remove the "" from it.

Is this a known feature/limitation? If so, is there any workaround if I want a macro to change a binding, such as loading a file defining that binding?


 

Posted

try changing the <bind key "more command$$other command"> to <bindloadfile filename.txt> and simply put your previous command into the file.


 

Posted

Thanks, I will try that! Can you (or someone) point me at more information about the format of binding files?


 

Posted

filename.txt
KEY "command$$command"
KEY2 "command$$command"
KEY3 "command$$command"
KEY4 "command$$command"
etc..

For example: DisableDrag.txt
ADD "optionset disabledrag 1$$TELL $name, Your power icons are now locked!"
SUBTRACT "optionset disabledrag 0$$TELL $name, Feel free to move your power icons"

Running /bindloadfile DisableDrag.txt (or /bindloadfilesilent DisableDrag.txt) will bind those two keys for the character you are using.

The location of the file can be defaulted to the piggs folder, or you can create a data folder and put them in there instead. Most people simply create a folder on their drive called c:\cohbinds\ and use the full path in the command.
For example: /bindloadfilesilent c:\cohbinds\DisableDrag.txt


 

Posted

This is an old thread, but I am having the exact same problems.

I have created macros for my new warshade to turn form human to dwarf and vice versa. I may not get the exact syntax right since I am not at my CoH computer but the commands were something like:

command to toggle on dwarf$$gototray 8$$bind shift+lbutton "Black Dwarf Step"

What happens is that after I zone a few time my macro changes to:

command to toggle on dwarf$$gototray 8

This happens seemingly at random.

I actually tried the suggestion above and made text files. Each text file contains something like(ex dwarf.txt in CoH directory):
shift+lbutton "Black Dwarf Step"

I then changed my in game macro to be something like:

command to toggle on dwarf$$gototray 8$$bindloadfilesilent .\dwarf.txt


This worked for a while, but after zoning once again my macro was changed to:

command to toggle on dwarf$$gototray 8



This is driving me nuts and it seems it has to be a bug. Has anybody found a way around this? I used to think it was a character limit, but it is very random as to when the macro gets truncated and sometimes when it happens, I will still have other macros that were NOT truncated.


 

Posted

Quote:
Originally Posted by The_Pancake_King View Post
command to toggle on dwarf$$gototray 8$$bind shift+lbutton "Black Dwarf Step"

What happens is that after I zone a few time my macro changes to:

command to toggle on dwarf$$gototray 8
In some cases, anything after the "goto_tray" command is cut off for some reason. Try putting that command at the end instead.

For example:
command to toggle on dwarf$$bindloadfilesilent .\dwarf.txt$$gototray 8


 

Posted

Thanks Master-Blade, I will give that a try. Do you know if there is a macro character limit?


 

Posted

Quote:
Originally Posted by the_pancake_king View Post
thanks master-blade, i will give that a try. Do you know if there is a macro character limit?
255


 

Posted

I didn't know the number, but I knew the limit is pretty high. I have a macro that is common across all my characters to summon the buff pet. Since each character might pick a different buff pet, the macro tries to summon EVERY buff pet.


Paragon City Search And Rescue
The Mentor Project

 

Posted

It's the $$goto_tray command. That has to be the last thing in the macro or bind. Because for some bizzare and completely incomprehensible reason, on zoning, everything after the $$goto_tray command gets wiped clean.


 

Posted

Thanks everyone, this will make my warshade a lot more fun to play.


 

Posted

For me, my chats have been strange on a couple of toons when I first log in. I can only type partial words (can't type B, C or H mostly) and if I try and answer a tell I can't. The only thing that fixes it is to log/relog. Never had this prob in 6 years.


�Many things worth doing in the world had been declared impossible before they were done.�