I have released 2.0! It adds some stuff I've been working on during late summer of 2020. And Consider my Kingdom functionality, I've added recently with the author's permission.I have plans to improve and deepen it, as well as some other ideas.
For now I have no time to properly describe the changes, but Mod menu should give you general idea of functionality.
Allegiance Overhaul does handle exceptions, so, if you encounter a crash, most likely it is NOT caused by my mod. Whatever problems Allegiance Overhaul may have, they should reveal themselves some other way, usually via red message in the game log and detailed bug report in mod log file, which would be created under your '..\Mount & Blade II Bannerlord\Modules\AllegianceOverhaul\' folder.
if your game crashes, please, first check your other mods. I'd suggest trying to narrow your issue to a single mod by disabling and removing them one by one. Note that there were reports, that sometimes mod should be completely removed from your Modules folder, not simply disabled, to stop causing problems. If your investigation still leads to my mod (well, s*** happens) - please, post a bug with detailed description of what you did in the game, your game and mod version, error logs from the game exception window and my log (if there were any).
P.S. With the release of 2.0 this is still mostly true, but some cases where AO could trigger a crash are possible now.
Mod tells me at the game log it has identified possible cnflicts and details are in the mod log but there are no log files under Mount & Blade II Bannerlord\Modules\AllegianceOverhaul or \Documents\Mount and Blade II Bannerlord\Logs where do I find the logs?
Just tried it for the first time on 1.1.6 and it does not load. I see the red text that the mod fails to load. After looking at the mod log it has multiple error messages that look like this:
Initialization error - System.TypeLoadException: Could not load type 'TaleWorlds.CampaignSystem.ViewModelCollection.TooltipRefresherCollection'
I do have this mod load after all taleworld modules. I also have this mod load after the Diplomacy mod.
562 comments
It adds some stuff I've been working on during late summer of 2020. And Consider my Kingdom functionality, I've added recently with the author's permission.I have plans to improve and deepen it, as well as some other ideas.
For now I have no time to properly describe the changes, but Mod menu should give you general idea of functionality.
if your game crashes, please, first check your other mods. I'd suggest trying to narrow your issue to a single mod by disabling and removing them one by one. Note that there were reports, that sometimes mod should be completely removed from your Modules folder, not simply disabled, to stop causing problems. If your investigation still leads to my mod (well, s*** happens) - please, post a bug with detailed description of what you did in the game, your game and mod version, error logs from the game exception window and my log (if there were any).
P.S.
With the release of 2.0 this is still mostly true, but some cases where AO could trigger a crash are possible now.
where do I find the logs?
[21.12.2023 18:18:19] - Checkup on initialize.
Foreign patches checkup for method TaleWorlds.CampaignSystem.CampaignBehaviors.BarterBehaviors.DiplomaticBartersBehavior.ConsiderDefection, used by AllegianceOverhaul, revealed possible conflicts!
Possible conflict found in prefixes.
These Harmony patches:
{
Patching method: Boolean Prefix(TaleWorlds.CampaignSystem.Clan, TaleWorlds.CampaignSystem.Kingdom)
Owner: Warlord (HarmonyID: "com.bloc.warlord")
Priority: 400
Before: System.String[]
After: System.String[]
}
may have conflicts with below AllegianceOverhaul patches:
{
Patching method: Boolean LoyaltyPrefix(TaleWorlds.CampaignSystem.Clan, TaleWorlds.CampaignSystem.Kingdom)
Owner: AllegianceOverhaul.1.1.5 (HarmonyID: "Bannerlord.AllegianceOverhaul")
Priority: 500
Before: System.String[]
After: System.String[]
Patching method: Boolean MigrationPrefix(TaleWorlds.CampaignSystem.Clan, TaleWorlds.CampaignSystem.Kingdom)
Owner: AllegianceOverhaul.1.1.5 (HarmonyID: "Bannerlord.AllegianceOverhaul")
Priority: 499
Before: System.String[]
After: System.String[]
}
Patches checkup for method TaleWorlds.CampaignSystem.CampaignBehaviors.BarterBehaviors.DiplomaticBartersBehavior.ConsiderClanJoinAsMercenary, used by AllegianceOverhaul, revealed possible conflicts!
Possible conflict found in prefixes.
These Harmony patches:
{
Patching method: Boolean Prefix(TaleWorlds.CampaignSystem.Clan, TaleWorlds.CampaignSystem.Kingdom)
Owner: Warlord (HarmonyID: "com.bloc.warlord")
Priority: 400
Before: System.String[]
After: System.String[]
}
may have conflicts with below AllegianceOverhaul patches:
{
Patching method: Boolean Prefix(TaleWorlds.CampaignSystem.Clan)
Owner: AllegianceOverhaul.1.1.5 (HarmonyID: "Bannerlord.AllegianceOverhaul")
Priority: 500
Before: System.String[]
After: System.String[]
}
Initialization error - System.TypeLoadException: Could not load type 'TaleWorlds.CampaignSystem.ViewModelCollection.TooltipRefresherCollection' from assembly 'TaleWorlds.CampaignSystem.ViewModelCollection, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
at System.Reflection.CustomAttribute._CreateCaObject(RuntimeModule pModule, IRuntimeMethodInfo pCtor, Byte** ppBlob, Byte* pEndBlob, Int32* pcNamedArgs)
at System.Reflection.CustomAttribute.CreateCaObject(RuntimeModule module, IRuntimeMethodInfo ctor, IntPtr& blob, IntPtr blobEnd, Int32& namedArgs)
at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent)
at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit)
at HarmonyLib.HarmonyMethodExtensions.GetFromType(Type type)
at HarmonyLib.PatchClassProcessor..ctor(Harmony instance, Type type)
at HarmonyLib.Harmony.<PatchAll>b__10_0(Type type)
at HarmonyLib.CollectionExtensions.Do[T](IEnumerable`1 sequence, Action`1 action)
at AllegianceOverhaul.Helpers.HarmonyHelper.PatchAll(Harmony& harmonyInstance, String sectionName, String logMessage, String chatMessage)
Initialization error - System.TypeLoadException: Could not load type 'TaleWorlds.CampaignSystem.ViewModelCollection.TooltipRefresherCollection'
I do have this mod load after all taleworld modules. I also have this mod load after the Diplomacy mod.
1.1.6 version
https://pastebin.com/ysTjNaAh