Custom Culture help/caravan crash

Users who are viewing this thread

I made a mod which adds the Ialoi as a culture, which, using the changing culture mod, is supposed to retake their former home. However, whenever my culture converts a settlement and its notables to Ialoi, any created caravan crashes the game with the following crash:
Inner exception callstack: No inner exception was thrown
Outer exception callstack: at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
at TaleWorlds.CampaignSystem.Party.PartyComponents.CaravanPartyComponent.InitializeCaravanOnCreation(MobileParty mobileParty, Hero caravanLeader, ItemRoster caravanItems, Int32 troopToBeGiven, Boolean isElite)
at TaleWorlds.CampaignSystem.Party.PartyComponents.CaravanPartyComponent.<>c__DisplayClass29_0.b__0(MobileParty mobileParty)
at TaleWorlds.CampaignSystem.Party.MobileParty.CreateParty(String stringId, PartyComponent component, OnPartyComponentCreatedDelegate delegateFunction)
at TaleWorlds.CampaignSystem.Party.PartyComponents.CaravanPartyComponent.CreateCaravanParty(Hero caravanOwner, Settlement spawnSettlement, Boolean isInitialSpawn, Hero caravanLeader, ItemRoster caravanItems, Int32 troopToBeGiven, Boolean isElite)
at TaleWorlds.CampaignSystem.CampaignBehaviors.CaravansCampaignBehavior.SpawnCaravan(Hero hero, Boolean initialSpawn)
at TaleWorlds.CampaignSystem.CampaignBehaviors.CaravansCampaignBehavior.DailyTickHero(Hero hero)
at TaleWorlds.CampaignSystem.MbEvent`1.InvokeList(EventHandlerRec`1 list, T t)
at TaleWorlds.CampaignSystem.CampaignEvents.DailyTickHero(Hero hero)
at TaleWorlds.CampaignSystem.CampaignEventDispatcher.DailyTickHero(Hero hero)
at TaleWorlds.CampaignSystem.CampaignPeriodicEventManager.PeriodicTicker`1.PeriodicTickSome(Double timeUnitsElapsed)
at TaleWorlds.CampaignSystem.CampaignPeriodicEventManager.PeriodicDailyTick()
at TaleWorlds.CampaignSystem.CampaignPeriodicEventManager.TickPeriodicEvents()
at TaleWorlds.CampaignSystem.Campaign.Tick()
at TaleWorlds.CampaignSystem.GameState.MapState.OnMapModeTick(Single dt)
at TaleWorlds.CampaignSystem.GameState.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)

I attempted to use the battanian caravan template but it did not work, then I tried to do my own template but that did not work either. What am I doing wrong?
 
Back
Top Bottom