So after a small break I’m back to the 2D course to finish it out. I stopped using an external drive to save my work to and started using git/github for my files. Everything was fine until today.
I started on the section “Creating the Enemy” in the CrustyPirate section of the 2D course. I added the class in Unreal, and it added it in Visual Studio. Right off the bat VS was filled with errors, but I figured they’d go away once Intellisense caught up. I did the include for the SphereComponent and added the first variable. VS still doesn’t acknowledge the added code. I decided to rebuild, so I closed Unreal and started a rebuild. it fails with 13000+ errors. fine. I close VS and right click on the uproject and generate VS files. Open the solution back up and try and rebuild, it fails. again. Intellisense “sees” the include and the UPROPERTY and USphereComponent now (no errors), but it will not build no matter what I do. I can’t open Unreal because it says the game module can’t be found.
I spend more time fighting with Unreal and Visual Studio than I do working through the course. I have been searching online for close to 40 minutes for a solution and I can not find one. People seem to have this issue, but rebuilding works for them. I’m really getting frustrated with Unreal and I’m very close to just dumping it all and walking away.
I’m going to attach a shot of the error window with the hopes that someone here knows why I randomly get these errors and how to fix them. It wouldn’t be such a big deal if I could figure out WHY this happens when I try to add a C++ class (almost every time), or if I could figure out exactly how to fix it.
Any help before I just quit out of frustration would truly be appreciated. I can’t spend hours trying to fix a program that breaks every time I try to, you know, actually use it. I have friends that use Godot and Unity and don’t deal with half of the issues I do just trying to add a class to a project.