Difference between revisions of "Dedicated Server Kit Demo Setup"
(→Introduction) |
(→Setup) |
||
Line 17: | Line 17: | ||
In order to play the Dedicated Server Kit demo, please follow these steps: | In order to play the Dedicated Server Kit demo, please follow these steps: | ||
− | * Open the Unity Hub and create a new, empty 2D project with Unity 2019.4.0 LTS or higher. | + | * Open the Unity Hub and create a new, empty 2D project with <strong>Unity 2019.4.0 LTS</strong> or higher. |
− | * Download and import the [https://assetstore.unity.com/packages/tools/network/mirror-129321?aid=1100l3nzZ Mirror] networking asset into your project. | + | * Download and import the <strong>[https://assetstore.unity.com/packages/tools/network/mirror-129321?aid=1100l3nzZ Mirror]</strong> networking asset into your project. |
− | * Download and import the [https://assetstore.unity.com/packages/tools/network/dedicated-server-kit-173263?aid=1100l3nzZ Dedicated Server Kit] networking asset into your project. | + | * Download and import the <strong>[https://assetstore.unity.com/packages/tools/network/dedicated-server-kit-173263?aid=1100l3nzZ Dedicated Server Kit]</strong> networking asset into your project. |
− | * Install the latest version of the [https://www.mysql.com MySQL] database on your machine. | + | * Install the latest version of the <strong>[https://www.mysql.com MySQL]</strong> database on your machine. |
− | * Install the latest version of the [https://golang.org Go] programming language on your machine. | + | * Install the latest version of the <strong>[https://golang.org Go]</strong> programming language on your machine. |
* Unzip the contents of the ''dsk.zip'' file located in the ''DedicatedServerKit/Core/Go'' folder on your machine. Run the ''create_database.sql'' script to create the database (this is only needed the first time) and run go build on the uncompressed dsk folder to generate the Go server binary. Finally, you can launch the Go server binary. | * Unzip the contents of the ''dsk.zip'' file located in the ''DedicatedServerKit/Core/Go'' folder on your machine. Run the ''create_database.sql'' script to create the database (this is only needed the first time) and run go build on the uncompressed dsk folder to generate the Go server binary. Finally, you can launch the Go server binary. |
Revision as of 23:58, 8 July 2020
IntroductionDedicated Server Kit has four main components:
How do these components interact between each other? It all starts with the Unity game client, which is your actual game. Upon starting the game, your player will register a new account with the system (if he does not have one yet) and log into it. Once logged in, he can create new games and join existing ones as well. Communication with the Go server happens via REST calls. The Go server is responsible for spawning new instances of the Unity game server as players create new games. The player's data is safely stored in a MySQL database (passwords are hashed using Argon2 encryption and clients do not have access to the database; only the Go server does). SetupIn order to play the Dedicated Server Kit demo, please follow these steps:
|