I made a mistake:
I tried to create a C++ Class in a UE4 Project, without installing Visual Studio and “SDK windows”.
When I try to Open the file, it gave me this message:
“The following modules are missing or built with a different engine version:
My Project
Would you like to rebuild them now?”
I said yes:
“MyProject could not be compiled. Try rebuilding from source manually.” (I don’t know how to do that)
I tried to create a c++ class in a new project. Now It’s work and I can re-open the file.
But the first project is corrupted and I don’t know how to fix it. I tried many method I saw in forums but it’s doesn’t work for me. Someone know how to fix my project ?
Thanks
Did you also delete some of the
intermediate folders? Means these:
Intermediate, .vs, Binaries, Saved? So
basically keeping only the Config,
Content and Source folders and the
.uproject file?
Yes i did.
After doing this, you should run into
the issue “the following modules are
missing…” again when opening the
uproject file.
hum… that not very clear for me…I’m a noob with that kind of problem… It didn’t tell me what the “following modules” it’s talking about.
Once finished with that, do the
“Generate Visual Studio Project Files”
again. Now you should be able to open
the sln and rebuild. At least, this
was how I did recover a broken project
Finished with what ? I didn’t get it ^^
I tried to build all “my project” with visual studio but nothing change.
Thanks for giving your time
Did you also delete some of the intermediate folders? Means these: Intermediate, .vs, Binaries, Saved? So basically keeping only the Config, Content and Source folders and the .uproject file?
After doing this, you should run into the issue “the following modules are missing…” again when opening the uproject file.
Once finished with that, do the “Generate Visual Studio Project Files” again. Now you should be able to open the sln and rebuild. At least, this was how I did recover a broken project.
I do not have any solution ready for this. What you might try, but that’s really very experimental and speculative:
Open the .uproject file in text editor and remove the content from your Modules section in the project - this could prevent the attempt to build the project at all…
As I said: backup everything before doing this, I did never try this on my own.
or maybe even remove the modules section completely…
Have no more ideas than this, but if you at least could open your project, you will be able to migrate content into a new one and start adding C++ stuff there, having installed Visual Studio and DotNet SDK at that time.
I had the same problem and the only way for me was deleting the .h and .cpp that I created.
Then I try to open the proyect, the missing modules message pop-up, I clicked Yes.
And my proyect Started like if nothing happend.
To find the .h and .cpp I used Visual Studio. I tried to Build the project but it gave me some syntaxis errors from the codes I need to delete. Then just click in the Header part of the code and select “open containing folder”. That leads you to the file or files.
I did a plethora of actions which led me to finally be able to create a class on my blueprint project.
Can’t really pick which one of those actions really fixed the issue.
In essence, I installed .net for my macos, then I deleted the .h and .cpp files in my project folder (4 files were deleted in total). After the deletion, I builded my project from the IDE, not UE.
Then I right-clicked on the the .uproject file and selected “Generate Project”
Now I could finally reopen my project in UE.
In UE I preemptively clicked Tools → Refresh Project and Tools → Open Xcode
Now I could generate a new class in UE…
I had this exact problem today (Unreal 5.3). I had a blueprint project and I made a new C++ class which then said I needed to recompile which of course didn’t work. I then thought I would close the project and reopen it to find it was broken. After looking at all the videos and info to fix it I couldn’t get it to work.
What fixed it for me was I installed visual studio 2022 and uninstalled my previous version (2019). I then went to launch my project, clicked to rebuild and it took a while of what looked like it doing nothing then it just launched like normal.