|
Reygar Novice
Joined: 22 Aug 2004 Posts: 32
|
Posted: Fri Sep 03, 2004 7:00 pm
Room name help |
The room name on my mud looks like this:
Seahaven, side street Early morning Cloudy
How can I make it so that zmud recognizes the room name when the time and weather part are constantly changing? |
|
|
|
Reygar Novice
Joined: 22 Aug 2004 Posts: 32
|
Posted: Fri Sep 03, 2004 7:53 pm |
didnt format well on here but there is a large space between Seahaven, side street and the time/weather section
|
|
|
|
mr_kent Enchanter
Joined: 10 Oct 2000 Posts: 698
|
Posted: Fri Sep 03, 2004 8:00 pm |
With modification, something like this should work.
#VAR timeofday {Early morning|Middle morning|Late morning|Noon|...|Dawn}
#VAR weathertypes {Cloudy|Stormy|Pouring rain|Snowing|Clear|...|Partly cloudy}
#TRIGGER {(*) %s {@timeofday} %s {@weathertypes}} {#TAG name %1} |
|
|
|
Reygar Novice
Joined: 22 Aug 2004 Posts: 32
|
Posted: Sat Sep 04, 2004 6:46 am |
Thanks Mr. Kent...I have:
#CLASS { Room Name}
#VAR timeofday {Early morning|Middle morning|Late morning|Noon|Early afternoon|Dawn}
#VAR weathertypes {Cloudy|Stormy|Pouring rain|Snowing|Clear|Raining|Partly cloudy}
#TRIGGER {(*)%s{@timeofday}%s{@weathertypes}} {#TAG name %1}
#CLASS 0
but it doesn't work...won't create new rooms or follow in rooms I've already created (even after I removed the time and weather from the prompt) I tested an room name:
Seahaven, Rosen street Early afternoon Raining
In the test trigger area and it matches...any fore advice? Thanks for helping so far. |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Sat Sep 04, 2004 7:09 am |
change the class name to ONEWORD and see if that helps
|
|
|
|
mr_kent Enchanter
Joined: 10 Oct 2000 Posts: 698
|
Posted: Sat Sep 04, 2004 2:46 pm |
You'll probably need to #TAG your prompt.
Once you have a #TAG trigger for your prompt, you'll have to reconfigure.
Finally there may be some settings that need tweeked under Configuration settings but it's usually best to leave these alone if possible.
Without actually seeing your mud output, I can't think of anything else to suggest. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sat Sep 04, 2004 8:13 pm |
Code: |
Seahaven, Rosen street Early afternoon Raining
Seahaven, side street Early morning Cloudy |
Comparing the two lines, it appears there is a fixed number of spaces between items rather than a variable number to align them in columns. Include those spaces in your pattern:
Code: |
#TR {(*) (*) (*)} {#TAG Name {%1}} |
Using any #TAG trigger requires reconfiguring the mapper after making the trigger. It's recommended that you also #TAG your prompt line whenever using #TAG. |
|
_________________ LightBulb
Senior member
Most scripts in this forum are written for Command Line entry.
Don't even open the Settings Editor unless its use is specified or obvious. |
|
|
|
Reygar Novice
Joined: 22 Aug 2004 Posts: 32
|
Posted: Sun Sep 05, 2004 1:40 am |
Hehe...reconfigure...ok I got the tag for the room name....taged the prompt, reconfigure...zmud figures out everything PERFECTLY....then I go to the next room...nothing...heres a couple of lines from my mud (suppose I should have posted this first)
Thanks again for all the help...I'm almost there.
9hp 61e 25m 25s 0rt e
Seahaven, Iron street Late evening Cloudy
This street runs past several shops and warehouses seemingly
with the business of holding metal ores and forges for making
weaponry. Most seem to be closed off to the public, their works
going to the town garrison and its guards. A sign hangs over the door
of one.
Obvious exits: east west.
You see: the townswoman Alisanne.
9hp 61e 25m 25s 0rt w
Seahaven, Iron street Late evening Cloudy
The acrid smell of hot metal and burnt oil emanates from several
buildings here. Faint grey smoke rises from the backside of the
buildings. On the south side of the street you see a building
with a sign hanging above its door.
Obvious exits: east west.
9hp 61e 25m 25s 0rt e
Seahaven, Iron street Late evening Cloudy
This street runs past several shops and warehouses seemingly
with the business of holding metal ores and forges for making
weaponry. Most seem to be closed off to the public, their works
going to the town garrison and its guards. A sign hangs over the door
of one.
Obvious exits: east west.
9hp 61e 25m 25s 0rt e
Seahaven, side street Late evening Cloudy
The housing here seems to degrade in value and upkeep the
further southerly you go along this road. The homes look to
have once been very modest. Now the paint and frames are chipped
and in need of fresh paint and repair. Many of the doors look to
have been kicked in at some point, whether by thieves or local
law, is not apparent.
Obvious exits: north west southwest.
You see: the townswoman Alisanne.
9hp 61e 25m 25s 0rt
A heavily armed guard arrives from the southwest.
9hp 61e 25m 25s 0rt
A heavily armed guard leaves west.
9hp 61e 25m 25s 0rt look
Seahaven, side street Late evening Cloudy
The housing here seems to degrade in value and upkeep the
further southerly you go along this road. The homes look to
have once been very modest. Now the paint and frames are chipped
and in need of fresh paint and repair. Many of the doors look to
have been kicked in at some point, whether by thieves or local
law, is not apparent.
Obvious exits: north west southwest.
You see: the townswoman Alisanne.
9hp 61e 25m 25s 0rt look
Seahaven, side street Late evening Cloudy
The housing here seems to degrade in value and upkeep the
further southerly you go along this road. The homes look to
have once been very modest. Now the paint and frames are chipped
and in need of fresh paint and repair. Many of the doors look to
have been kicked in at some point, whether by thieves or local
law, is not apparent.
Obvious exits: north west southwest.
You see: the townswoman Alisanne. |
|
|
|
mr_kent Enchanter
Joined: 10 Oct 2000 Posts: 698
|
Posted: Sun Sep 05, 2004 5:12 am |
First off, I'd find the .zfg file for this map and copy it to another directory and rename it - just in case this gets screwed up really bad.
This sounds like zMud still isn't recognizing your prompt.
You should have something like this, I think.
#TRIGGER {%dhp %de %dm %ds %drt%s} {#TAG prompt}
In any event, make sure to test your prompt pattern in the settings editor test box. Reconfigure and try it again. If this isn't the problem then try the following.
Once you're absolutely sure that your prompt #TAG is good then open up the configuration settings from the Config menu on the toolbar.
Click Room Name.
Room Name, Match Room Name at Start of line and Room Name uses Proper-case, should be checked. Uncheck all else.
Click Room Description.
Room Description, Multiline Description should be checked.
Click Room Exits.
Room Exits, Exit line contains key should be check. Uncheck everything else. In the 'Exit line keyword' text box, type exit.
Click MUD Prompt.
Complex prompt, Number prompt, and Allow blank line to trigger speedwalking as prompt. Uncheck all else. Copy your working prompt trigger pattern into the second text box.
Close Map Preferences window. Try to map, if no luck then reconfigure and try again. I think reconfigure will change the settings you made above, so you might have to change the MUD Prompt stuff again...I've had to play around a bit when I've had trouble configuring the automapper at this point.
Finally, the room names/descs you provided should work, but I'd try to find an area where adjacent rooms have different/unique names and descs (only when (re)configuring). If these steps don't work in the first room/area that you try, move to a different location and try again. If this still doesn't work, provide the addy and I'll try to log in and get it figured out. Good luck! |
|
|
|
Reygar Novice
Joined: 22 Aug 2004 Posts: 32
|
Posted: Sun Sep 05, 2004 5:42 am |
Tried all your suggestions and mapping works....but the weather and time are still in the room desc...which was my first problem...when I add the tag for the room name it that LightBulb provided the test part works perfectly but mapping stops....heres the address:
lightanddarkness.wolfpaw.net
port 3000
Thanks for all your time and help. |
|
|
|
mr_kent Enchanter
Joined: 10 Oct 2000 Posts: 698
|
Posted: Sun Sep 05, 2004 6:45 am |
I just logged in and I don't see weather and time in the room desc.
One thing you will want to do is:
prompt %hhp %ve %mm %ss %Wrt%L |
|
|
|
Reygar Novice
Joined: 22 Aug 2004 Posts: 32
|
Posted: Sun Sep 05, 2004 6:55 am |
*sigh* sorry I meant room NAME not desc..anyway...were you able to get it to map? I changed the prompt to what you said....I stil have the same problem...If I autoconfigure..everything works perfectly and the room is created...then it will not map any other room....thaks again..I'll keep working at it...
|
|
|
|
mr_kent Enchanter
Joined: 10 Oct 2000 Posts: 698
|
Posted: Sun Sep 05, 2004 8:05 am |
I got it to work.
The blank line before the prompt seemed to wreaking havoc.
config -BLANK
#VAR timeofday {Early morning|Morning|Late morning|Noon|Early afternoon|Late afternoon|Twilight|Early evening}
#VAR weathertypes {Cloudy|Clear|Raining}
#TRIGGER {%dhp %de %dm %ds %drt} {#TAG prompt}
#TRIGGER {^(*) %s {@timeofday} {@weathertypes}$} {#TAG name %1}
#TRIGGER {^You can't go that way.$} {#NODIR;#NOMAP}
You will need to add any missing weather types and times of day by hand.
Room Name: Check Room Name, Match Room Name at Start, Match Room Name at End
Room Exits: Check Room Exits, Exit line contains key
Exit line Keyword:Obvious exits:
MUD Prompt: Check Complex prompt, Allow string> prompt, PERL, Wait..SLOW, Allow blank...
Speedwalking: Match first line of room Description
Prompt trigger pattern:^\d+\w+ \d+\w+ \d+\w+ \d+\w+ \d+\w+ |
|
|
|
mr_kent Enchanter
Joined: 10 Oct 2000 Posts: 698
|
Posted: Sun Sep 05, 2004 8:29 am |
Had a problem...try this
Code: |
#UNVAR timeofday
#UNVAR weathertypes
#UNTRIGGER {^(*) %s {@timeofday} {@weathertypes}$} {#TAG name %1}
#TRIGGER {^(*) * *$} {#TAG name %1} |
This looks like it works very well. |
|
|
|
Reygar Novice
Joined: 22 Aug 2004 Posts: 32
|
Posted: Sun Sep 05, 2004 2:17 pm |
SO...basically what we have left is:
#TRIGGER {%dhp %de %dm %ds %drt} {#TAG prompt}
#TRIGGER {^(*) * *$} {#TAG name %1}
I reconfigure and it correctly makes the first room...then nothing yet again...will keep working with the config settings... |
|
|
|
|
|