Skip to content
Liam edited this page Apr 15, 2020 · 2 revisions

What is ModLib?

ModLib is a general code library for modders to use when creating mods for the game Mount and Blade Bannerlord.

It provides useful code, a file management system and a generalised settings configuration system and menu.

File Management System

The file management system makes it easy to serialise and deserialise objects to and from .xml files. It provides options for using the mod's ModuleData folder or the game's Configs folder (located in My Documents), with the ability to use one-deep subfolders.

Settings Configuration System and Menu

The settings configuration system and menu is a powerful tool for easily providing settings configuration to a mod's users. The system provides a hands-off approach to saving and loading user settings and the menu automatically populates itself with the properties which have been tagged as Settings.