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

概要 - 専用サーバーでのクイックマッチ - (Unreal Engine モジュール)

Last updated on June 12, 2024

Introduction

Matchmaking is the first of three ways players can get together and play online. It provides the simplest approach to quickly and efficiently get players into a match and play. In this module, we show you how to implement a quick play solo Elimination mode and a 2 vs. 2 Team Deathmatch mode in Byte Wars using matchmaking.

Prerequisites

To start this module, you will need:

  • To have completed all the following modules:

  • The Byte Wars tutorialmodules branch checked out in your local Byte Wars Unreal project repository.

  • To force enable this module by adding the following code to the Config/DefaultEngine.ini file:

    [AccelByteTutorialModules]
    +ForcedEnabledModules=TutorialModule:MATCHMAKINGDSESSENTIALS
    ...
  • To force disable other modules by changing this value in the Config/DefaultEngine.ini file:

    [AccelByteTutorialModules]
    ...
    ForceDisabledOtherModules=true

Learning objectives

At the end of this module, you will know how to set up quick matches and implement matchmaking using a dedicated server.

Preview

At the end of this module, your project will look like the images below:

Start matchmaking demo Unreal Byte Wars quick match dedicated server

LogMatchmakingDS: UMatchmakingDSOnlineSession_Starter::OnStartMatchmakingComplete succeeded: TRUE
LogMatchmakingDS: UMatchmakingDSOnlineSession_Starter::OnMatchmakingComplete succeeded: TRUE

Cancel matchmaking demo Unreal Byte Wars quick match dedicated server

LogMatchmakingDS: UMatchmakingDSOnlineSession_Starter::OnCancelMatchmakingComplete succeeded: TRUE