Mount & Blade II: Bannerlord
0 of 0

File information

Last updated

Original upload

Created by


Uploaded by


Virus scan

Safe to use

About this mod

AutoBlocker allows players to choose from a variety of block styles for both their weapon and shield.

Permissions and credits
  • Turkish
Consider supporting me on Patreon!
Any support, big or small, is truly appreciated and allows me to continue making/updating mods!

Weapon Block Styles:
  • Off - Uses Bannerlord's blocking settings.
  • Constant - Automatically blocks incoming attacks whenever you aren't attacking.
  • Hold - Holding the block button will automatically defend against incoming attacks.
  • Drag - Defends in the direction your mouse moves while holding the block button. Sensitivity settings are available
which allow you to adjust how much you need to move the mouse in order for the block direction to change.
  • Move - Holding block and moving in any direction, will cause your character to block in that direction without having to click (i.e., forward = up,
back = down, left = left, right = right -- in priority order).
  • OnClick(Warband) - Emulates the automatic blocking from Warband. Blocks in the direction your immediate enemy is attacking from whenever
you click the block button. When no enemies are present, blocks are always down.

Shield Block Styles:
  • Off - Uses Bannerlord's blocking settings.
  • Default - Uses current Weapon Block Style behaviour.
  • Always Blocking Down - Forces the shield to always block down.
  • Block Down When No Focus Enemy - Always blocks down when when there aren't any immediate threats. When an enemy is nearby, uses standard Bannerlord block behaviour.

AutoBlocker 1.0.0 Release!

AutoBlocker 1.0.1 Changelog:
  • Fixed arena/tournament bug
  • Fixed bug where player would slightly lose control of horse when trying to block
  • Improved block accuracy
  • Update SubModule.xml to correct mod load order
  • Tweaked how blocks are handled against multiple enemies(Made it so the closest enemy to you gets blocked. Let me know how it feels.)
  • Shortened enemy search distance, so you wouldn't be blocking against an enemy fighting someone else across the map
  • Fixed bug where if you looked too far down or too far up, you'd stop being able to block
  • Toned down the number of 'necessaryMovementFlagSpam' calls to improve performance

AutoBlocker 1.0.2 Changelog:
  • Fixed bug with tournaments where the list of agents to block wasn't being generated
  • Removed unused dll's from the mod files(Hopefully this helps with performance. Big thanks to brandonm37211 for the help with that)

AutoBlocker 1.0.3 Changelog:
  • Fixed issue where enemy agents weren't being assigned as block targets. This was causing many of the issues in the arena/tournament/settlement fights/mission fights
  • Improved performance drastically by changing how player blocking is handled, and how the enemy radar works
  • Added several requested blocking options, which I call BlockStyles. Descriptions of each one at the top of this page
  • Added option in the main menu to swap between different BlockStyles. Option saved and loaded on game start. Enjoy
  • Fixed issue where player would lose all/partial control of their horse when blocking enemies
  • Shortened the search range for enemies, which should improve performance
  • Improved blocking vs multiple enemies. Will target the agent you're actively looking at, or the nearest enemy
  • Shortened distance to where AutoBlocker would take over. This should give you more control over blocking/shieldwork, until you actually need AutoBlocker
  • Modified SubModule.xml to hopefully reduce the frequency of crashes

AutoBlocker 1.0.4 Changelog:
  • Found and fixed several instances where unmanaged memory was wasn't being disposed of(This has fixed the memory leak issue, and your cpu's shouldn't blow up anymore :D)
  • Added new BlockStyle 'ConstantMove', See info above
  • Added controller support
  • Changed BlockStyle 'OnClick' to no longer allow you to spam block. Spamming it will only keep you stuck in your current block longer, and will likely lead to you getting hit
  • Changed the way blockStyle 'ConstantDrag' works, to be more efficient performance wise, and later allowing for players to change on sensitive it is
  • Moved enemy finding logic into a timer, rather than being in the application tick. This should improve performance quite a bit
  • The blocking logic now only initiates once you've started blocking, instead of whenever your character is active. This should also improve performance
  • Spent a few hours playing with the mod, and fixing any crashes that popped up(There were a lot of them...)
  • Fixed issue where 'IsPlayerAlreadyBlockingEnemyAttack' was giving a false positive. This would cause the player to lower their weapon/not block, allowing them to be hit

AutoBlocker 1.0.5 Changelog:
  • Added new options menu
  • Made minor changes to blocking logic, to improve efficiency

AutoBlocker 1.0.6 Changelog:
  • Updated options menu
  • Added options for when blocking with shield(Default, Always Blocking Down, Block Down When No Focus Enemy)
  • Added option for ignoring shield when using AutoBlocker
  • Made major improvements to autoblocking vs multiple enemies(You will still get hit if several enemies swing at once, in different directions)
  • Fixed OnClick(Warband) BlockStyle. Should now work as intended
  • Refactored code to pump out even more performance
  • Changed how AutoBlocker options are saved, so future additions aren't so cumbersome to add
  • Player can now look away from enemies to regain control of their blocking. Useful for when you're in a fight, but also need to block incoming arrows

AutoBlocker 1.0.7 Changelog:
  • Shield options no longer disappear when you turn AutoBlocker off for weapons. That way, for those of you who just want the shield to block down automatically, but don't want any of the other AutoBlocker functionality, you have it
  • Completely refactored AutoBlocker's code(Should improve performance a bit)
  • AutoBlocker code no longer obfuscated(For those of you who've wanted to take a look at how it was made)

AutoBlocker 1.0.8 Changelog:
  • Updated AutoBlocker to work with Bannerlord Version e1.5.7
  • Complete rework of AutoBlocker code
  • Fixed any and all memory leaks
  • Major performance improvements
  • Implemented full controller support
  • OnClick(Warband) now works more like the original Warband autoblock

AutoBlocker 1.0.9 Changelog:
  • Updated AutoBlocker to work with Bannerlord Version e1.5.8
  • General code refactoring
  • Fixed crashes
  • Now using harmony Postfix for longevity
  • Potential fix for blocking issue when defending while prepping bow/javeline

Important Note On Game Crashing/Not Loading When Starting Up:
If you are having troubles with the game crashing on startup, there have been several reports that installing AutoBlocker with Vortex solves it. Also, try to make sure there are no other mods conflicting with AutoBlocker(Although, there isn't much to conflict with..). In addition to that, you can try modifying AutoBlocker's SubModule.xml file and remove <Official value="false"/>. Besides that, please make sure to go into Autoblocker>bin>win64_shipping_client, right click AutoBlocker.dll, click on properties, check the unblock box, then hit apply. As always, please post any bugs you encounter, and that includes crashes/stuttering/freezing/etc.

If all else fails, and your game still won't load with AutoBlocker installed, please go to your [ProgramData\Mount and Blade II Bannerlord\crashes\], select the most recent crash(Should show the version in the crash report, just before you'd send it to TaleWorlds) and copy/paste the contents of stack.txt into a bug report. FYI -- The ProgramData folder is normally hidden(Open FileExplorer, click the 'view' button in the upper left, then check the 'Hidden Items' button).

If you have any questions, feel free to send me a message on NexusMods, TaleWorlds forums, or the Bannerlord Modding Discord @Menthus. Thank you!