-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Learning_mapper throws an error #2
Comments
What version of the mapper do you have? The line shown in the error message should not fail: https://github.com/nickgammon/mushclient/blob/master/lua/mapper.lua#L303 if type (v) == 'table' and v.colour then Also, please report which version of MUSHclient you have (see Help menu).
You can change the mapper size in the configuration menu (the one that is currently causing a crash). As for the Z order, try changing this line in Learning_Mapper.lua: https://github.com/nickgammon/plugins/blob/master/Learning_Mapper.lua#L771 WindowSetZOrder(win, -5) Change -5 to some positive number, make it larger until the map window appears above the other miniwindows. |
Also, for the learning window, after these lines: WindowCreate (learn_window,
windowinfo.window_left,
windowinfo.window_top,
LEARN_WINDOW_WIDTH,
LEARN_WINDOW_HEIGHT,
windowinfo.window_mode, -- top right
windowinfo.window_flags,
ColourNameToRGB "lightcyan") Add: WindowSetZOrder(learn_window, 1000) That should move the learning window up the Z-order. |
I did a completely fresh version. Just now I downloaded MUSH Client from your website using downloader. There's also an issue with the client trying to open help that starts my Edge(even though my default browser is Chrome) and displays this: I have the same issue when I want to open help on the function(I saw your video where you explain Immediate window and how to go to the online and see the documentation). One more thing - are Mapper Learner and Mapper the same thing? Thank you! |
Please type
Your error message seems to have moved to line 302 in mapper.lua: https://github.com/nickgammon/mushclient/blob/master/lua/mapper.lua#L302 That is: for k, v in pairs (config) do That should not throw the error you pasted, which makes me think something odd is going on. Can you open your copy of mapper.lua (in the "lua" folder of your MUSHclient installation) and confirm that line 302 is as shown above? (Use any text editor which can show line numbers to do that). I use Geany. Tips for posting error reports
Windows no longer supports the help file format used by MUSHclient, and it is a heap of work to change it. The help can also be accessed from http://www.gammon.com.au/docs or you can install the supplied plugin MUSHclient_Help.xml which lets you look at the help entries inside the client (type Both techniques use the same help database as the supplied help file.
No. The Mapper is in the file mapper.lua and is the "engine" of the mapper. It needs a plugin to call it. the Learning_Mapper.lua and Learning_Mapper.xml files implement the interface with the mapper which learns stuff as you walk around. Some MUDs implement their own mapper plugins (Aardwolf is an example) which are tailored to exactly that MUD's output. The learning mapper was intended to be a generic interface to the mapper.
Not exactly. Type |
You might want to change line 94 of Learning_Mapper.lua to be: DEBUGGING = false That gets rid of a lot of debugging messages. When you click on the asterisk in the bottom left corner you should see this: I just tested with my own copy of Smaug and the latest mapper, and as you can see it worked with no issues. |
You don't have the latest version of mapper.lua. See the latest commit: nickgammon/mushclient@9ee632a - you have 2.6, the latest is 2.7 as I said above. The comment at the start says:
That's the exact problem you are having. Replace your copy of the mapper.lua file with the latest one: https://raw.githubusercontent.com/nickgammon/mushclient/master/lua/mapper.lua (That is a link to the actual file - RH click that link and "save as" to save to your disk - it needs to go in the lua sub-folder of your MUSHclient installation). Confirm once you have done that, and restarted the client, that it shows 2.7 as the version and not 2.6. |
Sorry, I meant:
|
Yep, that did it! You should probably create a new stable version as your Downloader and include this file in it. Let me ask you about another thing... I've played a couple of muds where they mention they use MSDP(mud server data protocol). You touched on Aardwolf and I have been playing it for quite a while and I've talked to Fiendish several times on how to adjust certain plugins. I think with those 2 additional functionalities your mapper could be considered as complete and fully usable for any mud. I know it's a lot of work but I believe that you being the writer of mapper.lua know exactly what needs to be done and where. Thank you! |
MSDP and GMCP (used by Aardwolf) are useful because you can get the exact room IDs for each room which makes the mapper more reliable. Aardwolf uses my mapper with some enhancements for the engine, and their custom front-end to process the incoming GMCP messages. You can always look at how the Aardwolf plugin works for ideas. I don't really want to modify the mapper myself for individual MUDs, I made the learning mapper so there would be a generic mapper available for most players. If you are talking about enhancing the core mapper module (mapper.lua) then taking Aardwolf's code and implementing it yourself should be fairly easy. Fiendish's code is released under the GPL so there should be no issues with using it. More generic discussions about the mapper should be directed to my forum. |
Hi,
clicking on the * in the bottom left corner of the map crash happens which requires reinstalling of the whole plugin to make things go back to normal again.
While on this topic, would it be possible to have the window resizable and to have it the highest Z index?
I started playing a new mud and I'm using their official plugin. One way I guess would be to make adjustments to it..
This is what happens:
https://pasteboard.co/hNnJqGZc6K3l.png
https://pasteboard.co/lckmGqDl5LH8.png
Error:
https://pasteboard.co/IJcPdhlWezWv.png
The text was updated successfully, but these errors were encountered: