Skip to main content

Overview - Introduction to Session - (Unreal Engine module)

Last updated on October 24, 2024

Introduction

Session is the foundation for the AccelByte Gaming Services (AGS) multiplayer offerings. In this module, you will learn how to implement the basic functionalities of Session into your game so you can begin adding more robust multiplayer features such as Party, Matchmaking, Match Sessions, or Custom Match.

Prerequisites

To complete this module, you will need:

  • To have completed the following module:

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

  • To have force enabled this module. You can do this by adding the following code to the Config/DefaultEngine.ini file:

    [AccelByteTutorialModules]
    +ForcedEnabledModules=TutorialModule:SESSIONESSENTIALS
    ...

Learning objectives

At the end of this module, you will learn how to implement:

  • Creating a session.
  • Joining a session.
  • Sending an invitation to join a session.
  • Rejecting an invitation to join a session.
  • Leaving a session.
  • Updating session joinability.
note

While this module covers implementing all of the above features, it will only walk you through testing creating and leaving a session. Tests for the rest will come in a later module.

Preview

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

  • Create a session

    Create a Session Byte Wars Unreal preview gif

  • Leave a session

    Leave a Session Byte Wars Unreal preview gif