Mount & Blade II: Bannerlord

Mount & Blade II: Bannerlord

795 ratings
Adonnay's Troop Changer
2
4
2
   
Award
Favorite
Favorited
Unfavorite
Type: Utility
Game Mode: Singleplayer
Compatible Version: v1.2.7
File Size
Posted
Updated
1.000 MB
15 Oct, 2022 @ 6:36am
14 Dec, 2023 @ 11:17pm
16 Change Notes ( view )

Subscribe to download
Adonnay's Troop Changer

Description
ATC - Adonnay's Troop Changer

Requires: Bannerlord 1.2.7 or higher

ALSO: If you had the Nexus version installed, make sure you deinstall/remove it before trying to use the Steam version. The game will always load the Nexus version of the mod first!

What does ATC do?
A: ATC in itself does not do anything. It's a framework, a middleware. ATC enables modders to have their troop trees added to the game without the need to create custom cultures or mess with the native game files. It can also merge multiple troop mods into one allowing for a wide variety of troops in your game.


What it does NOT do?
A: ATC does NOT create troops or troop trees of any kind. You have to bring your own troop tree or download one of the many ATC compatible troop trees.


What does make a troop tree ATC compatible?
A: A single configuration file. You can find a sample file in the ATC /Config subfolder.


Is there a way to check if the mod works?
A: Yes. Apart from the ingame message at the start of the game (ATC loaded successfully) you can check the debug log file that is stored in \ProgramData\Mount & Blade Bannerlord II\ATC and called ATC.debug.log.


My game crashes on startup with only ATC active. Why?
A: First of all make sure you have the correct ATC version for your Bannerlord version!
Then have read a couple of reports that people don't seem to have enough rights to write into the \ProgramData\Mount & Blade Bannerlord II\ folder. I have no idea why but make sure you have. You could also try to manually add the folder \ATC if it is not present. Starting the game as administrator can also help.


Where can I find the configuration file?
A: You can find the configuration file called ATC.settings.xml in \ProgramData\Mount & Blade Bannerlord II\ATC. It contains the following options:
  • EnableModScan - allows ATC to scan active mods for ATC configuration files (all files named *ATC.modconfig.xml)
  • EnableCustomTemplates - Let ATC modify the party templates for newly spawned lords on the fly
  • DebugConfigRead - debug messages when a configuration is called
  • DebugRecruitSpawn - debug messages when a new volunteer is spawned
  • DebugAIRecruiting - debug messages when a volunteer is recruited
  • EliteOnlyInCastleVillages - sets the elite spawn logic to the vanilla logic
  • EliteSpawnChance - only relevant if EliteOnlyInCastleVillages is set to 'false'
  • ElitePowerThreshold - only relevant if EliteOnlyInCastleVillages is set to 'false'
  • EliteSpawnChanceCap - only relevant if EliteOnlyInCastleVillages is set to 'false'
  • RecruitMaxUpgradeTier - volunteers slowly level up when not recruited, this sets the maximum tier to level up to. (4 = vanilla)
  • LevelRecruitsUpToTier - immediately level up the recruits to that tier when they spawn (1 = vanilla/no instant level up)
  • MaxLogSizeInKB - only relevant if you enable any of the debug messages above

DELETE the ATC.settings.xml to revert all settings to their default values. The default values are:
  • <EnableModScan>true</EnableModScan>
  • <EnableCustomTemplates>true</EnableCustomTemplates>
  • <DebugConfigRead>false</DebugConfigRead>
  • <DebugRecruitSpawn>false</DebugRecruitSpawn>
  • <DebugAIRecruiting>false</DebugAIRecruiting>
  • <EliteOnlyInCastleVillages>true</EliteOnlyInCastleVillages>
  • <EliteSpawnChance>5</EliteSpawnChance>
  • <ElitePowerThreshold>200</ElitePowerThreshold>
  • <EliteSpawnChanceCap>20</EliteSpawnChanceCap>
  • <RecruitMaxUpgradeTier>4</RecruitMaxUpgradeTier>
  • <LevelRecruitsUpToTier>1</LevelRecruitsUpToTier>
  • <MaxLogSizeInKB>500</MaxLogSizeInKB>
134 Comments
Ksarkin 5 Jul @ 1:46am 
Игровое сообщество STURGIA ищет новых игроков.
Наш основной проект - Bannerlord online. Сотни игроков на глобальной карте, отряды НПС, боссы, клановые войны, рейды и битвы за ресурсы. Одним словом ванильный банерлорд, только в онлайне, все лорды - игроки, а одновременный онлайн достигает 400 человек.
Наш дискорд: {LINK REMOVED}
slctd_chrctr 23 May @ 6:56am 
Alright thanks for the quick reply !
Adonnay  [author] 23 May @ 6:36am 
Hi there. No, the message ".. is not configured as base troop" will not cause a crash.
slctd_chrctr 23 May @ 5:53am 
Hey, I have a stubborn "MapEvents" crash with "Object reference not set to an instance of an object." . My issue is a custom troop not playing nice (wrong ID or something).

I use ATC with True Armies of Calradia [www.nexusmods.com] .

I've disabled all my mods one by one, except these two mods, so one of them is causing the crash.

I checked into ATC.debug.log file and found several "warning" lines such "WARNING: TAC_Khuzait_Levy_Spear_01_T1 is not configured as base troop (is_basic_troop = true)!". Not sure how to interpret this, would this normally cause a crash ? Because It looks more like a "warning" than an actual "error" .

I checked True Armies troop files but didn't find any "is_basic_troop = true/fasle" line to tweak, so I'm kinda lost right now.

Just asking to get as much infos as possible, I've also tried reaching the other author.
Zappy The Floof 16 May @ 4:42pm 
Do mods that use ATC need be to be loaded after it? Been having crashing issues when Dark Force Rising does a call to ATC to change what units are available at a location
KcirtapYmer 7 May @ 12:08am 
@ I Go2 A ConfuCiuS Name you can recruit them in Battanians towns and villages after a while. You need to wait a bit that this new troops come.
I Go2 A ConfuCiuS Name 6 May @ 8:54pm 
sorry for the potentially stupid question but how exactly does one go on to recruit their custom troops once they've been loaded in using your mod?
KcirtapYmer 3 May @ 3:54am 
No problem for me with this mod i always play with it like this morning. And i have maybe 20 more mods with it.
For me one of the Best mods i use.
Adonnay  [author] 3 May @ 1:08am 
Did you check everything that I stated in the description?
"Then have read a couple of reports that people don't seem to have enough rights to write into the \ProgramData\Mount & Blade Bannerlord II\ folder. I have no idea why but make sure you have. You could also try to manually add the folder \ATC if it is not present. Starting the game as administrator can also help."

Also make sure the .dll file in the mod folder is not blocked... but I think that doesn't happen with workshop mods, or does it? Does anyone know?
Shamrya 2 May @ 12:47pm 
Hello! The mod does not appear to load, even though it's the only one I am using right now.

Am I doing something wrong? This is the list of mods I am loading.


Harmony 2.3.6.220

ButterLib 2.9.18.0

UIExtenderEX 2.12.0.0

Mod Config Menu 5.10.0

Native 1.2.12

Sandbox Core 1.2.12

CustmBattle 1.2.12

Sandbox 1.2.12

Story mode 1.2.12

Adonna's troop changer 1.9.3