News/ 2019/ September/ 4.1 – quality improvements all around

Release 4.1.0

4.1 – quality improvements all around

This is a quality release bringing improvements to Mudlet editor, Geyser, while adding MSSP, HTTP POST/PUT/DELETE, and more. Enjoy :)

Mudlet editor improvements

dicene pulled his sleeves up and added a fair bit of great improvements to the code editor!

  • Alt+E will now remember the view you last used, instead of always going to the trigger view.
  • Alt+E will now also toggle between the editor and the main window – as an alternative to Alt+Tab or using the mouse
  • Ctrl+Tab and Ctrl+Shift+Tab can now be used to jump around the main parts of the Mudlet editor – this helps a lot with keyboard navigation!
  • Function autocomplete is now an option in settings

Mudlet’s trigger editor with the generic_mapper package’s triggers listed and English Failed Move Trigger open

And while not strictly an editor feature, you can now select a specific profile tab – just like you can select a specific browser tab – with Ctrl+#. So Ctrl+1 will open the first profile, Ctrl+2 the second, and so on.

MSSP

Tamarindo from StickMUD added support for Mud Server Status Protocol (MSSP) in Mudlet! This means that for games that support it, the mssp table (do lua mssp to see it) will have all sorts of data that the game reports about itself. 

Are you an admin running a game? Add MSSP support! Are you a player on Mudlet wanting to use it? See here how to do that.

An MSSP table as Mudlet receives it from StickMUD, with fields such as hostname, port, players and codebase

As well as MSSP, Mudlet will now accept JSON for the Client.GUI string – this is something game admins can use to setup a Mudlet interface. Thanks again to Tamarindo for adding that!

Improvements for custom UIs

demonnic added some neat features to Geyser labels: you can now align text in them to the left or right of the label, as well as format it with strikeout text! insertLink, echoPopup, and insertPopup now have c/d/h variants for colouring text too.

vadi2 managed to crack the problem that was affecting Windows releases – if you created opened mapper with your Geyser interface together, the latter would look a bit weird until you resized it. No more! Both will open up just fine now.

Additional web APIs

This one is for coders as well: Mudlet has already supported HTTP GET, and now it supports POST, PUT, and DELETE too! With these you can make Mudlet packages that interact with web services – we look forward to seeing what you come up with :)

Mindful of the privacy aspects of this, as always, all HTTP requests are now logged in the Centra Debug Console:

Central Debug Console line reading: downloadFile: script is downloading from http://svof.github.io/svof/testing/current_version.txt

Credits

Big thanks to abbradar, demonnic, dicene, keneanung, macjabeth , mpconley, SlySven, vadi2, and wsdmatty for making this Mudlet update possible! Have you got an itch to scratch about Mudlet? Join in.

Changelog

We’ve added a ton of improvements in this release, including some neat table functions by macjabeth, so look below for the complete changelog:

added:

  • Alt+E / “Script editor” will now open the same view you had last, instead of Triggers view at all times
  • Alt+E now toggles between the Mudlet editor and the main window back and forth
  • calcFontSize(window_or_fontsize, optional_font_name)
  • Client.GUI is now accepted by Mudlet in JSON format as well (this is for game admins)
  • Ctrl+Tab and Ctrl+Shift+Tab can now be used to jump around the main parts of the Mudlet editor
  • Geyser.Label:echo can now align things to ‘left’ and ‘right’, and use ‘strikeout’ text
  • insertLink, echoPopup, and insertPopup now have c/d/h variants for colouring text
  • MSSP data is now available in Lua! Not all games support this, but those that do, you’ll be able to get additional data about the game in the ‘mssp’ table
  • postHTTP(), putHTTP(), and deleteHTTP() – and logging of all requests in the Debug console so you know what scripts are doing
  • table.keys(), table.n_filter(), table.n_flatten() for working with tables
  • Ctrl+1,2,3,etc now changes between profile tabs (this won’t break your custom keybindings if you have those)

improved:

  • code editor’s autocompletion now has a toggle in settings
  • default map save format is now 20 (up from 18). This means maps saved by Mudlet 4.1 can’t be read by 2.1 (3.x is OK!) – at this point enough people should be off
  • insertPopup and echoPopup now accept “main” as an argument
  • “default_host” profile is now gone: even faster Mudlet loading!

fixed:

  • ‘Copy as image’ now correctly works for Chinese and other 2-character-width languages
  • changing formatting in a miniconsole will now take effect right away
  • clicking on the timestamp will once again select the entire line (remember you have ctrl+clicking on a line too)
  • setBold and other formatting functions will now work on miniconsoles
  • setting a 0 width font (a weird font, basically) won’t crash Mudlet
  • UIs / Geyser no longer look funny when you first open them :)
  • userwindows will now close when you close their profile

4.1.1 and 4.1.2 updates that fixed Alt+# hotkeys being broken if you had them, and trying to use miniconsole functions on miniconsoles that don’t exist causing a crash.

