Mudlet 3.9.0 – custom fonts in miniconsoles

May is here, and a new Mudlet is here!

Latency spikes

If you play Mudlet on Windows with wifi, and you’ve had occasional spikes of lag – it could have been caused by Mudlet. This release fixes it!

If you’re still getting lag after upgrading, then it’s something else 🙁

Thanks to bbailey for finding the issue and figuring it out.

Small toolbars are back

Like your icons small? SlySven made them now available again!

Code formatter fixed for ‘goto’

If you have a variable named ‘goto’ and format code, the formatting wouldn’t work and the code would be cut off. Keneanung fixed this! However, ‘goto’ is used by the next version of Lua, so do not use it and rename any existing code that uses it since it won’t work in the future.

Custom fonts in miniconsoles and userwindows

setFont() and getFont() are here! You can now use them to change the font in a miniconsole or a userwindow from the default Bistream Vera Sans Mono. Credit to Vadi.

New function: creplaceLine()

It’s like replaceLine(), but with colors! Example:

creplaceLine ( "<magenta>[ALERT!]: <reset>" .. line )

Klendathu added that one in. Got a handy function you think will benefit from being in Mudlet? Get in touch!

New function: getEpoch()

This one returns seconds since unix epoch with milliseconds (e.g. 1523555867.191). Thanks to salcedo for adding it in!

Behind the scenes

Keneanung has put in a ton of work updating all of the 3rd party open-source libraries Mudlet is built on, ensuring we’re using the latest and greatest stuff :)

Miscellaneous

fixed replaceAll() failing if the length of the replaced string and the replacement string significantly differ (thanks YoureWaifuABest, keneanung, Vadi)

Mudlet builds with the updater disabled fixed (thanks Faenriis)

Credits

Thanks to bbailey, Faenriis, keneanung, Klendathu, salcedo, SlySven, Vadi, and YoureWaifuABest for making this release of Mudlet possible :)