Resolved In Progress Modded main map in sandbox crashing

Users who are viewing this thread

Version number
v.1.2.9.
Branch
Main
Modded/unmodded
Modded

Ylmir

Recruit
Hi to all, i'm new to Bannerlord modding and have some problems with main map modding.I saw the very useful guide from NPC99 and try to follow it but i still encounter some problems with testing. So the problem is that i can't launch the new main map from regular SandBox (in non modders launcher), it crashes. The only way i can open my map in sandbox mode is follow the steps: 1. Launch modding kit version. 2. Open editor and open main map there, then close editor by clicking leave the editor button to go to main menu. Then it works i spawn in the new main map but when i start timeflow it became very laggy. If try to launch SandBox mode in modding kit version right away then i get "wrong settlement position error" for every settlement in game. So did someone have this problem earlier and any ideas how i can try to fix this?
Here is some additional information. In the main map i changed the Heightmap, snow Flowmap, textures and material maps, rivers. All of that is works fine i believe but i didn't delete or move any settlements capsules and using the settlement.xml and distance cash file from the Sandbox. Also i changed the navmesh, for now it covers circa 1/4 of the map of calradia. I assume the problem is the settlements and distance cash, but i cant figure out it for now.
 
Were there any crash dump report after the said crash?
Yes, here it is.

