 |
Badmonster Wanderer
Joined: 06 Feb 2010 Posts: 81
|
Posted: Sun Feb 07, 2010 9:51 pm
I've searched for hours so please talk to me like I'm slow |
I have two questions, one I know is very basic and no doubt anyone could explain. But I need it explained in kind of a step by step deal if possible. (Maybe I'm a technophobe)
How do I make sure that when I open a session in a game world the client will begin to log at connect (I don't care if it starts a new log with date or appends, whichever is easier.)
My second problem is that I have only played one mud. I'm used to the commands used on that mud. I'm trying a new mud and I'm having trouble remembering when there is action not to type ' when this mud wants , or not to type pem when the new mud wants me to type em's. Is there anyway to make an alias or hotkey that sends to the command window instead of the mud?
Thanks in advance for any help you can give. |
|
|
 |
hadar Apprentice
Joined: 30 Aug 2009 Posts: 198 Location: my apt, in california
|
Posted: Sun Feb 07, 2010 10:21 pm |
for the alias you can use #alias alias {command}
so it would be #alias pem {em} ... as for the log give me a few to find a copy of mine |
|
|
 |
hadar Apprentice
Joined: 30 Aug 2009 Posts: 198 Location: my apt, in california
|
Posted: Sun Feb 07, 2010 10:56 pm |
ok for the logger you will need to save this to an xml then import it,
Code: |
<class name="autologger" id="608">
<alias name="StartTodayLog" id="609">
<value>#if (@loglocation) {#log %concat(@loglocation,%time(yyyy-mm-dd),".txt")} {#log %time( yyyy-mm-dd).txt}</value>
</alias>
<trigger priority="6150" id="615">
<pattern>{@logstart}</pattern>
<value>#if (@loglocation) {#log %concat( @loglocation, %time( yyyy-mm-dd), ".txt")} { #if (@logdays=1) {#log %time( yyyy-mm-dd).txt}}</value>
</trigger>
<alias name="logsetup" id="616">
<value>#if (%yesno("do you want logs saved to a custom location?")) {#var loglocation %prompt("","Please enter the location you want to save the logs")}
#if (%yesno("do you want to start new logs at midnight?")) {#ALARM {00:00:00} {StartTodayLog}}
#if (%yesno("do you want the log to start when you log in?")) {#PR logstart "Enter the patten to trigger off of"}
StartTodayLog</value>
</alias>
</class>
|
if you cant figure out how to do it i can put it in the package library for you, you use logsetup to set it up initially, the logs are saved via days, with an alias to start a log if you dont have it autostart, please have the trigger you wish to start the log off of on hand, also the location of the place you want the log |
|
|
 |
Badmonster Wanderer
Joined: 06 Feb 2010 Posts: 81
|
Posted: Sun Feb 07, 2010 11:24 pm |
Thanks for your help.
Here's where I am. I copied into note pad, saved as xml, opened cmud, logged in, started a trigger, imported the file, logged out, logged back in entered a couple of commands, looked for the log, but I've can't find one. Did I miss a step? Add a step? |
|
|
 |
Badmonster Wanderer
Joined: 06 Feb 2010 Posts: 81
|
Posted: Mon Feb 08, 2010 12:13 am |
Also, where is the place to make sure the client is sending the symbol it will read when you type it?
|
|
|
 |
hadar Apprentice
Joined: 30 Aug 2009 Posts: 198 Location: my apt, in california
|
Posted: Mon Feb 08, 2010 12:38 am |
when you did logsetup did you specify a path if not it will be in your cmud folder, either under the mud name or the cmud folder itsself, i set up custom locations for my logs so i know where they are 100% of the time ...
Badmonster wrote: |
Also, where is the place to make sure the client is sending the symbol it will read when you type it? |
what do you mean by this? |
|
|
 |
Badmonster Wanderer
Joined: 06 Feb 2010 Posts: 81
|
Posted: Mon Feb 08, 2010 12:57 am |
I play on a mud where you use characters like ~ to indicate people. Say I want to point to the tall man instead of pointing to the tall man I can point to ~tall.
But sometimes the client preassigns uses for these symbols that are more standard than the ones the mud assigns. In zmud there was a way to check that. |
|
|
 |
hadar Apprentice
Joined: 30 Aug 2009 Posts: 198 Location: my apt, in california
|
Posted: Mon Feb 08, 2010 1:07 am |
under prefrences go to scripting then special characters you can change them there
|
|
|
 |
Badmonster Wanderer
Joined: 06 Feb 2010 Posts: 81
|
Posted: Mon Feb 08, 2010 1:29 am |
Thanks. Sadly, I'm still lost with the logging issue. I'm less capable than you're imagining. I think I need a map. I have the file that's needed. And I have the client, but everything between opening the client and importing the file is confusing me.
|
|
|
 |
hadar Apprentice
Joined: 30 Aug 2009 Posts: 198 Location: my apt, in california
|
Posted: Mon Feb 08, 2010 2:37 am |
ok here made it simpler, go to library (the button at the top of cmud with the book) after its open do alt+g then under author look me up hadar. then look for the one with the name autologger click install, then close it go to settings then file then open then find autologger.pkg .... here is a link for images just incase i lost you
http://aardwolftao.com/hadar/installautolog.php |
|
|
 |
hogarius Adept
Joined: 29 Jan 2003 Posts: 221 Location: islands.genesismuds.org
|
Posted: Mon Feb 08, 2010 3:38 am |
Badmonster, here's what I did to automatically start a new log file each time I play...
1. Click the Settings button at the top of the screen to open the Package Editor.
2. Click the arrow next to "New", and select New Event.
3. In the Event pull down list, select "OnConnect".
4. In the main box of the Script Text tab, type in Logfile = "C:\LogDirectory\Log "%time(yyyy-mm-dd_hh-nn)" cmud";#log @Logfile
5. Click the "Save" button at the top.
Also, make sure to create the LogDirectory folder on your C: drive before you play. It needs to already exist before you try to use the event script.
After you do this, CMUD will create a log file named "Log 2010-02-07_13-08 cmud" (with the correct date and time according to when you logged into the game) in the C:\LogDirectory\ folder every time you play.
Let me know if this helps or if you have any questions about this. |
|
|
 |
Badmonster Wanderer
Joined: 06 Feb 2010 Posts: 81
|
Posted: Mon Feb 08, 2010 3:43 am |
Aha! Thank you!
|
|
|
 |
Badmonster Wanderer
Joined: 06 Feb 2010 Posts: 81
|
Posted: Tue Feb 09, 2010 3:50 am |
Worked like a dream. Thanks!
|
|
|
 |
Badmonster Wanderer
Joined: 06 Feb 2010 Posts: 81
|
Posted: Wed Feb 10, 2010 3:36 am |
Is there a way to get cmud to give you a flashed alert in your task bar if you want work in a browser while idle?
|
|
|
 |
hadar Apprentice
Joined: 30 Aug 2009 Posts: 198 Location: my apt, in california
|
Posted: Wed Feb 10, 2010 3:09 pm |
not really but you can use #mess
|
|
|
 |
Badmonster Wanderer
Joined: 06 Feb 2010 Posts: 81
|
Posted: Thu Feb 11, 2010 1:00 am |
I'm so embarrassed to keep asking questions, but I don't know who else to ask.
Let's say that you have a line of string from a mud that's constant before a block of text that changes ie:
A herald blows a trumpet before the man speaks:
blah blah blah
right now I have the following trigger:
#TRIGGER {A herald blows a trumpet before the man speaks:} {#COLOR red}.
It turns the phrase A herald blows a trumpet before the man speaks:red
But the blah blah blah is unaffected. How do I get that to change as well? |
|
|
 |
shalimar GURU

Joined: 04 Aug 2002 Posts: 4772 Location: Pensacola, FL, USA
|
Posted: Thu Feb 11, 2010 2:05 am |
use #CW instead, it only colors the portion that matches the pattern
But you should really create a new thread for a new problem
We don't mind answering, I know it makes me feel a little useful to be able to help. |
|
_________________ Discord: Shalimarwildcat |
|
|
 |
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Thu Feb 11, 2010 8:40 pm |
I think Shalimar misunderstood. You want the blah blah blah to be colored red, right? Is the blah blah blah on a separate line, as you showed in your example? If so, it will be trickier. The problem is that a #cw will only affect the exact part of the line that matches the pattern, and a #color will affect only the line that matches. There is no way to turn on a color for multiple lines--each line will need to match a trigger. You would need a multistate trigger or several triggers working together to do it. You will probably need a trigger or trigger state with a pattern of *, since you don't know what the blah blah blah will be, and have that trigger or state turn off at the end of the part you want colored. To help further, we'd probably need more context, like some mud text that includes the part before and after you the part you want colored.
And as Shalimar said, you should create a new topic for each new problem. |
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Thu Feb 11, 2010 8:47 pm |
#trigger "tBlahColor" {pattern} {#sub {pattern<color red>}
#condition {(*)} {#if (%1 = "the line you want to stop on") {#sub {</color>%1};#state tBlahColor 0}} {manual} |
|
_________________ EDIT: I didn't like my old signature |
|
|
 |
Badmonster Wanderer
Joined: 06 Feb 2010 Posts: 81
|
Posted: Thu Feb 11, 2010 10:39 pm |
Rahab, you see what I mean. Ok, I will start a new topic next time. I just thought I'd look less like a pest if I restricted myself to the one.
MattLofton, I have no doubt you're absolutely right. I just think you overestimate my ability to understand what it was you did say. |
|
|
 |
Badmonster Wanderer
Joined: 06 Feb 2010 Posts: 81
|
Posted: Thu Feb 11, 2010 10:41 pm |
As for a specific instance, the mud I play has an intercom system. And before what people are saying on the intercom is said the mud sends something like " A squawk of static heralds a voice:"
And then on a new line, is the dialogue that is sent over that system. |
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Fri Feb 12, 2010 6:44 am |
Quote: |
MattLofton, I have no doubt you're absolutely right. I just think you overestimate my ability to understand what it was you did say.
|
Well, that's what helpfiles are for!
If you don't understand something about a command (anything with a # in front of it, like #SUBSTITUTE) or a function (ie, %ansi(red,bold), but I didn't use any in the example), type it into CMud and place the cursor somewhere inside what you typed. From there, pressing F1 will bring up the helpfile for a quick overview (the annoying yellowish window that seems to be placed nearly all the way off the right edge of my screen) and a link to the more detailed and robust Help window.
Other things (ie, <tag>...</tag> stuff) will require a little more involved exploration of either the helpfile or the zuggsoft.com website, so I'll try an explain some of them here:
<color red>...</color> -- this is MXP, or MUD eXtension Protocol. It's basically XML that's been specifically designed for gaming applications. The tag effect remains enabled across lines until the matching </tag> is found (in this case, it's coloring text red).
{manual} -- this is a trigger type (also referred to as a trigger state or trigger option). It determines how the trigger will match and/or what it'll do when it does match. "manual" means that this particular #condition will stay active instead of automatically moving on to the next #condition (or, being the last one, resetting the trigger back to the beginning.) To move to a different state, you would use the #STATE command. |
|
_________________ EDIT: I didn't like my old signature |
|
|
 |
|
|