Mount & Blade II: Bannerlord
0 of 0

File information

Last updated

Original upload

Created by

quakank

Uploaded by

quakank

Virus scan

Safe to use

About this mod

Fixes the many problems associated with custom banners, such as malformed banners on load, CTD in inventory and trade screens, banners being ruined by kingdom color updates, armor color mismatch caused by kingdom color updates.

Requirements
Permissions and credits
Changelogs
This mod was specifically created to work around an issue that causes custom banners to have all their icon colors set to one color whenever loading a save game.

As of 1.5.6, a code change was introduced that caused all banner icon images to be set to one color. This is not a problem for banners made in game, but caused headaches for custom banners pasted into BL via a mod such as BannerPaste. 

This mod will prevent banner icon colors from being modified when loading a save game. Additionally, by default, it will prevent all color changes caused by joining/leaving a kingdom. A configuration file is included with a single config option that you can set to "false" if you would like to allow background color changes only when joining/leaving a kingdom. These changes should not impact the color changes applied to NPC banners when they change factions.

Additionally, as of 1.5.7 more changes to the code caused clothing and armor colors to change independently of the banner leading to the banner being preserved but the clothing and armor changing to the kingdom colors. Latest version of this mod (1.2.0 at time of writing) will fix this issue as well.

And now, as of 1.6.0, BannerColorPersistence contains a fix for the crash that occurs when using a custom banner and opening the inventory or trade screen.

Configuration notes:
ignoreKingdomColorChanges - defaults to true, prevents all kingdom color changes to your banner. Set to false if you want to allow background color changes when you change kingdoms
preventNPCBannerColorChanges - defaults to false, should really only be set to true if you're running custom banners for your NPCs via some other mod such as CBU or POC
allowColorChangeOnIconsMatchingBackgroundColor - defaults to false. This one may work well for you or it may not. It's completely dependent upon your specific banner. The idea here is that if you're allowing background color changes on kingdom change, sometimes your custom banner uses icons in the same color as the background in order to block out and modify other icons. If you're only changing background color, those icons now become visible when they remain the original color and make your banner look wonky. This config option will attempt to change the color of those icons as well. BUT - and this is a very big but - the icons must match the background colors EXACTLY, and must match BOTH of the colors. Each background and icon have TWO colors associated to them and if both colors don't align, the change won't occur. This means that banners using multi-colored backgrounds probably won't change properly. It also means that if your banner was created without close attention to the secondary color of the icons, it also probably won't change properly. All that said, try this config out if you really want to see your banner changing with your kingdom change, but ignore it otherwise cause there's probably a pretty low chance of it actually working perfectly. Some people were asking for it though, so here it is.



Has been tested and works on 1.5.4, 1.5.5, 1.5.6, 1.5.7, 1.5.8, 1.5.9, 1.5.10, 1.6.0, 1.6.1. 1.6.2, 1.6.3 beta

Please report any bugs or oddities you find and any suggestions you may have.