UWorld::AttemptDeriveFromPlayInSettings() is returning NM_Dedicated server when Use Single Process is disabled in the play settings and the Editor Multiplayer Mode is set to Play as Listen Server.
It is expected that it would return NM_ListenServer.
case EPlayNetMode::PIE_ListenServer: { bool bDedicatedServer = false; PlayInSettings->GetPlayNetDedicated(bDedicatedServer); if(bDedicatedServer == true) { //Add this line UE_LOG(LogTemp, Warning, TEXT("NM_DedicatedServer")); return NM_DedicatedServer; } }
Result: Check the log and notice that the if(bDedicatedServer == true) check succeeded
Expected: Since you have overridden the Play Mode to be Play as Listen Server, it would ignore the Run Dedicated Server option
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-44504 in the post.
1 |
Component | UE - Networking |
---|---|
Affects Versions | 4.15, 4.16 |
Target Fix | 4.25.3 |
Created | Apr 28, 2017 |
---|---|
Resolved | Feb 3, 2021 |
Updated | Feb 11, 2021 |