News/ 2020/ November/ 4.10 – extra command lines, background images, and more

Release 4.10.0

4.10 – extra command lines, background images, and more

This release has been a long time coming, thanks to the vagaries of obtaining a new code signing certificate for our Windows builds. Consequently there are a lot of changes which made it into Mudlet 4.10. Let’s go over some of the highlights!

What is Mudlet?

It’s a platform with which you can play multiplayer, pure-text RPGs – called MUDs, precursors to today’s MMORPGs. There are thousands of unique worlds online – download Mudlet for free on Windows/macOS/Linux, join one and enjoy!

Extra command lines

You’ve been asking for it, you waited patiently, now thanks to Edru you can have… multiple command lines! Whenever you want a second one for role-playing, your chat window to have configuration, or anything else, this is now possible:

extra command line

To turn on a commandline in a miniconsole, see here. To create a stand-alone, free floating command line, see here.

Background images for miniconsoles

You know what else you’ve been waiting and asking for? Background images on miniconsoles! Edru has been on a roll!

This also means that the usual c/d/heho color formatting functions now accept transparency as a parameter. See here on how to set a background image.

This also means that you can try setting a background image for the main window as well – but you might find that games often hardcode the black background, so it’s not ideal.

Math in Geyser

Have you been struggling to get your Geyser elements lined up just right and wished you could nudge it over just a few pixels? Been avoiding Geyser and using another option so you could have math in your constraints? Well, now you can use Geyser and receive all of its updates and use math in your constraints.

This means for example if you have a 32×32 label you want to center you can do so by using Label1:move(“50%-16px”,”50%+10px”), or using “50%-16px” for both the x and y when making the label.

Note: this improvement will also find your typos! For example if you had “95%%” before, that (invalid) constraint won’t work anymore. Find these bugs easily by searching for %%.

Other Geyser Improvements

Geyser.Label also allows you to use “nocolor” as the text color, which will then allow for coloring the text via CSS. It also picked up the Geyser.Label:rawEcho(txt) function, which skips over all the formatting assistance normally provided by Geyser.Label:echo().

Geyser.MiniConsole gains Geyser.MiniConsole:display() which works just like regular display(), but outputs in the miniconsole instead of your main display.

Tired of copying things to a miniconsole and not being able to click them? Wish you could keep your MXP links intact in a miniconsole? Well, now you can! Edru once again stepped up to the plate for this one.

New color functions for feedTriggers

Have you struggled to test your color triggers? Tired of hand-crafting escape sequences when using feedTriggers()? Well, Demonnic was even if you weren’t, so he added some new functions for working with feedTriggers. decho2ansi() and hecho2ansi() will take any decho or hecho string and return an ansi colored string. The functions are used by the new feedTriggers variants, dfeedTriggers and hfeedTriggers which allow for you to send colored text to the trigger engine for testing your color triggers. Also added is cfeedTriggers, which uses color names but uses a limited color table which corresponds to the ansi standard colors, IE black, red, green, yellow, blue, magenta, cyan, white, and lightBlack, lightRed, etc. You can also use a number from 0-255 to get the ansi 256 color equivalent.

Multi-view forever!

Now you can open ALL THE PROFILES! and move between them with your mouse and keyboard shortcuts without it turning multiview off. Have fun multiplaying!

Telnet CHARSET support

Game admins will be happy about this feature – it is now possible to automatically set Mudlet’s text encoding – for example, to be utf8 in case your game supports emojis – using the CHARSET protocol. Big thanks to Tamarindo from StickMUD for pulling that one in.

Music/sound in MXP

Tamarindo also went ahead and added sound/music support to Mudlet’s MXP implementation. That said, there’s a much more modern Mud Client Media Protocol that you should aim to use 😉

Scrollbar improvements

