• Please note that we've updated the Mount & Blade II: Bannerlord save file system which requires you to take certain steps in order for your save files to be compatible with e1.7.1 and any later updates. You can find the instructions here.

BL Coding Hardcoded bandit party limit of 3 stacks

Users who are viewing this thread

tase

Recruit
Obviously nowhere to report this as a problem, just gonna chuck this in the pile of Q&A.

Anyway, anything in the party template beyond the 3rd stack is ignored.

MobileParty.cs
C#:
        private void FillPartyStacks(PartyTemplateObject pt, PartyTypeEnum partyType, int troopNumberLimit = -1)
        {
            switch (partyType)
            {
            case PartyTypeEnum.Bandit:
            {
(...)
                AddElementToMemberRoster(pt.Stacks[0].Character, MBRandom.RoundRandomized(f));
                if (pt.Stacks.Count > 1)
                {
                    AddElementToMemberRoster(pt.Stacks[1].Character, MBRandom.RoundRandomized(f2));
                }
                if (pt.Stacks.Count > 2)
                {
                    AddElementToMemberRoster(pt.Stacks[2].Character, MBRandom.RoundRandomized(f3));
                }
                return;
            }
(...)
 

Яowan

Grandmaster Knight
M&BWBNW
Actually, if you do encounter any bugs/issues you can report said issues here, as the developers do actively look into said reports.
 
Upvote 0
Top Bottom