Hello.
I found interesting moment.
My project has some of my C++ code.
If I compile game executable file (MyGame.exe), it’s will be in e:\MyGame\Binaries\Win64\ and if I will start this file (e:\MyGame\Binaries\Win64\MyGame.exe), it’s started well and everything in it working fine.
But if I compile exe file of the game server (MyGameServer.exe), it’s will get an error message
Assertion failed: GDefaultMaterials[Domain] != NULL [File:e:\UnrealEngine\Engine\Source\Runtime\Engine\Private\Materials\Material.cpp] [Line: 359]
Cannot load default material 'engine-ini:/Script/Engine.Engine.DefaultMaterialName'
KERNELBASE.dll
MyGameServer.exe!FOutputDeviceWindowsError::Serialize() [e:\unrealengine\engine\source\runtime\core\private\windows\windowsplatformoutputdevices.cpp:103]
MyGameServer.exe!FOutputDevice::Logf__VA() [e:\unrealengine\engine\source\runtime\core\private\misc\outputdevice.cpp:94]
MyGameServer.exe!FDebug::AssertFailed() [e:\unrealengine\engine\source\runtime\core\private\misc\outputdevice.cpp:421]
MyGameServer.exe!UMaterialInterface::InitDefaultMaterials() [e:\unrealengine\engine\source\runtime\engine\private\materials\material.cpp:361]
MyGameServer.exe!FEngineLoop::PreInit() [e:\unrealengine\engine\source\runtime\launch\private\launchengineloop.cpp:1553]
MyGameServer.exe!GuardedMain() [e:\unrealengine\engine\source\runtime\launch\private\launch.cpp:117]
MyGameServer.exe!GuardedMainWrapper() [e:\unrealengine\engine\source\runtime\launch\private\windows\launchwindows.cpp:126]
MyGameServer.exe!WinMain() [e:\unrealengine\engine\source\runtime\launch\private\windows\launchwindows.cpp:202]
MyGameServer.exe!__scrt_common_main_seh() [f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:253]
KERNEL32.DLL
ntdll.dll
ntdll.dll
if it will be started from e:\MyGame\Binaries\Win64\MyGameServer.exe location.
But if I copy file MyGameServer.exe to the sub directory of the packaged game (e:\Package3\WindowsNoEditor) - e:\Package3\WindowsNoEditor\MyGame\Binaries\Win64\ and if I start it from e:\Package3\WindowsNoEditor\MyGame\Binaries\Win64\MyGameServer.exe, it’s works well, without any error messages.
Is it possible fix this issue to make possible to start MyGameServer.exe from e:\MyGame\Binaries\Win64\ directory?
Thank you!