#Dedicated Server Setup
Before starting, make sure that you have unreal engine source version setup.
#Basic Setup
Now when you have the source build of Unreal Engine, you can start with the following steps:
- Create a new C++ project or open an existing one. If it's a blueprint project, you can convert it to a C++ project by adding a empty c++ class to the project.
- Now add the server target to your project which is required for the dedicated server build. To do this, open the source folder of your project and create a new file named
ProjectNameServer.Target.cs
and add the code fromProjectNameEditor.Target.cs
to it. ReplaceProjectName
with the name of your project and also replace all theEditor
withServer
in the file. - Now open your editor and start the build process. When the build process is complete, you will see a new option in the build menu named
Server
. Select this option and build the server target. - Now Zip the server build and upload it to PlayFab. You can use the PlayFab Game Manager to upload the build to PlayFab.
Now you have successfully uploaded the dedicated server build to PlayFab. You can now start the server from the PlayFab Game Manager.