Unknown Cook Failure caused by a function call?
Before I start my rant, I want to say that this issue exists in both UE4.19, and 4.18. This one problem was giving me an excess of 80 errors, and the errors it was giving me had nothing to do with what was causing the packaging error. I will provide lots of screenshots to make this as clear as possible.
Alrighty, lets get started!
In this thread (link), I was having a problem with packaging, with the typical non useful error messages that UE4 gives you, example:
I was also getting these warnings:
There was about 30 lines of these, but I don't want to clog up the post with them. I went down a few routes to try to fix these, because they were the only clue I had, and eventually ended with deleting half my project over and over again until I narrowed it down to this function call inside another function in my player pawn:
Removing the "Camera Shake" function allows the project to package. I then tried removing everything inside the camera shake function so it did nothing, but that still didn't allow the project to package. Then I tried replacing the camera shake function call with an event call from the event graph of my pawn, and having the sole purpose of that event to be to call the camera shake function:
This then allowed the game to package, working exactly as it did before.
(I told you I'd include lots of images)
So my question is this, are function calls not allowed inside other functions? And if they aren't, why does the game run fine in PIE, but fail to package, and when failing to package, why does the wall of error messages return nothing to do with the function I have that was causing the problem?
Sorry for this being ranty, I've been at this for a while, and it's really driven me up the wall and around the corner. Thanks for your patience, and enjoy the rest of your day :)
asked Jul 17 '18 at 07:48 PM in Packaging & Deployment
Follow this question
Once you sign in you will be able to subscribe for any updates here