HaywireInteractive / OnAllFronts-Public

UE5 MilSim FPS / RTS Game (formerly ProjectM)
MIT License
128 stars 24 forks source link

In non-editor builds when changing level hit Mass ensure about entity composition #763

Closed Leroy231 closed 4 months ago

Leroy231 commented 1 year ago

May be fixed, just need to verify.

Change level with console command open <level>.

Error:

Ensure condition failed: OldArchetype->GetCompositionDescriptor().HasAll(InDescriptor) [File:D:\repos\UnrealEngine\Engine\Plugins\Runtime\MassEntity\Source\MassEntity\Private\MassEntityManager.cpp] [Line: 766] Some of the elements being removed are already missing from entity's composition.

Stack:

>   [Inline Frame] UnrealEditor-MassEntity.dll!FMassEntityManager::RemoveCompositionFromEntity::__l15::<lambda_6>::operator()() Line 766    C++
    UnrealEditor-MassEntity.dll!FMassEntityManager::RemoveCompositionFromEntity(FMassEntityHandle Entity, const FMassArchetypeCompositionDescriptor & InDescriptor) Line 766    C++
    UnrealEditor-MassActors.dll!UMassAgentSubsystem::UnregisterAgentComponent(UMassAgentComponent & AgentComp) Line 204 C++
    [Inline Frame] UnrealEditor-MassActors.dll!UMassAgentSubsystem::ShutdownAgentComponent(UMassAgentComponent &) Line 251  C++
    UnrealEditor-MassActors.dll!UMassAgentComponent::UnregisterWithAgentSubsystem() Line 127    C++
    UnrealEditor-MassActors.dll!UMassAgentComponent::OnUnregister() Line 149    C++
    UnrealEditor-Engine.dll!UActorComponent::ExecuteUnregisterEvents() Line 1706    C++
    UnrealEditor-Engine.dll!UActorComponent::UnregisterComponent() Line 1420    C++
    UnrealEditor-Engine.dll!AActor::UnregisterAllComponents(bool bForReregister) Line 5324  C++
    UnrealEditor-Engine.dll!UWorld::DestroyActor(AActor * ThisActor, bool bNetForce, bool bShouldModifyLevel) Line 1003 C++
    UnrealEditor-Engine.dll!UEngine::LoadMap(FWorldContext & WorldContext, FURL URL, UPendingNetGame * Pending, FString & Error) Line 14843 C++
    UnrealEditor-Engine.dll!UEngine::Browse(FWorldContext & WorldContext, FURL URL, FString & Error) Line 14390 C++
    UnrealEditor-Engine.dll!UEngine::TickWorldTravel(FWorldContext & Context, float DeltaSeconds) Line 14588    C++
    UnrealEditor-Engine.dll!UGameEngine::Tick(float DeltaSeconds, bool bIdleMode) Line 1761 C++
    UnrealEditor.exe!FEngineLoop::Tick() Line 5825  C++
    [Inline Frame] UnrealEditor.exe!EngineTick() Line 61    C++
    UnrealEditor.exe!GuardedMain(const wchar_t * CmdLine) Line 188  C++
    UnrealEditor.exe!GuardedMainWrapper(const wchar_t * CmdLine) Line 118   C++
    UnrealEditor.exe!LaunchWindowsStartup(HINSTANCE__ * hInInstance, HINSTANCE__ * hPrevInstance, char * __formal, int nCmdShow, const wchar_t * CmdLine) Line 258  C++
    UnrealEditor.exe!WinMain(HINSTANCE__ * hInInstance, HINSTANCE__ * hPrevInstance, char * pCmdLine, int nCmdShow) Line 298    C++
    [Inline Frame] UnrealEditor.exe!invoke_main() Line 102  C++
    UnrealEditor.exe!__scrt_common_main_seh() Line 288  C++
    kernel32.dll!00007ffa4405257d() Unknown
    ntdll.dll!00007ffa4628aa78()    Unknown