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
icedsun
Novice


Joined: 20 Jan 2006
Posts: 45
Location: Minnesota

PostPosted: Thu Feb 09, 2006 6:21 am   

Gag Lines ONLY in Log
 
Is it possible to Gag out all blank lines, my MUD prompt, and several other things ONLY from my log file? I still want to see it all in my MUD window.
_________________
"Build a man a fire and he's warm for a night. Light a man on fire and he's warm for the rest of his life." --My Mom
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Thu Feb 09, 2006 6:51 pm   
 
You'll need newline and prompt triggers

Generally something like this:
#TRIGGER {^$} {#GAG}
#TRIGGER {My prompt here ~>} {#GAG} "" {prompt}
Reply with quote
icedsun
Novice


Joined: 20 Jan 2006
Posts: 45
Location: Minnesota

PostPosted: Fri Feb 10, 2006 9:32 am   
 
That would still display it on my screen, but would not add it to the Log File being written?
_________________
"Build a man a fire and he's warm for a night. Light a man on fire and he's warm for the rest of his life." --My Mom
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Fri Feb 10, 2006 2:04 pm   
 
There is a place in the view->preferences for logging before or after triggers.

Choose the option that you want to see in your log files.
Reply with quote
icedsun
Novice


Joined: 20 Jan 2006
Posts: 45
Location: Minnesota

PostPosted: Sun Feb 12, 2006 8:31 pm   
 
Yes, there is. That would make it so that the GAGed text would still be displayed in the log (if done before triggers), or not be displayed in the log (if done after triggers). My question was exactly the opposite of this. Can you NOT display it in the LOG, but SHOW it on the SCREEN in the mud window. I know it's a confusing question!
_________________
"Build a man a fire and he's warm for a night. Light a man on fire and he's warm for the rest of his life." --My Mom
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Feb 12, 2006 9:11 pm   
 
I would use an exclusion list in your trigger:

#trigger {{^%q|^prompt|^other line}} {#capture OtherWindow}

In that other window you need to turn on logging. If you can't do that, then you need to set up a system that sets you up for file-writing, and instead of using #capture in the above window you would #WRITE it to the file.

#trigger {Welcome to your mud, whoever you are!} {#FILE 1 mylog.txt}
#trigger {({^%q|^prompt|^other line})} {#write 1 "%1"}
_________________
EDIT: I didn't like my old signature
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