You’ll not be surprised to hear this one is Edru as well. Had you noticed Mudlet’s scrollbars behaving a bit… oddly? Jumping around, not resizing itself, stuff like that? Well, Edru’s put a lot of work into this and it should all work much more smoothly now.

macOS 10.13 High Sierra

Apple will stop supporting 10.13 High Sierra in November 2020, and Mudlet will have to follow suit. Thus Mudlet 4.10 will be the last version to support 10.13, which had a good run of 3 years!

Credits

Thanks to all coders that have contributed to this massive release: Andre Castellanos, Damian Monogue, Eraene, Fae, Gustavo Sousa, Ian Adkins, Jonathan Mohrbacher, Kebap, keneanung, Manuel Wegmann, Matthias Urlichs, Mike Conley, Stack, Stephen Lyons, and Vadim Peretokin.

Thanks to all translators to translated Mudlet into their language: Alan Sneath (alsneath), Anubisa, emeraldboy, Hsin Hsiang Peng (Hsins), Kae (itsTheFae), Leris, Marco “M0lid3us” Tironi (wiploo), rodeos, Vadim Peretokin (vperetokin), vingi, and 王AQ (Anselmus).

This massive piece of work would not be possible without all of you :)

Changelog

4.10.1 fixes the slowness in the 2D mapper, the keepcolor feature in replace(), emoji width are back as they were before, and the new CHARSET function accepts ASCII and ISO variants (for game admins).

