Mount & Blade II: Bannerlord

File information

Last updated

Original upload

Created by

bizzfarts

Uploaded by

gooboon

Virus scan

Safe to use

About this mod

Allows you to keep your Kingdom colors up to date with your banner colors. And set per-kingdom clothing colors independently to banner colors.

Requirements
Permissions and credits
Changelogs
This mod will ensure your created kingdom colors, including your clothing colors and the colors of your vassals, match your banner after you change your banner.

It works well with the custom banner editor I made.

With no configuration this mod will simply ensure your created kingdom's clothing and vassal colors match your current banner:







(The crooked moon banner icon was made by dimasasus on reddit here)


Additionally, you are able to override clothing colors for any kingdom. For example Vlandia with blue and green armour and their original banner colors:



Or my custom brown kingdom with red and black armour:



To do so open KingdomColors.xml in %USERPROFILE%\Documents\Mount and Blade II Bannerlord\Configs\KingdomColor.xml. If this file does not exist, run the game with the mod installed and a KingdomColors.xml should be generated when you get to the main menu. This file is read and applied on game load so restarting the game is not required, just reloading.

Change UseUniformOverrides to true, and add or edit an entry like:

<UniformColorOverride>
<Faction>playerland_kingdom</Faction>
<Color>#ff0000</Color>
<Color2>#000000</Color2>
</UniformColorOverride>


Uniform colors may be any HTML color (#ff0000) or a banner color id.

Faction IDs for kingdoms are
  • aserai
  • battania
  • empire - Northern Empire
  • empire_s - Southern Empire
  • empire_w - Western Empire
  • khuzait
  • sturgia
  • vlandia
  • playerland_kingdom - Your custom kingdom


Clans that do not have a kingdom can have their uniform colors overridden as well. You can use the clan name, or refer to this list: https://pastebin.com/81A8HVm7, for clan ids.


You may override banner colors for any kingdom by changing UseFactionColorOverrides to true and adding/editing faction colour entries like:

<FactionColorOverride>
<Faction>aserai</Faction>
<PrimaryColor>0</PrimaryColor>
<SecondaryColor>1</SecondaryColor>
</FactionColorOverride>


By default the player banner will follow these colors, and will change your banner whenver the game is loaded. To disable this behaviour change PlayerClanBannerFollowsKingdom to false.

These colors must be numeric banner color ids. A list for vanilla is available here: https://bannerlord.party/banner-colors/

You can override banners for any default clan by setting UseClanBannerOverrides to true and adding/editing entries like:

<ClanBannerOverride>
<Clan>dey Meroc</Clan>
<BannerCode>11.154.154.1536.1536.768.768.1.0.0.160.155.155.299.299.629.563.1.0.0.160.155.155.299.299.902.561.1.1.0.160.155.155.299.299.630.965.1.1.180.160.155.155.299.299.903.967.1.0.180.344.155.116.299.299.764.764.0.0.0</BannerCode>
<FollowKingdomColors>true</FollowKingdomColors>
</ClanBannerOverride>
<ClanBannerOverride>
<Clan>osticos</Clan>
<BannerCode>22.35.34.1536.1536.768.768.1.0.0.116.67.116.530.506.775.654.0.0.0.301.116.116.584.558.783.995.0.0.-119.301.116.116.584.558.783.995.0.1.118</BannerCode>
<FollowKingdomColors>false</FollowKingdomColors>
</ClanBannerOverride>


The first one makes the clan's banner follow kingdom colors and results in a banner like this:

While the second maintains its colors regardless of clan kingdom:

You can also change normal AI led kingdoms to follow your banner colors by setting OnlyPlayerRuledKingdoms to false.

Changes to KingdomColor.xml will take effect on each game load.

If you have developer console enabled, this mod adds a kingdomcolor.set_kingdom_color command. It takes 3 or 5 parameters: the kingdom id, and the ids of the primary and secondary colors and optionally the primary and secondary uniform colors. For example:

kingdomcolor.set_kingdom_color vlandia 123 66



There are also:
  • kingdomcolor.set_clan_banner - sets clan banner
  • kingdomcolor.list_clans - to list clan ids and names
  • kingdomcolor.list_kingdoms - to list kingdom ids and names
  • kingdomcolor.reload_config - reload config without saving/loading
  • kingdomcolor.load_and_save_defaults - loads default faction colours, uniform colours, and banners, this will overwrite your config.




Source available: https://github.com/horsenit/KingdomColor/





<UseUniformColorOverrides>true</UseUniformColorOverrides>
<UniformColorOverride>
<Faction>looters</Faction>
<Color>#FD96FF</Color>
<Color2>#6BFF6B</Color2>
</UniformColorOverride>

<UseClanBannerOverrides>true</UseClanBannerOverrides>
<ClanBannerOverride>
<Clan>looters</Clan>
<BannerCode>17.129.153.1836.1836.826.742.1.0.-30.503.143.116.575.575.768.768.1.0.0.426.112.116.96.162.846.638.1.0.-48.426.112.116.96.162.675.632.1.0.-127.426.112.116.266.411.768.882.1.0.-270.503.35.116.170.170.896.722.1.0.0.503.35.116.170.170.622.714.1.0.0.426.35.116.200.367.768.886.1.0.-270.506.74.74.220.207.513.856.1.0.-15.504.74.74.106.93.541.762.1.0.-13.504.74.74.106.93.989.776.1.0.26.506.74.74.220.207.1027.876.1.0.15.503.116.116.50.50.618.714.1.0.0.503.116.116.50.50.900.722.1.0.0</BannerCode>
<FollowKingdomColors>true</FollowKingdomColors>
</ClanBannerOverride>