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

プレイテスト - 専用サーバーで参加可能なセッション - (Unreal Engine モジュール)

Last updated on June 12, 2024

Test Match Session DS implementation

  1. Compile your project and open it in the Unreal Engine Editor.

  2. If you have already uploaded a new dedicated server to the AccelByte Gaming Services (AGS) Admin Portal, you can just play the game from the Editor and jump to Step 4. For more information on how to upload a dedicated server, refer back to the Dedicated servers with AccelByte Multiplayer Servers (AMS) module.

  3. Alternatively, you can test using a local dedicated server. To do this, you can either package your game client and dedicated server as executables or run the project file with extra launch parameters. For more information on how to run a local dedicated server, refer to back to the Dedicated servers with AMS module.

    • Running game client using a local dedicated server. This will also launch your game in windowed mode at 720p resolution. Note that you can use any phrase such as as <your-server-name>, but make sure that the one you use for game client is the exact same that you use for the server.

      -game -log -WINDOWED -ResX=1280 -ResY=720 -ServerName=<your-server-name>
    • Running a local dedicated server.

      -server -log -ServerName=<your-server-name>
  4. Play test the matchmaking with dedicated server implementation by following these scenarios:

    • Create session. Navigate to Play Online > Create Match Session menu and create a session with a dedicated server using the Elimination game mode. If it is successful, you will see the following screen and the log:

      Create session demo Unreal Byte Wars joinable sessions dedicated server

      LogAccelByteWarsOnlineSession: UAccelByteWarsOnlineSession::OnCreateSessionComplete succeeded: TRUE
    • Cancel creating session. Navigate to Play Online > Create Match Session menu and create a session with a dedicated server using the Elimination game mode. Click the Leave button as soon as it's enabled. If it is successful, you will see the following screen and the log.

      Cancel creating session demo Unreal Byte Wars joinable sessions dedicated server

      LogAccelByteWarsOnlineSession: UAccelByteWarsOnlineSession::OnLeaveSessionComplete succeeded: TRUE
    • Browse session. Create a match session with one game client and start a new game client with a different account. Navigate to Play Online > Browse Matches and join the session that you have created with the other client. If it is successful, you will see the following screen and the log in the second game client.

      Browse session demo Unreal Byte Wars joinable sessions dedicated server

      LogAccelByteWarsOnlineSession: UAccelByteWarsOnlineSession::OnFindSessionsComplete succeeded: TRUE
      ...
      LogAccelByteWarsOnlineSession: UAccelByteWarsOnlineSession::OnJoinSessionComplete succeeded: TRUE