Need More Info General Jump to Different Mission makes crush when leave mission

Users who are viewing this thread

Version number
v1.2.9
Branch
Main
Modded/unmodded
Modded
I meet 2 types of crash
these crash always appear in player leave mission.
1. when player **talk** to a Hero, in dialog use StartMission to a new Mission, after press tab leave, and back to map, it crashed.
2. when player in custom mission finish some thing and jump to Location Mission such as "center" or "tavern", in the location mission, player leave it, and it crushed.
 
To help you further and continue our investigation oF the reported issue, we need the crash report identifier. You should see a pop-up window when the game is crashed. Please follow the instructions there to complete the upload and get the crash report identifier. It will be copied to your clipboard automatically. You can find more info about the crash report identifier here. Have you tried the workarounds for common crashes detailed here? Thanks for reporting and sorry for any inconvenience!
 
To help you further and continue our investigation oF the reported issue, we need the crash report identifier. You should see a pop-up window when the game is crashed. Please follow the instructions there to complete the upload and get the crash report identifier. It will be copied to your clipboard automatically. You can find more info about the crash report identifier here. Have you tried the workarounds for common crashes detailed here? Thanks for reporting and sorry for any inconvenience!
Here is Exception. And do you need more info about?

Code:
Exception information
Type: System.NullReferenceException
Message: Object reference not set to an instance of an object.
Source: TaleWorlds.CampaignSystem
CallStack:
[LIST=1]
[*]at void TaleWorlds.CampaignSystem.GameState.MenuContext.HandleStates()
[*]at void TaleWorlds.CampaignSystem.GameState.MapState.EnterMenuMode()
[*]at void TaleWorlds.CampaignSystem.GameMenus.GameMenu.ActivateGameMenu(string menuId)
[*]at void TaleWorlds.CampaignSystem.Encounters.PlayerEncounter.Init(PartyBase attackerParty, PartyBase defenderParty, Settlement settlement)
[*]at void TaleWorlds.CampaignSystem.EncounterManager.StartPartyEncounter(PartyBase attackerParty, PartyBase defenderParty)
[*]at void TaleWorlds.CampaignSystem.Party.MobileParty.TaleWorlds.CampaignSystem.Map.IMapEntity.OnPartyInteraction(MobileParty engagingParty)
[*]at void TaleWorlds.CampaignSystem.EncounterManager.HandleEncounterForMobileParty(MobileParty mobileParty, float dt)
[*]at void TaleWorlds.CampaignSystem.EncounterManager.HandleEncounters(float dt)
[*]at void TaleWorlds.CampaignSystem.Campaign.Tick()
[*]at void TaleWorlds.CampaignSystem.GameState.MapState.OnMapModeTick(float dt)
[*]at void TaleWorlds.CampaignSystem.GameState.MapState.OnTick(float dt)
[*]at void TaleWorlds.Core.GameStateManager.OnTick(float dt)
[*]at void TaleWorlds.Core.Game.OnTick(float dt)
[*]at void TaleWorlds.Core.GameManagerBase.OnTick(float dt)
[*]at void TaleWorlds.MountAndBlade.Module.OnApplicationTick_Patch2(Module this, float dt)
[/LIST]
 
here are code
Code:
    public override void OnMissionModeChange(MissionMode oldMissionMode, bool atStart)
    {
        if (!atStart)
        {
            foreach (Agent agent in base.Mission.Agents)
            {
                if (agent.IsHuman)
                {
                    agent.SetAgentExcludeStateForFaceGroupId(_disabledFaceId, agent.CurrentWatchState != Agent.WatchState.Alarmed);
                }
            }

            // Change
            if (oldMissionMode == MissionMode.Conversation)
            {

                if (// some condition)
                {
                    Task.Delay(2000);
                    PlayerEncounter.LocationEncounter.CreateAndOpenMissionController(LocationComplex.Current.GetLocationWithId(Helper.LocationNames.tavern), null, null, null);
                }
            }
        }
    }
 
The crash is most likely happening because of the mods installed. Could you try to reproduce the same crash without the mods? Sadly we can't offer support on mod related issues.
 
Back
Top Bottom