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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
yvu
Newbie


Joined: 05 Jan 2009
Posts: 7

PostPosted: Wed Jan 07, 2009 1:15 am   

Room name capture issue [solved]
 
Hello.

I can't get this to work...

Problem:

Here are 3 rooms: A - B - C (A links to B links to C).
I'm in A. B and C don't exist in mapper yet. I'm in map mode.
I walk from A to B and a new room is created:

prompt> east
A Marble Hallway
Visible Exits: N E S W
prompt>

So, B is "A Marble Hallway".

Next I move from B to C. It gets created as well.

But when I move from C to B back, MUD sends different text. It's still whatever moving from A to B was, but has something else:

prompt> w
Disappointed at the lack of hidden, buried and illusory exits in Yalen's
shrine, you decide to take your leave and search for secrets elsewhere.


A Marble Hallway
Visible Exits: N E S W
prompt>

And automapper creates a new room atop of B, because it thinks it's a new room with name "Disappointed at the lack of hidden, buried and illusory exits in Yalen's".

Settings:

And if mapper thinks the first line (as configured in map settings) after sending a movement command is always a room name, that's OK. But, I told it explicitly, what is a room name:

ansi trigger:
Code:
^%e~[1;33m([a-zA-Z '-])%s%e~[0m

to command "#tag name {%1}" (or just "#tag name", doesn't matter here).

And debugger shows it:
Code:
h <ESC>[0SDisappointed at the lack of hidden, buried and illusory exits in Yalen's<ESC>[0m
h <ESC>[0Sshrine, you decide to take your leave and search for secrets elsewhere.  <ESC>[0m
m   Event "onRoomEnter" raised
m   Event "onRoomCreate" raised
m   Event "onRoomEnter" raised
h <ESC>[1;33mA Marble Hallway                                            <ESC>[0m
f   Pattern: ^%e~[1;33m([a-zA-Z '-])%s%e~[0m : (%1="A Marble Hallway                                           ")
h <ESC>[0S  <ESC>[1;36mVisible Exits: <ESC>[1;33mN <ESC>[1;33mE <ESC>[1;33mS <ESC>[1;33mW <ESC>[0m
f   Pattern: ^  Visible Exits: (*) : (%1="N E S W ")


So, the ANSI trigger matches, and I assume the #TAG command gets executed.

Question:

Why, then, mapper thinks room name is first line after movement? Shouldn't it be whatever I give to "#TAG name"?

Any help would be greatly appreciated.

Thanks.


Last edited by yvu on Thu Jan 08, 2009 3:17 am; edited 1 time in total
Reply with quote
gamma_ray
Magician


Joined: 17 Apr 2005
Posts: 496

PostPosted: Wed Jan 07, 2009 8:42 am   
 
Did you reconfigure (run the configure wizard/dialog thingy in the mapper) after you made your #tag trigger?
Reply with quote
yvu
Newbie


Joined: 05 Jan 2009
Posts: 7

PostPosted: Thu Jan 08, 2009 3:16 am   
 
gamma_ray wrote:
Did you reconfigure (run the configure wizard/dialog thingy in the mapper) after you made your #tag trigger?


Yes I did, but I guess then I messed the configuration again. This time it works after reconfiguring, I guess the "Room Name" checkbox should be clear for #TAG to work properly.

Thanks.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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