Keep compatible with v0.8.1;
Add more maps;
Fix bug of order UI;
Enhanced Battle Test
A mod for Mount&Blade Bannerlord that can test battle locally.
- Test Battle Mode: You can choose where to spawn troops and they will be all spawned instantly.
- Custom Battle Mode: Use built-in mechanism to spawn troops. Troops that exceeds the battle size limit will be spawned later.
- Map selection. Including sergeant maps, skirmish maps, tdm map, etc. However, I removed siege maps because they are buggy. Custom battle mode contains sergeant maps only, because only sergeant maps contains corrrect spawning positions that custom battle mode requires. If you want more maps, you can edit the config file yourself, details below.
- Character selection. You can specify at most three types of troops for each team. Also you can select perks that is consistent with those in Multiplayer mode.
- Configuration saving. The battle configuration is saved in "(user directory)\Documents\Mount and Blade II Bannerlord\Configs\EnhancedBattleTest\". The configuration for Test Battle mode is saved in "EnhancedTestBattleConfig.xml" and that for Custom Battle mode is saved in "EnhancedCustomBattleConfig.xml". You can modify it to add more maps, but if you edit it incorrectly, the configuration will be reset to default, or the game may crash. I don't guarantee anything.
- Switching player's team. You can switch between player agent and the enemy commander to control their troops respectively.
- Controlling your bots after dead.
- Switching free camera.
- Undead mode. Any agent will not die after switched on.
- Adjusting combat AI between 0 and 100.
- Customizing player characters, details below.
How to install
Copy `bin` and `Modules` into Bannerlord installation folder(For example `C:\Program Files\Steam\steamapps\common\Mount & Blade II Bannerlord - Beta`).
How to use
- Start the mod by clicking `EnhancedBattleTest.bat` in `bin\Win64_Shipping_Client` that you have copied into Bannerlord installation folder.
- You can select troops for each side of teams.
- Press and hold `TAB` key for a while to exit the battle scene.
- Press `numpad5` key to switch your team.
- Press `numpad6` key to switch between free camera and main agent camera.
- Press `numpad7` to disable dying.
- Press `f` key or `numpad6` key to control one of your troops after you being killed.
- Press `L` key to teleport player when in free camera mode.
How to add more maps
- You can go to `Modules\Native\SceneObj` to find available maps.
- To add more maps, you need to edit the configuartion file(in folder "(user directory)\Documents\Mount and Blade II Bannerlord\Configs\EnhancedBattleTest\").
- The maps available in mod are under the xml element `sceneList`.
The element `SceneInfo` represents a map and related config.
So you need to add a `SceneInfo` element as a child of `sceneList`, just like the other maps.
For example you can copy the text from `<SceneInfo>` to `</SceneInfo>`, then replace the text between `<name>` and `</name>` with the folder name of the map you want to add.
The other config like formation positions can be configured in the game.
How to customize characters
Build from source:
The source code is located in the `source` folder.
- install .net core sdk.
- modify 6th line of `EnhancedBattleTest.csproj`, change `Mb2Bin` property to your bannerlord installation location.
- open a termial (powershell or cmd), run `dotnet msbuild -t:install`. This step will build `EnhancedBattleTest.dll` and copy it to `bin\Win64_Shipping_Client`.
Contact with me:
Please mail to: email@example.com
This mod is originated from mod "Battle Test" written by Modbed. Way to contact him:
- TaleWorlds forum: modbed
- youtube: modbed
- bilibili: modbed帅
- website: modbed.cn