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


Joined: 01 Nov 2002
Posts: 24
Location: Sweden

PostPosted: Thu Nov 07, 2002 12:02 am   

My mapper headache, and a suggestion...
 
It's quite simple, but i can't get it do work...
All i want to do is to take the first line received after the prompt as room name, unless it's empty (only a n).
The rest as desc until "Exits: *" is received.

alas:

HP: nn/nn CP: nn/nn >
Room name comes here
some description
comes here
Exits: south, east

HP: nn/nn CP: nn/nn >

---

Now to my suggestion: Why not open a forum for the mapper?
It seems that it gives alot of people a headquake...

zMUD 6.16 - scobie@linux.se
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Nov 07, 2002 1:55 am   
 
Points to the zMapper Discussion forum

LightBulb
Senior Member
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Thu Nov 07, 2002 3:49 am   
 
Seems like pretty standard MUD output. The mapper has trouble auto-configuring with this?

zMapper is not the same as zMUD's mapper. zMapper is a program for enhancing maps. The actual AI code for detecting rooms is in zMUD.

Kjata
Reply with quote
RGautier
Beginner


Joined: 26 Oct 2001
Posts: 29

PostPosted: Thu Nov 07, 2002 3:58 am   
 
Sample variation MAPPING problem - the words "Outside of the East Gate" is the room name - it is always light blue, and it is always the line before the Exits line...however, sometimes that 'You step out..' line is not there (mostly, actually). How do I tell the mapper that the first light blue line is the room name, or the line just before the Exits line is the room name?

<989HP 280MP 143935071XP 235MOV>e
You step out the East Gate of the city of Dakron Bae onto the Caravan Trail.
Outside of the East Gate
[Exits: east west]
Reply with quote
scobie
Beginner


Joined: 01 Nov 2002
Posts: 24
Location: Sweden

PostPosted: Thu Nov 07, 2002 5:34 am   
 
Kjata, yes... big time...

It's because no room looks the same, even tho the room name/desc positions are standard.
Sometimes the rooms' are indented, sometimes not.
Sometimes the names are in White on a Blue background, some times red on black...
Different amount of paragraphs...
etc.

It's a pain.

zMUD 6.16 - scobie@linux.se
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Thu Nov 07, 2002 1:09 pm   
 
Seems like a job for #TAG. Have a look at the help entry for the #TAG command. Then, try to make a system of triggers to match a complete room (name, description and exits) and use the #TAG command to let the mapper know which one is which. Also, be sure to match your prompt and #TAG it too. Finally, after everything is being matched correctly, re-configure the mapper so that the #TAGs come into effect.

Note: It is not very obvious from the help file, but tag does not expand its arguments except for a single variable reference or %1..%n

Kjata
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