Unable to package game with console command after upgrading engine to 4.13

Hello!

I have recentrly upgraded my engine version from 4.12 to 4.13 and I now am having troubles trying to package my game. Here is the console command I’m using:

RunUAT BuildCookRun -project=“project_path” -noP4 -platform=Win64 -clientconfig=Development -serverconfig=Development -cook -allmaps -build -stage -pak -archive -archivedirectory="output_directory"

where project_path and output_directory are replace with proper values.

The log is attached. Any piece of advice is highly appreciated

116228-log.txt (160 KB)

I’m afraid all the assets are there. What concerns me is this part of all warning/error messages:
PackageVersion 505, MaxExpected 504.
I’m wondering if that is the reason why cooking content fails. This seems likely considering the fact that I’ve just upgraded the engine.

You are probably missing some assets. And when the linker tries to get them you end up with a bunch of errors. This can be caused by missing assets or broken references.


UE4Editor-Cmd: [2016.11.24-13.08.23:189][ 0]LogUObjectGlobals:Warning: Failed to find object ‘Class /Game/UI/MenuHUD.MenuHUD_C

UE4Editor-Cmd: [2016.11.24-13.08.23:189][ 0]Error: CDO Constructor (MenuGameMode): Failed to find /Game/UI/MenuHUD.MenuHUD_C

UE4Editor-Cmd: [2016.11.24-13.08.23:279][ 0]Error: CDO Constructor (TFGameMode): Failed to find /Game/Blueprints/MaleCharacter_BP.MaleCharacter_BP_C

UE4Editor-Cmd: [2016.11.24-13.08.23:281][ 0]Error: CDO Constructor (TFGameMode): Failed to find /Game/Blueprints/FemaleCharacter_BP.FemaleCharacter_BP_C

UE4Editor-Cmd: [2016.11.24-13.08.28:528][ 0]CookResults:Error: Error Error loading C:/jenkins/workspace/ToporFonar/Content/UI/MenuHUD.uasset!
UE4Editor-Cmd: [2016.11.24-13.08.28:528][ 0]LogCook:Error: Error loading C:/jenkins/workspace/ToporFonar/Content/UI/MenuHUD.uasset!

UE4Editor-Cmd: [2016.11.24-13.08.28:600][ 0]CookResults:Error: Error Error loading C:/jenkins/workspace/ToporFonar/Content/Blueprints/DoorNoGlass_BP.uasset!
UE4Editor-Cmd: [2016.11.24-13.08.28:600][ 0]LogCook:Error: Error loading C:/jenkins/workspace/ToporFonar/Content/Blueprints/DoorNoGlass_BP.uasset!
UE4Editor-Cmd: [2016.11.24-13.08.28:601][ 0]LogLinker:Warning: Unable to load package (…/…/…/…/jenkins/workspace/ToporFonar/Content/Blueprints/Axe_BP.uasset) PackageVersion 505, MaxExpected 504 : LicenseePackageVersion 0, MaxExpected 0.
UE4Editor-Cmd: [2016.11.24-13.08.28:601][ 0]CookResults:Error: Error Error loading C:/jenkins/workspace/ToporFonar/Content/Blueprints/Axe_BP.uasset!
UE4Editor-Cmd: [2016.11.24-13.08.28:601][ 0]LogCook:Error: Error loading C:/jenkins/workspace/ToporFonar/Content/Blueprints/Axe_BP.uasset!
UE4Editor-Cmd: [2016.11.24-13.08.28:602][ 0]LogLinker:Warning: Unable to load package (…/…/…/…/jenkins/workspace/ToporFonar/Content/Maps/ManorMap.umap) PackageVersion 505, MaxExpected 504 : LicenseePackageVersion 0, MaxExpected 0.
UE4Editor-Cmd: [2016.11.24-13.08.28:602][ 0]CookResults:Error: Error Error loading C:/jenkins/workspace/ToporFonar/Content/Maps/ManorMap.umap!
UE4Editor-Cmd: [2016.11.24-13.08.28:602][ 0]LogCook:Error: Error loading C:/jenkins/workspace/ToporFonar/Content/Maps/ManorMap.umap!
UE4Editor-Cmd: [2016.11.24-13.08.28:603][ 0]LogLinker:Warning: Unable to load package (…/…/…/…/jenkins/workspace/ToporFonar/Content/Maps/ManorMap_spawn_points.umap) PackageVersion 505, MaxExpected 504 : LicenseePackageVersion 0, MaxExpected 0.
UE4Editor-Cmd: [2016.11.24-13.08.28:603][ 0]CookResults:Error: Error Error loading C:/jenkins/workspace/ToporFonar/Content/Maps/ManorMap_spawn_points.umap!
UE4Editor-Cmd: [2016.11.24-13.08.28:604][ 0]LogCook:Error: Error loading C:/jenkins/workspace/ToporFonar/Content/Maps/ManorMap_spawn_points.umap!
UE4Editor-Cmd: [2016.11.24-13.08.28:604][ 0]LogLinker:Warning: Unable to load package (…/…/…/…/jenkins/workspace/ToporFonar/Content/Maps/ManorMap_objects.umap) PackageVersion 505, MaxExpected 504 : LicenseePackageVersion 0, MaxExpected 0.
UE4Editor-Cmd: [2016.11.24-13.08.28:605][ 0]CookResults:Error: Error Error loading C:/jenkins/workspace/ToporFonar/Content/Maps/ManorMap_objects.umap!
UE4Editor-Cmd: [2016.11.24-13.08.28:605][ 0]LogCook:Error: Error loading C:/jenkins/workspace/ToporFonar/Content/Maps/ManorMap_objects.umap!

Well sometimes they update older versions of the engine it might be that you don’t have the latest build or you haven’t upgraded your project correctly.

Did you rebuild the dlls ?

I’m not a 100% sure how many dlls I have to rebuild, but I thought that’s what -build in the console command is for. And looking at the log I think the build step finishes correctly.

1.) Try and move something in these blueprints (like move a node or add a useless comment),save, compile and build.
2.) Remove the references of those blueprints in you game then compile->build.

Try those things out and lets see what’s up! :stuck_out_tongue:

Thanks! How did I not think of that? Definitely going to try.

Ok, so changing blueprints or re-creating them with the updated version of the editor changed nothing. Don’t know if I should try removing all references to them from the project completely since these are the most basic and frequently used blueprints in the game, including the main map.

Still desperate to get any piece of advice!

I fixed it. It turned out to be my own silly mistake - one wrong path in the build script and I was still using an old version of the engine for building the game dll.