0 of 0

File information

Last updated

Original upload

Created by

Cach

Uploaded by

cachx

Virus scan

Safe to use

Tags for this mod

About this mod

Load a text file to add multiple troops to your army with a single command line.

Requirements
Permissions and credits
Changelogs
What is this Mod?

'GiveMeArmy' adds a new command line to the developer console that reads a user-written text file to import troops into your army many at a time instead of doing it one by one. This file may be written by hand or generated by a web mini-app (included).
The mini-app includes the following factions:
  • Imperial
  • Sturgia
  • Vlandia
  • Battania
  • Khuzait
  • Aserai
  • Mercenaries and other small groups
  • Bandits
That's a grand total of 272 units that appear under the 'Troops' section of the in-game encyclopedia. (some others might exist).

Requirements

Please download and install the DEVELOPER CONSOLE.
Webapp has been tested on Chrome, Brave and Mozilla browsers. IE and Edge are currently not supported.

Installation & Usage

- Extract the 'GiveMeArmy' folder in the 'Mount & Blade II Bannerlord\Modules' folder.

- You need a text file with your troop information to be imported into the game, there are 2 options:
Use the app, located inside the 'webapp' folder, and open 'OPENTHIS.html' in your favorite browser, it should be straightforward from there.
OR
Create a .txt file by hand, indicating the unit's ID and the number you want. The format is simple. For example:


This will add 4 Imperial Recruits and 6 Sturgian Recruits into your army. Just remember to not have unnecessary spaces or empty lines and you should be ok. 

- Name this file 'mynewtroops.txt' and copy it inside Bannerlord's MyDocuments folder, by default: 
'C:\Users\<yourname>\Documents\Mount and Blade II Bannerlord'.

- Start the game and open the developer console.

- Enable cheats using 'config.cheat_mode 1'.

- Write in 'campaign.give_me_army', it should tell you if everything went ok or if problems were found.

- Take note that army changes don't reflect immediately, so you might need to refresh your party window to see the new units. Also take note that you can change the text file without the need to turn the game off.

FAQ

Why didn't you make a UI in the game instead of command lines and text files?
Because I'm dumb. Couldn't even figure out how to make a button.

When will <faction name> be added to the webapp?
When I get to it. Shouldn't take very long.

I want to write the txt myself, but I don't know the unit's ID. What do I do?
Search within these files:
Mount & Blade II Bannerlord\Modules\SandBoxCore\ModuleData\spcultures.xml
Mount & Blade II Bannerlord\Modules\SandBoxCore\ModuleData\spnpccharactertemplates.xml
Mount & Blade II Bannerlord\Modules\SandBoxCore\ModuleData\spnpccharacters.xml
Mount & Blade II Bannerlord\Modules\SandBox\ModuleData\spspecialcharacters.xml
Mount & Blade II Bannerlord\Modules\StoryMode\ModuleData\storymode_characters.xml

What's with the units marked with (!) ?
Those are units that don't belong in any Tier, and in some cases behave as companions, but I added them anyway for completeness sake.