Last updated: 2021-03-30 10:27:15

    Overview

    This document describes how to use the "Demo" to get started with GSE, a game server hosting service.

    Directions

    Step 1. Upload demo package

    1. Log in to the GSE Console and click Demo on the left sidebar.
    2. Select the service region in the top-left corner and click Quick Upload of Demo Package. After the message indicating that the package has been uploaded successfully is displayed, click Next.

      Note:

      • The demo package provided by GSE has already integrated the gRPC framework through which the game process communicates with GSE.
      • If you want to create on your own, please see Creating Code Packages.

    Step 2. Create a server fleet

    Click Quick Creation of Server Fleet, and you will see how the creation status changes, such as “Create (In progress)” and “Downloading (In progress)”. When “Created successfully” is displayed, click Next.

    • To create a server fleet needs a “Completed” status for all 6 steps, namely, Create (Completed), Downloading (Completed), Verifying (Completed), Generating (Completed), Activating (Completed), and Active (Completed).
    • Status: creating, or server fleet XXX created successfully.


      Note:

      • Your demo package is deployed onto the server fleet as it is being created.
      • A server fleet consists of a group of servers capable of auto-scaling, so the demo package can be deployed globally with ease.
      • If you want to create on your own, please see Creating Server Fleets.

    Step 3. Create a game server session and a player session

    • Click Create Game Server Session, and a message will be displayed indicating that a game server session has been created successfully.

      Note:

      • This operation calls the CreateGameServerSession TencentCloud API so that GSE will create a game server session and assign it a service process.
      • If you want to create on your own, please see the API document CreateGameServerSession.
    • Click Create Player Session, and a message indicating that a player session has been created successfully will be displayed.

      Note:

      • This operation calls the JoinGameServerSession TencentCloud API, so that GSE will create a player session and add the player to a game server session.
      • If you want to create on your own, please see the API document JoinGameServerSession.

    Step 4. Connect client to the game server

    Click Redirect to client webpage to access the page for connecting the client to the game server. Click Connect, and a message indicating that the server has been connected successfully will be displayed.

    Note:

    • After creating the player session, the player (client) needs to connect to the server within 1 minute; otherwise, the connection will expire.
    • This demo package is a chat service. When multiple players connect to the server, they can chat with each other.

    The above four steps simulate the entire GSE integration process. For more information, please see Development Guide.