MMRL v2.19.17: Enhanced ModConf, F-Droid Debut, and More

by Der_Googler
2 minutes
MMRL v2.19.17: Enhanced ModConf, F-Droid Debut, and More

We are excited to announce the release of MMRL v2.19.17, packed with new features, improvements, and bug fixes. This version brings significant enhancements to ModConf, introduces a search bar in ModFS, and makes its debut on F-Droid. Here’s a detailed look at what’s new and improved in this version.

Key Improvements in ModConf

One of the most notable improvements in v2.19.17 is the enhanced ModConf. This upgrade includes several new features and functionalities aimed at making your modding experience smoother and more efficient.

Introducing XMLSerializer

A major addition to ModConf is the XMLSerializer class. This new feature allows for easy serialization of XML data, either to a file or a string. Here’s how you can use it:

const mXml = new XMLSerializer()

// Serialize to a file
mXml.serializeToFile(fileName: string, root: Node): void

// Serialize to a string
mXml.serializeToString(root: Node): string

With XMLSerializer, handling XML data within your mods becomes straightforward and efficient.

Added path to ModConf

Another valuable addition is the path utility, which simplifies file path resolution within your mods. Here’s an example of how to use it:

require(path.resolve(__modpath, "module.prop"))

This enhancement ensures that file paths are correctly resolved, reducing the risk of errors and improving overall mod performance.

ModFS Gets a Search Bar

Navigating through your files in ModFS just got easier with the new search bar. This feature allows you to quickly find the files you need, enhancing your productivity and streamlining your workflow.

Initial Release to F-Droid

We are thrilled to announce that MMRL v2.19.17 is now available on F-Droid. This means that users can now download and update MMRL directly from the F-Droid repository, making it more accessible and easier to manage.

Bug Fixes

This release also addresses several bugs to improve the overall stability and performance of MMRL. Notably, a bug that caused screenshots to be incorrectly visible has been fixed, ensuring a smoother user experience.

Deprecated Variables and Functions

As we continue to improve MMRL, some variables and functions have been deprecated in favor of more efficient alternatives:

  • modid is now __idname
  • modpath() is now __modpath
  • confpath() is now __dirname
  • include() is now require()

These changes aim to streamline the codebase and improve consistency across the platform.

Conclusion

MMRL v2.19.17 brings significant improvements and new features that enhance the modding experience. With the improved ModConf, the introduction of XMLSerializer, the addition of a search bar to ModFS, and the debut on F-Droid, this version is a substantial step forward. We encourage all users to update to the latest version and take advantage of these enhancements.

Stay tuned for more updates and happy modding!

Your Reaction to this Post?

Currently there are no comments, so be the first!