メインコンテンツまでスキップ

Unreal Engine Module - Running DS on Armada - Test run a local dedicated server

Last updated on January 13, 2024

There are two ways to test local Dedicated Server: run it with the Unreal Editor or package and run the packaged dedicated server. The first method might be more suitable for testing purposes since it is faster to launch, but more resource intensive, specially if you are running multiple instances at once. While the second method require less resources to run, it is longer to set up, specially if you never package the Dedicated Server before.

In this module, we will guide you on how to do both. You can pick which ever fits your needs.

Run local dedicated server with editor

  1. Compile your project and make sure there's no error.

  2. Open Windows PowerShell and change directory into your project folder.

    cd /YourProjectFolder
  3. Run the project with these launch arguments. This will run your game server and display its log on the screen.

    .\AccelByteWars.sln -server -log -ServerName="<give_local_server_name>"

Run packaged local dedicated server

  1. Compile your project and open Unreal Engine Editor. In the Unreal Engine Editor, package your game server for Windows.

    Package windows dedicated server

    Note

    Chose the Development build to enable logging for debugging purposes. Building as Shipping will disable logging.

  2. Unreal Engine will take some time to package your game server. Once the process is completed, you can move to the next section.

  3. To run the packaged Dedicated Server, first, open Windows PowerShell and then enter your packaged game server folder.

    cd /YourLocalGameServerPath
  4. Next, run the game server executable using the following commands. This will run your game server and display its log on the screen.

    ./AccelByteWarsServer -server -log -ServerName="<give_local_server_name>"

Checking local dedicated server on Admin Portal

We will now guide you on how to verify whether the dedicated server successfully registered to Armada or not.

  1. Run the Dedicated Server either by packaging it or run it with the Editor.

  2. Once your game server runs, wait until you see this log. This log means that your server was successfully registered to Armada.

    LogAccelByteOSS: Verbose: >>> FOnlineAsyncTaskAccelByteRegisterLocalServerV2::TriggerDelegates (AsyncTask method) was called. Args: bWasSuccessful: true
  3. Now, open AccelByte's Demo Admin Portal and go to Dedicated Server Management > Servers > Local Servers. You should see the numbers of local servers registered in Armada. Select it to display the list of your local dedicated servers.

    Dedicated server overview on Admin Portal

    Local dedicated server status on Admin Portal

  4. Congratulations! You have successfully tested your local dedicated server that is connected to Armada.

References