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

ゲームセッションを設定する - 専用サーバーでのクイックマッチ - (Unreal Engine モジュール)

Last updated on May 30, 2024

About

To implement matchmaking, you need to set up the matchmaking configurations in the AccelByte Gaming Services (AGS) Admin Portal. This section will guide you through all configurations needed to make matchmaking for the Elimination game mode, which is a four-player free-for-all (FFA) mode.

Create a Session Template

To proceed with this module, you will need a Session Template created, which you should have done in the Introduction to Session module. Refer back to that module as needed.

Create a Match Ruleset

A Match Ruleset is a configuration that defines how your players will be matched. It is a set of rules for how your matchmaking will work. This section will guide you through creating a Match Ruleset for the Elimination and Team Deathmatch game modes.

  1. Log in to the AGS Admin Portal and go to your game namespace dashboard.

  2. Go to Multiplayer > Matchmaking > Matchmaking Configurations. On the Match Ruleset tab, click Create Ruleset.

  3. On the Create Match Ruleset screen, replace the preexisting JSON with the information below and name the new Match Ruleset as elimination. Once finished, click Create.

    {
    "alliance": {
    "max_number": 4,
    "min_number": 1,
    "player_max_number": 1,
    "player_min_number": 1
    },
    "auto_backfill": true
    }
    備考
    • alliance is the attribute to define your match members, such as how many teams and players are in a match. Set these attributes to the following:

      • max_number is the maximum number of teams. Set it to 4.
      • min_number is the minimum number of teams. Set it to 1.
      • player_max_number is the maximum number of players in a team. Set it to 1.
      • player_min_number is the minimum number of players in a team. Set it to 1.
    • auto_backfill is a flag for whether the game's server should use backfill or not. You will learn more about it later. For now, set it to true.

  4. Repeat the steps to create a new Match Ruleset named teamdeathmatch using the configurations below.

    {
    "alliance": {
    "max_number": 2,
    "min_number": 2,
    "player_max_number": 1,
    "player_min_number": 4
    },
    "auto_backfill": true
    }

Create a Match Pool

A Match Pool is a configuration that connects your Match Ruleset to your Session Template. It will perform matchmaking based on your Match Ruleset and create a game session based on your Session Template. This section will guide you through setting up a Match Pool for the Elimination and Team Deathmatch game modes.

  1. Log in to the AGS Admin Portal and go to your game namespace dashboard.

  2. Go to Multiplayer > Matchmaking > Matchmaking Configurations. On the Match Pools tab, click Create Match Pool.

  3. On the new window, use the configuration below to configure a Match Pool for the Elimination game mode. Once done, click Add.

    • Match Pool Name: the name of the Match Pool. Set it to unreal-elimination-ds-ams.
    • Match Ruleset: the Match Ruleset to use. Set it to elimination.
    • Session Template: the Session Template to use. Set it to unreal-elimination-ds-ams.
  4. Repeat the steps mentioned above to create a new Match Pool for Team Deathmatch by using the configuration below.

    • Match Pool Name: set it to unreal-teamdeathmatch-ds-ams.
    • Match Ruleset: set it to teamdeathmatch.
    • Session Template: set it to unreal-teamdeathmatch-ds-ams.