Mount & Blade II: Bannerlord
0 of 0

File information

Last updated

Original upload

Created by

Slashas

Uploaded by

Slashas

Virus scan

Safe to use

About this mod

This is an example mod for modders who need to edit xml files that are not present in the SubModule file.

Permissions and credits
This is an example on how to mod xml files that is not listed in any SubModule file, like item_holsters.xml, native_parameters.xml and so on.
What it does is increase the multiplier for infantry moving speed to ludicrous speed (just to show that it works).

These files are listed in the file "project.mbproj" that is present in all the official modules. For ease just copy the one from Native/ModuleData as it has the most files unrepresented in its SubModule file.

Copy this file into your mods ModuleData folder.

What you need to do here is to edit the file using Notepad++ or similar software.

In the file you are trying to mod do the following:


I suggest you copy and rename the file you are trying to edit for maximum compatibility. For example Native_parameters to Native_parameters_mod.

Next edit the file and delete all the rows you won't use! This way your mod won't overwrite all the lines in the original file but just the part
you want to mod. This will make it possible to have several mods
editing the same file, but not overwrite eachother (Unless you edit the
same parts of course).

In the project.mbproj file do the following:

Edit the line "<XMLDirectory>..\WOTS\Modules\Native\</XMLDirectory>" to "<XMLDirectory>..\WOTS\Modules\YOURMODHERE\</XMLDirectory>".
Remove all Rows with <file that dosen't correspond to your file.
Edit the filename in the "name" parameter to match the  name of your file (example Native_parameters.xml to Native_parameters_mod.xml)
Save the file!

Remember to create you SubModule file as well. Here is an example you can use. Just change Name value and Id value to match your module folder

<Module>
  <Name value="Examplemod"/>
  <Id value="Examplemod"/>
  <Version value="v1.0.0"/>
  <SingleplayerModule value="true"/>
  <MultiplayerModule value="false"/>
  <DependedModules>
    <DependedModule Id="Native" />
    <DependedModule Id="SandBoxCore" />
    <DependedModule Id="Sandbox" />
    <DependedModule Id="StoryMode" />
  </DependedModules>
  <SubModules>
  </SubModules>
  <Xmls>
  </Xmls>
</Module>