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
AlT
Beginner


Joined: 11 Jun 2003
Posts: 22
Location: Moldova

PostPosted: Wed Feb 25, 2004 4:44 pm   

Automapper configuration problem. Yet again.
 
This is an example of output of my mud. I've tried everything i was able to invent, to try and catch that output. I've tried #TAG and #SUB to tag or remove different parts of the room name, i've tried different checkboxes in mapper config, i've tried to manually configure the mapper...
No luck. Automapper configurator don't wants to work with this.


[ 1200] Within a Large Hall [ INDOORS ] [City]
[ Exits: n e s w ]
The floor in this room is covered in a cloudy mist that lightly caresses the
feet of those who stand here.
An immortal's message board is here.


Anybody please! anything to parse that? I also want to catch the number [1200] as room vnum and [ INDOORS ] [City] part as room flags.
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Wed Feb 25, 2004 6:22 pm   
 
something like this maybe?

#TR {^~[ (%d)~] (*) ~[ (%w) ~] ~[(%w)~]} {#TAG name,vnum {%2} {%1};#Call %roomnote(,Type: %1<%cr>Sector: %2)}

#TR {^~[ Exits: (*) ~]} {#tag exit {%1}

Backup your Zfg and Ini files for the mapper and delete them then open the map and Reconfigure the mapper and you should be golden if not change the exit trigger to this

#TR {^~[ Exits: (*) ~]$(*)} {#tag exit,descpara {%1} {%2}}

Of course I could nevet get Tag to work :P
Reply with quote
AlT
Beginner


Joined: 11 Jun 2003
Posts: 22
Location: Moldova

PostPosted: Wed Feb 25, 2004 6:37 pm   
 
Much better that way, reconfigure managed to recognize exit and description, but it still does not recognizes room name along with vnum and flags.

I could not made it to recognize anything cept exits.

But still room name need to be captured.
Right now autogonfig recognize it as a prompt and color is teal.
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Wed Feb 25, 2004 6:50 pm   
 
Post some more info with you walking between 2 rooms etc make sure spaces are exact and hopefully you have a prompt and I'll beef it up and see what I can do
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Wed Feb 25, 2004 10:12 pm   
 
The use of #TAG requires that you also tag the prompt to work consistently right. I would suggest only tagging name and prompt then using the configuration settings to control exits and description. If you want to store the vNum and extra room data the should be held in a variable then stored by the onroomcreate alias.

Please follow nexela's suggestion of posting movement between a couple of rooms, and then we can better help you.
Reply with quote
AlT
Beginner


Joined: 11 Jun 2003
Posts: 22
Location: Moldova

PostPosted: Thu Feb 26, 2004 5:43 pm   
 
Sorry, was a bit busy so didn't replied promptly.
Thanks for trying to help and here are the output:

<hp:90 mv:120> w
[ 1215] Main Street [ INDOORS ] [Inside]
[ Exits: n e w u ]
The floor is this room is covered in a cloudy mist that lightly caresses the
feet of those who stand here. A circular ray of light in the southwestern area
of the room seems to be a form of transportation to reach another room above
this one. A massive board of wood rests here, containing the wisdom and ideas
of the immortals.
An immortal's message board is here.

<hp:90 mv:119> n
[ 1228] Within a Large Hall [ INDOORS ] [City]
[ Exits: n e s w ]
The floor is this room is covered in a cloudy mist that lightly caresses the
feet of those who stand here. A circular ray of light in the southwestern area
of the room seems to be a form of transportation to reach another room above
this one. A massive board of wood rests here, containing the wisdom and ideas
of the immortals.

<hp:90 mv:118> n
[ 1212] News Room [ INDOORS ] [City]
[ Exits: s ]
The floor is this room is covered in a cloudy mist that lightly caresses the
feet of those who stand here. A circular ray of light in the southwestern area
of the room seems to be a form of transportation to reach another room above
this one. A massive board of wood rests here, containing the wisdom and ideas
of the immortals.
An immortal's message board is here.

<hp:90 mv:117>


Also, i don't understand fully what syntax you used in roomnote here
%roomnote(,Type: %1<%cr>Sector: %2)
There is nothing like that in help. Where i might find info on that?

Oops, forgot to mention, is there a way to add flags also with roomnote?
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Thu Feb 26, 2004 9:25 pm   
 
*lurk Vigilante* Why use an on room create when you can capture it as it comes and slap it up there.

%roomnote sets(if in map mode) or retrieves the notes for a room
%roomflags sets(if in map mode) or retrieves a user defined string (this is the one I meant to put there)

For your other problem first try this (updraging to 7.03 if you don't have it will help too)

close the map and backup and delete your map.ini and map.zfg files
find and disable all your #TAG triggers

Open the map and try to reconfig if works you golden if not close the map and delete the two files again and slap these triggers in.
not sure if the ""'s are needed around the roomflags or not


#TR {^~[ (%d)~] (*) ~[ (%w) ~] ~[(%w)~]} {#TAG name,vnum {%2} {%1};#Call %roomflags(,"%3 %4")}
#TR {^~[ Exits: (*) ~]$(*)} {#tag exit,descpara {%1} {%2}}
#TR {~<hp:%d mv:%d~>} {#tag prompt}

Then do a reconfigure and it should find everything lemme know how it goes

If need be I can log in your mud if you supply the addy and whip you up a config file and email it :P
Reply with quote
AlT
Beginner


Joined: 11 Jun 2003
Posts: 22
Location: Moldova

PostPosted: Fri Feb 27, 2004 2:00 pm   
 
Big thanks Nexela, i've managed to make it work.
If you interested how, i've used next triggers:
#TR {^~[ (%d)~] (*) ~[ (%w) ~] ~[(%w)~]} {#TAG name,vnum,flags {%2} {%1} {Flags: %3, Terrain: %4}}
#TR {^~[ Exits: (*) ~]} {#tag exit {%1}}

It turned out it works fine without tagging prompt, mapper detect it good by itself. If i try to tag descpara it marks all description paragraph as exits, so i'm tagging only exits. Description get detected fine without this.
Now the most confusing part:
If i use #Call %roomflags(,"%3 %4") or any other function to set some parametres of the room, it fires when i leave the room instead of when i enter. Besides they got set for wrong room. I.e. if i move 1 room north, it takes parametres of the room i just going to enter (northern room) and set them for the room i just left (room where i was before started moving). It seems it's true for any function i'm using in those triggers beside the #tag. I've tried to color rooms based on flags, and it turned out that room i just left getting the color of the room i entered.
So in case i want to do something more except cathing vnums, and flags, you have to use some variables and onroomenter/onroomcreate aliases, as Vijilante suggested.
However initial problem resolved. Mapper does captures coorect vnum, name, description and exits using #tag. Thanks.
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Fri Feb 27, 2004 4:38 pm   
 
hmmmmmmm maybe I shoulda tested that..... :P Ok Im done answering posts A.Right when I get up and B.Right before i pass out :P
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