About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Odoth
Wanderer


Joined: 13 Nov 2004
Posts: 54
Location: Visalia, CA

PostPosted: Sat Mar 03, 2007 7:43 am   

Logging captured/gagged text
 
What I have at the moment is:
A) atconnect alias that begins logging as soon as connected.
B) #capture/#gag commands to capture channels/communication into a separate window.

B interferes with A in that apparently gagged text is not logged. So I decided that I could just write the channel info to a separate file at the time they are being gagged useing #write and %line. This works fine (although it seems like it might be causing a little bit of program lag) except that, while #log logs all ansi color information, using #write with %line apparently does NOT.

So at the moment I have triggers that look like this:
Code:

#trigger {* gossips, '*'$} {#cap tell;#write 1 %line;#gag}


Anybody have a fresh perspective on how I can either include the gagged text in the logfile, or write to a separate file while preserving ansi information?
_________________
*ribbit*
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sat Mar 03, 2007 8:14 am   
 
If you're using a separate window for the tells, why not use the log from that window?

Charneus

BTW... Visalia - so close to home... *sigh*
Reply with quote
Odoth
Wanderer


Joined: 13 Nov 2004
Posts: 54
Location: Visalia, CA

PostPosted: Sat Mar 03, 2007 8:39 am   
 
Well, I didn't think that was a viable solution before, for various reasons (most of which I don't remember anymore). I didn't (and don't) want to have a separate settings file for the communications window but thinking about it, I realized I can do it with my main settings file. So I added :tell:#log blah.txt to my atconnect alias and was SURE it was going to work.
Well...it doesn't log the color from the communication text, which is pretty weird.
So I have a log of the main window, which stores the color from the mud output, and the log of the communication window which does NOT store the color data from the captured text. Any ideas on why this is?

RE:BTW from Charneus..... Whereabouts near Visalia do you call "home" and sigh about? Wink
_________________
*ribbit*
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sat Mar 03, 2007 10:39 am   
 
As well as separate windows, you have separate Preferences. Click on the 'tell' window, then click the Prefrences button. Go to Logging, and choose Log Ansi Color. Should work for you.

And I used to live in Hanford/Lemoore. My family still lives there - that's why the sigh. :)

Charneus
Reply with quote
Odoth
Wanderer


Joined: 13 Nov 2004
Posts: 54
Location: Visalia, CA

PostPosted: Sat Mar 03, 2007 5:34 pm   
 
Well shoot, I guess I shoulda known that since I apparently did it at one point in my main window Very Happy
Thanks much.
_________________
*ribbit*
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4740
Location: Pensacola, FL, USA

PostPosted: Sat Mar 03, 2007 5:55 pm   
 
Preferances
General
Logging

Uncheck 'Log after triggers'

That should force it to log before triggers, getting all the gagged stuff.
_________________
Discord: Shalimarwildcat
Reply with quote
Odoth
Wanderer


Joined: 13 Nov 2004
Posts: 54
Location: Visalia, CA

PostPosted: Sat Mar 03, 2007 6:10 pm   
 
Ha, okay, even better. Thanks Smile
_________________
*ribbit*
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sat Mar 03, 2007 6:13 pm   
 
Whoops. Forgot about the Log after triggers... I knew there was something I was missing. Thanks, shalimar, for pointing that out. :D

Charneus
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net