Mount & Blade II: Bannerlord

Mount & Blade II: Bannerlord

205 ratings
Troop Sorting 1.2.12
2
2
   
Award
Favorite
Favorited
Unfavorite
Type: UI
Setting: Medieval
Game Mode: Singleplayer
Compatible Version: v1.2.12
File Size
Posted
Updated
950.836 KB
9 Nov, 2022 @ 9:23pm
2 Dec, 2024 @ 3:53am
36 Change Notes ( view )

Subscribe to download
Troop Sorting 1.2.12

Description
This mod vill be always compatible with Beta releases. There is another mod Troop Sorting Core which will be compatible with latest taleworlds version.

If you think my mod cause any crash, please change ShowExceptionInfo to true in config file. In case my mod throws exception it will be prompted in windows message box. Put focus into that box and press ctrl + c. This will copy whole text from messagebox into clip. Past it later in bug description or in post. Thank you for your help!

Mod supports configuration merge between mod versions support. One config for each used version. If no previous configs are availed the mod will create default one. Support for one previous version only.

This mode auto sorts troops and prisoners in "PartyView" which includes:
Party view
Give tropps view
Garnison view
Clan view
Character
Crafting (Smelting, Craftring, Refinement)
Selecting Governor (new sort order works only for selecting governor from clan view => fief tab, shortcuts 1-8, uses sort description from config file)
Change party leader
Change caravan leader
Change workshop type
Creating parties
Choose party roles

In party overview there is now total count of different troops added:
Hero count "Hrs"
Mounted count "Mnd"
Ranged mounted count "Rng Mnd"
Infantry count "Inf"
Ranged count "Rng"

For Party view sort is done on loading view. After that resort can be done by holding "ctrl" and "s" buttons (ctrl + s).
To change to predefined sort orders (1-9) press "ctrl" + "1-9" (ex ctrl + 1).
Chosen sort order must be defined in config and enabled.
Chosen sort order will be saved as default and can be reused by pressing "ctrl" and "s"

For Selecting Governor last sort order is saved in default. Use 1-8 buttons to choose different predefined sorts.

While choosing governor from clan view, you can uses buttons 1-4 to choose different predefined sort orders.

Sorting can be configured in configuration.xml in mod folder. Supported order terms are:
"MainHero" (1, 0)
"Hero" (1, 0)
"LevelDesc " (9-1)
"LevelAsc" (1-9)
TroopTierAsc (1-9)
TroopTierDesc (9-1)
"Mounted" (1, 0)
"MountedArchers" (1,0)
"Ranged" (1, 0)
"Infantry" (1, 0)
"OwnCulture" (1, 0)
"CultureNameDesc" (Z-a)
"CultureNameAsc" (a-Z)
"NameDesc" (Z-a)
"NameAsc" (a-Z)
"Spouse" (1, 0)
"Children" (1, 0)
"Siblings" (1, 0)
"CloseFamily" (1, 0) (slibings, children, spouse)
"Family" (1, 0)
"Grandchildren" (1, 0)
"Male" (1, 0)
"Female" (1, 0)
"AgeAsc" (a-Z)
"AgeDesc" (Z-a)
"CaravanLeader" (1, 0)
"PartyLeader" (1, 0)
"Companion" (1, 0)
TroopCountAsc (1-xxxx)
TroopCountDesc (xxxx-1)
SortByUnspentDeveloperPointsAsc (1-xxxx)
SortByUnspentDeveloperPointsDesc (xxxx-1)
SortByUnasignedPerks (1, 0)
SortBySelectedCityCulture (Change cities governor)
SortBySelectedCityProduction (Change workshop type)
OneHandedAsc
OneHandedDesc
TwoHandedAsc
TwoHandedDesc
PolearmAsc
PolearmDesc
BowAsc, BowDesc
CrossbowAsc, CrossbowDesc
ThrowingAsc, ThrowingDesc
RidingAsc, RidingDesc
AthleticsAsc, AthleticsDesc
SmithingAsc, SmithingDesc
ScoutingAsc, ScoutingDesc
TacticsAsc, TacticsDesc
RogueryAsc, RogueryDesc
CharmAsc, CharmDesc
LeadershipAsc, LeadershipDesc
TradeAsc, TradeDesc
StewardAsc, StewardDesc
MedicineAsc, MedicineDesc
EngineeringAsc, EngineeringDesc
NotFamily
"SkillLevel"
Skill level types Asc and Desc
SortByPerkCountAsc (ex: "SortByPerkCountAsc(ValidPerkName, ValidPerkName)")
SortByPerkCountDesc (ex: "SortByPerkCountAsc(ValidPerkName, ValidPerkName)")
Perks
Spoiler: Show
For companion view mod render beside hero name:
L: Hero level
"-Ca-" if hero leads caravan
"-P-" if hero leads party
"-MP-" if hero is in main party

