You already should have a backup of your project at all times. If you don’t, create one and try my suggestion out. Once you open your .uproject file, you can create a new C++ class, close the editor, navigate to the newly generated Source folder, then into the folder with your project name under the Source folder, and replace the Public & Private folders there with the original ones
(you can select your new C++ class to be public while creating it for the Public & Private folders to be generated automatically btw)
huh. it actually opened the project now. thank you so much . i do have backups and git by the way, but i dont remember when i last synced, since its been a while. thats why i wanted to see if i could get the latest version to work. but yea, im in the engine now, and ill try the last steps you’ve said with adding a C++ class. I will mark this solved when ive tried that