Best Practices
Getting Started with XML Editor
Module Bannerlord consists of different modules, which give it different functionality. You can think of them as game mods. This approach allows players to easily mod the game. The modules are inside the Mount & Blade II Bannerlord installation folder, called Modules. XML XML stands for Extensible Markup Language, which allows the storage of data related to the game. If we want to add some data to a Module, we would create an XML document within it, or add it to an existing XML document.
Merging Module XML Files with Native
With Bannerlord v1.3, we have implemented an XML merging algorithm that assists in merging XML files defined in other modules’ module data without using XSLT. We can add new elements to the XMLs or change some attributes during merging, using their unique attributes and other information gathered from XSDs. Follow these steps to enable the merging algorithm: Create an XML file that needs to be merged with the base game Add new elements with the content of the mod; they will be added to the appropriate places in the final merged XML file that is going to be used by the game Change elements that are already present in the base game In the engine, merging of native and other modules’ data is done in two ways.
Scene Performance Guide
Performance Requirements of Mount & Blade II: Bannerlord Singleplayer Scenes: Very High Config / 60 FPS / Gtx 1060. Multiplayer Scenes: Very High Config / 60 FPS / Gtx 970. Do not test the final performance of your scene in the Scene Editor. Editor has low performance due to being editable at runtime. Also, you should check the final performance with the agents in the mission. Possible Performance Bottlenecks Missing occluders Occluders are physical objects that define occlusion boundaries for meshes.
Sealed Class Extension
It has been brought to our attention that a workaround to extend sealed classes is requested by some of our modders. In this article we will be exploring why there are sealed classes in the game codes and how to achieve extended behavior for them. One of the main reasons we have made fundamental classes sealed is to allow the codebase to support a broad range of mods that can operate simultaneously as best as possible.
XSLT Usage Tutorial
We use XSLT files to remove or modify the elements of XML files that are loaded from other modules. You don’t have to use the XSLT system for adding new elements to the XML files. You simply create an XSLT file with the same name as the XML file and place it to the same path with your XML file. This added XSLT file is going to make the changes to the XML files of the same type located in modules that were loaded before your module.
