Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ Exporting output in full color
|
Exporting output in full color
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Krosan
(2 posts) Bio
|
| Date
| Wed 14 Jan 2009 08:23 AM (UTC) |
| Message
| The MUD I play on has channel-based roleplay. The common practice is to log said roleplay in text format. I've worked out how, using simple triggers, to set MUSHclient to automatically grab that output and put it in note format, ready to be put in a text file, but I want something more.
You see, our roleplay takes place with many different colors, used for emphasis. What I am trying to do is to set MUSHclient to grab the output of that single channel and save it in full color. I know how to set it to log in full color HTML, but that logs ALL output, not just the channel posts that I need. Any suggestions? I'm at a loss. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Wed 14 Jan 2009 08:16 PM (UTC) |
| Message
| I think the easiest way is to make two triggers using sequence numbers to get that effect.
Make a trigger that matches the chat data (to be logged) and make it sequence 10.
Then make a trigger that matches everything ( ie. *) and have it "omit from log" and make it sequence 20 and "keep evaluating".
That will omit everything except chats from the log. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Krosan
(2 posts) Bio
|
| Date
| Reply #2 on Wed 14 Jan 2009 11:14 PM (UTC) |
| Message
| I can honestly say I wouldn't have thought of that, since I didn't even know what sequence numbers were. Mushclient's documentation is a bit hard for someone like me to get into, so I tend to discover features through trial and error
Thanks a million, though! That worked perfectly! | | Top |
|
| Posted by
| Deqitosv
USA (26 posts) Bio
|
| Date
| Reply #3 on Mon 14 Dec 2009 02:24 PM (UTC) |
| Message
| What if you want to log everything in the normal log, but use triggers to extract those channels either to a separate notepad, or a separate log file, all preserving the original colors?
|
Deqitosv
MushClient Plugins for LegendMUD:
http://www.itgotdeleted.com/ (currently offline)
Experiments in Film:
http://www.cookiejarfilms.com/
15, a Parody of 24:
http://www.pkill.org
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #4 on Mon 14 Dec 2009 09:38 PM (UTC) |
| Message
| |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Deqitosv
USA (26 posts) Bio
|
| Date
| Reply #5 on Tue 15 Dec 2009 07:50 PM (UTC) |
| Message
| What if we're still using vbscript, is it possible still?
(I haven't had the time to even think of working in Lua yet)
|
Deqitosv
MushClient Plugins for LegendMUD:
http://www.itgotdeleted.com/ (currently offline)
Experiments in Film:
http://www.cookiejarfilms.com/
15, a Parody of 24:
http://www.pkill.org
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #6 on Tue 15 Dec 2009 08:00 PM (UTC) |
| Message
| It is harder in VBscript but not impossible. The nice thing about Lua is you get the "style runs" as a fourth argument to the trigger, and the style runs have all the colour information.
You can make a plugin, as suggested in one of the linked threads:
The plugin could handle your chats, and be in Lua, and you can use VBscript for everything else. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
26,999 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top