Nick's Learning Mapper Error?

Posted by Sorrows on Mon 29 Dec 2025 02:33 AM — 4 posts, 3,443 views.

#0
so i just tried installing this pluggin exactly like the instructions said, and it worked for the first room i started it in. then this happened the moment i tried to move rooms:

Error number: 0
Event: Run-time error
Description: C:\Program Files (x86)\MUSHclient\lua\mapper.lua:302: attempt to index local 'v' (a boolean value)

stack traceback:

C:\Program Files (x86)\MUSHclient\lua\mapper.lua:302: in function 'draw_configuration'

C:\Program Files (x86)\MUSHclient\lua\mapper.lua:1043: in function 'draw'

... (x86)\MUSHclient\worlds\plugins\Learning_Mapper.lua:1694: in function 'process_new_room'

... (x86)\MUSHclient\worlds\plugins\Learning_Mapper.lua:178: in function 'handler'

... (x86)\MUSHclient\worlds\plugins\Learning_Mapper.lua:2147: in function <... (x86)\MUSHclient\worlds\plugins\Learning_Mapper.lua:2102>
Called by: Function/Sub: line_received called by trigger

Reason: processing trigger "" when matching line: "¤ "


edit:

so i restarted MUSHclient and it works...kind of, the error doesnt come anymore but after i move a few rooms the previous rooms disappear
Amended on Mon 29 Dec 2025 05:50 PM by Sorrows
USA Global Moderator #1

You’re using old versions of various files. It’s not your fault, because we never fully automated installer builds, just the executable. We can fix this, but for now you’ll need to update at least these files…

Replace your lua/mapper.lua with https://raw.githubusercontent.com/nickgammon/mushclient/refs/heads/master/lua/mapper.lua

Replace your lua/movewindow.lua with https://raw.githubusercontent.com/nickgammon/mushclient/refs/heads/master/lua/movewindow.lua

and then let’s go ahead and also

Replace lua/serialize.lua with https://raw.githubusercontent.com/nickgammon/mushclient/refs/heads/master/lua/serialize.lua

And then just in case let’s also

Replace your Learning_Mapper.lua with https://raw.githubusercontent.com/nickgammon/plugins/refs/heads/master/Learning_Mapper.lua

and your Learning_Mapper.xml with https://raw.githubusercontent.com/nickgammon/plugins/refs/heads/master/Learning_Mapper.xml

Amended on Mon 29 Dec 2025 05:11 PM by Fiendish
#2
OK, that worked thank you.

However, it seems a bit weird sometimes. For instance, im mapping out the main city, sometimes it shows all the rooms ive mapped, and sometimes it doesnt. usually back tracking and continuing fixes this, but sometimes it says im in a completely different room on the map, i assume because the rooms have similar names and descriptions with similar exits (the main road surrounding the city is called Circle Road in almost every instance)
and other times it only shows the room im in plus the exact adjacent rooms, the rest of the map is gone until i move rooms again (not a deal breaker as i just need to move rooms to see the map but its odd)

so this is what the city is supposed to look like: http://sorrowsbane.com/wp-content/uploads/2025/12/Screenshot-2025-12-29-124711.png

these two are just a few of the glitches:

http://sorrowsbane.com/wp-content/uploads/2025/12/Screenshot-2025-12-29-125240.png

http://sorrowsbane.com/wp-content/uploads/2025/12/Screenshot-2025-12-29-124535.png

notice how it is moving the circle road and wrapping it around on its self?
Amended on Mon 29 Dec 2025 09:36 PM by Sorrows
USA Global Moderator #3
After connecting to your game and poking around a bit. I believe the mapper is training properly, but I see that there are some rooms that on their own just look identical to each other with the same name, description, and exits. The learning mapper does not know how to use the connectedness between rooms to identify what room you're in. Essentially I believe the same issue as in https://www.mushclient.com/forum/?id=14882

The simplest way to fix it would be to ask the game admins to let you see room unique ids.

If they refuse, one would need to change the plugin to use the record of which room was most recently displayed to provide guidance when identifying what room you're currently in whether it's a new room or an existing one.