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
shaun.murray
Magician


Joined: 23 Jul 2005
Posts: 334
Location: Chicago

PostPosted: Fri Jan 13, 2006 1:54 pm   

%time and tab question....
 
First question...

#trig {^~< guard > You tell (*)} {#window comm %time( hh:nn:ss a/p);#capture comm}

Works great, but it is doing the timestamp a line above the captured text. Is there a way to affix it to the beginning. I've tried #sub, but it only works for the main window, not the sub window. That, and it changes the color of the line to one solid color, whereas a capture is still colored like it is from the mud. Thanks in advice ya'll!! =]

Second question...

I've got two sub windows. info and botwindow Basically, general information is displayed on info, and then the botcheck is captured to the botwindow. I don't need both of them up, so I figured I'd save room on my screen and make those two tabs in each other. But when I combine the screens, the tabs look more like windows classic then the windows xp than like the rest of my windows. Not a big deal, doesn't hurt the client or the mud, and doesn't affect the performace... Just tryin to make it all the same... ^^

Well... I have a link at the bottom of a screen shot of what I'm talking about. You can see both examples in it... Thanks again for any help!!! =]

http://i24.photobucket.com/albums/c21/okcsheykh/ss.jpg
Reply with quote
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 673
Location: New York

PostPosted: Fri Jan 13, 2006 4:54 pm   
 
for question #1 try this way. works for me:

#TRIGGER {^You tell your friends:} {#WINDOW ftalk %time( hh:nnAM/PM) %trigger}
_________________
http://www.Aardwolf.com
Reply with quote
shaun.murray
Magician


Joined: 23 Jul 2005
Posts: 334
Location: Chicago

PostPosted: Fri Jan 13, 2006 6:44 pm   
 
Hot!! Kinda... It works, and it did what I wanted it to. Is there a way to make it another color, or get the colors how it is on the mud? But it works... Thanks for the help man!! =D
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat Jan 14, 2006 12:14 am   
 
I personally recommend actually making timestamps or other modifications a part of the child window. For example all my main window knows is to "#CAP Channels" for a variety of messages. However my Channels windows has this:
Code:
#REGEX {^(.?)$} {#PSUB {%time("hh:mm") %1} %x1}
What I do it open a a child window with "#WIN Channels". Then I press CTRL-G to open the settings editor, after inputting the apporopiate setting and adjusting any other things about the window I want, I select "File|Save" from the Settings Editor window for my child window. I save that file to my zMud directory so it will be used for all future muds I play. From then on all I have to do #CAP appropiate line to my Channels window and they will appear with a time stamp no matter what mud I play.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
shaun.murray
Magician


Joined: 23 Jul 2005
Posts: 334
Location: Chicago

PostPosted: Sat Jan 14, 2006 1:17 am   
 
So... Ok... Whats #REGEX actually doing? And the trigger line... ^(.?)$ is that aka ANYTHING? Cuz its not working... *tear* Gonna play around with it a lil more...
Reply with quote
shaun.murray
Magician


Joined: 23 Jul 2005
Posts: 334
Location: Chicago

PostPosted: Sat Jan 14, 2006 1:24 pm   
 
Alright... regex is some unix stuff, and.... hahaha, we'll... i'm a moron. gonna take me a while to figure it out, and figure out that trigger line. thankx again for everyone's help!

now... for the tab problem, anyone? =D
Reply with quote
shaun.murray
Magician


Joined: 23 Jul 2005
Posts: 334
Location: Chicago

PostPosted: Sat Jan 14, 2006 2:36 pm   
 
Ok... The trigger seems to be the problem. When I do a test, it does not match.

[ Priory: < guard > You ]: 'lol'

Thats the line I'm trying to put a timestamp on. So it looks like this:

08:22 [ Priory: < guard > You ]: 'lol'

I've tried to play around with a normal trigger, but it either appends each line it gets to the last. Or i get this...

[ Priory: < guard > You ]: 08:22 [ Priory: < guard > You ]: 'lol'

So yeah... Still working on it, but I am lost... Hahahaha! How can you tell if its a REGEX trigger tho?


EDIT: Nevermind... "Perl regular expression" box is checked... still early... ;]~
Reply with quote
shaun.murray
Magician


Joined: 23 Jul 2005
Posts: 334
Location: Chicago

PostPosted: Sat Jan 14, 2006 3:23 pm   
 
Ok... Update again... I know, I'm getting annoying... LoL!

#REGEX {^(.)*$} {#PSUB {%time( "hh:mm:ss AM/PM") } %x1}

Its triggering fine. Just placing the time in the wrong place... It looks like this:

[ Priory: < guard > You ]: 'test09:24:08 AM

There is supposed to be a ' at the very end, but its getting replaced by the time. If I change the %x1 number around, it starts replacing other special characters. For example.....

