[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Plugins
. . -> [Subject]  Mapper speedwalk error when current and expected rooms match
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Mapper speedwalk error when current and expected rooms match

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


Posted by Victorious   (85 posts)  [Biography] bio
Date Tue 01 Aug 2017 05:01 PM (UTC)
Message
Hi,

I'm encountering a perplexing error when implementing a mapper modified from the realms of magic mapper example plugin.

When I type mapper goto <room num> to go to a room, it reports an error when reaching the destination. The following is some debug output.

What additional info can I provide that would be useful to try figuring this out? The most notable change I remember making is that exits are built lazily - it doesn't yet capture the exits line, but creates exits (and their inversses) as you move.


wanted 50859
Walking to: Approaching a vine covered temple
A vine covered temple
Location changed to room  14599   A vine covered temple
Fixing up exits
Moved from 14584 to 14599 in direction s
Current destination =  14599
Current return      =  14584
Fixed exit s from room 14584 to be to 14599

Approaching a vine covered temple
Location changed to room  50859   Approaching a vine covered temple
Loading room 50859 from database
Fixing up exits
Moved from 14599 to 50859 in direction s
Current destination =  50859
Current return      =  14599
Fixed exit s from room 14599 to be to 50859
Speedwalk failed! Expected to be in '50859' but ended up in '50859'.
[Go to top] top

Posted by Victorious   (85 posts)  [Biography] bio
Date Reply #1 on Tue 01 Aug 2017 05:21 PM (UTC)
Message
Just saw an instance of this happening while it is still on the way, and hasn't reached the destination.


Walking to: In the center of the Fire Tower, fifth floor
In the center of the Fire Tower, fourth floor
Location changed to room  37357   In the center of the Fire Tower, fourth floor
Loading room 37357 from database
curRoom.name: In the center of the Fire Tower, fourth floor
room.name: In the center of the Fire Tower, fourth floor
Fixing up exits
Moved from 37349 to 37357 in direction u
Current destination =  37357
Current return      =  37349
Fixed exit u from room 37349 to be to 37357
Speedwalk failed! Expected to be in '37357' but ended up in '37357'.
Speedwalk cancelled.
[Go to top] top

Posted by Fiendish   USA  (1,641 posts)  [Biography] bio   Global Moderator
Date Reply #2 on Tue 01 Aug 2017 07:34 PM (UTC)
Message
Quote:
What additional info can I provide that would be useful to try figuring this out?

You might start with the code.

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Victorious   (85 posts)  [Biography] bio
Date Reply #3 on Fri 04 Aug 2017 04:53 PM (UTC)
Message
Figured out the problem - i wasn't ensuring that my room uids was converted to strings, so it was comparing strings to numbers.
[Go to top] top

Posted by Nick Gammon   Australia  (21,321 posts)  [Biography] bio   Forum Administrator
Date Reply #4 on Sat 05 Aug 2017 05:26 AM (UTC)
Message
That old trap! Leads to strange messages. :)

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] 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.


1,036 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]