GitHub Pulse for Mudlet, August 8 to September 8 2019: 58 pull requests merged by 10 people, 59 commits to development

 

>changelog — Mudlet-4.0.0…Mudlet-4.1.0 87 changes
added
Add supporters tab #2880
add table.keys utility method
New Crowdin translations #2838
Add feature: Ctrl+# tab switching between profiles #2949
Add a workaround for mapper creation breaking getMainWindowSize() #2945
Add autocomplete toggle #2679
Add 3D Mapper compile-time toggle #2971
Adds a call to `activateWindow()` to all the toolbar Triggers/Aliases/Etc buttons. Currently, they raise the window and show it, but don't activate it, meaning that keyboard presses still go to the main window. #2991
Adds a new shortcut to the trigger editor of Alt+E that brings the Main Window to the front, activates it, and gives focus to the input widget, so you can hit Alt+E and immediately get back to typing in the main console. #2990
Adds shortcuts for better navigating editor window #2979
Added calcFontSize(window_or_fontsize, optional_font_name) #3007
Adding c/d/h variants of insertLink, echoPopup, and insertPopup #3009
Adding format option 's' for geyser labels to add strikethrough tags around message
Add `table.filter` global function #3023
Add `table.flatten` global function #3022
New Crowdin translations #2948
Added line to update the display attributes of any selection as well, as the function setBold and others are intended to do. #3034
Add postHTTP(), putHTTP(), deleteHTTP() to interact with online services #3020
Adds manual updates to the functions that modify the formatting of a selection, so you don't need to add an extra `echo("")` or click on the buffer to get formatting changes to show. #3035
improved
Update translation sources #2881
Update string.trim to only return trimmed string as intended #2893
Update autocomplete list #2894
Update windows qt #2910
Update encoding tooltip for better i18n status #2956
Improve explanation of mMaxRoomIdDigits #2937
Change "Script Editor" menu entry to respect current view selection #2987
drop support for saving to Mudlet 2.1 map format & update default
Update autocomplete for 4.1
fixed
Fix permGroup for aliases and timers #2886
get Qts own translations loading #2729
Fix dblsqd auto attachment
Fix Patreon link in Supporters tab to open browser #2927
Fix hardcoded spacing in rooms list #2946
Fix proxy settings screen for when no profiles are loaded #2952
Fix userwindows not going away on profile close #2959
Fix Coverity TTimer mRepeating initialiser warning #2972
Fix updateDialog uninitialised in constructor #2973
Fix nullptr warning around curVar #2974
Fix a possible nullptr dereference if the room wasn't found for some reason #2975
Fix LGTM updater class warnings #2984
Fix use of incorrect const and add a few missing ones #2992
Fix insertPopup and echoPopup to accept "main" as an argument #3013
handle empty SGR...m sequences so they are treated as SGR0m
restore 3D mapper to FreeBSD
Fix 'copy as image' for 2 width characters #2869
Fix up font loading issues #3015
Fixes the error/info block sizing so that it does NOT expand to take up extra space. #2988
allow clicking on timeStamp region of TConsole to select whole line #3031
other
Unpack and remove the correct file from coverity
Remove "release" folder from .zip #2904
[ImgBot] Optimize images #2907
accidental whitespace
typos
mudletOlderThan fix #2925
Delete autosave debug statement #2939
Remove debug code for input line fallback #2942
Gif from github not launchpad #2947
Merge release-4.0 back into development #2918
Make use of Qt's built-in autoHide QTabBar functionality #2951
Factor out drawing exits in the map into a separate method #2941
Reorganize windows sdk #2958
Use our own edbee with updated QsLog #2914
Don't show SSL certificate info until we have one in Profile Preferences #2953
Don't include TLS code code when it's not available #2965
Use correct URL to download the coverity software
Raise minimum to Qt 5.11 #2944
Remove < Qt 5.11 workarounds #2969
Replace a couple of cases of std::tie with auto #2967
getRoom() will return nullptr if the room id is negative #2976
Disable Github workflow for the time being #2982
Make translation stats be optional #2983
Adjust cpplint settings #2727
Remove "default_host" profile #2950
Remove duplicate aliases in resource file #2985
Use correct commit SHA1 for Windows builds
Clarify verbose compile-time settings #2981
Implement JSON for Client.GUI (Issue #2875) #3003
Avoid building random branches
Slight adjustment to x position to buffer function and Replaced logic check for timestamp clicking. #2980
Changing to use align= in the div tag for Geyser.Label:echo, which allows us to easily add 'left' and 'right' alignment options
Adjusting ldoc to include new options
Don't allow setting a 0 width font #2865
Negotiate and store MSSP data in Lua table #3025
Log URL accessed with downloadFile() in Debug console #3028
Detect hunspell 1.7 #3046
Corrected a divide-by-zero error (fixes #3044) #3045
4.1 release!
↑↓ navigate ↵ open ctrlK anywhere