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


Joined: 13 Oct 2003
Posts: 31

PostPosted: Thu Feb 26, 2004 5:48 pm   

Capturing Raw MUD Output
 
Still a relatively new zMud user...

I'm wondering if it's possible to get zMud to capture and display raw MUD output for games like GemStone and Dragonrealms. Right now it appears to be formatting the output in some way. What I'd like to do is saw the raw output (GSL codes, other markup, etc.). I know I can turn the GSL display on and off, but is there a way I can get zMud to just dump the output directly to the buffer so I can parse the content myself?

Again I'm still new to zMud, so bear with me if my question is sort of whacky.
Reply with quote
shalimar
GURU


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

PostPosted: Fri Feb 27, 2004 12:00 am   
 
this trigger will send all gsl codes to a seperate window so you can see when they go off, if not what they do.

#TRIGGER {{a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|A|B|C|D|E|F|G|H|J|K|L|M|N|O|P|Q|R|S|T|U|V|W|X|Y|Z}} {#WIN GSL {%1 %gsl( %1)}} "" {gsl|case}
Reply with quote
jennyA
Novice


Joined: 13 Oct 2003
Posts: 31

PostPosted: Fri Feb 27, 2004 2:21 am   
 
Thanks Shalimar! That's extremely useful.

I think I need to rephrase my question a little. I want to see exactly what the MUD is outputting, no formatting at all. If I turn off the GSL parsing, am I seeing that, or is zMud still doing some formatting behind the scenes? I guess what I'm asking is if I just telnetted to the GS server, would I see the same output that I'm seeing in the zMud client?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Fri Feb 27, 2004 2:54 am   
 
You can not completely turn off some of the processing zMud does, the parts that don't turn off are those directly defined as part of the telnet protocol. All other things can be turned off in the Preferences section, General|Emulation.
Reply with quote
jennyA
Novice


Joined: 13 Oct 2003
Posts: 31

PostPosted: Fri Feb 27, 2004 3:47 am   
 
Thanks Vijilante, I think that's the answer I was looking for.

My next question is about how to capture every single line of MUD output that's coming through zMud so it can be analyzed. I can easily write a trigger to capture any MUD output, but what about feeds that come through as multiple lines? My goal is to create a logging type feature, but instead of logging to a file, window, etc. I want to grab the MUD output and insert it into a database. Has anyone ever tried something like this? Maybe I should start another thread...
Reply with quote
Reddytedy
Apprentice


Joined: 13 Oct 2000
Posts: 114
Location: USA

PostPosted: Fri Feb 27, 2004 3:47 am   
 
quote:
Originally posted by jennyA

Thanks Shalimar! That's extremely useful.

I think I need to rephrase my question a little. I want to see exactly what the MUD is outputting, no formatting at all. If I turn off the GSL parsing, am I seeing that, or is zMud still doing some formatting behind the scenes? I guess what I'm asking is if I just telnetted to the GS server, would I see the same output that I'm seeing in the zMud client?



If you turn off the gsl support it will show you EXACTLY what DR or Gemstone is outputting in the raw. Nothing is formatted at all.

Alan
Reply with quote
jennyA
Novice


Joined: 13 Oct 2003
Posts: 31

PostPosted: Fri Feb 27, 2004 3:55 am   
 
Thanks for confirming that Alan, those are the things I was wanting to know. Have any ideas regarding the second question I posted in the message right above yours?
Reply with quote
jennyA
Novice


Joined: 13 Oct 2003
Posts: 31

PostPosted: Fri Feb 27, 2004 4:32 pm   
 
Hmm...so I created a simple trigger to fire every time anything is output to the buffer. Then I take that output and do my database updates. I seem to be having some problems with multiple lines though. If anyone has any suggestions on how to write a trigger that will capture each piece of output (one line or multi-lined), please let me know. Thanks again for all the help.

-JennyA
Reply with quote
shalimar
GURU


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

PostPosted: Fri Feb 27, 2004 9:26 pm   
 
Prefs --> General --> Wordwrap
turning off the wordwrap might help the multiline bit
Reply with quote
Valint
Wanderer


Joined: 12 Nov 2003
Posts: 70
Location: USA

PostPosted: Sat Feb 28, 2004 8:36 pm   
 
> #TRIGGER {{a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|A|B|C|D|E|F|G|H|J|K|L|M|N|O|P|Q|R|S|T|U|V|W|X|Y|Z}} {#WIN GSL {%1 %gsl( %1)}} "" {gsl|case}

Is there a reason not to just use something like #TR {(*)} {#WIN GSL {%1}} "" {gsl} instead of the longer version?

(Although, I personally use #TR {(*)} {#IF (%left( %1, 1)!=q) {#WIN GSL {%1}} "" {gsl}, since I'm generally not going to care about that one.)
Reply with quote
shalimar
GURU


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

PostPosted: Sun Feb 29, 2004 2:16 am   
 
i did it the long way so that as i figured out what stuff could do what i can remove it from the annomous array so i dont have to keep seeing it til i figure the rest out :)
Reply with quote
jennyA
Novice


Joined: 13 Oct 2003
Posts: 31

PostPosted: Thu Mar 04, 2004 10:06 pm   
 
Okay, so with word wrap off and this trigger - #TR {(*)}, does it seem conceivable that I should be able to trap every line of text output by my MUD?
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