|
scobie Beginner
Joined: 01 Nov 2002 Posts: 24 Location: Sweden
|
Posted: 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 |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Thu Nov 07, 2002 1:55 am |
Points to the zMapper Discussion forum
LightBulb
Senior Member |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: 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 |
|
|
|
RGautier Beginner
Joined: 26 Oct 2001 Posts: 29
|
Posted: 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] |
|
|
|
scobie Beginner
Joined: 01 Nov 2002 Posts: 24 Location: Sweden
|
Posted: 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 |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: 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 |
|
|
|
|
|