Page 1 of 1

Request /logging for mq2chatwnd in next patch.

Posted: Wed Jul 07, 2004 4:55 pm
by PhoenixZorn
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.

Posted: Wed Jul 07, 2004 5:20 pm
by Rusty~
*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