Output window

Posted by Yungen2003 on Sat 05 Nov 2005 09:57 PM — 11 posts, 44,206 views.

USA #0
ok i got a chatlog setup but now i want it to put it out in html any idea so far i got this

i want it to look identical to what the mud looks like in color wise black background etc


* howls '*'

AppendToNotepad "Chats", "%0" & VBCrLf
Amended on Sat 05 Nov 2005 09:58 PM by Yungen2003
Australia Forum Administrator #1
There is already an HTML log option in MUSHclient that preserves colours, why not use that?
USA #2
i dont want all of it i just want the chats

also i got a trigger


its

^. * (?!chat|chats|howls|tells the group|snarls).+ '*'.+$


but i cant get it to work any ideas?
Australia Forum Administrator #3
You could still do it with logging.

  • Make a trigger that matches your chat stuff (like you had), and make it sequence 80, and do *not* check "keep evaluating". This will make the chats get logged.
  • Make a trigger to match everything (like match "*"), make it sequence 90, and check "omit from log file". Also check "keep evaluating" so that other triggers can still match.


What this will do is only log the chats. The first trigger will log chats, the 2nd trigger stops everything else from being logged.
USA #4
ok well i think that will work altho i cant be sure till i get the first chat logging trigger to work. right now it just wont log anything
the current trigger is

^. * (?!chat|chats|howls|tells the group|snarls).+ '*'.+$

sequence 100 regular expression checked i cant get that to owkr
USA #5
here are a few examples as to what it looks like when someone tells chats etc...


Kyrnn the werewolf growls 'sure they do'.


Kyrnn the werewolf ClanChats 'Ok'

Saleha chats 'I'm tiny :P'

Kyrnn the werewolf chats 'yes you are'

You chat '=p'

Kyrnn tells the group 'hmmm'.

they go on but those are just a few examples i want a trigger that can consider all those types


so far its like this


^* (chat|chats|howls|tells the group|snarls|bitches|shouts|tells you|clan chats|growls|growl) .+$


but i keep getting a error called nothing to repeat....im confused as to that....


if someone could figure this out it would be much appreciated...
USA #6
You're mixing Regular Expressions and non regular expressions.

Your first asterisk (second character) means 'zero or more of the preceeding character', without anything prior to duplicate.

Try this:
^(.*?) (chats?|howls|tells the group|snarls) '(.*)'.?$


Is there a period at the end of each line? And what is with your .+ after your options? Is there something else that might show up there? You might have to also take into account extra whitespace (some servers include a space after the period, just be aware of it).
USA #7
ok cool that trigger worked now for the part i was talking about earlier.....the reason i didnt use the log is because it wouldnt update in real time like a in mushclient notepad would.....thats why i didnt do it ....is there away to get around it not updating in real time?
Australia Forum Administrator #8
Update what in real time? You are outputting HTML, so what is going to read it and update in real time?
USA #9
well in zmud

they have a window in the program that updates in real time and has all the style of the mud


thats what im wanting to achive in mushclient im sure in one of the script languages there is some way to achive this

it updates it in real time and you can watch the screen for chats ie if your spamemd out

the screen would look something like this

this is the top

======================================
chat logs with color etc...... |
|
|
|
|
|
======================================
mud screen |
|
|
|
======================================
command line |
======================================

but id be willing to sacrifice the in same screen function to just have the colors in another tabed window
Australia Forum Administrator #10
Oh I see what you are up to at last. :)

When you said "chatlog" I thought you wanted to simply log chats, maybe to put on a web page somewhere.

The concept of separate chat windows has been discussed at some length in the past, see this thread:

http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=4286