Hello,
we have a build server which is running automated builds of our game for quite some time now, by using these steps:
Compile the game and the editor DLLs
D:/UnrealEngine/Engine/Build/BatchFiles/RunUAT.bat BuildCookRun -project=D:/OurGame/OurGame.uproject -utf8output -noP4 -platform=Win64 -clientconfig=Development -nocompile -compileeditor -build -skipcook
Cook and package the game (notice the -nocompileeditor flag)
D:/UnrealEngine/Engine/Build/BatchFiles/RunUAT.bat BuildCookRun -project=D:/OurGame/OurGame.uproject -utf8output -noP4 -platform=Win64 -clientconfig=Development -nocompile -nocompileeditor -allmaps -cook -iterativecooking -compressed -pak -stage -archive -archivedirectory=V:/OurGame/Development
On the build server, it is important to note that D:/UnrealEngine points to the sources of the engine, which are built locally.
This week we added a slave to our jenkins master. It runs the same steps, except that the engine here is an installed build.
The problem we have is that none of the 2 steps create the UE4Editor-OurGame.dll. This makes the cook fail with the following errors:
LogInit: Warning: Incompatible or missing module: UE4Editor-OurGame.dll
LogInit: Warning: Incompatible or missing module: UE4Editor-OurGameEditor.dll
I tried adding some flags like -installed, but with no success.
This issue is reproductible when you want to package your game from the UnrealFrontend.
The one solution I found is to manually build the Development Editor target using UnrealBuildTool as a first step in our pipeline:
D:/UnrealEngine/Engine/Binaries/DotNET/UnrealBuildTool.exe OurGameEditor Win64 Development C:/OurGame/OurGame.uproject
Everything runs fine but I think this is an issue worth reporting because of the discrepancies between an installed build and the source
PS: Here are the outputs of the 2 build commands:
F:/Projects/ConsoleDev/UE4Installed2/Engine/Build/BatchFiles/RunUAT.bat BuildCookRun -project=F:/Projects/OurGame/OurGame.uproject -utf8output -noP4 -platform=Win64 -clientconfig=Development -nocompile -compileeditor -build -skipcook
Running AutomationTool...
Parsing command line: BuildCookRun -project=F:/Projects/OurGame/OurGame.uproject -utf8output -noP4 -platform=Win64 -clientconfig=Development -nocompile -compileeditor -build -skipcook
Setting up ProjectParams for F:\Projects\OurGame\OurGame.uproject
********** BUILD COMMAND STARTED **********
Running: F:\Projects\ConsoleDev\UE4Installed2\Engine\Binaries\DotNET\UnrealBuildTool.exe OurGame Win64 Development -Project=F:\Projects\OurGame\OurGame.uproject F:\Projects\OurGame\OurGame.uproject -NoUBTMakefiles -remoteini="F:\Projects\OurGame" -noxge -generatemanifest -NoHotReload
Using 'git status' to determine working set for adaptive non-unity build.
Took 0.9789563s to run UnrealBuildTool.exe, ExitCode=0
Running: F:\Projects\ConsoleDev\UE4Installed2\Engine\Binaries\DotNET\UnrealBuildTool.exe OurGame Win64 Development -Project=F:\Projects\OurGame\OurGame.uproject F:\Projects\OurGame\OurGame.uproject -NoUBTMakefiles -remoteini="F:\Projects\OurGame" -noxge -NoHotReload -ignorejunk
Using 'git status' to determine working set for adaptive non-unity build.
Parsing headers for OurGame
Running UnrealHeaderTool "F:\Projects\OurGame\OurGame.uproject" "F:\Projects\OurGame\Intermediate\Build\Win64\OurGame\Development\OurGame.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
Reflection code generated for OurGame in 6.6399833 seconds
BLAH BLAH
[88/88] Link OurGame.exe
Creating library F:\Projects\OurGame\Binaries\Win64\OurGame.lib and object F:\Projects\OurGame\Binaries\Win64\OurGame.exp
Total build time: 199.55 seconds (Local executor: 188.12 seconds)
Took 199.8210408s to run UnrealBuildTool.exe, ExitCode=0
********** BUILD COMMAND COMPLETED **********
********** PACKAGE COMMAND STARTED **********
********** PACKAGE COMMAND COMPLETED **********
BUILD SUCCESSFUL
AutomationTool exiting with ExitCode=0 (Success)
The cooking :
F:/Projects/ConsoleDev/UE4Installed2/Engine/Build/BatchFiles/RunUAT.bat BuildCookRun -project=F:/Projects/OurGame/OurGame.uproject -utf8output -noP4 -platform=Win64 -clientconfig=Development -nocompile -nocompileeditor -allmaps -cook -iterativecooking -compressed -pak -stage -archive -archivedirectory=V:/OurGame/Development
Running AutomationTool...
Parsing command line: BuildCookRun -project=F:/Projects/OurGame/OurGame.uproject -utf8output -noP4 -platform=Win64 -clientconfig=Development -nocompile -nocompileeditor -allmaps -cook -iterativecooking -compressed -pak -stage -archive -archivedirectory=V:/OurGame/Development
Setting up ProjectParams for F:\Projects\OurGame\OurGame.uproject
********** COOK COMMAND STARTED **********
Running UE4Editor Cook for project F:\Projects\OurGame\OurGame.uproject
Commandlet log file is F:\Projects\ConsoleDev\UE4Installed2\Engine\Programs\AutomationTool\Saved\Cook-2018.02.22-10.28.48.txt
Running: F:\Projects\ConsoleDev\UE4Installed2\Engine\Binaries\Win64\UE4Editor-Cmd.exe F:\Projects\OurGame\OurGame.uproject -run=Cook -NoLogTimes -TargetPlatform=WindowsNoEditor -fileopenlog -unversioned -iterate -iterateshash -abslog=F:\Projects\ConsoleDev\UE4Installed2\Engine\Programs\AutomationTool\Saved\Cook-2018.02.22-10.28.48.txt -stdout -CrashForUAT -unattended -UTF8Output
LogInit: Display: Running engine for game: OurGame
LogInit: Display: RandInit(947492672) SRandInit(947492672).
LogModuleManager: Display: Found up-to-date module file ../../../Engine/Plugins/2D/Paper2D/Binaries/Win64/UE4Editor-Paper2D.dll (API version 0).
LogModuleManager: Display: Found up-to-date module file ../../../Engine/Plugins/2D/Paper2D/Binaries/Win64/UE4Editor-Paper2DEditor.dll (API version 0).
LogModuleManager: Display: Found up-to-date module file ../../../Engine/Plugins/2D/Paper2D/Binaries/Win64/UE4Editor-PaperSpriteSheetImporter.dll (API version 0).
LogModuleManager: Display: Found up-to-date module file ../../../Engine/Plugins/2D/Paper2D/Binaries/Win64/UE4Editor-PaperTiledImporter.dll (API version 0).
LogModuleManager: Display: Found up-to-date module file ../../../Engine/Plugins/2D/Paper2D/Binaries/Win64/UE4Editor-SmartSnapping.dll (API version 0).
LogModuleManager: Display: Found up-to-date module file ../../../Engine/Plugins/Developer/GitSourceControl/Binaries/Win64/UE4Editor-GitSourceControl.dll (API version 0).
LogModuleManager: Display: Found up-to-date module file ../../../Engine/Plugins/Developer/PerforceSourceControl/Binaries/Win64/UE4Editor-PerforceSourceControl.dll (API version 0).
LogModuleManager: Display: Found up-to-date module file ../../../Engine/Plugins/Developer/SubversionSourceControl/Binaries/Win64/UE4Editor-SubversionSourceControl.dll (API version 0).
LogModuleManager: Display: Found up-to-date module file ../../../Engine/Plugins/Developer/VisualStudioCodeSourceCodeAccess/Binaries/Win64/UE4Editor-VisualStudioCodeSourceCodeAccess.dll (API version 0).
LogModuleManager: Display: Found up-to-date module file ../../../Engine/Plugins/Developer/VisualStudioSourceCodeAccess/Binaries/Win64/UE4Editor-VisualStudioSourceCodeAccess.dll (API version 0).
LogModuleManager: Display: Found up-to-date module file ../../../Engine/Plugins/Editor/AssetManagerEditor/Binaries/Win64/UE4Editor-AssetManagerEditor.dll (API version 0).
LogModuleManager: Display: Found up-to-date module file ../../../Engine/Plugins/Editor/PluginBrowser/Binaries/Win64/UE4Editor-PluginBrowser.dll (API version 0).
LogModuleManager: Display: Found up-to-date module file ../../../Engine/Plugins/Experimental/CharacterAI/Binaries/Win64/UE4Editor-CharacterAI.dll (API version 0).
LogModuleManager: Display: Found up-to-date module file ../../../Engine/Plugins/Media/MediaPlayerEditor/Binaries/Win64/UE4Editor-MediaPlayerEditor.dll (API version 0).
LogModuleManager: Display: Found up-to-date module file ../../../Engine/Plugins/Media/PS4/PS4Media/Binaries/Win64/UE4Editor-PS4MediaEditor.dll (API version 0).
LogModuleManager: Display: Found up-to-date module file ../../../Engine/Plugins/Media/PS4/PS4Media/Binaries/Win64/UE4Editor-PS4MediaFactory.dll (API version 0).
LogModuleManager: Display: Found up-to-date module file ../../../Engine/Plugins/Media/Switch/SwitchMedia/Binaries/Win64/UE4Editor-SwitchMediaEditor.dll (API version 0).
LogModuleManager: Display: Found up-to-date module file ../../../Engine/Plugins/Media/Switch/SwitchMedia/Binaries/Win64/UE4Editor-SwitchMediaFactory.dll (API version 0).
LogModuleManager: Display: Found up-to-date module file ../../../Engine/Plugins/Messaging/TcpMessaging/Binaries/Win64/UE4Editor-TcpMessaging.dll (API version 0).
LogModuleManager: Display: Found up-to-date module file ../../../Engine/Plugins/Messaging/UdpMessaging/Binaries/Win64/UE4Editor-UdpMessaging.dll (API version 0).
LogModuleManager: Display: Found up-to-date module file ../../../Engine/Plugins/MovieScene/ActorSequence/Binaries/Win64/UE4Editor-ActorSequence.dll (API version 0).
LogModuleManager: Display: Found up-to-date module file ../../../Engine/Plugins/MovieScene/LevelSequenceEditor/Binaries/Win64/UE4Editor-LevelSequenceEditor.dll (API version 0).
LogModuleManager: Display: Found up-to-date module file ../../../Engine/Plugins/MovieScene/MatineeToLevelSequence/Binaries/Win64/UE4Editor-MatineeToLevelSequence.dll (API version 0).
LogModuleManager: Display: Found up-to-date module file ../../../Engine/Plugins/Online/OnlineSubsystem/Binaries/Win64/UE4Editor-OnlineSubsystem.dll (API version 0).
LogModuleManager: Display: Found up-to-date module file ../../../Engine/Plugins/Online/OnlineSubsystemNull/Binaries/Win64/UE4Editor-OnlineSubsystemNull.dll (API version 0).
LogModuleManager: Display: Found up-to-date module file ../../../Engine/Plugins/Online/OnlineSubsystemSteam/Binaries/Win64/UE4Editor-OnlineSubsystemSteam.dll (API version 0).
LogModuleManager: Display: Found up-to-date module file ../../../Engine/Plugins/Online/OnlineSubsystemUtils/Binaries/Win64/UE4Editor-OnlineSubsystemUtils.dll (API version 0).
LogModuleManager: Display: Found up-to-date module file ../../../Engine/Plugins/Online/OnlineSubsystemUtils/Binaries/Win64/UE4Editor-OnlineBlueprintSupport.dll (API version 0).
LogModuleManager: Display: Found up-to-date module file ../../../Engine/Plugins/Runtime/Analytics/AnalyticsMulticast/Binaries/Win64/UE4Editor-AnalyticsMulticastEditor.dll (API version 0).
LogModuleManager: Display: Found up-to-date module file ../../../Engine/Plugins/Runtime/Analytics/AnalyticsMulticast/Binaries/Win64/UE4Editor-AnalyticsMulticast.dll (API version 0).
LogModuleManager: Display: Found up-to-date module file ../../../Engine/Plugins/Runtime/Analytics/FileLogging/Binaries/Win64/UE4Editor-FileLogging.dll (API version 0).
LogModuleManager: Display: Found up-to-date module file ../../../Engine/Plugins/Runtime/CustomMeshComponent/Binaries/Win64/UE4Editor-CustomMeshComponent.dll (API version 0).
LogModuleManager: Display: Found up-to-date module file ../../../Engine/Plugins/Runtime/ProceduralMeshComponent/Binaries/Win64/UE4Editor-ProceduralMeshComponent.dll (API version 0).
LogModuleManager: Display: Found up-to-date module file ../../../Engine/Plugins/Runtime/ProceduralMeshComponent/Binaries/Win64/UE4Editor-ProceduralMeshComponentEditor.dll (API version 0).
LogInit: Warning: Incompatible or missing module: UE4Editor-OurGame.dll
LogInit: Warning: Incompatible or missing module: UE4Editor-OurGameEditor.dll
LogInit: Warning: Incompatible or missing module: UE4Editor-CloudAccess.dll
LogInit: Warning: Incompatible or missing module: UE4Editor-CloudAnalytics.dll
LogInit: Warning: Incompatible or missing module: UE4Editor-GameSparks.dll
LogInit: Warning: Incompatible or missing module: UE4Editor-OnlineSubsystemGameSparks.dll
LogInit: Warning: Incompatible or missing module: UE4Editor-LoadingScreen.dll
LogInit: Warning: Incompatible or missing module: UE4Editor-LowEntryExtendedStandardLibrary.dll
LogInit: Warning: Incompatible or missing module: UE4Editor-LowEntryExtendedStandardLibraryEditor.dll
LogInit: Warning: Incompatible or missing module: UE4Editor-RuntimeMeshComponent.dll
LogInit: Warning: Incompatible or missing module: UE4Editor-RuntimeMeshComponentEditor.dll
LogInit: Warning: Incompatible or missing module: UE4Editor-SpinePlugin.dll
LogInit: Warning: Incompatible or missing module: UE4Editor-SpineEditorPlugin.dll
Took 2.7371513s to run UE4Editor-Cmd.exe, ExitCode=1
Cook failed. Deleting cooked data.
ERROR: Cook failed.
(see F:\Projects\ConsoleDev\UE4Installed2\Engine\Programs\AutomationTool\Saved\Logs\UAT_Log.txt for full exception trace)
AutomationTool exiting with ExitCode=25 (Error_UnknownCookFailure)
BUILD FAILED