Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:

⇒日本語のREADMEへ

GS2 LocalStateMachineKit for Unity

This is an additional kit for using the speculative execution feature of GS2-StateMachine provided by Game Server Services (https://gs2.io). By installing this kit, you will be able to execute the same state machine definition locally as the state machine executed by GS2-StateMachine and know the result of the execution without going through communication.

This makes it possible to predict the rewriting of user data, and allows even complex games to be executed without communication latency, and The results can be verified on the server side by sending the contents of messaging with the state machine and state change information to GS2-StateMachine at regular intervals.

The result of local execution does not actually rewrite user data, but only the local cache, and user data is rewritten as a result of verification on the server side. Therefore, it is possible to realize a mechanism that does not generate communication latency and is highly cheat-resistant.

What is Game Server Services?

Game Server Services (GS2) is a back-end server service (BaaS) specialized for game development.

GS2 is a general-purpose game server solution created to improve efficiency for game developers, and supports Games as a Service (GaaS) and Live Gaming.

The service allows for flexible management of player data and data analysis, enabling proper analysis of in-game resource distribution and consumption to maintain a healthy environment. In addition, it provides story progression management and possession management, contributing to game monetization and player engagement. GS2 supports online functionality and makes it easy for game developers to analyze data and manage economics to help their games succeed.

Getting Started

Place the downloaded source code in the following folder in your Unity project.

(Unity Project)/Assets/Scripts/Runtime/Sdk/Gs2/LocalStateMachineKit.

You will need GS2 credentials to use the SDK. Follow the instructions in GS2 Setup to issue the credential.

Dependent Libraries and Licenses

GS2 LocalStateMachineKit for Unity uses the following OSS in addition to the regular SDK. Please refer to each OSS page for their respective licenses.

Requirements

  • Unity 2020+ (Unity 2020+)
  • GS2-CSharp-SDK
  • GS2 SDK for Unity

⇒ Start using GS2 - SDK - Game Engine

Detailed specifications of SDK

For details of APIs for various services and communication methods, please refer to

⇒API Reference

For more information about initialization process

⇒API Reference - Initialization Process

for the initialization process.

About patented technology

Game Server Services has filed an international patent application for a mechanism to share a state machine with a server for speculative execution. This invention is available free of charge when used in conjunction with GS2-StateMachine, but a separate license is required when cloning GS2-StateMachine.