Skip to main content

Launch Servers

Before launching your servers, ensure that you have completed the following steps:

Starting the Domain Server

A Domain Server is crucial for your game instance to operate. Before launching any game servers, ensure that the Domain Server is running smoothly. If the Domain Server encounters any issues, other servers may fail to connect properly.

warning

The Domain Server will automatically shut down if no servers are connected to it. If this happens, you'll need to restart it.

To start the DomainServer, use the DomainManager: DomainManager.exe -s Password.seed -a YOUR_ACCOUNT_ID initiate_domain -d YOUR_DOMAIN_ID

  • Password.seed: This is the seed file generated earlier using KeyGenerator.
  • YOUR_DOMAIN_ID: A unique ID (up to 128 characters) within your ACCOUNT_ID. Each account can support only one Domain.

You can check the status of running Domain Servers with:

DomainManager.exe -s Password.seed -a YOUR_ACCOUNT_ID list_domains

To stop a Domain Server, use:

DomainManager.exe -s Password.seed -a YOUR_ACCOUNT_ID destroy_domain -d YOUR_DOMAIN_ID

Starting Game Servers

Starting a dedicated server is straightforward. Here’s an example command to launch a Level Server:

start "Level Server" "%EDITOR%" "%PROJECT_FILE%" -EnableNetCluster -server -Port=17778 -ConfigFile="%CONFIG_FILES_PATH%\ConfigLevelServer.json" -SettingFile="%SETTINGS%"

-server, -Port are standard Unreal Engine parameters. -EnableNetCluster, -ConfigFile, and -SettingFile are specific to the ClusterServer module and can be customized as needed.

note

Ensure the Level Server is up and running before any players attempt to log in.

Testing Inter-Server Actor Replication

To test inter-server actor replication, run two clients and log them into different Load Servers. You should see the other player's character appearing in the game, confirming that actor replication across servers is working as expected.