Description

Repro Ratio: 4/4

Regression tested in //UE5/Release-4.27.2 CL-18416816 and this issue DID NOT happen.

When looking at the log output of the Project Launcher, the command that is ran is:

-ScriptsForProject="<path>/UE5Bin_BlankCPP/UE5Bin_BlankCPP.uproject" BuildCookRun -project="<path>/UE5Bin_BlankCPP/UE5Bin_BlankCPP.uproject" -noP4 -clientconfig=Development -serverconfig=Development -utf8output -platform=Win64 -server -serverplatform=Win64 -server -noclient -client -build -cook -map= -CookCultures=en -unversionedcookedcontent -ddc=DerivedDataBackendGraph -compressed -stage -package -stagingdirectory=<path to local storage set in profile> -cmdline=" -Messaging" -addcmdline="-SessionId=86B9058642474B4253B80386F01435B9 -SessionOwner='OwnerName' -SessionName='Win Server-Client' "

As you can see above, both argumenst -noclient and -client are present within the command. I'm guessing because the -noclient is listed first it therefore overwrote the -client argument.

Client additional notes:
You can still build the server and client separately on different profiles, so it's only an inconvenience... but it takes a lot of time to troubleshoot the issue since you have to crunch through multiple builds.

Steps to Reproduce
  1. Compile the UE5 editor and Unreal Frontend tool from source.
  2. Create a new empty C++ project.
  3. Close Visual Studio and Editor if opened
  4. In Windows Explorer go to <Project Path>/Source
  5. Add Client/Server Target.cs files to the project source.
    • Duplicate the ProjectNameEditor.Target.cs file twice
    • Rename one file to ProjectNameServer.Target.cs
    • Rename the second file to ProjectNameClient.Target.cs
    • Open the new files in a text editor and change the class name, constructor name, and the Type to reflect the appropriate target. (i.e. where the word "Editor" is change to either "Client" or "Server")
    • Save the edited files and close
  6. in file explorer right click the .uproject file
  7. Choose Generate Visual Studio Project Files
  8. Open UnrealFrontEnd stand alone
    • Engine/Binaries/Win64/UnrealFrontEnd.exe
  9. Create a new profile
  10. Change Build from auto Detect to Build
  11. Change Cook to By the book
  12. Select under Cooked Platforms:
    • WindowsServer
    • WindowsClient
  13. Change Package to Package and store locally
  14. click browse and choose where to store package
  15. Set Deploy to do not deploy
  16. Click back button on profile
  17. In upper left corner of Project Launcher choose your project to run profile on
  18. Run the custom profile

Expected Results: Both a server build and client build should be generated.

Actual Results: Only the server build proceeds. No client build is generated.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-149294 in the post.

1
Login to Vote

Fixed
ComponentUE - Platform
Affects Versions5.0
Target Fix5.0.2
Fix Commit20064789
Main Commit20067014
Release Commit20064789
CreatedApr 15, 2022
ResolvedMay 5, 2022
UpdatedMar 16, 2023