Install/Setup

Requirements

  1. Unity 2020.3.4f1

  2. Dakrift 2 Free version - We use Darkrift for the multiplayer

The Multiplayer Master Server Includes

2 Projects

  1. All the Unity scripts

  2. CasinoApi.sln -

    1. Location: MasterServer.sln

Get the server project from Assets\MultiplayerServerFakeit. Extract it outside of your main game directory. You can change the directory of the server but first you need to change the Build Events location for the dll files accordingly for (MasterServer) and (MasterServerModels)

Installation/Setup (Short)

  1. Import Newtonsoft

  2. Import MultiplayerServerFakeit

  3. Download the server code from here inside the main project directory. After you do the folders should look like - Assets/ Library / server / MasterServer etc...

  4. Build MasterServer and MasterServerModels which are inside MasterServer.sln (Building the whole project should also work, but some visual studio versions fail to execute the post build commands, so we are building them separately just in case)

  5. Go to the server directory and run DarkRift.Server.Console.exe this will start the server. After that you can open the project and start the Scene from our package.

Installation/Setup (Long)

Newtonsoft requires that there are no errors inside the project (this is stated inside the documentation of the newtonsoft package) so we need to install it before we put our MultiplayerServerFakeit folder inside the Assets. If you already downloaded the package which might be the case before installing Newtonsoft it's not a problem. Just move the MultiplayerServerFakeit folder which is located inside the Assets to somewhere outside of the project and install Newtonsoft. After Newtonsoft is installed and you can see the package added to your main game Solution you can move back the MultiplayerServerFakeit folder inside the Assets.

The Newtonsoft reference should be added automatically to the solution

Download the server code from here inside the main project directory. After you do the folders should look like - Assets/ Library / server / MasterServer etc...

Build MasterServer and MasterServerModels which are inside MasterServer.sln (Building the whole project should also work, but some visual studio versions fail to execute the post build commands, so we are building them separately just in case)

These dependencies are required in order the project to run without errors:

We use Darkrift 2 because it is free and it allows us to have unlimited CCU unlike other solutions and much more, you can check more in the description of Darkrift.

Go to the server directory and run DarkRift.Server.Console.exe this will start the server. After that you can open the project and start the Scene from our package.

If you are on linux or just preffer not to start the server from the exe file, you can run the server with Docker.

Last updated