Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Draxx
Newbie


Joined: 24 Jan 2011
Posts: 5

PostPosted: Sun Sep 17, 2017 10:30 pm   

Help with capturing mud output
 
Greetings,
May I request some help with a Cmud config?

Basically, the mud outputs 'tells' - on a new line, indented - something like this:
Joram tells you,
"Hello, how are you."

What I would like to do is:
1) Capture all tells I receive - to a separate window.
2) Have a timestamp before the captured text.
3) Auto-log the contents of that window every mud session.

What I would not like to do:
1) Gag the info from my main window.
2) Substitute the text with %time (hh:mm dd:mm:yyyy) - because that will substitute the text in my main window also.

So, the main window would retain:
Joram tells you,
"Hello, how are you."

The capture window would show:
[10.10 22:09:2017] Joram tells you, "Hello, how are you."

And, make it so the contents of the capture window - are logged into a file (not a new file each mudsession, but it should append to the existing file that contains all my "tell logs")

Also, It'd be a great help if someone could also tell me how to customise font/color of a capture window - such that it doesnt affect the global settings for your main window.


I'd appreciate any guidance on this, thanks!
Reply with quote
shalimar
GURU


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

PostPosted: Sun Sep 17, 2017 11:15 pm   
 
#TR {^(%w) tells you,} {#CAPTURE Tells}
#COND {"*"} {#EXECWIN Tells {#SAYADD { %trim(%line)}}} {within|param=1}

Something like that should do it.
You need a multistate trigger since it has multiple lines.

As far as timestamps, you turn those on for child windows same as any other window:
Click on the window to give it focus.
Open preferences.
Session tab on the left.
Scrollback tab along the top.
Check show timestamps.
_________________
Windows 10 Home Premium 64-bit
AMD Phenom II x6 1055T 2.8GHz 16GB
CMUD Pro v3.34
Reply with quote
Draxx
Newbie


Joined: 24 Jan 2011
Posts: 5

PostPosted: Mon Sep 18, 2017 4:12 am   
 
Thanks so much Shalimar, the trigger works perfectly, except for one thing - the capture window is somehow getting 1 extra line in between each "tell" that is captured.

Main Window:
Joram tells you,
'Hello there'

Capture Window:
[9/18/2017 3:51:48 AM] Joram tells you, 'Hello there'
[9/18/2017 3:51:48 AM] Joram tells you,
Reply with quote
shalimar
GURU


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

PostPosted: Sat Sep 23, 2017 9:17 pm   
 
Did you have a remnant of your own triggers trying to do this still?

Unless you have the trigger in a module (global scope) or another package that is being seen by the child window (which is unlikely), I'm not sure what else could be causing this.
_________________
Windows 10 Home Premium 64-bit
AMD Phenom II x6 1055T 2.8GHz 16GB
CMUD Pro v3.34
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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