Can't Open Project after adding a C++ file to blueprint project

Please Help!

I tried adding a C++ file to my Blueprint project (Called “TestProject”) to get DiscordSDK integration for my game, but it wasn’t working for some reason. So I closed the editor then tried to relaunch it and it says “The following modules are missing or built with a different engine version: TestProject”, pressing no doesn’t do anything and pressing yes says it failed. I’m at the point of giving up on the discord thing so can someone help me just get rid of the C++ stuff and go back to launching it normally?

1 Like

You have compile error. W will be unable to help you without the logs. Please give us some. You will need IDE for this. Open your project in some IDE, Visual Studio or even better, Rider. Build project, and you will get more detailed error.

heres where it looks like it cant find the missing module in the log. I am currently installing Rider so I can hopefully compile it.

image
Welp now while trying to open the project through Rider it says its blueprint only.

This is strange, to be honest. Adding C++ class should convert your project to from BP to C++. Issue probably is that it cannot build the project.
Can you go through this? Setting Up Visual Studio Development Environment For C++ Projects In Unreal Engine | Unreal Engine 5.4 Documentation | Epic Developer Community

Ok I went through those steps on Visual Studio, how do I attempt to launch the project through VS?

Right click on Uproject File → Generate visual studio project file. Then open generated SLN in your Visual Studio or Rider. Then when you press Play button in the IDE, it will build and run the project.

If possible, in your project root, open Saved directory, compress Logs dir and attach logs here. So that we can see what’s going on.

Logs.zip (21.7 KB)

Just for the test, open your .uproject file, find something similar to this, and remove it.
BACKUP YOUR UPROJECT FILE if you are not using git beacuse you should have something like this. But let’s just test if project will compile and run. If not, I’m afraid I’m our of options with current error in the logs :(.

"Modules": [
	{
		"Name": "TestProject",
		"Type": "Runtime",
		"LoadingPhase": "Default"
	}
]

Just to clarify, should I delete the whole “Modules” section, or just the {} and its contents

That worked thank you so much! I still don’t really know what happened but I won’t be trying that again lol.

1 Like

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