Mudlet Map Explorer
Posted: Sat Jun 20, 2020 10:31 pm
Thanks to one of the users at Arkadia there is now a handy tool for perusing your Mudlet map in a web browser!
I translated it from Polish and wrapped it in a standard Mudlet mpackage rather than the plugin system they're using for stuff over at that game. You can download it HERE and install it either via the Package Manage or by dragging and dropping the mpackage onto Mudlet's main screen.
It works best with Google Chrome from what I've been told and experience in my testing, as this will allow you to copy the image to you clipboard. It works rather well in Firefox as well, though you lose copy to clipboard functionality you can still browse the map and save the file to disk.
Here is a shot of what the map looks like:
In order to use it, all you have to do is enter the "/explore-map" alias on the command line, and it will export your map information and open the page in your web browser using openURL().
If you just want to export the map data (for instance if you've bookmarked the file in your web browser and just need to update the map information) then you can use the alias "/export-map".
If you want to print a clickable link to the map explorer in your main Mudlet window, you can user the alias "/link-map"
It must be noted that maps which have been imported from an XML file supplied by the MUD may have embedded environment color information which, at least at the moment, cannot be read via the Lua API. This means some maps are colored wildly differently in Mudlet than the web browser, but there's nothing I can do about it for the moment. For everything else, it uses the default colors for environment 1-255 except as overridden by values retrieved via getCustomEnvColorTable().
Mudlet: Browser:
I translated it from Polish and wrapped it in a standard Mudlet mpackage rather than the plugin system they're using for stuff over at that game. You can download it HERE and install it either via the Package Manage or by dragging and dropping the mpackage onto Mudlet's main screen.
It works best with Google Chrome from what I've been told and experience in my testing, as this will allow you to copy the image to you clipboard. It works rather well in Firefox as well, though you lose copy to clipboard functionality you can still browse the map and save the file to disk.
Here is a shot of what the map looks like:
In order to use it, all you have to do is enter the "/explore-map" alias on the command line, and it will export your map information and open the page in your web browser using openURL().
If you just want to export the map data (for instance if you've bookmarked the file in your web browser and just need to update the map information) then you can use the alias "/export-map".
If you want to print a clickable link to the map explorer in your main Mudlet window, you can user the alias "/link-map"
It must be noted that maps which have been imported from an XML file supplied by the MUD may have embedded environment color information which, at least at the moment, cannot be read via the Lua API. This means some maps are colored wildly differently in Mudlet than the web browser, but there's nothing I can do about it for the moment. For everything else, it uses the default colors for environment 1-255 except as overridden by values retrieved via getCustomEnvColorTable().
Mudlet: Browser: