# Dedicated Server and World Partitioning (MissingLevelPackage)

**URL:** <https://forums.unrealengine.com/t/dedicated-server-and-world-partitioning-missinglevelpackage/602938>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, UE5-0, Packaging, question\
**Created:** [July 12, 2022, 7:14am UTC](https://forums.unrealengine.com/t/dedicated-server-and-world-partitioning-missinglevelpackage/602938 "2022-07-12T07:14:44Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ennorehling](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ennorehling/32/593541_2.png) [@ennorehling](https://forums.unrealengine.com/u/ennorehling)\
**Post date:** [July 12, 2022, 7:14am UTC](https://forums.unrealengine.com/t/dedicated-server-and-world-partitioning-missinglevelpackage/602938/1 "2022-07-12T07:14:44Z")

</div>

I am packaging a dedicated server with a map that uses world partitioning. There’s an entry map that connects to the server, and when I start a client from that entry map from the editor, in “Standalone Game” mode, I get kicked out immediately after connecting, with the following messages in the server log:

```auto
LogPlayerController: Warning: ServerUpdateLevelVisibility() ignored non-existant package. PackageName='/Memory/OpenWorld_MainGrid_L2_X-1_Y-1_DL0', FileName='/Memory/OpenWorld_MainGrid_L2_X-1_Y-1_DL0'
LogNet: UNetConnection::Close: CloseReason:
LogNet: - Result=MissingLevelPackage, ErrorContext="/Memory/OpenWorld_MainGrid_L2_X-1_Y-1_DL0,/Memory/OpenWorld_MainGrid_L2_X-1_Y-1_DL0"

```

Notably, this only happens when starting the client from the editor. A packaged client works as expected.

This seems to be connected to world partitioning (I can connect fine to a non-partitioned map like the ThirdPersonExampleMap, but even the unmodified “Open World” level will fail. What could I be missing?

---

<div class="post-metadata">

**Author:** ![ennorehling](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ennorehling/32/593541_2.png) [@ennorehling](https://forums.unrealengine.com/u/ennorehling)\
**Post date:** [July 12, 2022, 7:29am UTC](https://forums.unrealengine.com/t/dedicated-server-and-world-partitioning-missinglevelpackage/602938/2 "2022-07-12T07:29:12Z")

</div>

For the sake of completeness, if I try to connect with a PIE client, the editor crashes with an assertion:

```auto
Assertion failed: PIEInstanceID != INDEX_NONE [File:D:\Source\UnrealEngine\Engine\Source\Runtime\Engine\Private\WorldPartition\WorldPartitionLevelStreamingDynamic.cpp] [Line: 395]

UnrealEditor_Engine!UWorldPartitionLevelStreamingDynamic::FinalizeRuntimeLevel() [D:\Source\UnrealEngine\Engine\Source\Runtime\Engine\Private\WorldPartition\WorldPartitionLevelStreamingDynamic.cpp:395]
UnrealEditor_Engine!<lambda_28f6e57365b2a69c5efc67b5b153067f>::operator()() [D:\Source\UnrealEngine\Engine\Source\Runtime\Engine\Private\WorldPartition\WorldPartitionLevelHelper.cpp:318]
UnrealEditor_Engine!TBaseFunctorDelegateInstance<void __cdecl(FName const &,UPackage *,enum EAsyncLoadingResult::Type),FDefaultDelegateUserPolicy,<lambda_28f6e57365b2a69c5efc67b5b153067f> >::ExecuteIfSafe() [D:\Source\UnrealEngine\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:838]
UnrealEditor_CoreUObject!FAsyncPackage::CallCompletionCallbacks() [D:\Source\UnrealEngine\Engine\Source\Runtime\CoreUObject\Private\Serialization\AsyncLoading.cpp:6646]
UnrealEditor_CoreUObject!FAsyncLoadingThread::ProcessLoadedPackages() [D:\Source\UnrealEngine\Engine\Source\Runtime\CoreUObject\Private\Serialization\AsyncLoading.cpp:4300]
UnrealEditor_CoreUObject!FAsyncLoadingThread::TickAsyncLoading() [D:\Source\UnrealEngine\Engine\Source\Runtime\CoreUObject\Private\Serialization\AsyncLoading.cpp:4441]
UnrealEditor_CoreUObject!FAsyncLoadingThread::FlushLoading() [D:\Source\UnrealEngine\Engine\Source\Runtime\CoreUObject\Private\Serialization\AsyncLoading.cpp:6833]
UnrealEditor_CoreUObject!FlushAsyncLoading() [D:\Source\UnrealEngine\Engine\Source\Runtime\CoreUObject\Private\Serialization\AsyncPackageLoader.cpp:637]
UnrealEditor_Engine!UWorld::FlushLevelStreaming() [D:\Source\UnrealEngine\Engine\Source\Runtime\Engine\Private\World.cpp:4203]
UnrealEditor_Engine!UWorld::BlockTillLevelStreamingCompleted() [D:\Source\UnrealEngine\Engine\Source\Runtime\Engine\Private\World.cpp:3863]
UnrealEditor_Engine!TBaseUObjectMethodDelegateInstance<0,UWorldPartition,void __cdecl(void),FDefaultDelegateUserPolicy>::ExecuteIfSafe() [D:\Source\UnrealEngine\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:611]
UnrealEditor_Engine!TMulticastDelegate<void __cdecl(void),FDefaultDelegateUserPolicy>::Broadcast() [D:\Source\UnrealEngine\Engine\Source\Runtime\Core\Public\Delegates\DelegateSignatureImpl.inl:967]
UnrealEditor_Engine!AWorldSettings::NotifyMatchStarted() [D:\Source\UnrealEngine\Engine\Source\Runtime\Engine\Private\WorldSettings.cpp:300]
UnrealEditor_CoreUObject!UFunction::Invoke() [D:\Source\UnrealEngine\Engine\Source\Runtime\CoreUObject\Private\UObject\Class.cpp:5912]
UnrealEditor_CoreUObject!UObject::ProcessEvent() [D:\Source\UnrealEngine\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:2003]
UnrealEditor_Engine!AActor::ProcessEvent() [D:\Source\UnrealEngine\Engine\Source\Runtime\Engine\Private\Actor.cpp:1030]
UnrealEditor_Engine!FRepLayout::CallRepNotifies() [D:\Source\UnrealEngine\Engine\Source\Runtime\Engine\Private\RepLayout.cpp:4548]
UnrealEditor_Engine!FObjectReplicator::CallRepNotifies() [D:\Source\UnrealEngine\Engine\Source\Runtime\Engine\Private\DataReplication.cpp:2170]
UnrealEditor_Engine!UActorChannel::ProcessBunch() [D:\Source\UnrealEngine\Engine\Source\Runtime\Engine\Private\DataChannel.cpp:2965]
UnrealEditor_Engine!UActorChannel::ReceivedBunch() [D:\Source\UnrealEngine\Engine\Source\Runtime\Engine\Private\DataChannel.cpp:2768]
UnrealEditor_Engine!UChannel::ReceivedSequencedBunch() [D:\Source\UnrealEngine\Engine\Source\Runtime\Engine\Private\DataChannel.cpp:416]
UnrealEditor_Engine!UChannel::ReceivedNextBunch() [D:\Source\UnrealEngine\Engine\Source\Runtime\Engine\Private\DataChannel.cpp:877]
UnrealEditor_Engine!UChannel::ReceivedRawBunch() [D:\Source\UnrealEngine\Engine\Source\Runtime\Engine\Private\DataChannel.cpp:528]
UnrealEditor_Engine!UNetConnection::ReceivedPacket() [D:\Source\UnrealEngine\Engine\Source\Runtime\Engine\Private\NetConnection.cpp:3202]
UnrealEditor_Engine!UNetConnection::ReceivedRawPacket() [D:\Source\UnrealEngine\Engine\Source\Runtime\Engine\Private\NetConnection.cpp:1594]
UnrealEditor_OnlineSubsystemUtils!UIpNetDriver::TickDispatch() [D:\Source\UnrealEngine\Engine\Plugins\Online\OnlineSubsystemUtils\Source\OnlineSubsystemUtils\Private\IpNetDriver.cpp:1396]
UnrealEditor_Engine!TBaseUObjectMethodDelegateInstance<0,UNetDriver,void __cdecl(float),FDefaultDelegateUserPolicy>::ExecuteIfSafe() [D:\Source\UnrealEngine\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:611]
UnrealEditor_Engine!TMulticastDelegate<void __cdecl(float),FDefaultDelegateUserPolicy>::Broadcast() [D:\Source\UnrealEngine\Engine\Source\Runtime\Core\Public\Delegates\DelegateSignatureImpl.inl:967]
UnrealEditor_Engine!UWorld::Tick() [D:\Source\UnrealEngine\Engine\Source\Runtime\Engine\Private\LevelTick.cpp:1373]
UnrealEditor_UnrealEd!UEditorEngine::Tick() [D:\Source\UnrealEngine\Engine\Source\Editor\UnrealEd\Private\EditorEngine.cpp:1777]
UnrealEditor_UnrealEd!UUnrealEdEngine::Tick() [D:\Source\UnrealEngine\Engine\Source\Editor\UnrealEd\Private\UnrealEdEngine.cpp:474]
UnrealEditor!FEngineLoop::Tick() [D:\Source\UnrealEngine\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:5215]
UnrealEditor!GuardedMain() [D:\Source\UnrealEngine\Engine\Source\Runtime\Launch\Private\Launch.cpp:183]
UnrealEditor!GuardedMainWrapper() [D:\Source\UnrealEngine\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:147]
UnrealEditor!LaunchWindowsStartup() [D:\Source\UnrealEngine\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:283]
UnrealEditor!WinMain() [D:\Source\UnrealEngine\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:330]
UnrealEditor!__scrt_common_main_seh() [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]

```

That probably should not happen, either. Again, this only happens in maps with world partitioning.

---

<div class="post-metadata">

**Author:** ![NEVQ151](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NEVQ151](https://forums.unrealengine.com/u/NEVQ151)\
**Post date:** [September 9, 2022, 1:41pm UTC](https://forums.unrealengine.com/t/dedicated-server-and-world-partitioning-missinglevelpackage/602938/3 "2022-09-09T13:41:29Z")

</div>

Hey did you find a solution for the first issue that you posted?

Thanks

---

<div class="post-metadata">

**Author:** ![ennorehling](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ennorehling/32/593541_2.png) [@ennorehling](https://forums.unrealengine.com/u/ennorehling)\
**Post date:** [September 13, 2022, 2:20pm UTC](https://forums.unrealengine.com/t/dedicated-server-and-world-partitioning-missinglevelpackage/602938/4 "2022-09-13T14:20:29Z")

</div>

No. I sent a report and test project to Epic in July, but haven’t heard back from them.

---

<div class="post-metadata">

**Author:** ![ennorehling](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ennorehling/32/593541_2.png) [@ennorehling](https://forums.unrealengine.com/u/ennorehling)\
**Post date:** [September 20, 2022, 8:15am UTC](https://forums.unrealengine.com/t/dedicated-server-and-world-partitioning-missinglevelpackage/602938/5 "2022-09-20T08:15:06Z")

</div>

Update: Epic have created a ticket for the issue. I don’t know if that means they reproduced it, but it has a “target fix” attribute of 5.1, which gives me hope.

> **[The Unreal Engine Issues and Bug Tracker](https://issues.unrealengine.com/issue/UE-163742)**
>
> Welcome to the Unreal Engine Issue and Bug Tracker. You can check the status of an issue and search for existing bugs. See latest bug fixes too.

---

<div class="post-metadata">

**Author:** ![Xayvair](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xayvair/32/731697_2.png) [@Xayvair](https://forums.unrealengine.com/u/Xayvair)\
**Post date:** [January 19, 2023, 6:27pm UTC](https://forums.unrealengine.com/t/dedicated-server-and-world-partitioning-missinglevelpackage/602938/6 "2023-01-19T18:27:26Z")

</div>

even though this says resolved its still happening for me in 5.1 any ideas?

---

<div class="post-metadata">

**Author:** ![Xayvair](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xayvair/32/731697_2.png) [@Xayvair](https://forums.unrealengine.com/u/Xayvair)\
**Post date:** [January 21, 2023, 10:07am UTC](https://forums.unrealengine.com/t/dedicated-server-and-world-partitioning-missinglevelpackage/602938/7 "2023-01-21T10:07:17Z")

</div>

Even though this ticket says it is resolved. The issue still seems to be occurring for me in 5.1, are you still getting this issue as well?

---

<div class="post-metadata">

**Author:** ![Talad](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Talad](https://forums.unrealengine.com/u/Talad)\
**Post date:** [February 16, 2023, 4:45pm UTC](https://forums.unrealengine.com/t/dedicated-server-and-world-partitioning-missinglevelpackage/602938/8 "2023-02-16T16:45:25Z")

</div>

It happens for me in 5.1.1. It happens only if the client is packaged (shipping or development is the same). A non packaged client works.

The result is that the client connecting is kicked out as its missing a map and so cannot login in the server (dedicated server setup) I get this error:

> [2023.02.16-17.04.07:068][338]LogNet: UNetConnection::SendCloseReason:  
> [2023.02.16-17.04.07:068][338]LogNet: - Result=MissingLevelPackage, ErrorContext=“/Game/Maps/MainWorld/Yliakum/_Generated_/MainGrid\_L7\_X-1\_Y-1\_DL0,/Game/Maps/MainWorld/Yliakum/_Generated_/MainGrid\_L7\_X-1\_Y-1\_DL0”

Adding manually the maps to “Packaging-\>List of maps to include in a package build” in settings doesnt help. The maps do not end up in the packaged game (I checked with unpak)

I guess the startup map is not included in the package as the engine thinks everything is worldpartition? I can’t release our game due to this. Any help please?

---

<div class="post-metadata">

**Author:** ![Xayvair](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xayvair/32/731697_2.png) [@Xayvair](https://forums.unrealengine.com/u/Xayvair)\
**Post date:** [February 18, 2023, 4:21am UTC](https://forums.unrealengine.com/t/dedicated-server-and-world-partitioning-missinglevelpackage/602938/9 "2023-02-18T04:21:46Z")

</div>

yeah its a pain

---

<div class="post-metadata">

**Author:** ![Xayvair](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xayvair/32/731697_2.png) [@Xayvair](https://forums.unrealengine.com/u/Xayvair)\
**Post date:** [February 18, 2023, 12:21pm UTC](https://forums.unrealengine.com/t/dedicated-server-and-world-partitioning-missinglevelpackage/602938/10 "2023-02-18T12:21:16Z")

</div>

I think I found the issue which is frustrating but a possible solution. If you have a menu level that goes to your partition level. You will have to make the menu level apart of the partition level streaming levels. But the major issue is that the default game map must be the partition level

---

<div class="post-metadata">

**Author:** ![Xayvair](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xayvair/32/731697_2.png) [@Xayvair](https://forums.unrealengine.com/u/Xayvair)\
**Post date:** [February 18, 2023, 12:26pm UTC](https://forums.unrealengine.com/t/dedicated-server-and-world-partitioning-missinglevelpackage/602938/11 "2023-02-18T12:26:59Z")

</div>

its just not an ideal scenario for me haha

---

<div class="post-metadata">

**Author:** ![asmallcrayon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@asmallcrayon](https://forums.unrealengine.com/u/asmallcrayon)\
**Post date:** [May 27, 2023, 12:39am UTC](https://forums.unrealengine.com/t/dedicated-server-and-world-partitioning-missinglevelpackage/602938/12 "2023-05-27T00:39:25Z")

</div>

I had this issue with PIE client and uncooked server. Was able to workaround by re-applying the reverted change found here, looks like there are still issues with the content bundles in 5.1: [https://github.com/EpicGames/UnrealEngine/commit/611e2f1271c1172bf73b264dbdc10df87c1f5098](https://github.com/EpicGames/UnrealEngine/commit/611e2f1271c1172bf73b264dbdc10df87c1f5098)

---

<div class="post-metadata">

**Author:** ![zillionnn](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zillionnn](https://forums.unrealengine.com/u/zillionnn)\
**Post date:** [July 20, 2023, 4:43pm UTC](https://forums.unrealengine.com/t/dedicated-server-and-world-partitioning-missinglevelpackage/602938/13 "2023-07-20T16:43:23Z")

</div>

i tried use world partition in server map, same issue

---

<div class="post-metadata">

**Author:** ![tanis2000](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tanis2000/32/758783_2.png) [@tanis2000](https://forums.unrealengine.com/u/tanis2000)\
**Post date:** [December 21, 2023, 11:05am UTC](https://forums.unrealengine.com/t/dedicated-server-and-world-partitioning-missinglevelpackage/602938/14 "2023-12-21T11:05:39Z")

</div>

This is still relevant in 5.3.2  
Is there an actual solution?

---

<div class="post-metadata">

**Author:** ![sigma2082](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sigma2082](https://forums.unrealengine.com/u/sigma2082)\
**Post date:** [January 16, 2024, 4:06pm UTC](https://forums.unrealengine.com/t/dedicated-server-and-world-partitioning-missinglevelpackage/602938/15 "2024-01-16T16:06:16Z")

</div>

Same issue found in 5.2 when enable World Partition in ds server.  
Have not found the solution…

---

<div class="post-metadata">

**Author:** ![sigma2082](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sigma2082](https://forums.unrealengine.com/u/sigma2082)\
**Post date:** [January 29, 2024, 2:51am UTC](https://forums.unrealengine.com/t/dedicated-server-and-world-partitioning-missinglevelpackage/602938/16 "2024-01-29T02:51:13Z")

</div>

Disable WP in ds, same issue also happened…

---

<div class="post-metadata">

**Author:** ![DevslandSoftMkt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DevslandSoftMkt](https://forums.unrealengine.com/u/DevslandSoftMkt)\
**Post date:** [June 6, 2024, 10:58pm UTC](https://forums.unrealengine.com/t/dedicated-server-and-world-partitioning-missinglevelpackage/602938/17 "2024-06-06T22:58:21Z")

</div>

Hello everyone!

I have found how to fix this bug!

First of all, I want to say, that EpicGames completely broke possibility to use not-builded dedicated server with World Partition map with builded game client.  
You cannot use simple .bat file:

> “unreal path” projectName.uproject -server -log

To run dedicated server you should build it too. For example:

> “unreal path” BuildCookRun -nocompileeditor -projectName.uproject" -nop4 -build -cook -compressed -stage -noclient -server -serverplatform=Win64 -serverconfig=Development -pak -archive -archivedirectory=“%~dp0\DedicatedServerBuild” -utf8output

---

<div class="post-metadata">

**Author:** ![alexdjq](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@alexdjq](https://forums.unrealengine.com/u/alexdjq)\
**Post date:** [July 23, 2024, 4:02am UTC](https://forums.unrealengine.com/t/dedicated-server-and-world-partitioning-missinglevelpackage/602938/18 "2024-07-23T04:02:18Z")

</div>

Hello guys, our team have found the solution. There are two main reasons for the problem:

1. The package name is different between PIE client and cooked DS, so the DS Server will close the connection if the package name mismatched.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/6/f/a6f101c4de755aa14a9231db1eee513a105ae096.png)  
Under DS, the package name start with “/Game/ThirdPerson/…”

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/0/0/70059bab8706d8e62b031159c0580529b6d57819.png)  
Under PIE, the package name start with “/Memory/”

1. There is a bug if a game has both world partition map and non world partition map, duing the DS cooking process, they will affect each other, and can’t generate world partition information properly.

We fix the problem by the following code:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/d/7/7d723b57e140f29bb67d5bcdd2f61becfcbd3007.png)  
We just compare the hash value.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/4/2/84202a14f885460dc23ac23422e1df3262b5d176.png)  
Apply variables before generate a map every time.

After this, a PIE client can connect a cooked DS Server and work properly.

---

<div class="post-metadata">

**Author:** ![Dante\_farate](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dante\_farate](https://forums.unrealengine.com/u/Dante_farate)\
**Post date:** [September 10, 2024, 4:46pm UTC](https://forums.unrealengine.com/t/dedicated-server-and-world-partitioning-missinglevelpackage/602938/20 "2024-09-10T16:46:29Z")

</div>

Hey alex thanks for the fix i havent tested it yet although i am having this issue could you provide the files to make thease changes and have you considered opening a PR on github to merge this.  
Thanks Dante.  
(Edit)  
1st Picture: LevelUtils.cpp  
2nd Picture: WorldPartitionRuntimeSpatialHash.cpp

---

<div class="post-metadata">

**Author:** ![MikeSeese](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mikeseese/32/1022829_2.png) [@MikeSeese](https://forums.unrealengine.com/u/MikeSeese)\
**Post date:** [January 30, 2025, 4:21am UTC](https://forums.unrealengine.com/t/dedicated-server-and-world-partitioning-missinglevelpackage/602938/21 "2025-01-30T04:21:47Z")

</div>

I can confirm this fixed the issue for me in 5.4.4. Thanks so much! I believe this might worthwhile for a PR; are you interested in making the PR or shall I @alexdjq. Specifically here are the changes you need:

```diff
diff --git a/Engine/Source/Runtime/Engine/Private/LevelUtils.cpp b/Engine/Source/Runtime/Engine/Private/LevelUtils.cpp
index 94c190e10812..679026b70477 100644
--- a/Engine/Source/Runtime/Engine/Private/LevelUtils.cpp
+++ b/Engine/Source/Runtime/Engine/Private/LevelUtils.cpp
@@ -79,6 +79,26 @@ ULevelStreaming* FLevelUtils::FindStreamingLevel(const ULevel* Level)
 	return ULevelStreaming::FindStreamingLevel(Level);
 }
 
+static bool CompareRightMostSubPath(const FString& Lhs, const FString& Rhs)
+{
+	int32 LastSlashIndex = 0;
+	if (!Lhs.FindLastChar('/', LastSlashIndex))
+	{
+ return false;
+	}
+	int32 SubPathLength = Lhs.Len() - LastSlashIndex - 1;
+	bool bIsEqual = Lhs.Right(SubPathLength) == Rhs.Right(SubPathLength);
+	if (!bIsEqual)
+	{
+ if (Rhs.FindLastChar('/', LastSlashIndex))
+ {
+ SubPathLength = Rhs.Len() - LastSlashIndex - 1;
+ bIsEqual = Lhs.Right(SubPathLength) == Rhs.Right(SubPathLength);
+ }
+	}
+	return bIsEqual;
+}
+
 ULevelStreaming* FLevelUtils::FindStreamingLevel(UWorld* InWorld, const FName PackageName)
 {
 	ULevelStreaming* MatchingLevel = NULL;
@@ -91,6 +111,11 @@ ULevelStreaming* FLevelUtils::FindStreamingLevel(UWorld* InWorld, const FName Pa
 				MatchingLevel = CurStreamingLevel;
 				break;
 			}
+ if (CompareRightMostSubPath(PackageName.ToString(), CurStreamingLevel->GetWorldAssetPackageName()))
+ {
+ MatchingLevel = CurStreamingLevel;
+ break;
+ }
 		}
 	}
 	return MatchingLevel;

```

Note, `5.4.x` (fixed in `5.5.0`) also has a separate issue with connecting PIE clients to a packaged DS when using `ACharacter`: [Unreal 5.4 problem with a packaged game! Server spawns the character and client disconnecting with 'Failed to load package' error. - #10 by NV\_gnoowik](https://forums.unrealengine.com/t/unreal-5-4-problem-with-a-packaged-game-server-spawns-the-character-and-client-disconnecting-with-failed-to-load-package-error/1841350/10)

[Next page](https://forums.unrealengine.com/t/dedicated-server-and-world-partitioning-missinglevelpackage/602938.md?page=2)