For family view mod renders beside hero name:
A: Hero age
L: Hero level
"-C-" for child
"-Gc-" for grandchild
"-S-" for spouse

You can combine any sort order you wish, separating supported terms with ";".

To get default sortorders please save your current config copy file in other location then mods. Then remove current and previous versions config files (if you remove just current versions config file, the merge of previous and defaults will be made).

For example if you want to just change the order of tier troops , making less experiance be placed higher and keeping all other things as default, then you can change "TroopTierDesc" to "TroopTierAsc"

Or if you don't want to have your own culture troops at top you can just remove "OwnCulture;" from the string (Dont forget to remove ";" so you dont end up with multiple ";" next to each other): "MainHero;Hero;TroopTierDesc;Mounted;Ranged;Infantry;CultureNameAsc;TroopNameAsc"

To not sort heros in party view set TroopSortSkipHeros to "true".

To disable any sorting type changed "enabled" attribute to "false".

To hide hero extra information change "true" to "false" for "ShowDetailInformation".

Any changes to config file will result in reload of game configuration.

Planned future changes:
Should I allow accessing inventory for ALL heros / companions (ex: not in party, dead, in prison and so on) ?
Waiting for any tips.

If you like this mod check my mode for banking, meeting lords, visiting own fiefs, insuring caravans and fiefs, supporting rebellions here: SimpleBank.


Nexus page:
https://www.nexusmods.com/mountandblade2bannerlord/mods/3596
Popular Discussions View All (1)
2
4 Dec, 2022 @ 5:31am
Does not work
iRipper
79 Comments
Tom The Terrible 10 May @ 11:11am 
Does this allow me to have the Warband style troop assignment method?
Or is it the new method where they're assigned to a unit via equipment?
Snah79  [author] 9 Jan @ 10:18pm 
Config should be created only once. If we get new version of mod and there are config changes then it will create new config.
Catcher 9 Jan @ 12:57pm 
Probably missing something on my end but how do I stop the config file from resetting to default whenever I open the game?
someone 26 Sep, 2024 @ 6:49pm 
I hope there is some folders like "infantry" , "cavalry", "companion"....
Tom The Terrible 16 May, 2024 @ 4:15pm 
Man, I only need the fucking old Troop Sorting system back.
This is great, but a shame that there needs to be a fix for a retarded problem like this.
Just need the old system back.
Snah79  [author] 25 Nov, 2023 @ 2:05am 
Otherwise you can find all old version on nexus forum.
Snah79  [author] 25 Nov, 2023 @ 2:05am 
Make sure you use latest beta (check if all Taleworlds modules in modlist have version 1.2.5). Click properties and verify integrity of files.
If you run on 1.1.6 then use the other Troopsort mod on steam, which is for main patch.
mongoose 24 Nov, 2023 @ 9:26am 
this crashes my game
Snah79  [author] 24 Nov, 2023 @ 2:04am 
Update for beta 1.2.5 is now released
Snah79  [author] 16 Sep, 2023 @ 3:06am 
Thanks for pointing that out :D