Need help asap, cant package project

tried every fix on the site currently, this is run from the launcher, not the source code, and need to package this asap for testing purposes, will upload the project here,any help is appreciated, thanks.

Hello Juxt4posed,

The reason your packaging is failing is due to your code that you have in your project, although it has never been successfully built. From looking at the project’s files, it seems that it has a few C++ classes and some misnamed .target.cs files. The easiest way to fix this would be to do the following:

  1. Just to be safe, in case anything is done incorrectly and breaks the project, make a copy of the project and place it elsewhere
  2. Copy all of the C++ .cpp and .h files that you have in your project’s Source/norwichgame folder except for norwichgame.Build.cs, norwichgame.cpp, and norwichgame.h and place them elsewhere for the time being, so that they can be readded later.
  3. Delete your project’s Source, Intermediate, and Saved folders
  4. Open up the project and select File > New C++ Class… > Actor > Next > Create Class
  5. The project will take a few moments as it is turning the project into a source project again by adding the necessary files.
  6. After this, you should have the necessary files and should be able to package without getting any source related errors

At this point, you can add the code files back in that I asked you to copy out, but they do cause some compiling errors so you will need to fix those if you choose to do so. I would suggest packaging before adding them again to ensure everything else is working correctly first. If you have any more packaging errors, please try disabling Substance first as it is known to cause some packaging issues in certain cases. This can be completely disabled by right-clicking your .uproject file and editing it in a text editor program such as Notepad. You can change the ““Enabled”: true,” entry under Substance to false to do this.

If you have any other packaging errors, please feel free to respond and please provide the log file that includes the error.

hi mathew, thanks for your help, you helped me get past that error, but now i have an unknown cook error, link : Dropbox - File Deleted if you can help that would be appreciated, thanks

I would suggest using ctrl+F to search through the log for the word “Error”. Unknown Cook Error doesn’t really say anything but there are other errors in the log that are self explanatory.