You probably don’t need thisRivet provides an automated process for building Unreal dedicated servers without building the engine from source.If you’re not using Rivet, you traditionally need to build Unreal Engine from source to build a dedicated server.This is only needed if you’re using an Unreal Engine fork or need access to functionality that Rivet does not provide.
Step 1: Install Visual Studio prerequisites
See official guideStep 2: Download the Unreal Engine source code
See official guide- Connect your Epic account to GitHub
- Clone the UnrealEngine repository to a permanent location. Make sure you’re cloning the
release
branch. This will take a long time.
Step 3: Download and install the Unreal Engine cross-compilation toolchain
Download the cross-compilation toolchain corresponding to the version of Unreal Engine you downloaded in the previous step. Download hereMake sure you have the correct version installed or else Unreal Engine will say it’s not installed in a
later step.
Step 4: Build the Unreal Engine editor
See official guide- Install Visual Studio prerequisites
- TODO: See Setting Up Visual Studio -> C++ Tools
.\Setup.bat
.\GenerateProjectFiles.bat
- You’ll see a warning:
Some Platforms were skipped due to invalid SDK setup:
- Make sure that
Linux
is not listed here. If so, then step 1 was not done correctly.
- You’ll see a warning:
- Open UE5.sln
- Wait for Indexing folder UnrealEngine to finish
- You can see this by clicking the messae tab in the bottom left
- Set Solution Configuration to Development Editor
- Set Solution Platform to Win64
- Right click UE5 target in right sidebar and click Build
- Takes 10-40 minutes depending on your hardware
- Right click on UE5 in the sidebar and click Debug -> Start New Instance
- Unreal Engine is built to at
UnrealEngine\Engine\Binaries\Win64\UnrealEditor
- Create a shortcut somewhere for quick access in the future
Step 5: Build your project’s Linux dedicated server
See official guide Once you have Unreal Engine built from source, open your project and package it for Linux.- Select Platforms > Linux > Debug
- If deploying to production, select Release instead. We use Debug here so we can catch any crashes while testing.
- Select Platform > Linux > MyProjectServer
- Validate the config looks like this:
- Click Platforms > Linux > Package Project
- Package the project to MyProject/Binaries/Linux/Server. This path is important since the Dockerfile we provide relies on it.
If the Linux option does not show up or gives you errors, you may have installed the wrong version of the Linux toolchain. Go back to Step 1 then restart Unreal Engine.