Mount & Blade II: Bannerlord

File information

Last updated

Original upload

Created by


Uploaded by


Virus scan

Safe to use

About this mod

This mods will report a detailed error.
New feature: Attempt to continue, screenshot and save game attachments, memory dumper.

Permissions and credits
  • Japanese
This mods will report a detailed error.
Instead of infinite loading/freezing or any weird behaviour, the game should throws an error window so you can identify the cause. You can also save the error logs as well.

Make sure to unblock the all of DLLs before playing (Newtonsoft.Json.dll, BetterExecptionWindow.dll, DotNetZip.dll, BetterExceptionWindowConfigUI.dll)

Source code:

Your load order should be like this. A Harmony library must be installed for Bannerlord version 1.5.9+ and up to maintain compatibility with new mods. Harmony must be placed first, then BEW, and so on....


Harmony is now MANDATORY, install it here: Harmony

Q: Why is this mod never gets updated?
A: Because the core engine/library remain the same. If this mod breaks, I'm sure other mods break too, because that means core engine functionality has been changed.

Emergency save only works if the game crashed:
- not related to party/item error or corruption (this may lead to save corruption or broken save)
- must be in the campaign (not in the battle)

It's compatible with latest Butterlib ;)
What's new:
Version 7.1.1
- ONLY COMPATIBLE WITH v1.2.0 only! (otherwise you will get hard crash)
- Completed japanese localisation (Thank you S-Katagiri!)
- Bugfix on attach dnspy due to missing module (it was dedicated server module that no longer exists in Modules directory)