>changelog — Mudlet-4.9.0…Mudlet-4.10.0 211 changes
added
New Crowdin translations #3859
Add spairs which iterates over any table in a sorted fashion #3895
getClipboardText and setClipboardText Lua functions #3869
New Crowdin translations #3894
Add the keepColor option to replaceAll and replaceWildcard #3943
New Crowdin updates #3921
Add dummy functions for TTS if Mudlet was compiled with TTS disabled #3958
Add cfeedTriggers, dfeedTriggers, and hfeedTriggers #3974
Add Geyser.MiniConsole:display() #3993
Add a separate getHTTP operation and associated events #4003
New Crowdin updates #3950
Add custom Input/Command lines #4055
Add background image to mini/main console #4064
Add horizontal scrollbar to error-console #4063
New Crowdin updates #4009
Add a global event listener: `*` and Lua interpreter cleanup #4091
Add test for ansi2string and correct regex for ansi #4100
Add setCmdLineStyleSheet to change the command line stylesheet #4117
Add option to stop highlighting History #4115
Add color run length to getFgColor+getBgColor #4108
Add some useful vscode defaults #4181
Add ability to override speedwalk path generation #4156
New Crowdin updates #4134
improved
improve access to TTabBar elements
make multiView persistent #3844
Update development with 4.9 release #3897
Update development with 4.9.1 release #3911
make compact input line feature act on individual profiles and be saved for each profile #3866
prevent password sniffing from sysDataSendEvent #3928
Update src/dlgConnectionProfiles.cpp
add a couple of new dictionaries to the set that Mudlet recognises
Update Linux builds to Qt 5.12.9 #3959
Update discordapp.com to discord.com #3979
Update build-mudlet.yml #3991
enable builds in a full Windows MSYS2 environment #3889
Update generic_mapper.xml #4075
Update the port on StickMUD to use TLS #4072
Improve generic mapper triggers #4086
Update Codespaces remote connect password #4097
add mapper background and exit color functions #4095
Update run-vcpkg and cmake actions #4153
Update to latest vcpkg #4158
Update Github Action way of setting environment variables #4163
Update cache action in Actions build #4178
fixed
prevent empty TBuffer crashes when copying #3860
prevent crashes from recent Coverity Issue fixup
Fix for case insensitivity in exit line #3875
prevent build failure with libzip 1.70.0 with no version numbers #3890
Fix crash loading MMP map #3899
Fixes #3900, bug on MXP SEND tags #3908
Fix for Geyser HBox/VBox with width/height at 0 #3909
Fixes bug #3886 with links in miniconsoles #3904
Fix crash importing custom lines with Qt 5.14+ #3923
Fix bug in parsing MXP tag with = symbol in attribute value #3933
make date display of profile's history follow selected UI locale #3917
announce end of replays when run from replay button
Bugfix for string.split with too many characters #3963
Fix typo preventing use of getFg/BgColor on non-main consoles. #3982
generic_mapper map config errors #3971
Fixes issue on miniconsoles using link store from the main console #4017
restore L. yellow colour button + insert new control in tab order
Fix bresetProfile() #3692 #4020
repair failure to load Lua modules from profile directory #4051
Fixed offset and scrollbars nestedLabels #4043
Fix Geyser HBox/VBox in development #4057
TTYPE error
fix issue with focus and resize of MiniConsoles when using custom command lines #4073
fix autodock #4048
prevent Segmentation Faults when closing profile with toolbars
Fix PTB build generation #4081
Fix links clickable on the whole console width #4083
Fix spelling in the Dockerfile #4094
handle floating toolbars with no DockArea set
handling of Big5 encodings for ambiguous E Asian auto-widening #4030
fix ctrl crash #4098
Fix right-click menu and image copy #4102
Fix release version numbers in windows installers
Fix typo in mapper's area box warning #4106
Fix macOS packaging #4103
Fix typo #4110
try and prevent crashing during highlighting #4005
Fix links being highlighted in the wrong place #4124
Fix the setBgColor issue regression from cleanup. #4132
Fix finding Sparkle with CMake #4144
Fix typo summerised #4143
FIx shrinking a map selection to keep everything in place #4148
Fix tempAnsiColor trigger #4128
Fix cast warnings in map image label code #4154
fix a CI script error around date calculations
Fix tempTriggers usage without expiration #4182
Fix Lua stack corruption with recent stack revert #4233
Fix scrolling on macOS #4229
Fix translations to work in CMake builds #4258
Fix Luarocks on OSX #4266
other
prevent Multiview tabs from being rearranged
(autocommit) Updated IRE mapping script to latest upstream #3871
(autocommit) Updated text for translation #3870
Restrict morning sunlight #3872
Lua translations able to deal with empty strings #3878
Port QStringRef to QStringView #3879
(autocommit) Updated text for translation #3887
(autocommit) Updated IRE mapping script to latest upstream #3885
improve Variables icon #3892
[ImgBot] Optimize images #3910
(autocommit) Updated autocompletion data #3919
Show an echo when uploading #3858
Client.Media: Remove Camel Case Package Requirement #3925
Don't call Lua functions with too many arguments #3924
(autocommit) Updated text for translation #3936
More concise tooltip for compact input line #3937
prevent multiple connection dialogues
Remove Default Host code from IRC #3927
Donot resize item in HBox/VBox if not dynamic #3947
Skip downloading GET response if there's no file path #3932
(autocommit) Updated text for translation #3949
src/dlgConnectionProfiles.h
(autocommit) Updated autocompletion data #3954
(autocommit) Updated edbee-lib submodule to latest in our fork #3953
(autocommit) Updated text for translation #3968
Capitalise 'errors' button text #3987
Avoid new ptb if no new commit #3990
Server Data Encoding Selection via Telnet CHARSET #3972
(autocommit) Updated text for translation #3995
(autocommit) Updated autocompletion data #3996
Missing files in src/.gitignore #3997
NAWS width handling & reporting #4002
(autocommit) Updated autocompletion data #4006
Zoom via mouse wheel: keep the position under the cursor in place #3998
Special macOS icons #3829
Return table of useful things in HTTP response #3727
(autocommit) Updated autocompletion data #4011
(autocommit) Update widechar_width.h to latest upstream #4010
reorder tabs and tab stops in profile preferences #3929
Support for parsing MXP closing prefixed closing tags used in Materia Magica #4016
try and identify profiles and some controls in connection dialog #3966
(autocommit) Updated autocompletion data #4025
(autocommit) Updated text for translation #4024
minor change post PR #3966
Making the foreground section of the hex pattern a noncapturing group allows for only setting the background via hecho/etc. #4027
MXP to MSP Tags #4015
(autocommit) Updated text for translation #4033
Found a typo where rb and gb were not made local #4036
Allow text color manipulation by StyleSheet on Geyser.Labels #4042
Introduce purgeMediaCache() [MCMP & MSP] #4041
(autocommit) Updated text for translation #4049
(autocommit) Updated autocompletion data #4059
Math in Geyser constraints #4056
Ignore Qt Creator autosave files #4068
Geyser.Label rightClick menu #4054
set StyleSheet for UserWindows (border and title area) #4046
Allow Geyser containers to have height/width 0 #4078
allow adjustable container to load in userwindow #4037
Allow attached Adjustable.Containers to behave like a frame #4032
Remove mapper click workaround #4076
Allow different save/load directories and slots for Adjustable.Container settings #4053
(autocommit) Updated autocompletion data #4034
(autocommit) Updated autocompletion data #4084
Setup Mudlet for C++ Github Codespaces #4087
Valgrind complained about an uninitialized field. #4090
Open Mudlet remotely using Github Codespaces #4088
ansi2string to strip ANSI colours #4092
Install CMake tools as well for Github Codespace #4096
Use upper pane height for page scroll #4099
removeAction was missing when parent was deleted #4101
add build details in development QApplication::ApplicationVersion
(autocommit) Updated autocompletion data #4119
make debug output less spammy for unprintable codepoints #3832
Link to setWindowWrapIndent documentation #4127
get isActive() and exists() to work with buttons #4118
Allow appendBuffer to keep links #4116
Cleanup patch for TLuaInterpreter #4112
At least one return-else pattern was a false positive. #4131
Align max regex trigger and alias capture groups for match and match_all #4122
Horizontal scrollbars for all consoles + scrollbar fixes #4085
Temporarily take out signing Windows executables #4133
Make filenames' dates more sortable #4129
(autocommit) Updated text for translation #4141
(autocommit) Updated autocompletion data #4142
Include some large English dicts #4137
Remove redundant QString::fromUt8() calls #4135
Enable Github security code scanning #4114
Allow Adjustable.Container to be attached to a border at creation #4146
Document some more missing functions #4140
Delete whitespace-linter.yml #4152
Adjust decho/hecho2ansi to use 0 as the reset code. Adjust ansi2decho to work with : delimiter #4150
Replace remaining fromLatin1 / toLatin1 calls with their Utf8 equivalents #4145
Split off a TMainConsole subclass #4149
loadRawFile is renamed to loadReplay #4157
(autocommit) Updated IRE mapping script to latest upstream #4169
(autocommit) Updated text for translation #4168
remove bogus check from CI script
Allow functions for tempAlias and tempKey #4171
Next round of cleanups #4167
Re-enable signing of Windows builds #4187
avoid extra invocations of bash shells in CI scripts #4170
improve Windows .ico (multi-image icon files) #4089
(autocommit) Updated autocompletion data #4194
Roomnames #3992
show attached menu on hover #4196
Adjustable.Container deal with corrupted save files and table for save slots #4190
(autocommit) Updated text for translation #4197
(autocommit) Updated text for translation #4221
setBackgroundImage for Consoles #4232
(autocommit) Updated autocompletion data #4263
Prep for 4.10 release
infrastructure
remove minute visible name from Connection dialogue icons
remove minute visible name from Connection dialogue icons #3948
Refactor to create and expose decho2ansi and hecho2ansi functionality #4019
Revert x32/x64 distinction #4160
Revert "Next round of cleanups (#4167)" #4179
Revert "Don't clear the stack" #4217
↑↓ navigate ↵ open ctrlK anywhere