Exception Information:
Potential Module Id: Sandbox
Potential Source Module Id: Sandbox
Type: System.AccessViolationException
Message: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Stacktrace:
  1. at Vec2 SandBox.MapScene.GetNavigationMeshCenterPosition(PathFaceRecord face)
  2. at Settlement TaleWorlds.CampaignSystem.GameComponents.DefaultMapDistanceModel.GetClosestSettlementForNavigationMesh(PathFaceRecord face)
  3. at bool TaleWorlds.CampaignSystem.GameComponents.DefaultMapDistanceModel.GetDistance(IMapPoint fromMapPoint, Settlement toSettlement, float maximumDistance, out float distance)
  4. at Settlement Helpers.SettlementHelper.FindNearestSettlement(Func<Settlement, bool> condition, IMapPoint toMapPoint)
  5. at void TaleWorlds.CampaignSystem.CampaignBehaviors.VillageTradeBoundCampaignBehavior.TryToAssignTradeBoundForVillage(Village village)
  6. at void TaleWorlds.CampaignSystem.CampaignBehaviors.VillageTradeBoundCampaignBehavior.UpdateTradeBounds()
  7. at void TaleWorlds.CampaignSystem.MbEvent<T>.InvokeList(EventHandlerRec<T> list, T t)
  8. at void TaleWorlds.CampaignSystem.CampaignEvents.OnNewGameCreated(CampaignGameStarter campaignGameStarter)
  9. at void TaleWorlds.CampaignSystem.CampaignEventDispatcher.OnNewGameCreated(CampaignGameStarter campaignGameStarter)
  10. at void TaleWorlds.CampaignSystem.Campaign.OnNewGameCreated(CampaignGameStarter gameStarter)
  11. at void TaleWorlds.CampaignSystem.Campaign.DoLoadingForGameType(GameTypeLoadingStates gameTypeLoadingState, out GameTypeLoadingStates nextState)
  12. at bool TaleWorlds.Core.GameType.DoLoadingForGameType()
  13. at void SandBox.SandBoxGameManager.DoLoadingForGameManager(GameManagerLoadingSteps gameManagerLoadingStep, out GameManagerLoadingSteps nextStep)
  14. at bool TaleWorlds.Core.GameManagerBase.DoLoadingForGameManager()
  15. at void TaleWorlds.MountAndBlade.GameLoadingState.OnTick(float dt)
  16. at void TaleWorlds.Core.GameStateManager.OnTick(float dt)
  17. at void TaleWorlds.MountAndBlade.Module.OnApplicationTick(float dt)
  18. at void TaleWorlds.DotNet.Managed.ApplicationTick(float dt)
  19. at void ManagedCallbacks.LibraryCallbacksGenerated.Managed_ApplicationTick_Patch1(float dt)


    Enhanced Stacktrace

    • Frame: Vec2 SandBox.MapScene.GetNavigationMeshCenterPosition(PathFaceRecord face)
      Executing Method:
      • Module Id: Sandbox
        Method: virtual TaleWorlds.Library.Vec2 SandBox.MapScene::GetNavigationMeshCenterPosition(TaleWorlds.Library.PathFaceRecord face)
        Method From Stackframe Issue: False
        Approximate IL Offset: 0019
        Native Offset: 0089
        + IL:
        + Native (NASM):
    • Frame: Settlement TaleWorlds.CampaignSystem.GameComponents.DefaultMapDistanceModel.GetClosestSettlementForNavigationMesh(PathFaceRecord face)
      Executing Method:
      • Method: virtual TaleWorlds.CampaignSystem.Settlements.Settlement TaleWorlds.CampaignSystem.GameComponents.DefaultMapDistanceModel::GetClosestSettlementForNavigationMesh(TaleWorlds.Library.PathFaceRecord face)
        Method From Stackframe Issue: False
        Approximate IL Offset: 0000
        Native Offset: 007E
        + IL:
        + Native (NASM):
    • Frame: bool TaleWorlds.CampaignSystem.GameComponents.DefaultMapDistanceModel.GetDistance(IMapPoint fromMapPoint, Settlement toSettlement, float maximumDistance, out float distance)
      Executing Method:
      • Method: virtual System.Boolean TaleWorlds.CampaignSystem.GameComponents.DefaultMapDistanceModel::GetDistance(TaleWorlds.CampaignSystem.Map.IMapPoint fromMapPoint, TaleWorlds.CampaignSystem.Settlements.Settlement toSettlement, System.Single maximumDistance, System.Single& distance)
        Method From Stackframe Issue: False
        Approximate IL Offset: 0045
        Native Offset: 0169
        + IL:
        + Native (NASM):
    • Frame: Settlement Helpers.SettlementHelper.FindNearestSettlement(Func<Settlement, bool> condition, IMapPoint toMapPoint)
      Executing Method:
      • Method: static TaleWorlds.CampaignSystem.Settlements.Settlement Helpers.SettlementHelper::FindNearestSettlement(System.Func`2<TaleWorlds.CampaignSystem.Settlements.Settlement, System.Boolean> condition, TaleWorlds.CampaignSystem.Map.IMapPoint toMapPoint)
        Method From Stackframe Issue: False
        Approximate IL Offset: 0032
        Native Offset: 0105
        + IL:
        + Native (NASM):
    • Frame: void TaleWorlds.CampaignSystem.CampaignBehaviors.VillageTradeBoundCampaignBehavior.TryToAssignTradeBoundForVillage(Village village)
      Executing Method:
      • Method: System.Void TaleWorlds.CampaignSystem.CampaignBehaviors.VillageTradeBoundCampaignBehavior::TryToAssignTradeBoundForVillage(TaleWorlds.CampaignSystem.Settlements.Village village)
        Method From Stackframe Issue: False
        Approximate IL Offset: 0019
        Native Offset: 006A
        + IL:
        + Native (NASM):
    • Frame: void TaleWorlds.CampaignSystem.CampaignBehaviors.VillageTradeBoundCampaignBehavior.UpdateTradeBounds()
      Executing Method:
      • Method: System.Void TaleWorlds.CampaignSystem.CampaignBehaviors.VillageTradeBoundCampaignBehavior::UpdateTradeBounds()
        Method From Stackframe Issue: False
        Approximate IL Offset: 0035
        Native Offset: 00C0
        + IL:
        + Native (NASM):
    • Frame: void TaleWorlds.CampaignSystem.MbEvent<T>.InvokeList(EventHandlerRec<T> list, T t)
      Executing Method:
      • Method: System.Void TaleWorlds.CampaignSystem.MbEvent`1<TaleWorlds.CampaignSystem.T>::InvokeList(TaleWorlds.CampaignSystem.EventHandlerRec`1<TaleWorlds.CampaignSystem.T, TaleWorlds.CampaignSystem.T> list, TaleWorlds.CampaignSystem.T t)
        Method From Stackframe Issue: False
        Approximate IL Offset: 000E
        Native Offset: 0022
        + IL:
    • Frame: void TaleWorlds.CampaignSystem.CampaignEvents.OnNewGameCreated(CampaignGameStarter campaignGameStarter)
      Executing Method:
      • Method: virtual System.Void TaleWorlds.CampaignSystem.CampaignEvents::OnNewGameCreated(TaleWorlds.CampaignSystem.CampaignGameStarter campaignGameStarter)
        Method From Stackframe Issue: False
        Approximate IL Offset: 0010
        Native Offset: 0030
        + IL:
        + Native (NASM):
    • Frame: void TaleWorlds.CampaignSystem.CampaignEventDispatcher.OnNewGameCreated(CampaignGameStarter campaignGameStarter)
      Executing Method:
      • Method: virtual System.Void TaleWorlds.CampaignSystem.CampaignEventDispatcher::OnNewGameCreated(TaleWorlds.CampaignSystem.CampaignGameStarter campaignGameStarter)
        Method From Stackframe Issue: False
        Approximate IL Offset: 0014
        Native Offset: 0030
        + IL:
        + Native (NASM):
    • Frame: void TaleWorlds.CampaignSystem.Campaign.OnNewGameCreated(CampaignGameStarter gameStarter)
      Executing Method:
      • Method: System.Void TaleWorlds.CampaignSystem.Campaign::OnNewGameCreated(TaleWorlds.CampaignSystem.CampaignGameStarter gameStarter)
        Method From Stackframe Issue: False
        Approximate IL Offset: 0029
        Native Offset: 004A
        + IL:
        + Native (NASM):
    • Frame: void TaleWorlds.CampaignSystem.Campaign.DoLoadingForGameType(GameTypeLoadingStates gameTypeLoadingState, out GameTypeLoadingStates nextState)
      Executing Method:
      • Method: virtual System.Void TaleWorlds.CampaignSystem.Campaign::DoLoadingForGameType(TaleWorlds.Core.GameTypeLoadingStates gameTypeLoadingState, TaleWorlds.Core.GameTypeLoadingStates& nextState)
        Method From Stackframe Issue: False
        Approximate IL Offset: 027A
        Native Offset: 0550
        + IL:
        + Native (NASM):
    • Frame: bool TaleWorlds.Core.GameType.DoLoadingForGameType()
      Executing Method:
      • Method: System.Boolean TaleWorlds.Core.GameType::DoLoadingForGameType()
        Method From Stackframe Issue: False
        Approximate IL Offset: 0083
        Native Offset: 00BF
        + IL:
        + Native (NASM):
    • Frame: void SandBox.SandBoxGameManager.DoLoadingForGameManager(GameManagerLoadingSteps gameManagerLoadingStep, out GameManagerLoadingSteps nextStep)
      Executing Method:
      • Module Id: Sandbox
        Method: virtual System.Void SandBox.SandBoxGameManager::DoLoadingForGameManager(TaleWorlds.Core.GameManagerLoadingSteps gameManagerLoadingStep, TaleWorlds.Core.GameManagerLoadingSteps& nextStep)
        Method From Stackframe Issue: False
        Approximate IL Offset: 0140
        Native Offset: 03A2
        + IL:
        + Native (NASM):
    • Frame: bool TaleWorlds.Core.GameManagerBase.DoLoadingForGameManager()
      Executing Method:
      • Method: System.Boolean TaleWorlds.Core.GameManagerBase::DoLoadingForGameManager()
        Method From Stackframe Issue: False
        Approximate IL Offset: 00DC
        Native Offset: 011D
        + IL:
        + Native (NASM):
    • Frame: void TaleWorlds.MountAndBlade.GameLoadingState.OnTick(float dt)
      Executing Method:
      • Method: virtual System.Void TaleWorlds.MountAndBlade.GameLoadingState::OnTick(System.Single dt)
        Method From Stackframe Issue: False
        Approximate IL Offset: 000F
        Native Offset: 0019
        + IL:
        + Native (NASM):
    • Frame: void TaleWorlds.Core.GameStateManager.OnTick(float dt)
      Executing Method:
      • Method: System.Void TaleWorlds.Core.GameStateManager::OnTick(System.Single dt)
        Method From Stackframe Issue: False
        Approximate IL Offset: 002F
        Native Offset: 0072
        + IL:
        + Native (NASM):
    • Frame: void TaleWorlds.MountAndBlade.Module.OnApplicationTick(float dt)
      Executing Method:
      • Method: System.Void TaleWorlds.MountAndBlade.Module::OnApplicationTick(System.Single dt)
        Method From Stackframe Issue: False
        Approximate IL Offset: 01AA
        Native Offset: 04DF
        + IL:
        + Native (NASM):
    • Frame: void TaleWorlds.DotNet.Managed.ApplicationTick(float dt)
      Executing Method:
      • Method: static System.Void TaleWorlds.DotNet.Managed::ApplicationTick(System.Single dt)
        Method From Stackframe Issue: False
        Approximate IL Offset: 0033
        Native Offset: 00A0
        + IL:
        + Native (NASM):
    • Frame: void ManagedCallbacks.LibraryCallbacksGenerated.Managed_ApplicationTick_Patch1(float dt)
      Executing Method:
      • Method: static System.Void ManagedCallbacks.LibraryCallbacksGenerated::Managed_ApplicationTick(System.Single dt)
        Method From Stackframe Issue: False
        Approximate IL Offset: UNKNOWN
        Native Offset: 001B
        + IL:
        + Native (NASM):
      Patch Methods:
      • Type: Harmony
        Patch Type: Finalizer
        Plugin Id: BLSE.ExceptionInterceptor
        Method: static System.Void Bannerlord.BLSE.Features.ExceptionInterceptor.ExceptionInterceptorFeature::Finalizer(System.Exception __exception)
        + IL:
        + IL with C#:
        + C#:

    - Involved Modules and Plugins

    From Highest Probability to Lowest:
    • Module Id: Sandbox
      • Frame: Vec2 SandBox.MapScene.GetNavigationMeshCenterPosition(PathFaceRecord face)
      • Frame: void SandBox.SandBoxGameManager.DoLoadingForGameManager(GameManagerLoadingSteps gameManagerLoadingStep, out GameManagerLoadingSteps nextStep)

    - Installed Modules

 
As the information asked was not provided, i will mark the thread as closed. Please let us know if you encounter any other issues.
 
Back
Top Bottom