Game Module Can't be loaded


i tried to change the name of “ToolTanksGameMode” to ToonTanksGameMode" class name from VScode but then i tried to deleted ToolTankGameMode from editor and created new GameModeBase C++ class But it says to recompile to show changes and when i tried to recompile it gave me an error -

I suggest you compile from VS Code and not through Unreal.
To do that via VS Code use

Ctrl + Shift + B > ProjectNameEditor Platform Development Build.

Where ProjectName is the name of your project and Platform is the platform you’re targeting e.g. Win64


getting error like this

Could you post that in text form? Also are you using an engine built from source?

because of too many @ in the error i can’t send it in text form it says u can’t pin too many people

Even if you put it in a performed text block?

Building 3 actions with 1 process...
[1/3] Compile ToonTanksGameMode.cpp
[2/3] Link ToonTanks.exe
   Creating library D:\ToonTanksProjectSetup_4.25\ToonTanksProjectSetup_4.25\ToonTanks\Binaries\Win64\ToonTanks.lib and object D:\ToonTanksProjectSetup_4.25\ToonTanksProjectSetup_4.25\ToonTanks\Binaries\Win64\ToonTanks.exp
Module.Launch.cpp.obj : error LNK2019: unresolved external symbol "bool GIsGameAgnosticExe" (?GIsGameAgnosticExe@@3_NA) referenced in function "void __cdecl LaunchFixGameNameCase(void)" (?LaunchFixGameNameCase@@YAXXZ)
Module.Core.9_of_18.cpp.obj : error LNK2001: unresolved external symbol "bool GIsGameAgnosticExe" (?GIsGameAgnosticExe@@3_NA)
Module.AutomationController.cpp.obj : error LNK2001: unresolved external symbol "wchar_t * GInternalProjectName" (?GInternalProjectName@@3PA_WA)
Module.StorageServerClient.cpp.obj : error LNK2001: unresolved external symbol "wchar_t * GInternalProjectName" (?GInternalProjectName@@3PA_WA)
Module.Engine.52_of_57.cpp.obj : error LNK2001: unresolved external symbol "wchar_t * GInternalProjectName" (?GInternalProjectName@@3PA_WA)
IPlatformFileSandboxWrapper.cpp.obj : error LNK2001: unresolved external symbol "wchar_t * GInternalProjectName" (?GInternalProjectName@@3PA_WA)
Module.NetworkFile.cpp.obj : error LNK2001: unresolved external symbol "wchar_t * GInternalProjectName" (?GInternalProjectName@@3PA_WA)
Module.AutomationWorker.cpp.obj : error LNK2001: unresolved external symbol "wchar_t * GInternalProjectName" (?GInternalProjectName@@3PA_WA)
Module.Engine.24_of_57.cpp.obj : error LNK2001: unresolved external symbol "wchar_t * GInternalProjectName" (?GInternalProjectName@@3PA_WA)
Module.Engine.31_of_57.cpp.obj : error LNK2001: unresolved external symbol "wchar_t * GInternalProjectName" (?GInternalProjectName@@3PA_WA)
Module.Engine.43_of_57.cpp.obj : error LNK2001: unresolved external symbol "wchar_t * GInternalProjectName" (?GInternalProjectName@@3PA_WA)
Module.Engine.50_of_57.cpp.obj : error LNK2001: unresolved external symbol "wchar_t * GInternalProjectName" (?GInternalProjectName@@3PA_WA)
Module.Localization.cpp.obj : error LNK2001: unresolved external symbol "wchar_t * GInternalProjectName" (?GInternalProjectName@@3PA_WA)
Module.LiveCoding.cpp.obj : error LNK2001: unresolved external symbol "wchar_t * GInternalProjectName" (?GInternalProjectName@@3PA_WA)
Module.Engine.2_of_57.cpp.obj : error LNK2001: unresolved external symbol "wchar_t * GInternalProjectName" (?GInternalProjectName@@3PA_WA)
Module.Engine.20_of_57.cpp.obj : error LNK2001: unresolved external symbol "wchar_t * GInternalProjectName" (?GInternalProjectName@@3PA_WA)
Module.CookOnTheFly.cpp.obj : error LNK2001: unresolved external symbol "wchar_t * GInternalProjectName" (?GInternalProjectName@@3PA_WA)
Module.RenderCore.1_of_4.cpp.obj : error LNK2001: unresolved external symbol "wchar_t * GInternalProjectName" (?GInternalProjectName@@3PA_WA)
Module.RenderCore.3_of_4.cpp.obj : error LNK2001: unresolved external symbol "wchar_t * GInternalProjectName" (?GInternalProjectName@@3PA_WA)
Module.PakFile.cpp.obj : error LNK2001: unresolved external symbol "wchar_t * GInternalProjectName" (?GInternalProjectName@@3PA_WA)
Module.D3D12RHI.1_of_4.cpp.obj : error LNK2001: unresolved external symbol "wchar_t * GInternalProjectName" (?GInternalProjectName@@3PA_WA)
Module.BuildPatchServices.1_of_3.cpp.obj : error LNK2001: unresolved external symbol "wchar_t * GInternalProjectName" (?GInternalProjectName@@3PA_WA)
Module.VulkanRHI.3_of_4.cpp.obj : error LNK2001: unresolved external symbol "wchar_t * GInternalProjectName" (?GInternalProjectName@@3PA_WA)
Module.VulkanRHI.4_of_4.cpp.obj : error LNK2001: unresolved external symbol "wchar_t * GInternalProjectName" (?GInternalProjectName@@3PA_WA)
Module.HTTP.cpp.obj : error LNK2001: unresolved external symbol "wchar_t * GInternalProjectName" (?GInternalProjectName@@3PA_WA)
Module.ApplicationCore.cpp.obj : error LNK2001: unresolved external symbol "wchar_t * GInternalProjectName" (?GInternalProjectName@@3PA_WA)
Module.Settings.cpp.obj : error LNK2001: unresolved external symbol "wchar_t * GInternalProjectName" (?GInternalProjectName@@3PA_WA)
Module.D3D11RHI.cpp.obj : error LNK2001: unresolved external symbol "wchar_t * GInternalProjectName" (?GInternalProjectName@@3PA_WA)
Module.Core.11_of_18.cpp.obj : error LNK2001: unresolved external symbol "wchar_t * GInternalProjectName" (?GInternalProjectName@@3PA_WA)
Module.Core.12_of_18.cpp.obj : error LNK2001: unresolved external symbol "wchar_t * GInternalProjectName" (?GInternalProjectName@@3PA_WA)
Module.Core.17_of_18.cpp.obj : error LNK2001: unresolved external symbol "wchar_t * GInternalProjectName" (?GInternalProjectName@@3PA_WA)
Module.CoreUObject.1_of_10.cpp.obj : error LNK2001: unresolved external symbol "wchar_t * GInternalProjectName" (?GInternalProjectName@@3PA_WA)
Module.Launch.cpp.obj : error LNK2001: unresolved external symbol "wchar_t * GInternalProjectName" (?GInternalProjectName@@3PA_WA)
Module.Core.3_of_18.cpp.obj : error LNK2001: unresolved external symbol "wchar_t * GInternalProjectName" (?GInternalProjectName@@3PA_WA)
Module.Core.9_of_18.cpp.obj : error LNK2001: unresolved external symbol "wchar_t * GInternalProjectName" (?GInternalProjectName@@3PA_WA)
Module.Core.10_of_18.cpp.obj : error LNK2001: unresolved external symbol "wchar_t * GInternalProjectName" (?GInternalProjectName@@3PA_WA)
Module.Core.3_of_18.cpp.obj : error LNK2019: unresolved external symbol "wchar_t const * const GForeignEngineDir" (?GForeignEngineDir@@3PEB_WEB) referenced in function "void __cdecl MakeEngineDir(class FString &)" (?MakeEngineDir@@YAXAEAVFString@@@Z)
Module.LiveCoding.cpp.obj : error LNK2019: unresolved external symbol "unsigned char * * GNameBlocksDebug" (?GNameBlocksDebug@@3PEAPEAEEA) referenced in function "private: static bool __cdecl CommandMap::ReceiveAndCallAction<struct actions::LoadPatch>(class DuplexPipe const *,void *,void *,unsigned __int64)" (??$ReceiveAndCallAction@ULoadPatch@actions@@@CommandMap@@CA_NPEBVDuplexPipe@@PEAX1_K@Z)
Module.LiveCoding.cpp.obj : error LNK2019: unresolved external symbol "class FChunkedFixedUObjectArray * & GObjectArrayForDebugVisualizers" (?GObjectArrayForDebugVisualizers@@3AEAPEAVFChunkedFixedUObjectArray@@EA) referenced in function "private: static bool __cdecl CommandMap::ReceiveAndCallAction<struct actions::LoadPatch>(class DuplexPipe const *,void *,void *,unsigned __int64)" (??$ReceiveAndCallAction@ULoadPatch@actions@@@CommandMap@@CA_NPEBVDuplexPipe@@PEAX1_K@Z)
Module.LiveCoding.cpp.obj : error LNK2019: unresolved external symbol "wchar_t const * const GLiveCodingEngineDir" (?GLiveCodingEngineDir@@3PEB_WEB) referenced in function "public: virtual void __cdecl FLiveCodingModule::StartupModule(void)" (?StartupModule@FLiveCodingModule@@UEAAXXZ)
Module.LiveCoding.cpp.obj : error LNK2019: unresolved external symbol "wchar_t const * const GLiveCodingProject" (?GLiveCodingProject@@3PEB_WEB) referenced in function "public: virtual void __cdecl FLiveCodingModule::StartupModule(void)" (?StartupModule@FLiveCodingModule@@UEAAXXZ)
D:\ToonTanksProjectSetup_4.25\ToonTanksProjectSetup_4.25\ToonTanks\Binaries\Win64\ToonTanks.exe : fatal error LNK1120: 7 unresolved externals
The terminal process "C:\WINDOWS\System32\cmd.exe /d /c Engine\Build\BatchFiles\Build.bat ToonTanks Win64 Development D:\ToonTanksProjectSetup_4.25\ToonTanksProjectSetup_4.25\ToonTanks\ToonTanks.uproject -waitmutex" terminated with exit code: 6.

Terminal will be reused by tasks, press any key to close it..


And are you using an editor built from source?


u mean this?

No and by “editor” I meant “engine”. As in did you build Unreal from source?

idk how to check that ,can you help me how to do that

If you don’t know what I’m talking about then it’s very unlikely.

Is there anything else you did between your project compiling and it not? Could you try verifying your engine

verify

i think i deleted ToolTanks cpp and header file from vscode and added new class from editor after compiling it gave me these errors
ok, let me try verify my engine

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms