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


Joined: 05 Aug 2003
Posts: 17
Location: Austria

PostPosted: Tue Nov 22, 2005 4:00 pm   

strange mapper behaviour
 
I told the mapper where to look for exits and description...
and its works somehow...

normaly the description should be coloured green in the reconfiguration...
but im my case... the fist half of the sentence is cyan and the second is then green.... what is the cyan part ??? does it think thats a prompt or what?
i cant folow the mapper there...

and if it thinks thats a promt... then is ask myself why ? cause i taged the promt with a trigger and turned the auto detect promt of !!

Pleeeease help me ^^
Reply with quote
Eraldo
Beginner


Joined: 05 Aug 2003
Posts: 17
Location: Austria

PostPosted: Tue Nov 22, 2005 10:40 pm   
 
I now now that the mapper DOES ...think that my map is a prompt....
Buts i still dont know why and how why and how to change that without messing the rest up ?!
Reply with quote
Eraldo
Beginner


Joined: 05 Aug 2003
Posts: 17
Location: Austria

PostPosted: Tue Nov 22, 2005 11:12 pm   
 
ok ok ... i managed to get some things better....

now there is still something bothering me....
something that the mapper does ;)

the map(description) from the mud that i recieve looks like this...

+-------------+ Vor Dir fliesst der Fluss 'Silberlauf'. Du stehst am Ufer
|..**~~**&oox#| eines breiten Stromes, der im Osten an Dir vorbeizieht. Baeume
|...**~~~**&oo| haengen ihre Zweige ins schnell dahinziehende Wasser. Selten
|....**~~~**&o| geben die dichten Buesche, die hier am Ufer wachsen, den
|.....*X~~*&oo| Zugang zum Fluss frei.
|.......*~~*&o| Es ist Nacht.
|......**~~*&o|
|.......**~~**|
+-------------+

it looks bad here because there is another font.... so the strange symbols make up a map of the area I am in !

now ... the above example shows how i recieve the description... and in my client it looks good....

but when i do 'reconfigure' ...ithe mapper reades that map like this...

ok ok ... i managed to get some things better....

now there is still something bothering me....
something that the mapper does ;)

the map(description) from the mud that i recieve looks like this...

+-------------+ Vor Dir fliesst der Fluss 'Silberlauf'. Du stehst am Ufer
|..**~~**&oox#| eines breiten Stromes, der im Osten an Dir vorbeizieht. Baeume
|...**~~~**&oo| haengen ihre Zweige ins schnell dahinziehende Wasser. Selten
|....**~~~**&o| geben die dichten Buesche, die hier am Ufer wachsen, den
|.....*X~~*&oo| Zugang zum Fluss frei.
|.......*~~*&o
|.......*~~*&o| Es daemmert.
|......**~~*&o|
|.......**~~**|
+-------------+

see that red line !!! it squeezes it in between there... looks like it starts to get the next line... stops (always at the same point) and redraws the like normaly one line lower... isnt that strage ???
Reply with quote
Eraldo
Beginner


Joined: 05 Aug 2003
Posts: 17
Location: Austria

PostPosted: Tue Nov 22, 2005 11:59 pm   
 
I now have found out further information by trying out things ....

-> the map of the area that makes up the left part of the description is in ansi color !!!
and thats a problem because the mapper is not fast (powerful) enough to read the whole description as it should.
so it stops goes to the next line and does it again... an that second time it works....

if i turn of color for the maps... then it does not double (mess up) any of the lines of the map....

Am i right with the assumption that the mapper must first trasform the colored map to noncolor before it captures it ? which makes it slow ?
im not sure ...

Any suggestions ???

I would be soooooo please if someone could help me :(
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Wed Nov 23, 2005 12:19 am   
 
Try a modification of this mapper code.

Code:

#CLASS {mapper}
#ALIAS onroomcreate {
  #noop %roomdesc( , @room.desc)
  #noop %roomexit( , %replace( @room.exits, " ", "|"))
  }
#ALIAS onroomenter {; This alias is called when the character enters a room.}
#VAR dir {n} {}
#VAR NoMaps {You are thirsty.|You are hungry.|The night has begun.|The night has begun.|The sun slowly disappears in the west.|You feel a faint glimpse of power as the tower's magic recharges.|You feel a faint glimpse of power as the tower's magic recharges.}
#VAR NoDirs {That room is private right now.}
#TRIGGER "mapfix" {+---------+ (*)} {
  #pri {
    room=""
    room.name={%1}
    #tag name {@room.name}
    #temp {$} {
      #pri {
        #tag desc @room.desc
        #state mapfix 0
        #ok
        }
      } notrig
    }
  }
#COND {&14~[ (*) ~]} {
  #pri {
    room.exits=%1
    #tag exit %1
    }
  }
#COND {&14(*)} {#pri {room.desc=%concat( @room.desc, "%1%crlf")}} {looplines|param=7}
#COND {(*)$} {#pri {#if (%trim( %1)="+---------+") {#noop} {room.desc=%concat( @room.desc, %trimleft( "%1%crlf"))}}} {looplines|param=20}
#TRIGGER {You ride to the * on a Mule.} {#nomap}
#TRIGGER {^{You are thirsty.|You are hungry.}} {
  #nomap
  #TZ
  }
#TRIGGER {{The door is closed.|That room is private right now.}} {
  #nodir
  #DOOR @dir
  } "" {prompt}
#TRIGGER {It's locked.} {unlock @dir}
#TRIGGER {^{You'd need to be able to fly or climb to go that way!|Alas, you cannot go that way.|You aren't allowed in there.|You need a boat to go there.}} {#nodir}
#TRIGGER {^It is pitch black} {
  #OK
  hold lantern
  look
  } "" {prompt}
#CLASS 0
_________________
Asati di tempari!
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