Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

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:

alt text

I was also getting these warnings:

 LogUObjectHash: Warning: Ambiguous search, could be StructProperty /Script/Engine.KismetSystemLibrary:BoxTraceMulti.End or StructProperty /Script/Engine.KismetSystemLibrary:BoxTraceMultiByProfile.End
 LogUObjectHash: Warning: Ambiguous search, could be StructProperty /Script/Engine.KismetSystemLibrary:BoxTraceMulti.End or StructProperty /Script/Engine.KismetSystemLibrary:BoxTraceMultiForObjects.End
 LogUObjectHash: Warning: Ambiguous search, could be StructProperty /Script/Engine.KismetSystemLibrary:BoxTraceMulti.End or StructProperty /Script/Engine.KismetSystemLibrary:BoxTraceSingle.End

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:

alt text

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: alt text

alt text

This then allowed the game to package, working exactly as it did before.

alt text

(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 :)


Product Version: UE 4.19
more ▼

asked Jul 17 '18 at 07:48 PM in Packaging & Deployment

avatar image

8 4 9 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question