Mount & Blade II: Bannerlord

File information

Last updated

Original upload

Created by

Terpterp

Uploaded by

Terpterp

Virus scan

Some manually verified files

About this mod

This mod let's you see how much ammo (including arrows, bolts, javelins, etc) your army has. It adds a UI counter in the bottom left showing how many arrows your army has remaining out of the total (excluding player ammo). With this added quality of life, you can better assess when your army is out of arrows and needs a change in tactics!

Requirements
Permissions and credits
Translations
  • Turkish
Changelogs
Army Arrow Counter

This is a small, quality of life, open-source mod that gives you insight into the amount of ammunition remaining in your army. If you were the commander in a real medieval battle, you'd be able to ask your sergeants about the ammo status, but alas, Bannerlord has no such functionality. This is the next best thing to try and provide the player with crucial information they need to make the best tactical decisions!

Quick Info on Functionality:
  • Counts all ranged ammunition i.e. arrows, bolts, javelins, throwing axes, etc.
  • Upon entering a battle, counts the arrows of all allied troops. Subtracts arrows whenever your allies fire them, and subtracts/adds in bulk as soldiers die / are deployed in phases.
  • Soldiers being added or dying will effect the max arrows as well i.e. the displayed X / Y stat is for the alive and fighting troops in your army.

Customization:
  • This mod can be customized!
  • Specifically, the way that the mod tells you how many arrows are remaining is customizable (see images on this page for examples).
  • Inside ArmyArrowCounter/config/config.xml, you can change the text between <CounterType></CounterType> to any of the following options (also found inside the config file as a comment):
  • EXACT_FRACTION: e.g. 1258 / 1721
  • EXACT_PERCENT: e.g. 73%
  • NEAREST_10_PERCENT: e.g. ~70%
  • NEAREST_20_PERCENT: e.g. ~80%
  • NEAREST_25_PERCENT: e.g. ~75%
  • NEAREST_WRITTEN: e.g. "Your army has about three quarters ammunition remaining."
  • EXACT_FRACTION is the default behavior.
  • You can also control the prefix before the counter i.e. the "Army remaining arrows: " part. In the config.xml
    file, between the <Prefix></Prefix> tags, you can change the text to be what you want, including leaving it blank.

Todo List:
  • Count only soldiers under your command (i.e. exclude allied soldiers under AI command).
  • Make the UI element toggleable.
  • Provide in-game Mod Options menu. Would likely require the use of a modding framework, I'm not currently aware of any good options. This will thus be on hold until one comes about.

Q&A:
  • Q: The UI overlaps with another mod's UI!
  • A: You can manually reposition the UI if need be. I won't go in-depth here, but you can edit the file under ArmyArrowCounter/GUI/Prefabs/ArmyArrowCounter.xml to try and reposition this mod's UI elements.

  • Q: I'd like to do make a video/article/post with this mod!
  • A: Feel free! And please send me a link to it, I'd really love to see it myself as well! :)

Installation:
Users have two options:
  • Vortex (mod manager made by Nexus Mods).
  • Steam Workshop (customization not currently supported).


Game Version Compatibility:
  • Current version 1.7.0 is compatible with the game version 1.1.X. See previous mod versions for compatibility with earlier game versions.
  • Please note, that while I historically made some exceptions, I generally do not commit to supporting the beta branch of the game. If the mod is broken on a beta version, your best bet is to wait for it to become the main version and then notifying me if it's still broken. Thanks!
  • Reporting incompatibility issues is highly appreciated! :)

Mod Compatibility:
  • There are currently no known compatibility issues.

Known Issues:
  • While the counter continues after player death in version 1.2.5+, it eventually stops counting. This occurs because (for whatever reason) ally soldiers at some point cease to be considered allies of the player. The fix here is very low-priority, as the counter is not valuable after death anyway, but it may be something I fix in the future.

Source Code:
This mod is open source! The GitHub repository can be found here.