News/ 2019/ October/ 4.2 – overhauled stopwatches, secure passwords storage, ANSI colours for scripting and more Release 4.2.0 4.2 – overhauled stopwatches, secure passwords storage, ANSI colours for scripting and more VP Vadim Peretokin· October 13, 2019 In this post Selection is not yet fixed, but better Overhauled stopwatches Secure passwords storage ANSI colours Dark mode on macOS Error console font Generic mapping script Credits Changelog This update now stores characters’ passwords securely, improves selection (but more work to do there), adds ANSI colours to cecho and friends, and fixes the font spacing in the error console. We know quality of the last few updates hasn’t been amazing, and quality is something we pride ourselves in. We’ve worked extra hard this time to test everything! :) Selection is not yet fixed, but better Selection in Mudlet has gotten worse in the last few updates – we apologise for that. We’re working on fixing that to work as you’d expect, and this update thanks to SlySven and vadi2 brings the following: selecting left to right works better, selecting to the end of line doesn’t overselect other text and finally, selecting just one letter is possible. Improved selection There are still issues with selection, however: selecting many things up and down doesn’t work well for example. We’re working on fixing this, look for improvements in future updates. Remember you can hold Ctrl while selecting to select entire lines at once! Overhauled stopwatches SlySven put in a lot of work to improve stopwatches: they can now persist across sessions, be deleted/recreated as needed, adjusted on the fly, be given names and more. See all of the new functions in the API. While stopwatches worked as expected, their functionality was very limited. Additionally, they worked differently from their real worl counterparts which made their use not very intuitive. Note: the new stopwatches caused a fair bit of compatibility with the old stopwatches, and we did not intend that. They’ve been removed for the time being in the 4.2.1 update. Secure passwords storage Mudlet previously stored passwords in an unencrypted binary file. While it wasn’t a text file, and thus not so easy to look at, it still wasn’t ideal. vadi2 fixed this in this update, and integrated the QtKeychain open-source library to enable Mudlet to store passwords securely on Windows, macOS, and Linux. The drawback of storing the password on the computer itself, however, is that if you use cloud sync for your profiles – the password won’t the syncronised. You can go to Special Options in settings and change the password to be stored within the profile to make that work, if you’d like the password to be portable but visible in plaintext. This piece of work was a necessary step towards custom locations for Mudlet profiles – necessary for cloud sync and portable Mudlet, so look for more in this area :) You can now also toggle to view the characters password in case you’ve forgot it thanks to SlySven’s improvement. ANSI colours SlySven worked to make ANSI colours – ones you see in preferences – be available right in your scripts! This means you can create coloured cechoes (and more) with the exactly same colours you’d see in the game. Nice! showColors() with the new ansi colors. Use showColors(“ansi”) to show only the ANSI ones In the same vein, as you notice from the screenshot that demonnic worked to make showColors() sort colours! It now is a lot easier to pick out the exact colour you’d like. Dark mode on macOS Mudlet now automatically goes into Dark Mode if you’ve got that enabled on your macOS: Enjoy! Error console font The error console font used to be… strange in the last few releases. We apologise for the lapse in quality here, and it is now fixed. Generic mapping script We’ve spent time improving the generic mapping script as well, making it easier to use and understand: Doing map basic will show the room name and exits that have been captured, so you can tell if the script is working. Credits Thanks to all coders: demonnic, keneanung, Leris, Loon-Toon, SlySven, and vadi2 for making this update possible! Thanks to all translators: 王AQ (Anselmus), Marco “M0lid3us” Tironi (wiploo), Leris, and vadi2 for keeping translations up to date. Changelog added: Geyser.Gauge:echo() can now do Geyser formatting generic mapping script: if you start the first area in your map without a name, the message asking for the name is now more understandable added getConnectionInfo() function character login passwords can now be stored by Mudlet securely in the credential manager, and are put there by default. There is still a toggle to go back to storing them unencrypted within the profile – this is handy if you want to use cloud sync ANSI colours are now available for use in cecho and others! They are automatically synced with preferences. See showColors() improved: setRoomEnv(), Geyser.Gauge:setValue(), table.is_empty() give you an understandable error message if you don’t give them right arguments, instead of technical gibberish generic mapping script: ‘map basic’ is now much more simplified and understandable, and tells you if it captured room name and exits correctly code editor will now indent with two spaces, and not tabs, when you press Tab (this sounds weird but it’s a lot better) ‘About Makers’ is now a lot easier to translate generic mapping script: ‘clear moves’ alias now tells you how many commands were removed you can now reveal the character password in the Connection screen by pressing a little icon GUI.Client, Client.Map downloads will now follow redirects as necessary Mudlet’s .dat map files can now be loaded from Client.Map as well default font size for new profiles is slightly bigger and looks nicer stopwatches got a giant overhaul, tons of new functionality showColors() now sorts colours nicely fixed: error and debug console fonts are no longer spaced weird grey area between trigger error and trigger patterns is fixed you can now select a single letter/character (“grapheme” in technical terms) trigger highlights can now highlight non-English text fine >changelog — Mudlet-4.1.0…Mudlet-4.2.0 66 changes added Add direct Paypal link #3019 Add getConnectionInfo() #3105 Add the -dev toggle Add missing newline in --version #3128 Add a toggle to store password securely, in OS or in the profile #3121 New Crowdin translations #3041 improved Improve generic mapper scripts 'map basic' #3087 Update Lua test file count Change download path from JorMox repository to Mudlet one #3099 add option to reveal password temporarily on demand #3040 Update QtKeychain to the version we use add profile's ANSI colours to Lua color_table #3124 overhaul stopwatches #2516 Update translations Update autocomplete list fixed Fix 'lumosity' typo #3050 Fix error messages printed regardless if error console actually exists #3060 Fix broken Alt+# keybindings #3062 Fix ctrl+# getting called many times #3063 Fix macOS compile on Qt 5.13.1 #3061 Fix error and debug console fonts being spaced weird #3112 Fix macOS compilation BugFix ameliorate Qt changes to binary formats for QDataStream #3133 Fix selection to select one character OK #3137 Fix generic mapper config - can't set an option to true after setting to false correct PR #2976 fix function names in a couple of copy/paste errors in error texts correct an off-by one error for an empty dictionary file Fix trigger highlighting with perl regexp and non-ASCII text #3038 handle end of line better for selection by mouse other Detect hunspell 1.7 #3046 Corrected a divide-by-zero error (fixes #3044) #3045 Store character's login passwords securely #3018 4.1.1 hotfix release Re-set dev Handle duplicate exits in with the generic mapper #3066 4.1.2 update Throw errors that make sense if we get nonnumbers for setValue #3081 Properly set the clickcallback for the flash function On second thought, we should just make the flash label clickthrough so that everything from the label beneath it functions as expected. echo wrapper to allow for formatting and text coloring. Echoing in the constructor if 'message' constraint is passed, to match Geyser.Label Make "No current area name" error message more friendly #3086 Bring setRoomEnv's error messages up to standard #3089 Clarify 'room not found' in generic mapper #3082 Render the default room colour as a more pleasing blue #3091 Indent with spaces instead of tabs when pressing enter Bring table.is_empty() error message up to standard Give a bit of comfort to 'clear moves' in generic mapper Remove failed deduction warning [ImgBot] Optimize images Default-initialise ttextedit values Merge Release 4.1 into development #3120 Load autologin password from secure storage as well #3113 Filter invalid Discord invite of "0" Allow GUI.Client, Client.Map URLs to follow redirects #3100 Remove grey area after error box in triggers #3075 Load Mudlet maps from Client.Map as well #3104 Increase default font size to a more pleasant one #3126 Deploy geyser docs on tag #3144 Upgrade macOS builds to 10.13 High Sierra #3145 Sort colors by hue by default. #3141 only change Encoder for feedTriggers(...) not whole profile #2889 Remove obsolete "setMapperView" function #3149 Remove obsolete "solveRoomCollisions" function #3150 4.2.0 release! infrastructure Refactor 'About makers' to make it more translation-friendly #2913 > contributors — Mudlet-4.1.0…Mudlet-4.2.0 10 people, 65 commits Vadim Peretokin 38 Stephen Lyons 9 Damian Monogue 5 keneanung 5 Kebap 3 Eraene 1 ImgBotApp 1 Loon-Toon 1 Matthew Sexton 1 Nikolay Amiantov 1 Download Mudlet Download 4.2.0 from GitHub Discuss on the forum ← Older post Mudlet 5 roadmap: focus on first-time player experience Newer post → 4.3 – Fixed selection