Can't open small test project any more - error on startup

We are pulling our hairs out trying to open this small test project again. We added a C++ ActorComponent and a few lines of code. We used the Spout Module from here: OWL Live-Streaming Toolkit The Spout Toolkit was working fine.

Then we added a C++ ActorComponent and tried to add a few lines of code. Unreal was complaining about some build errors.

I installed Visual Studio 2022 and setup all the workloads outlined here: Setting Up Visual Studio Development Environment for C++ Projects in Unreal Engine | Unreal Engine 5.3 Documentation

We have tried for hours to get it to work, but Unreal will always say that our module is missing or built with a different engine version:

Then after pressing yes, we get:

image

We have tried generating the Visual Studio project file and building it there, but always get several errors:

It’s like Visual Studio 2022 doesn’t know anything about Unreal. We have installed all the required workloads:

Can somebody please try to open/fix this project? We would be super grateful, because we don’t want to lose our work, but also want to understand what the problem is, so it doesn’t happen again.

Thanks!

1 Like

Did not tried to build your project, however:

  • get Rider it does not mess stuff like MSVC loves to do.

And this is what i found on internets: (first one should fix most cases of derp msvc)

    • Generate Project Files:In Unreal Engine, especially when you’re working with C++, it’s important to generate project files for your specific project. To do this:
  • Right-click on your .uproject file in the project’s root directory.

  • Choose "Generate Visual Studio project files."This will regenerate the .sln and .vcxproj files for your project. Open the generated .sln file in Visual Studio.

  • Rebuild the Solution:In Visual Studio, right-click on your project in the Solution Explorer and select “Rebuild.” This should trigger a clean build of your project, which may resolve any missing header issues.

  • Check Include Paths:

Verify that the include paths in your project settings are correctly set to include Unreal Engine’s directories. To do this:

Right-click on your project in the Solution Explorer and choose “Properties.” Under “Configuration Properties” → “VC++ Directories,” ensure that “Include Directories” includes the path to your Unreal Engine installation’s “Engine/Source/Runtime/Core/Public” directory.

  • Check Intellisense:

Visual Studio’s Intellisense can sometimes lag behind, especially after generating new project files or updating the engine. Try the following:

  • Close Visual Studio.
  • Delete the .vs folder in your project’s directory (this stores Intellisense cache).
  • Delete the .suo file (solution user options).
  • Reopen your project in Visual Studio.

hi @seltzdesign ,
I downloaded your sample project.
The problem is you have a module load request at the front of your
SpoutTest.uproject This needed to be edited with windows 10 notepad and the module entry removed

	"FileVersion": 3,
	"EngineAssociation": "5.3",
	"Category": "",
	"Description": "",
	"Modules": [
		{
			"Name": "SpoutTest",
			"Type": "Runtime",
			"LoadingPhase": "Default",
			"AdditionalDependencies": [
				"Engine"
			]
		}
	],
	"Plugins": [

Now the file looks like

	"FileVersion": 3,
	"EngineAssociation": "5.3",
	"Category": "",
	"Description": "",
	"Plugins": [

Save and exit notepad

Right click on “SpoutTest.uproject” and Select “open with”- > Unreal Engine.
If anything strange happens click Alt +Tab and check for the loading UE Editor . When complete a load of errors about faulty Static Meshes show up.
You can click the Play in editor and the project will run

The will be an error message about

The SpoutTestEditor.target file does not exist. Would you like to build the editor? Yes no

The answer is “no” this is because the UE Editor Play function want to initilize
If the plugins are correctly installed then you wont get an error.
so to remove them.This needed to be edited with windows 10 notepad and the plugin entry removed

		{
			"Name": "MoviePipelineMaskRenderPass",
			"Enabled": true
		},
		{
			"Name": "OWLLivestreamingToolkit",
			"Enabled": true,
			"MarketplaceURL": "com.epicgames.launcher://ue/marketplace/product/92307b570d474fbc87592b973ce82e3b",
			"SupportedTargetPlatforms": [
				"Win64"
			]
		},
		{
			"Name": "SpaceMouse",
			"Enabled": true,
			"MarketplaceURL": "com.epicgames.launcher://ue/marketplace/product/ad5ae5bca73f4a84a693394a0542fc92"
		}
	],
	"TargetPlatforms": [
		"Windows"
	]

Leaving the layout looking like

		{
			"Name": "MovieRenderPipeline",
			"Enabled": true
		},
		{
			"Name": "MoviePipelineMaskRenderPass",
			"Enabled": true
		},

	],
	"TargetPlatforms": [
		"Windows"
	]

Save and exit notedpad The will be an error message about

The SpoutTestEditor.target file does not exist. Would you like to build the editor? Yes no

The answer is “no” this is because the UE Editor Play function want to initilize

Right click on “SpoutTest.uproject” and Select “open with”- > Unreal Engine.
If anything strange happens click Alt +Tab and check for the loading UE Editor . When complete a load of errors about faulty Static Meshes show up.
You can click the Play in editor and the project will run.

2 Likes

@Jimbohalo10 Thanks so much dude! This really helped us and fixed the problem. We are back in business :slight_smile:

We also learned something about the .uproject file.

Thanks again and all the best!