|
Airborne375 Beginner
Joined: 26 Feb 2011 Posts: 13
|
Posted: Sun Jul 03, 2011 3:24 am
CMUD Autolog |
Hello,
I'd like to set CMUD up so when I start a session it starts a log for that session and places it in a specific directory by session name. I found a script for this for my ZMUD ages back but haven't been able to make it work in CMUD.
Also is there a way to use the sites search feature to narrow down a search to just CMUD? It would make finding answers to simple questions much easier.
Thanks. |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sun Jul 03, 2011 5:37 am |
1)Use an onConnect event. The onLoad event will turn fire as soon as the package is loaded into memory, but I don't see much reason to log something while offline.
#event onConnect {
$logfile = "X:\path\filename.ext"
#log $logfile
}
2)I assume you mean the search feature that has the little textbox, a couple of radio buttons that say Site and Web, and the Search button? That uses standard search syntax, so + is for include, - is for exclude, and "" is for exact match. You probably want to use the search feature found within the Site menu, though. |
|
_________________ EDIT: I didn't like my old signature |
|
|
|
Airborne375 Beginner
Joined: 26 Feb 2011 Posts: 13
|
Posted: Sun Jul 03, 2011 6:32 am |
I should have been more specific, sorry.
My old script used to save logs as C:\path\Charactername_date_time.txt
Is there a variable I can use so I can use the generic script for multiple characters? or sessions?
Also why did you split your reply into four lines? Should I add that directly into the command line? |
|
|
|
Daern Sorcerer
Joined: 15 Apr 2011 Posts: 809
|
Posted: Sun Jul 03, 2011 3:18 pm |
Try %sessionid or %char for your character name (the first is the name of your session, the second is the name of the character associated with that session in the session properties). And he split it into four lines to make it more readable, you can still copy-paste it directly onto the command line though and it'll load fine.
|
|
|
|
Mixsel Wanderer
Joined: 02 Feb 2003 Posts: 99 Location: Seattle, Wa
|
Posted: Sun Jul 03, 2011 3:45 pm |
MattLofton wrote: |
1)Use an onConnect event. The onLoad event will turn fire as soon as the package is loaded into memory, but I don't see much reason to log something while offline.
#event onConnect {
$logfile = "X:\path\filename.ext"
#log $logfile
}
2)I assume you mean the search feature that has the little textbox, a couple of radio buttons that say Site and Web, and the Search button? That uses standard search syntax, so + is for include, - is for exclude, and "" is for exact match. You probably want to use the search feature found within the Site menu, though. |
Just a quick note, the search is horrible, case in point
search the site for "+cmud autolog +3.1"
and it says
Did you mean: +zmud autolog +3.1
powered by
Zugg Software :: View topic - [2.03] Scroll speed slower than 1.3415 posts - 4 authors - Last post: Oct 2, 2007
1) Open CMUD, close Session window, press Ctrl-Q Version 1.34: 3.6/2.0/2.0 ... Scrollback Full 3.1/3.0/3.1 1.34 Connected ... Actually it's looks like it's right after login when the AutoLog class turns off. ...
forums.zuggsoft.com/forums/viewtopic.php?p=116567 |
|
_________________ Spin |
|
|
|
Daern Sorcerer
Joined: 15 Apr 2011 Posts: 809
|
Posted: Sun Jul 03, 2011 6:10 pm |
You apparently missed the last sentence of Matt's post.
MattLofton wrote: |
You probably want to use the search feature found within the Site menu, though. |
|
|
|
|
hadar Apprentice
Joined: 30 Aug 2009 Posts: 198 Location: my apt, in california
|
Posted: Mon Jul 04, 2011 6:10 am |
if you go into the package library and search for my name i have one that is made for general muds, you might want to check that out, its simple
|
|
|
|
Airborne375 Beginner
Joined: 26 Feb 2011 Posts: 13
|
Posted: Thu Jul 07, 2011 12:39 pm |
Thanks Hadar..
I did download your script and it seems easy enough to get working with the 'Logsetop' script but i have a question.
What does it mean when it asks for a pattern to trigger off of? |
|
|
|
|
|