UnrealFrontend cook game failed

I want to cook my game server in linux

and I followed this tutorials

but when I go to cook server configuration withing UnrealFrontend as following step:

  1. Cook content for Windows Server with UnrealFrontend
    With your source-built engine open in Visual Studio, build the UnrealFrontend (you should be able to right-click on the UnrealFrontend solution and build it). Once built, launch the UnrealFrontend executable from your source-built engine directory. It should be located at /engine/binaries/win64/unrealfrontend.exe.
    Go to the Game Launcher section and click on the Advanced tab. Create a custom profile (name it something like “ Dedicated Server”). Specify the WindowsServer configuration and any maps you want to include. I packaged the content too, but I’m not sure that’s necessary.
    When you’re happy with your configuration, run it. Once it succeeds, you’ll be ready to build your dedicated server binary.

There are following errors for me to launch game profile:

BuildCommand.Execute: ERROR: BUILD FAILED

Program.Main: ERROR: AutomationTool terminated with exception:

Program.Main: ERROR: Exception in AutomationTool: Server target not found. Server target is required with -server and -cook or -cookonthefly

Does any people know how to cook it ?

Did you create a Server Target for your project? Because the error says that the Server Target is missing.

Do u means create a Server target is built like this way first

No, you need to create a Server Target on your project. To do it, follow this guide on the Wiki: A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums

18386-screen.jpg

I had been created it and change all “Game” to my project_name.

Is it working now?

No, it still can not launch

I’m facing the same thing here.

My problem seems to be that everytime I regenerate project file, Server.Target.cs seem to always be deleted from my project. :confused:

ps. Figured it out, you needed a source built engine for Unreal to recognize any server code.