Error: game module could not be found

Hello all

I’ve created a new project on my local drive, and all the codes and blueprints were working completely fine, then I tried to copy my codes to a Perforce server, which gave me the following error everytime I try to run the editor.

“The game module could not be found. Please ensure that this module exists and that it is compiled”.

I followed the steps suggested badsensation here:
link text

I tried to do practically everything twice, and nothing could fix it, but there was an interesting line in the log screen when I added the “-log” parameter when launching the editor:

LogModuleManager: Warning: Found module file ../../../../MyGame/Binaries//Win64/UE4Editor-MyGame.dll (version 1 0 0 0), but it was incompatible with the current engine version (4 0 0 0). This is likely a stale module that must be recompiled.

LogModuleManager: Warning: ModuleManager: Unable to load module '../../../../MyGame/Binaries//Win64/UE4Editor-MyGame.dll' because the file was not found.

My Source version is 4.0.2, not 4.0.0. Yes, I tried to clean & build, rebuild, a million times, and the builds were successful, but the error still exists.

Is there anything that you guys can suggest?? Our artists need to continue working, we really need a quick fix.

Ok guys. I truly have no idea what is causing this, but there is a way to “Bypass” it.

Open ModuleManager.cpp from the UE4 Engine files, line 1943, and make it “return true” instead of “return false”.

Rebuild, and run it.

I am sure there is a better way to fix this, but it worked for me, and I hope it works for someone else.

P.S: I am using UE4 source version 4.0.2

So I just got this error during a tutorial on Udemy. When I loaded the project from explorer or the epic launcher, at around 75% it stops and gives the exact same error as you. I am using UE4.18.2 with visual studio community 2017, and this was the fix for me:

  • Open the solution (.sln) of visual studios.
  • Build the code in visual studio (or maybe rebuild, I just pressed ctrl + shift + b).
  • Open your project from the epic launcher.

Hope this helps for you guys!

the problem is : there is an error in your code , open vs file and try to solve error and rebuild project
if it rebuild without error then your project will start normally

In Version 4.20, I tried recompiling in DebugGame_Editor mode for many times, but it did not work.

To my surprise, when I switch to DevelopmentGame_Editor model and compile it in VS, I find that the hotload DLLs are cleaned and rebuilt, and I open the uproject file successfully in the editor.