Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
MRC
Newbie


Joined: 09 Feb 2006
Posts: 4
Location: USA

PostPosted: Thu Feb 16, 2006 5:26 pm   

Mapper can't always find the right room name
 
When I enter a room, my mud displays a compass rose that shows the available exits. The name of the room is always on the same line as the middle of the compass, so I match the compass and tag the room name.

Example of mud output (ignore the periods... only included them for message formatting):


. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. NW . N . NE
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .\. |. /
The jungles of Ratgar . . . . . . . . . . . . . .W ---*--- E
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ./. |. \
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. SW . S . SE

my trigger:
#REGEX {^(.*)(\s+)W? -(?:U|-)-\*-(?:D|-)- (?:E)} {#TAG name %1} "#TAG"

For most rooms I've encountered this works fine. In one area, though, the mapper refuses to map anything. If I add the rooms manually, it will follow me through them in follow mode, but not in automap mode. If I copy the line of output with the room name in it (including the center line of the compass) and paste it into the test field in the trigger development window, it matches the room name correctly. If I reconfigure, though, the mapper includes the W ---*--- E as part of the room name. I thought that might have something to do with the problem, but I've no idea where to go from here.

Anyone?

PS Is there a way to format these messages so that multiple spaces don't get purged? (So that I can better represent my mud output...)
Reply with quote
MRC
Newbie


Joined: 09 Feb 2006
Posts: 4
Location: USA

PostPosted: Thu Feb 16, 2006 5:34 pm   
 
One more thing. I noticed that the directions don't stay in the que when I'm trying to map the area. But still, no new room is created. In case that helps anyone know what might be going on.
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Fri Feb 17, 2006 6:20 am   
 
Try searching for compass in the forums.

A lot of work was done 1-2 years ago to strip the compass from the description for a mud.

See examples in:
http://forums.zuggsoft.com/phpbb/viewtopic.php?t=13358&highlight=compass+mapping
Reply with quote
Taz
GURU


Joined: 28 Sep 2000
Posts: 1395
Location: United Kingdom

PostPosted: Fri Feb 17, 2006 11:20 am   
 
The code tags should allow you to post with formatting intact, e.g.
Code:

                                                             NW   N   NE
                                                               \  |  /
The jungles of Ratgar                                        W ---*--- E
                                                               /  |  \
                                                             SW   S   SE
_________________
Taz :)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net