Created a custom culture. When I own a town and it changes to my custom culture (with changing culture mod) I get a crash each time:
Object reference not set to an instance of an object.
No inner exception was thrown
Inner exception callstack:No inner exception was thrown
Outer exception callstack: at TaleWorlds.CampaignSystem.SandBox.CampaignBehaviors.RecruitmentCampaignBehavior.FindTotalMercenaryProbability(CharacterObject mercenaryTroop, Single probabilityOfTroop)
at TaleWorlds.CampaignSystem.SandBox.CampaignBehaviors.RecruitmentCampaignBehavior.UpdateCurrentMercenaryTroopAndCount(Town town, Boolean forceUpdate)
at TaleWorlds.CampaignSystem.SandBox.CampaignBehaviors.RecruitmentCampaignBehavior.DailyTickTown(Town town)
at TaleWorlds.CampaignSystem.MbEvent`1.InvokeList(EventHandlerRec`1 list, T t)
at TaleWorlds.CampaignSystem.CampaignEvents.DailyTickTown(Town town)
at TaleWorlds.CampaignSystem.CampaignEventDispatcher.DailyTickTown(Town town)
at TaleWorlds.CampaignSystem.CampaignPeriodicEventManager.PeriodicTicker`1.PeriodicTickSome(Double timeUnitsElapsed)
at TaleWorlds.CampaignSystem.CampaignPeriodicEventManager.PeriodicDailyTick()
at TaleWorlds.CampaignSystem.Campaign.Tick()
at TaleWorlds.CampaignSystem.MapState.OnMapModeTick(Single dt)
at TaleWorlds.CampaignSystem.MapState.OnTick(Single dt)
at TaleWorlds.Core.GameStateManager.OnTick(Single dt)
at TaleWorlds.Core.Game.OnTick(Single dt)
at TaleWorlds.Core.GameManagerBase.OnTick(Single dt)
at TaleWorlds.MountAndBlade.Module.OnApplicationTick_Patch1(Module this, Single dt)
Any thoughts on a fix anyone?
- Reasons
Source: TaleWorlds.CampaignSystemObject reference not set to an instance of an object.
- Inner exception
Source: No moduleNo inner exception was thrown
- Callstacks
Protip: Use a debugger like dnSpy or Visual studio to trace the source of error, by stepping the program line by line. You can restart with dnSpy attached.Inner exception callstack:No inner exception was thrown
Outer exception callstack: at TaleWorlds.CampaignSystem.SandBox.CampaignBehaviors.RecruitmentCampaignBehavior.FindTotalMercenaryProbability(CharacterObject mercenaryTroop, Single probabilityOfTroop)
at TaleWorlds.CampaignSystem.SandBox.CampaignBehaviors.RecruitmentCampaignBehavior.UpdateCurrentMercenaryTroopAndCount(Town town, Boolean forceUpdate)
at TaleWorlds.CampaignSystem.SandBox.CampaignBehaviors.RecruitmentCampaignBehavior.DailyTickTown(Town town)
at TaleWorlds.CampaignSystem.MbEvent`1.InvokeList(EventHandlerRec`1 list, T t)
at TaleWorlds.CampaignSystem.CampaignEvents.DailyTickTown(Town town)
at TaleWorlds.CampaignSystem.CampaignEventDispatcher.DailyTickTown(Town town)
at TaleWorlds.CampaignSystem.CampaignPeriodicEventManager.PeriodicTicker`1.PeriodicTickSome(Double timeUnitsElapsed)
at TaleWorlds.CampaignSystem.CampaignPeriodicEventManager.PeriodicDailyTick()
at TaleWorlds.CampaignSystem.Campaign.Tick()
at TaleWorlds.CampaignSystem.MapState.OnMapModeTick(Single dt)
at TaleWorlds.CampaignSystem.MapState.OnTick(Single dt)
at TaleWorlds.Core.GameStateManager.OnTick(Single dt)
at TaleWorlds.Core.Game.OnTick(Single dt)
at TaleWorlds.Core.GameManagerBase.OnTick(Single dt)
at TaleWorlds.MountAndBlade.Module.OnApplicationTick_Patch1(Module this, Single dt)
Any thoughts on a fix anyone?