Request /logging for mq2chatwnd in next patch.

A forum for the general posts relating to MacroQuest. *DEPRECATED: This forum is no longer in public use, but remains here for your reading pleasure. Enjoy

Moderator: MacroQuest Developers

PhoenixZorn
Macro Czar
Posts: 127
Joined: Fri Dec 12, 2003 2:20 pm
Contact:

Request /logging for mq2chatwnd in next patch.

Post by PhoenixZorn » Wed Jul 07, 2004 4:55 pm

I think it would be really great if you could log your macro output (every line, not just the /mqlog lines) to a log file or txt file. It would help greatly in debugging macros so instead of having to type every line of the error spew, you can just cut and paste the few lines of error messages so others can figure out what's wrong much easier.

Thus, instead of me typing:

Unparsable in Calculation: 'S'
aekite.mac@110 (Event_Timer(TimerName): /if (${TimerName}==${SongTimer}) {
aekite.mac@74 (Main(Dots,Health,Cradius)): ?call Event_Timer SongTimer
The current macro has ended
Failed to parse /if condition '(SongTimer==NULL)', non-numeric encountered

I can just cut and paste it, and not have to worry about typos or missed keystrokes.

Rusty~
a hill giant
a hill giant
Posts: 244
Joined: Wed Apr 14, 2004 2:55 pm

Post by Rusty~ » Wed Jul 07, 2004 5:20 pm

*edit*
nm, misunderstood post. the stuff below would log all normal MQ stuff but it wouldn't catch errors. tho you could catch non fatal errors with events i think

Code: Select all

#event MQ2Chat "[MQ2] #1#"

| your macro here

Sub Event_MQ2Chat(string line,string text)
   /mqlog ${text}
/return