BL Coding Custom culture in town is not permitted anymore?

Currently viewing this thread:


Best answers
I was making mod and it was working fine before, but after e1.4.3, which is version e1.5.0, adding custom culture to a custom town, or even in vanilla town cause crash. I tried making caravan leaders from caravan.xml base on the callstacks it may be the cause, and it didn't solve the problem.
Also adding custom culture on villages and castle doesn't cause any problem. Only in towns. Anyone might know maybe theres a new required feature that I’m lacking.p

- Reasons
Source: System.Core
Sequence contains no matching element
- Inner exception
Source: No module
No inner exception was thrown
- Callstacks

Use a debugger like dnSpy or Visual studioto trace the source of error, by stepping the program line by line.

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.MobileParty.InitializeCaravanForHero(Hero caravanOwner, Settlement spawnSettlement, Boolean isInitialSpawn, Hero caravanLeader, ItemRoster caravanItems, Int32 troopToBeGiven)
at TaleWorlds.CampaignSystem.SandBox.CampaignBehaviors.CaravansCampaignBehavior.SpawnCaravans(Boolean initialSpawn)
at TaleWorlds.CampaignSystem.MbEvent`1.InvokeList(EventHandlerRec`1 list, T t)
at TaleWorlds.CampaignSystem.CampaignEvents.OnNewGameCreated(CampaignGameStarter campaignGameStarter)
at TaleWorlds.CampaignSystem.CampaignEventDispatcher.OnNewGameCreated(CampaignGameStarter campaignGameStarter)
at TaleWorlds.CampaignSystem.Campaign.OnNewGameCreated(CampaignGameStarter starter)
at TaleWorlds.CampaignSystem.Campaign.OnGameCreated(CampaignGameStarter gameStarter)
at TaleWorlds.CampaignSystem.Campaign.DoLoadingForGameType(GameTypeLoadingStates gameTypeLoadingState, GameTypeLoadingStates& nextState)
at StoryMode.CampaignStoryMode.DoLoadingForGameType(GameTypeLoadingStates gameTypeLoadingState, GameTypeLoadingStates& nextState)
at TaleWorlds.Core.GameType.DoLoadingForGameType()
at StoryMode.StoryModeGameManager.DoLoadingForGameManager(GameManagerLoadingSteps gameManagerLoadingStep, GameManagerLoadingSteps& nextStep)
at TaleWorlds.Core.GameManagerBase.DoLoadingForGameManager()
at TaleWorlds.MountAndBlade.GameLoadingState.OnTick(Single dt)
at TaleWorlds.Core.GameStateManager.OnTick(Single dt)
at TaleWorlds.MountAndBlade.Module.OnApplicationTick_Patch2(Module this, Single dt)


Best answers
It works if you also create new notables for the new faction (those NPCs listed in the culture xml).


Best answers
Hi, Yes there's a custom notable, and the mod is working before, e1.5.0, now the error is different and it shows a similar error when the culture has no caravan party template.