#REGEX {^(.)*$} {#PSUB {%time( "hh:mm:ss AM/PM") } %x2}

Will give me....

[ Priory:09:25:33 AMard > You ]: 'test'

That one replaced < gu Weird one to replace.... But I'm at a loss. I've been to http://perldoc.perl.org/perlre.html and that just confused me more... However, it gave me the trigger line, which DOES work.... Just the output seems to be fubard. And thats where I'm running into my problem of weird outputs....
Reply with quote
shaun.murray
Magician


Joined: 23 Jul 2005
Posts: 334
Location: Chicago

PostPosted: Sat Jan 14, 2006 5:12 pm   
 
#REGEX {^(.*)$} {#PSUB {%time("hh:mm") %1} %x1}

This is what I'm getting, first line will be what comes from mud, second is what is getting outputed on my comm window:

< guard > You say, 'test'
11:14 < guard > You say, 'test'

[ Priory: < guard > You ]: 'test'
11:14 0: 'test'

It seems the brackets are messing things up. That... And its not putting the time in front of the line, AND keeping the color lay-out the same as that from the mud on the caputred window....


Finally... When I change the trigger to look like the following, this is the outputted text...:

#REGEX {^(.)*$} {#PSUB {%time("hh:mm") %1} %x1}
< guard > You say, 'test11:19 '

#REGEX {^(.*)$} {#PSUB {%time("hh:mm") %1} %x1}
11:19 < guard > You say, 'test'

The first one, the colors stay the way that they come from the mud, just the time is at the end, and the same color as the ending '..... And the second one, its they way that its supposed to be, but one solid color, the teal I think it is... Which leads me to think that maybe the trigger is the cause?



Aiight, last input. I'm gonna take a break for now, and hopefully someone can help... LoL! Thankx again ya'll!!!
Reply with quote
shaun.murray
Magician


Joined: 23 Jul 2005
Posts: 334
Location: Chicago

PostPosted: Sun Jan 15, 2006 11:37 pm   
 
Anyone? Plz... I tried the #PSUB but... I... Can't... Figure... It... Out... *tear*

;]~
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Tue Jan 17, 2006 3:00 am   
 
Sorry totally screwed up on my last post. I should just stop answering questions or even looking at the forums on Fridays.

#REGEX {^(.?).*} {#PSUB {%time("hh:mm") %1} %x1}

Is the actual trigger I use. How I messed that up so badly before is beyond my comprehension. I definitely have to start quoting Einstien more often, "A problem cannot be solved in the same state of mind that created it."
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
shaun.murray
Magician


Joined: 23 Jul 2005
Posts: 334
Location: Chicago

PostPosted: Thu Jan 19, 2006 4:31 am   
 
hahahah.... yeah, i spent HOURS tryin to figure that one out... LoL! but... it works!!!! =] so HOT! TY TY TY TY TY TY!!!

however... one problem.... with tells, this is what i get when i send one...

10:32:54 PM guard > You tell Vivec Gideous Elend Vision, 'lol'


SHOULD read....

10:32:54 PM < guard > You tell Vivec Gideous Elend Vision, 'lol'


god i hate bein so anal... lol, but... i can't help it... hahaha
Reply with quote
shaun.murray
Magician


Joined: 23 Jul 2005
Posts: 334
Location: Chicago

PostPosted: Thu Jan 19, 2006 12:54 pm   
 
Oh... And btw... #psub is the best... Hahahaha, I've been using #sub for a damage calc. And it worked, but it changed the output to one color. Now... I have the same result, but its displayed just how the mud sent it! Thats great!!!! =]

But question. Is there a way to change the color on the sub'd part? If that made sense... To give myself a LIL more control over it? Or is it stuck being the same color as the first character from the #trig?
Reply with quote
shaun.murray
Magician


Joined: 23 Jul 2005
Posts: 334
Location: Chicago

PostPosted: Tue Aug 08, 2006 2:16 am   
 
Hate to rehash an old thread... BUUUUUUUT....
That trigger works great.. However I get the following output:

09:12:48 PM guard > You say, 'test'

I would like it to read as this....

09:12:48 PM < guard > You say, 'test'

Here is the trigger I'm using:

Code:
#REGEX {^(.?).*} {#PSUB {%time("hh:mm:ss AM/PM") %1} %x1}


Any help would me much appreciated!!! TY! =D
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Tue Aug 08, 2006 10:07 am   
 
Turn off the "Use <> for expansion" preference in both the main and child windows.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
shaun.murray
Magician


Joined: 23 Jul 2005
Posts: 334
Location: Chicago

PostPosted: Tue Aug 08, 2006 12:31 pm   
 
View > Settings > General
Script Parser > And then make sure the "Allow <> for expand" box is unchecked, right?

Still not working, I'm still missing that < from be beginning of the line.
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