Packaging fail due to missing file
So I have been trying to package a game which works in the editor perfectly for the last 3 days and have been failing repeatedly. The packaging log says that it can't find a file, and I am not sure why, so upon exploring I am not sure why this is happening as I will show here:
So in the main character class, ATMOCharacter, there is a UAnimBlueprint pointer
From the ATMOCharacter header file
Then, the blueprint class BP_ThirdPersonCharacter extends the ATMOCharacter class and fills in a definition of this variable
Then in the ATMOCharacter.cpp class, this variable is used, as shown in the BeginPlay function snippet shown here
Now, when I play this in the editor, it claims the StandardCharAnim pointer is valid, whereas the packaged version claims it is not valid.
The BP_ThirdPersonCharacter class has been set as the Default Pawn, within the blueprinted gamemode class which has been set as the default gamemode from within the project settings.
The log file for the packaged game log file
The log file for the editor which performed the packaging operation packaginglog
Any suggestions would be greatly appreciated,
asked Oct 29 '17 at 12:31 AM in Packaging & Deployment
This is just a guess, but it is possible that in packaged version the engine first trying to create a default object BP_ThirdPersonCharacter without any settings. But you do have a problem in your code:
GetMesh() can return NULL and StandardCharAnim can be NULL
what you need is like this:
run it again without the game crash first and see if it helped.
answered Oct 29 '17 at 03:25 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here