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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Anaristos
Sorcerer


Joined: 17 Jul 2007
Posts: 821
Location: California

PostPosted: Sun Nov 22, 2009 4:23 pm   

[312B] Path generation bug
 
This problem I found using %pathfrom, but I assume it also applies to %pathreverse.
If I happen to be in a room with a customized exit ("other" exit accessed via a conventional direction), that is, I am using N to generate enter portal for example, and I then want to go to a room which contains in its speedwalk (from the current room) the substring .(open n);n, %pathfind will generate the following substring: .(open n);enter portal. This will result, obviously, in the wrong path being created. To summarize, %pathfind is erroneously substituting directions downstream as if the were immediately away from the current room.

Schematically:

$sw = %pathfind(X,Y)

$sw will contain, for the first interim Y that contains the string pattern shown above (the cardinal direction can be any of the 6), a substituted customized exit as if the interim Y were X.

If there are multiple customized exits at X, only the first one in the exit list will be invalidly substituted, the others will be correctly generated.
_________________
Sic itur ad astra.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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