Atlas Dedicated Server Setup Guide - Part 8: Server Startup
Update Server with JSON Files and Map Images
The first step is easy. Previously, we installed Atlas to c:\games\atlas. The base directory we will be working with for this entire guide will be c:\games\atlas\shootergame. Always start there when you see a folder or path reference further in this guide.
We need to copy our JSONs and our Map Folder to our server. Place everything in the ShooterGame folder.
Get out the Port Configuration Sheet. We aren't done with it yet.
Create Startup Commands
Next, we need to start our servers to create the save folders and the map specific configuration files. The command we use tells the game which map to create and where to save the data.
The command structure is simple. We specify the executable, the Map Name, the X and Y Grid, the Save Folder, the Query Port, and a few server commands. Everything else will be put into the configuration files once they are created. There is a ? between each of the server variables (see X and Y Grid for example)
Map Name: Ocean X and Y Grid: ServerX=0?ServerY=0 Save Folder Name: AltSaveDirectoryName=A1 Query Port: QueryPort=20000 Server Commands: -log -server -NoBattlEye
Put it all together to form a single line and that is what we type into the command prompt on windows. (open a command prompt, you will need it for the rest of this tutorial)
Here's the first example.
"c:\games\atlas\ShooterGame\Binaries\Win64\ShooterGameServer.exe" Ocean?ServerX=0?ServerY=0?AltSaveDirectoryName=A1?QueryPort=10000 -log -server -NoBattlEye
The other three commands look like:
"c:\games\atlas\ShooterGame\Binaries\Win64\ShooterGameServer.exe" Ocean?ServerX=0?ServerY=1?AltSaveDirectoryName=A2?QueryPort=10001 -log -server -NoBattlEye "c:\games\atlas\ShooterGame\Binaries\Win64\ShooterGameServer.exe" Ocean?ServerX=1?ServerY=0?AltSaveDirectoryName=B1?QueryPort=10300 -log -server -NoBattlEye "c:\games\atlas\ShooterGame\Binaries\Win64\ShooterGameServer.exe" Ocean?ServerX=1?ServerY=1?AltSaveDirectoryName=B2?QueryPort=10301 -log -server -NoBattlEye
Notice that in each command, we change the X, Y, Save Directory, and Query Port. All other values remain the same.
Each time you run the command, a new window will open up. You can start them all at once.
Once they are all running, you should see something like this:
Verify Save File Locations
Before we stop the servers, browse to c:\games\atlas\shootergame\saved\ and make sure you see 4 seperate save FOLDERS
There should be an A1, A2, B1, B2 folder that we specified in the above start commands
Each atlast instance maintains it's own folder for each map and map specific settings
Now, select each window (one at a time) and hit CTRL+C to shut down the instance.
Next, we will modify our config files.