Any way for this mod to also function for NPC children? For the players clan, children have a bunch of bonus attributes, but at least in regards to marrying nobles that have been born earlier in the campaign, they still have baseline NPC attributes. Enemy lords should be able to get stronger, too.
It works for any randomly generated NPC, which has their free attribute points spent. Of course not retroactively, since the mod just adjusts the npc's generating process.
But will it give children the same bonus that player clan children get? I.e. when I make a char, if I have a child, child pops out same level as my char, it'll have 6~ bonus attributes (I assume from the choices you make in the childs upbringing) and therefore has a much higher max power than your original character. So scrubs like me who like to have big families have a huge attribute advantage, I want the AI to be stronger, too.
No the players clan children work differently. But I think they also tally up to 15 Attribute points by level 1. In a quick count I came to at least 13. It is only better because Children start with attributes at 1, while your main character starts with 2.
The general calculation is that any NPC should have 15 attribute points at level 1. And in the original calculation every 4 levels hereafter; which is corrected by the mod to every level dividable by 4 after level 1.
Yeah, I get what this mod does, and it's solid. I'm just wondering how beyond the scope of this mod would it be to get all generated/birthed NPC's after the start of the game to have a higher stat split like the players clan gets?
Thanks for that. Only issue now is high level kids come out almost fully max on attributes cause my clan children get the stat bonus too.
Edit: Just seeing this may not be possible? I'm using the 'Take Both' mod and my children are still getting both perks even though I have it clicked off for me/clan members and only for NPC's. So guessing there isn't code to separate random NPC's and children for this?
I see thank you. This is clearly not intended behavior. Tested it. Gonna check the decompiled functions, possibly the value I overwrite is set to a lower number temporarily when spawning a child.
This seems like a good mod to have? It's for 1.2.8/1.2.9 right? Also I see you mention it would work for any randomly generated NPC. Have you, or anyone else ever used it with a mod like Distinguished Service? That generates companions from your troops and gives them bonuses to a few skills. Thanks.
Yes it is for 1.2.9. If distinguished service was updated, it would be fully compatible. However distinguished service added their own system of assigning points for their created wanderers; that is even worse than the original, since it just randomly assigns points; then again the upgrade function to assign attributes did come with 1.2.x, I think.
Order should not matter, since this mod modifies fairly new functions.
Be aware DistinguishedService is working a bit more special than you think it is:
Every promoted character starts with 2 in all Attributes.
One stat, depending on the troop type gets +0 - 3.
And then randomly in one attribute 0 - 2 up to 6 times for each attribute once.
Out of 15 + Level / 4 Attribute points, randomly you have spent now 12 to 27. Which they limit to at max 1 point too many to be spent.
If any points are left over, they are distributed according to Bannerlords standard model, which this mod modifies. This is where this mod would chime in.
Then we "lie" about, if we have negative points leftover, and set the variable to 0. Should we have used too many in step 4.
By the way, for anybody looking for updated Distiguished Service alternatives, Mav's Expand Your Clan does the same thing in a more inmersive way (one of your current companions comes to you in the next town visit after the battle and informs you that one of your troops was impressive in the last battle, giving you the chance to promote to companion). I came upon this function of it by chance and was gladly surprised by the results.
Probably compatible with this as well, as I think it just keeps the base unit stats when you promote them.
Is the mod compatible with mods that change attribute/focus points on level up? Installed it on a current save and the game will freeze shortly after moving, not crash. Not sure if it is the mod itself or if it could be a compatibility issue.
interesting, it should be compatible since it modifies some newish functions (the mod itself modifies only 3 functions: GetNextAttributeToUpgrade, GetNextSkillToAddFocus and SetupDefaultPoints.
Could you link me the mod, so i can check out if it is an incompatibility to potentially list it or fix it?
https://www.nexusmods.com/mountandblade2bannerlord/mods/6269 and https://www.nexusmods.com/mountandblade2bannerlord/mods/6273 Both mods from the "Better" series of mods.
Checked those two mods. It is definitely fully compatible with those. Changed all the settings, no issues on my end. Freeze should be from another mod.
edit: Also checked the code, I am referencing something BetterAttributes changes, but that seemed to be working fine. Do you get the freeze on a new game too?
Looks like it's not compatible with Better Experience (possibly other similar mods too). Couldn't start a new game at all at first. Removed that and now it works.
Quite odd BetterExperience only modifys SkillsRequiredForLevel. So there should be no conflict.
So I tested with the mod stack of: - BUTR Stack: Harmony, UiExtenderEx, ButterLib, MCMv5 - Diplomacy - RTS Camera - Family Tree - Improved Garrisons - Achievement Unblocker - BetterCore - BetterExperience - BetterAttributes - BetterFocusPoints
And I run into no issues on v1.2.9.
Are you on the gamepass version? It is 1.2.7, no? Could it be that there is a version incompatibility? Since this mod modifies some rather fresh functions; I do not know when they were introduced, but it could be as late as 1.2.8.
I could and will add possibly a more robust patching mechanism in the future to get a log if a patch fails.
Could you try and check the log files from the better mods in Documents\Mount and Blade II Bannerlord\Configs\ModLogs I would assume it is due to the MaxAttribute stuff failing which I access. But maybe you can see there any error messages?
I could also give you a simpler version with features removed, so you can test it; if you want.
36 comments
The general calculation is that any NPC should have 15 attribute points at level 1. And in the original calculation every 4 levels hereafter; which is corrected by the mod to every level dividable by 4 after level 1.
Edit: Just seeing this may not be possible? I'm using the 'Take Both' mod and my children are still getting both perks even though I have it clicked off for me/clan members and only for NPC's. So guessing there isn't code to separate random NPC's and children for this?
Be aware DistinguishedService is working a bit more special than you think it is:
Probably compatible with this as well, as I think it just keeps the base unit stats when you promote them.
But I am only certain about 1.2.9
Could you link me the mod, so i can check out if it is an incompatibility to potentially list it or fix it?
Both mods from the "Better" series of mods.
edit: Also checked the code, I am referencing something BetterAttributes changes, but that seemed to be working fine. Do you get the freeze on a new game too?
So I tested with the mod stack of:
- BUTR Stack: Harmony, UiExtenderEx, ButterLib, MCMv5
- Diplomacy
- RTS Camera
- Family Tree
- Improved Garrisons
- Achievement Unblocker
- BetterCore
- BetterExperience
- BetterAttributes
- BetterFocusPoints
And I run into no issues on v1.2.9.
Are you on the gamepass version? It is 1.2.7, no? Could it be that there is a version incompatibility? Since this mod modifies some rather fresh functions; I do not know when they were introduced, but it could be as late as 1.2.8.
I could and will add possibly a more robust patching mechanism in the future to get a log if a patch fails.
I only used the Better Experience mod so NPCs started at higher levels so they got more stats.
This mod fixes that anyway so I don't really need it.
Edit.
So it froze again after some time. Not sure what's going on since it's not giving me anything to give you.
Documents\Mount and Blade II Bannerlord\Configs\ModLogs
I would assume it is due to the MaxAttribute stuff failing which I access. But maybe you can see there any error messages?
I could also give you a simpler version with features removed, so you can test it; if you want.
I was thinking something like that myself. Stats are overflowing and causing it to freeze but I don't know for sure.