PLEASE, I have been getting this error every project for the past few months. Every time, I tried to fix it and then when I couldn’t, I started my project again. I really don’t know what to do at this point because I am getting the “TestGame missing module built with different engine” and then “Failed to compile try rebuild from source” error that you see all over, BEFORE I HAVE EVEN SELECTED THE PROJECT TO LOAD. I LITERALLY OPEN UP UNREAL ENGINE AND I GET THE ERROR. LIKE ITS JUST SHOVING IT IN MY FACE. WHAT DO I DO. I HAVE TRIED EVERYTHING. DELETING SAVED, BINARIES, INTERMEDIATE. And then yes, sure, it will work, for a day, sometimes two, and then boom I’m back to the exact same error and I don’t know how to fix it and I am losing my mind and I want to cry why why why won’t this work. Honestly I would give you the passwords to my all my accounts if you said they would help so since I don’t know what information someone would need, I haven’t included any. But seriously as I said just ask me for anything. Literally anything I will give you. I am about to quit trying to make a game, it has been MONTHS of this and I have wiped my computer four times so it’s not that. Please someone I am actually begging someone please tell me what to do, seriously it would be so appreciated I may cry please…
ITS NOW ALSO HAPPENING IN BRAND NEW PROJECTS. BRAND. NEW. NO CODE BRAND NEW NOTHING CHANGED.
Does your project include any c++? (from the inclusion of the binaries folder I’m guessing that yes it does)
If so then you need to run your project from the project solution via your IDE and build your game that way. Running it from by clicking the uproject may throw an error messages.
You can also try right clicking your uproject file and regenerate the project, if it’s not running correctly from the sln file.
If the problem still persists then I would suggest opening the uproject file inside of a text editor and check if your json structure is correct. Maybe you added a module or plugin by hand and forgot a comma inside.
Try testing it in a json lint validator to see if the internals are ok.
OK so are there any downsides to always opening with visual studio? Also it is happening even in brand new projects. Am I cursed? Is my entire laptop just never going to work? Should I just give up? Is this just not solvable?
Not really downsides to it. You will be modifying the code 90% of the time at least until you get all of your gaming systems (character movement, interaction etc) up and running.
Make sure your project is selected and set as default start up (it’s name should be in bold in your IDE)
Then you can try “clean” and then “build” on your game project solution. This might clean up any errors regarding startup problems.
Does your project build successfully from the IDE?
Yes actually it works fine when I run it from VS but this has been happening for ages and I vaguely remember doing this and then it just breaking again. With me not even being able to run it from VS
For anyone else having this issue, the way I solved it was deleting the Saved, Intermediate and Binaries folder, regenerating project files, and then Only ever launching the project through command line like:
- cd "Your\Directory"
- YourGame.uproject
I think its something wrong with unreal engine like I keep on somehow breaking it without knowing and causing this error.