Skip to main content

Play test - Browse dedicated server joinable sessions - (Unity module)

Last updated on October 24, 2024

Test browsing match sessions

To test the Browse Match functionality, you need two clients. The first client will create a profile, and the second will browse for matches. You will run the test in the Unity Editor.

  1. Create a new folder for your second client in the same parent folder as your project. For example:

    • Main project folder: D:\game\accelbyte-unity-bytewars-game
    • Server folder: D:\game\accelbyte-unity-bytewars-game-second
  2. Link the source (main project) folder to the target folder:

    main project
    D:\game\accelbyte-unity-bytewars-game\Assets
    D:\game\accelbyte-unity-bytewars-game\local-packages
    D:\game\accelbyte-unity-bytewars-game\Packages
    D:\game\accelbyte-unity-bytewars-game\ProjectSettings
    second project
    D:\game\accelbyte-unity-bytewars-game-second\Assets
    D:\game\accelbyte-unity-bytewars-game-second\local-packages
    D:\game\accelbyte-unity-bytewars-game-second\Packages
    D:\game\accelbyte-unity-bytewars-game-second\ProjectSettings

    If you are using Windows, you can do this automatically by running Assets/create-linked-project.bat and provide the secondary linked project root folder.

  3. Open both project folders in Unity Hub. Now, with two Unity Editors open, play both projects, ensuring you log in using different accounts.

  4. Play test the match session creation implementation by following these scenarios:

    • Create session: Navigate to Play Online > Create Match Session and create a session with a dedicated server using the Elimination game mode.

    • 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 created with the other client. If it is successful, you will see the following screen and the log in the second game client:

      Create session demo Unreal Byte Wars joinable sessions dedicated server

      Image shows browsing match session Unity Byte Wars browse dedicated server joinable sessions

      [MatchSessionWrapper.cs] [OnBrowseMatchSessionComplete] [Log] [85] - Success getting match sessions