Mount & Blade II: Bannerlord

Mount & Blade II: Bannerlord

156 ratings
Troop Sorting 1.2.11
2
   
Award
Favorite
Favorited
Unfavorite
Type: UI
Setting: Medieval
Game Mode: Singleplayer
Tags: v1.2.11
File Size
Posted
Updated
937.749 KB
9 Nov, 2022 @ 9:23pm
9 Aug @ 12:25pm
35 Change Notes ( view )

Subscribe to download
Troop Sorting 1.2.11

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
75 Comments
Tom The Terrible 16 May @ 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.
Birke_Vandel  [author] 25 Nov, 2023 @ 2:05am 
Otherwise you can find all old version on nexus forum.
Birke_Vandel  [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
Birke_Vandel  [author] 24 Nov, 2023 @ 2:04am 
Update for beta 1.2.5 is now released
Birke_Vandel  [author] 16 Sep, 2023 @ 3:06am 
Thanks for pointing that out :D
Ictiv 16 Sep, 2023 @ 2:51am 
Just a heads up, but the url at the bottom of the description points to a page that is off limits to anyone except you, as it is the editing url of your mod page.
The correct URL is: https://www.nexusmods.com/mountandblade2bannerlord/mods/3596
Birke_Vandel  [author] 12 Jul, 2023 @ 6:23am 
Otherwise you can get any version you want from Nexus. Unfortunately workshop doesnt have version handling :(
Birke_Vandel  [author] 12 Jul, 2023 @ 6:22am 
I have 2 mods on workshop (same name, different suffix). You should have version number by its name. This one will always be updated to latest path, the other one will be version before.
Maofead 12 Jul, 2023 @ 4:49am 
Thanks for the answer. It turned out that for some inexplicable reason I was using version 1.2.0 and I should be using 1.1.5 and now I don't have a problem.
I've been using your mod for many months now and it's a must-have for me in my mod kit.