Hi,
I intend to customize my window therefore I think this is the way to go: create a new C++ (UServerGame) class deriving from UGameEngine and then override virtual function Init.
So for a start, I simply copy+paste the C++ code from UGameEngine::Init into my UServerGame::Init. And then since there are lots of compile error, I also copy+paste all header files in GameEngine.cpp and managed to get pass compilation stage. However, the are link errors:-
Error 5 error MSB3073: The command ""C:\Program Files\Epic Games\4.8\Engine\Build\BatchFiles\Build.bat" Intechange_ServerEditor Win64 Development "C:\Users\lenovo\Documents\Unreal Projects\Intechange_Server\Intechange_Server.uproject" -rocket" exited with code -1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets 38
Error 1 error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class UClass * __cdecl UGameMapsSettings::StaticClass(void)" (__imp_?StaticClass@UGameMapsSettings@@SAPEAVUClass@@XZ) referenced in function "class UGameMapsSettings const * __cdecl GetDefault<class UGameMapsSettings>(void)" (??$GetDefault@VUGameMapsSettings@@@@YAPEBVUGameMapsSettings@@XZ) C:\Users\lenovo\Documents\Unreal Projects\Intechange_Server\Intermediate\ProjectFiles\ServerGameEngine.cpp.obj
Error 2 error LNK2019: unresolved external symbol "public: void __cdecl FNetworkProfiler::EnableTracking(bool)" (?EnableTracking@FNetworkProfiler@@QEAAX_N@Z) referenced in function "public: virtual void __cdecl UServerGameEngine::Init(class IEngineLoop *)" (?Init@UServerGameEngine@@UEAAXPEAVIEngineLoop@@@Z) C:\Users\lenovo\Documents\Unreal Projects\Intechange_Server\Intermediate\ProjectFiles\ServerGameEngine.cpp.obj
Any idea how to fix this error?