Problem Faced:
I’ve followed this tutorial from Epic dev Using Epic Online Services with Lyra Starter Game, it all went very smooth until it showed error when I am doing these steps
Now, select Platforms again, then navigate into Windows and click Package Project to open a directory selector. Once you select an output directory it will start the cook and package process. You should check the output log for any errors.
NOTE: If packaging Lyra fails and the log shows an error message related to UAT, you might be hitting a bug that was present in the original 5.0 release of the Lyra sample. This can be fixed by either installing the Lyra sample again to get the 5.0.2 (or later) version of the sample, or installing Lyra into a Samples/Games subfolder of your engine base install (C:\UE5\Samples\Games\LyraStarterGame for example).
It failed to package the game and give me errors below:
LogSlate: Took 0.000131 seconds to synchronously load lazily loaded font '../../../Engine/Content/Slate/Fonts/Roboto-Bold.ttf' (160K)
LogUObjectHash: Compacting FUObjectHashTables data took 0.44ms
LogTurnkeySupport: Project does not require temp target
LogLauncherProfile: Unable to use promoted target - ../../../Engine/Binaries/Win64/LyraGame.target does not exist.
LogMonitoredProcess: Running Serialized UAT: [ cmd.exe /c ""C:/Program Files/Epic Games/UE_5.1/Engine/Build/BatchFiles/RunUAT.bat" -ScriptsForProject="D:/Multiplayer/MiniGame_Lyra - Test/MiniGame_Lyra.uproject" Turnkey -command=VerifySdk -platform=Win64 -UpdateIfNeeded -EditorIO -EditorIOPort=57527 -project="D:/Multiplayer/MiniGame_Lyra - Test/MiniGame_Lyra.uproject" BuildCookRun -nop4 -utf8output -nocompileeditor -skipbuildeditor -cook -project="D:/Multiplayer/MiniGame_Lyra - Test/MiniGame_Lyra.uproject" -target=LyraGameEOS -unrealexe="C:\Program Files\Epic Games\UE_5.1\Engine\Binaries\Wi
n64\UnrealEditor-Cmd.exe" -platform=Win64 -installed -stage -archive -package -build -pak -iostore -compressed -prereqs -archivedirectory="D:/Multiplayer/Samples/Games03" -clientconfig=Development" -nocompile -nocompileuat ]
UATHelper: Packaging (Windows): Running AutomationTool...
UATHelper: Packaging (Windows): Using bundled DotNet SDK version: 6.0.302
UATHelper: Packaging (Windows): Starting AutomationTool...
UATHelper: Packaging (Windows): Parsing command line: -ScriptsForProject="D:/Multiplayer/MiniGame_Lyra - Test/MiniGame_Lyra.uproject" Turnkey -command=VerifySdk -platform=Win64 -UpdateIfNeeded -EditorIO -EditorIOPort=57527 -project="D:/Multiplayer/MiniGame_Lyra - Test/MiniGame_Lyra.uproject" BuildCookRun -nop4 -utf8output -nocompileeditor -skipbuildeditor -cook -project="D:/Multiplayer/MiniGame_Lyra - Test/MiniGame_Lyra.uproject" -target=LyraGameEOS -unrealexe="C:\Program Files\Epic Games\UE_5.1\Engine\Binaries\Win64\UnrealEditor-Cmd.exe" -platform=Win64 -installed -stage -archive -package -bu
ild -pak -iostore -compressed -prereqs -archivedirectory=D:/Multiplayer/Samples/Games03 -clientconfig=Development -nocompile -nocompileuat
UATHelper: Packaging (Windows): Initializing script modules...
UATHelper: Packaging (Windows): Total script module initialization time: 0.12 s.
UATHelper: Packaging (Windows): Executing commands...
UATHelper: Packaging (Windows): Installed Sdk validity:
UATHelper: Packaging (Windows): Win64: (Status=Valid, MinAllowed_Sdk=10.0.00000.0, MaxAllowed_Sdk=10.9.99999.0, Current_Sdk=10.0.18362.0, Allowed_AutoSdk=10.0.18362.0, Current_AutoSdk=, Flags="InstalledSdk_ValidVersionExists, Sdk_HasBestVersion")
UATHelper: Packaging (Windows): Scanning for envvar changes...
UATHelper: Packaging (Windows): ... done!
UATHelper: Packaging (Windows): Cleaning Temp Paths...
UATHelper: Packaging (Windows): BUILD SUCCESSFUL
UATHelper: Packaging (Windows): Setting up ProjectParams for D:\Multiplayer\MiniGame_Lyra - Test\MiniGame_Lyra.uproject
UATHelper: Packaging (Windows): WARNING: LyraGameEOS and dynamic target options are disabled when packaging from an installed version of the engine
UATHelper: Packaging (Windows): Compiling GameFeaturePlugins in branch ++UE5+Release-5.1
PackagingResults: Warning: LyraGameEOS and dynamic target options are disabled when packaging from an installed version of the engine
UATHelper: Packaging (Windows): ********** BUILD COMMAND STARTED **********
UATHelper: Packaging (Windows): Running: C:\Program Files\Epic Games\UE_5.1\Engine\Binaries\ThirdParty\DotNet\6.0.302\windows\dotnet.exe "C:\Program Files\Epic Games\UE_5.1\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" LyraGameEOS Win64 Development -Project="D:\Multiplayer\MiniGame_Lyra - Test\MiniGame_Lyra.uproject" "D:\Multiplayer\MiniGame_Lyra - Test\MiniGame_Lyra.uproject" -NoUBTMakefiles -remoteini="D:\Multiplayer\MiniGame_Lyra - Test" -skipdeploy -Manifest="D:\Multiplayer\MiniGame_Lyra - Test\Intermediate\Build\Manifest.xml" -NoHotReload -log="C:\Users\User\AppData\Roamin
g\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.1\UBT-LyraGameEOS-Win64-Development.txt"
UATHelper: Packaging (Windows): Log file: C:\Users\User\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.1\UBT-LyraGameEOS-Win64-Development.txt
UATHelper: Packaging (Windows): WARNING: LyraGameEOS and dynamic target options are disabled when packaging from an installed version of the engine
UATHelper: Packaging (Windows): LyraGameEOS modifies the value of CustomConfig. This is not allowed, as LyraGameEOS has build products in common with UnrealGame.
UATHelper: Packaging (Windows): Remove the modified setting, change LyraGameEOS to use a unique build environment by setting 'BuildEnvironment = TargetBuildEnvironment.Unique;' in the LyraGameEOSTarget constructor, or set bOverrideBuildEnvironment = true to force this setting on.
PackagingResults: Warning: LyraGameEOS and dynamic target options are disabled when packaging from an installed version of the engine
UATHelper: Packaging (Windows): Took 0.3728777s to run dotnet.exe, ExitCode=6
UATHelper: Packaging (Windows): UnrealBuildTool failed. See log for more details. (C:\Users\User\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.1\UBT-LyraGameEOS-Win64-Development.txt)
UATHelper: Packaging (Windows): AutomationTool executed for 0h 0m 1s
UATHelper: Packaging (Windows): AutomationTool exiting with ExitCode=6 (6)
UATHelper: Packaging (Windows): BUILD FAILED
PackagingResults: Error: Unknown Error
LogAudioMixer: Warning: Decoder Error, stopping source [CompileFailed]
It worked on local LAN multiplayer but I can’t do it online, hope that someone can help, and btw I’m using Unreal 5.1.1 to run the tutorials all have the same problem.