x

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"

Error Unknown Cook Failure

So I'm trying to package a project and I keep getting these unknown cook failure errors. The thing is, is that this is the only error that shows up. In this instance I built all the game assets and then tried to package the game (Windows 64 bit) afterwards. I did get warnings after I built the game assets, but I don't think that that should cause anything to go wrong. The output log is attached. link text

Product Version: UE 4.13
Tags:
outputlog.txt (2.2 MB)
more ▼

asked May 12 '17 at 01:25 PM in Packaging & Deployment

avatar image

NGelderbloom
1 1 3 4

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

1 answer: sort voted first

Your errors seem to be coming from these specific AI Tasks (Find_Player_Service, and Can_Enemy_Pawn_See_Player) - it seems to be complaining that you're missing a pin connection for the "self" field:

 UATHelper: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2017.05.12-12.58.26:471][  0]LogInit:Display: LogBlueprint:Error: [Compiler Find_Player_Service] Error This blueprint (self) is not compatible with ' self ', therefore that pin must have a connection. from Source: /Game/2DSideScrollerBP/AI_Behavior_Tree/Services_For_AI_Behavior/Find_Player_Service.Find
 _Player_Service
 UATHelper: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2017.05.12-12.58.26:472][  0]LogInit:Display: LogBlueprint:Error: [Compiler Find_Player_Service] Error The property associated with  Can See Player  could not be found from Source: /Game/2DSideScrollerBP/AI_Behavior_Tree/Services_For_AI_Behavior/Find_Player_Service.Find_Player_Service
 UATHelper: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2017.05.12-12.58.26:473][  0]LogInit:Display: LogBlueprint:Error: [Compiler Can_Enemy_Pawn_See_Player] Error This blueprint (self) is not compatible with ' self ', therefore that pin must have a connection. from Source: /Game/2DSideScrollerBP/AI_Behavior_Tree/Services_For_AI_Behavior/Can_Enemy_Pawn_See
 _Player.Can_Enemy_Pawn_See_Player
 UATHelper: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2017.05.12-12.58.26:473][  0]LogInit:Display: LogBlueprint:Error: [Compiler Can_Enemy_Pawn_See_Player] Error The property associated with  Can See Player  could not be found from Source: /Game/2DSideScrollerBP/AI_Behavior_Tree/Services_For_AI_Behavior/Can_Enemy_Pawn_See_Player.Can_Enemy_Pawn_See_Player
 UATHelper: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2017.05.12-12.58.26:473][  0]LogInit:Display: LogBlueprintCodeGen:Error: Cannot convert "/Game/2DSideScrollerBP/AI_Behavior_Tree/Services_For_AI_Behavior/Find_Player_Service.Find_Player_Service". It has errors.

Also, for whatever reason, looks like this file isn't locally writable:

Failed to open file for write ../../../../../../Users/FGB/Perforce/FGB Workspace Home/GrappleHook2D/Intermediate/CachedAssetRegistry.bin

more ▼

answered May 12 '17 at 01:34 PM

avatar image

ExtraLifeMatt
1.6k 34 14 48

avatar image NGelderbloom May 12 '17 at 01:53 PM

Thanks for the swift reply! I had forgotten to mention that I'm working with a team so I'm using Perforce (a source control application) in order to work on the same project, that might be the reason why. As for the stuff you mentioned, I'm not even using the assets that the errors are located in, and I've never gotten a notification saying that this was a problem.... thanks unreal.

avatar image ExtraLifeMatt May 12 '17 at 01:59 PM

Yea, you shouldn't have anything in the Intermediate directory in Perforce as that gets written to often.

See here.

avatar image NGelderbloom May 12 '17 at 02:04 PM

Its not showing that it is checked out or anything.... interesting

avatar image NGelderbloom May 12 '17 at 02:21 PM

Ok, so I tried it again, I just want to be sure that I didn't create any more errors after I deleted those unused files, it didn't say that it referenced any other BP's so I'm fairly sure it is fine and I just need to make some .bin files writeable. Thanks for helping me out btwlink text

errorlog.txt (2.3 MB)
avatar image NGelderbloom May 12 '17 at 02:41 PM

Strange, I made the files writeable via the properties menu on all the files that the log mentioned, yet it still gives me the same error.

avatar image ExtraLifeMatt May 12 '17 at 02:47 PM

You're down to fewer errors, but it's still complaining about not being able to delete files in your Saved/Logs directory, and in your Intermediate/AssetRegistryCache directory. I'd simply nuke all of Intermediate and Saved/Logs, then rebuild/cook.

avatar image NGelderbloom May 12 '17 at 09:11 PM

Ok, lovely. Now when I go to cook the files I get this error: Missing UE4Game binary. You may have to build the UE4 project with your IDE. Alternatively, build using UnrealBuildTool with the commandline: UE4Game

Now I have no idea what this means, any suggestions? Or is this something that I can ignore? Also if there were any other errors regarding other stuff that you noticed, that would be great to know. Thanks.

avatar image ExtraLifeMatt May 12 '17 at 09:16 PM

The error means exactly that - your game binary is missing. If you previously were syncing down your binary from Perforce - you'll need to do that. Otherwise, if you have Visual Studio or such installed, you can check the "Full Rebuild" option in your Packaging options and it'll compile things for you. https://docs.unrealengine.com/latest/INT/Engine/Basics/Projects/Packaging/

avatar image NGelderbloom May 12 '17 at 09:31 PM

Yeah, I do have that option checked, ever since the beginning actually. And don't assume I know what I mean by my binary being missing, I'm fairly new to Unreal, and this is my first project to be packaged.

avatar image ExtraLifeMatt May 13 '17 at 12:10 AM

A Binary, in this case, is your game/code/executable. Looking at your log, it says it launches a build task but then immediately finishes. Do you have Visual Studio installed?

avatar image NGelderbloom May 13 '17 at 04:29 AM

I do, Visual Studio 2015, I made sure I had the right components installed as well, otherwise it would tell me that it can't cook without said components.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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