|
icedsun Novice
Joined: 20 Jan 2006 Posts: 45 Location: Minnesota
|
Posted: 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 |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: 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} |
|
|
|
icedsun Novice
Joined: 20 Jan 2006 Posts: 45 Location: Minnesota
|
Posted: 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 |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: 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. |
|
|
|
icedsun Novice
Joined: 20 Jan 2006 Posts: 45 Location: Minnesota
|
Posted: 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 |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
|
|