Hello!
I use the “FPlatformProcess::CreateProc” to run another dedicated server with the -log argument, and I’m having problems.
If I run the dedicated server with the -log argument via a shortcut, then everything runs correctly.
And if I run the same thing using the “FPlatformProcess::CreateProc”, the dedicated server loads video adapter, which should not be. As a result, the server reports an error “Failed to choose a D3D11 Adapter” and stops working.
void UPVFuncLibBP::LaunchArenaServer(UObject * WorldContextObject, FString Attributes)
{
FString ExecuterPath = FPaths::ProjectDir() + "Binaries/Win64/ServerManager.exe";
UE_LOG(LogWindows, Log, TEXT("CreateProc %s %s"), *ExecuterPath, *Attributes);
FPlatformProcess::CreateProc
(
*ExecuterPath,
*Attributes,
true,
false,
false,
nullptr,
0,
nullptr,
nullptr
);
}
And use this:
And result:
Tell me where to look for the answer. If there is a solution, I will be very glad to see. Many thanks!