-
Notifications
You must be signed in to change notification settings - Fork 7
JSON File Configuration
If you do not yet have a JSON file, you can download the appropriate files from the Required Map Files section of the Wiki.
This is your main json file containing the layout of islands, server ip, port, and grid location information, and some settings for your servers.
Our example will be based on a 2x2 grid, which would require setting up 4 server instances.
You will need to set the number of squares in your grid. Here is how you would set a 2 x 2 grid.
"totalGridsX": 2,
"totalGridsY": 2,
If you are locally hosting your redis database, most of these settings will be correct. Verify the port and password match the configuration of your redis server.
"DatabaseConnections": [
{
"Name": "Default",
"URL": "127.0.0.1",
"Port": 6379,
"Password": "foobared"
},
{
"Name": "TribeDB",
"URL": "127.0.0.1",
"Port": 6379,
"Password": "foobared"
},
{
"Name": "TravelDataDB",
"URL": "127.0.0.1",
"Port": 6379,
"Password": "foobared"
},
{
"Name": "TerritoryDB",
"URL": "127.0.0.1",
"Port": 6379,
"Password": "foobared"
},
{
"Name": "LogDB",
"URL": "127.0.0.1",
"Port": 6379,
"Password": "foobared"
}
There is a section called "servers". You will know you are in the right location because the gridX and gridY will each be 0.
Put a custom MachineIdTag and a unique port, gamePort, and seamlessDataPort.
For help configuring your ports, please read the IP Address Configuration section of the Wiki.
Example of a correct configuration.
"gridX": 0,
"gridY": 0,
"MachineIdTag": "AtlasServer_01",
"ip": "37.10.126.130",
"name": "Tropical Freeport",
"port": 57550,
"gamePort": 5750,
"seamlessDataPort": 27000,
"isHomeServer": true,
"gridX": 0,
"gridY": 1,
"MachineIdTag": "AtlasServer_02",
"ip": "37.10.126.130",
"name": "",
"port": 57551,
"gamePort": 5752,
"seamlessDataPort": 27001,
"isHomeServer": false,
"gridX": 1,
"gridY": 0,
"MachineIdTag": "AtlasServer_03",
"ip": "37.10.126.133",
"name": "",
"port": 57552,
"gamePort": 5754,
"seamlessDataPort": 27002,
"isHomeServer": false,
"gridX": 1,
"gridY": 1,
"MachineIdTag": "AtlasServer_04",
"ip": "37.10.126.134",
"name": "",
"port": 57553,
"gamePort": 5756,
"seamlessDataPort": 27003,
"isHomeServer": false,
Required
View Example
This is a json file that contains redis database connection information. If you are running a local redis server, verify port and password match your redis.conf file.
Required
Create this folder by typing mkdir ServerGrid
in your ShooterGame directory. This folder will hold your MapImg.jpg file. This file will be used when displaying the in game map.
Required
View Example
This is the image representing your map. Place this file in the ServerGrid folder you created under your ShooterGame directory.