Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Suggestions ➜ Meshing speedwalks in the queue

Meshing speedwalks in the queue

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Handgimp   (5 posts)  Bio
Date Sun 13 Jul 2003 06:53 PM (UTC)

Amended on Mon 14 Jul 2003 02:42 PM (UTC) by Handgimp

Message
When travelling between locations I'll often string speedwalk aliases together. For example, from one city to another one, and then from there to a different area. Since I key my speedwalks off the city center, there is necessarily some wasted motion. It would be nice if the speedwalk queue could strip out the unnecessary directions. For example, if one speedwalk ends 2e 8n, and the next one starts 7s e, then it could combine them into 2e n e. Would this be workable, or desirable behavior?

(edited necessary into necessarily, as intended)
Top

Posted by Meerclar   USA  (733 posts)  Bio
Date Reply #1 on Sun 13 Jul 2003 11:49 PM (UTC)
Message
It *might* be doable but I can't say I see it as desirable behavior. There are ocassions when due to builder quirkiness or whatever, when 2e 8n 7s e doesn't end up in the same place as 2e n e. One way rooms, teleports, wierd builders, etc can all contribute to make this a bad idea to implement as a default feature.

Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #2 on Mon 14 Jul 2003 12:37 AM (UTC)
Message
It's an interesting idea, the first time I have heard of it. :)

One potential problem - apart from quirky areas - is how to know the opposite of a direction. Currently speedwalks let you specify the inverse of any direction, except the standard ones (eg. N -> S, E -> W, up -> down).

At present MUSHclient only stores the forwards direction in the speedwalk queue, as it doesn't need the inverse direction for walking. However to merge speedwalks like you describe you would need to compare the "end" of each queue to see if the end of one was the inverse of the other, and if so, cancel them out.

Ways I can imagine are:


  1. Storing the speedwalk inverse directions in the speedwalk queue, and using that to work out whether to cancel one.

  2. Using reasonable defaults (eg. N -> S, NE -> SW and so on), stopping when it can't do it any more.

  3. Having user-configurable inverses (eg. for the world) - however I think this might be unncessarily complicated.


The problem with the first option is if you throw in some standard moves between speed walks - the inverse might not be known. I favour the second option myself.

Naturally you would have a world option as to whether or not it attempted to do this - as Meerclar says, you may not want to.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Shadowfyr   USA  (1,792 posts)  Bio
Date Reply #3 on Mon 14 Jul 2003 04:44 AM (UTC)
Message
Yes. I have taken some consideration of this myself, but short of a real mapper that works accurately and can 'know' with certainty where you are when you start... I have been a bit reluctant to design a script for my own use to handle the paths I have this way. To do so would require knowing that travelling 10 west 'in' a sub area is not the same as moving 10 west on the main map, etc. For a full mapper this would be merely an extension, trying to feed it into the client would require a way to store all walks to be used and maybe a special waypoint marker that tells it to jump from one path to the next. It isn't simple by any means.
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #4 on Mon 14 Jul 2003 07:41 AM (UTC)
Message
That wouldn't be such a big worry - for this idea to work you simply need to know that in a particular place (eg. a street) going west once can be undone by going east once. That would generally be true - not always, of course, because you have one-way exits.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


16,933 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.