Version 7.1
- ONLY COMPATIBLE WITH v1.2.0 only! (otherwise you will get hard crash
implemented localisation template, it should now possible to localise the program text 
Restored broken emergency save system
Toned down the annoying windows message box prompt
It is recommended to restart the game after you have launched the game with this mod updated and enabled. 

Version 7.0
- ONLY COMPATIBLE WITH v1.2.0 only! (otherwise you will get hard crash)
Implemented native crash handler, i.e if the a C++ program inside the game engine crashed at least you know what went wrong, mileage may vary.
You can also attempt to continue the game engine execution in better exception window, but be warned that this could cause more memory corruption problems. 
It is recommended to restart the game after you have launched the game with this mod updated and enabled. 

Version 6.5
- ONLY COMPATIBLE WITH v1.1.0 only! (otherwise you will get hard crash)
Fixed crash on Bannerlord version 1.1+
Fixed broken console output
Removed prompt on game start up
Automatically download exception definitions (solutions.json) on game start up

Version 6.3 Major update
- ONLY COMPATIBLE WITH v1.1.0 only! (otherwise you will get hard crash)
Fixed crash on Beta branch
Minor feature:
Download exception explanations automatically on boot up (pulls data from

Version 6.2
- Screenshot didn't appear in saved generated .htm file, it should now.
- Save games cannot be downloaded in generated .htm file, it should working now.
I'm sorry if these two feature didn't work as expected in previous version. Nobody was reporting this bug until a user PM'd about this on discord.
- XML validator now runs faster because it doesn't need to display valid xml files in error window
- added more compatibility with butterlib
- added confirmation prompt if the user wants to discard the error report and an attachment was attached to it.
- added more exception handler on native to managed interfaces

Version 6.1
- Now the exception handler should handle native code to managed code transitions. Keep in mind it still can't catch exception that occurs purely in native code. If you're experiencing slowdown, it can be disabled via config.json or MCM control panel, let me know if this happens often.
- Improved MCM control panel UI (optional for those running with MCM and Butterlib, BEW can run without these)

v.6.0.0 Major update:
New features:
- "Attempt to continue" button now works at it says. The game will try to continue, but be warned there's possibility of unwanted side effects.
- Screenshot and save game attachments buttons, now you can attach a screenshot and save game to help mod developers. The save game can be extracted by opening the error report into browser and then clicking on Download save button on "Troubleshoot" section.
- Memory dumper, dump stack or heap memory of the game so it can be analysed later using windbg or visual studio
- Show butterlib exception (if you're running with butterlib)
- Dnspy now decompiles every DLL in modules and steam workshop directory.

- put a check if user has ever installed mods from steam workshop. if steam workshop folder doesn't exist, don't parse the folder. 

- bugfix from this report

v.5.0.0  Major update:
In version 5.0.0, I made tough decision to stop providing support or updates for Bannerlord early access version, switching versions is not fun. From now on, BEW only supports Bannerlord v1.0.0 or later.
Also if you're using older version of MCM, you can't see the BEW control panel anymore (BEW doesn't need MCMv5 but some of debugger feature can be accessed via MCMv5). If you're running e1.9.0, you can still use this version of BEW.

- Dnspy now should attach properly (proper callstack, proper exception message in Dnspy window) after the game has been restarted by BEW and with butterlib enabled
- A previous bug where BEW always to be enabled even it's under debugger

New features:
- You can attach Dnspy through BEW control panel via MCMv5 (and it'll automatically loads all Taleworlds dlls into Dnspy window)
- You can install Dnspy directly via MCMv5 control panel.

- Updated for Bannerlord e1.9.0 (do not install for older version, it will crash!)
Steam fix
- fix bugs from this report:

- Updated for Bannerlord e1.9.0 (do not install for older version, it will crash!)
Steam fix

- Uses ModuleHelper.GetModuleFullPath("BetterExceptionWindow") to pull resource path instead for steam workshop compatibility 
- Updated for Bannerlord e1.9.0 (do not install for older version, it will crash!)

- fixed dnspy installer SSL error for some windows machine
- fixed occasional empty log bug
- added scroll to the top button tucked in the corner

known issue: if you're using butterlib, when the game is being debugged on dnspy, butterlib window may pop up and messed the callstack, me and aragas is working on this.

-ONLY COMPATIBLE WITH 1.8.0 only! (otherwise you will get hard crash)

- fixed patching issues
- fixed emergency save game function for 1.8.0
- implemented dedicated console window for console.writeline output and game debug output

-backport from v4.1 to maintain compatibility with 1.7.1 (DO NOT INSTALL except this game version)

-ONLY COMPATIBLE WITH 1.7.2+ (otherwise you will get hard crash)

-minor patch for butterlib detection

-ONLY COMPATIBLE WITH 1.7.2+(otherwise you will get hard crash)

-option to disable Butterlib exception
-bugfix in MCM dependency detection <- was causing crash

v4.0  Major update:
-ONLY COMPATIBLE WITH 1.7.2+  (otherwise you will get hard crash)

- Screen.Tick was moved to ScreenManager.Tick <- this was crashing the game before
- MCM UI support (optional)

-ONLY COMPATIBLE WITH 1.7.0+ (otherwise you will get hard crash)
-UI bugfixes, in version 3.3.0, user can't open "Harmony Patches","Installed mods", and "Loaded DLLs" section in exported HTML report
-fixed a typo : attched -> attached

v3.3 Major update:
- ONLY COMPATIBLE WITH 1.7.0+ (otherwise you will get hard crash upon start)
- UNBLOCK DotNetZip.dll in Win64_Shipping_Client
- implemented integrated dnspy debugger tool
- small UI revamp
- emergency save bugfix because underlying API changes, it's now working as usual

v3.1 Major update:
- ONLY COMPATIBLE WITH 1.6.5 onward!
- implemented harmony debugger
- implemented game engine log display
- bugfix in emergency save system
- replace old APIs with new ones

- removed internal Harmony library.

- the module inspector should only shows loaded DLL in Submodule section
- improved error parsing for detecting faulty module
- restored ctrl+c and ctrl+v in iexplorer window
- restored html export instead PDF or print

- added bugcheck for main program loop, so this should catch any related .Net runtime error in the game
- UI bugfixes
- prevented mod disabler to disable any Native modules

- Implemented more loop checks for Bannerlord version e1.5+
- Implemented Emergency saves (only works in campaigns)
- Implemented XML linter to checks for XML errors and typos
- Implemented auto mods disablers in a single click
- Implemented mods inspector (see their dependencies, which mods were the cause of the crash)

- shows loaded game dlls (mods dlls, taleworlds dlls, except system dlls such as mscorlibs)

- Removed a taleworlds view dll from the project

- Compliance with Community Patch module.   
- Source code refactor.  
- Catch inner exception.   
- Triggers on ScreenManager, Mission, MissionView, and Module loop