I got an error in my gameinstance.cpp file. So i deleted the ,h and .cpp files, but when I launch unreal engine, it still crashes referencing the two gameinstance.cpp file even though it is not there in the project anymore.
Hi the_bat_2102
How did you delete the files? If you only deleted them in Visual Studio, then you only removed them from your solution and not from the project itself.
-
Close Unreal and Visual Studio
-
Using Windows Explorer, go to the directory which contains the problem files and delete them manually.
-
Delete the “Intermediates” directory from the project.
-
Right click the .uproject and select “Generate Visual Studio Files”
-
Open the project.
-
Make sure under maps and modes (in project settings) than you have selected the correct GameInstance and that it is still not referencing the previous GameInstance.
Hope this helps.
Alex
yeah, I did that it still crashes, referencing the deleted files.
Can you send the crash logs, please?
They are located: ProjectName/Saved/Logs.
Thanks
It worked, so I was using visual studio code which kept on crashing, the I changed to visual studio. This solved the problem. Thank you for your time.
I also deleted cpp files and header files, after closed VS and UE, then deleted Intermediate folder and regenerated project, then build solution done, after this compiled from VS Game crashing, please guide me to come out of this.