Dedicated Server how-to

From Aloft Wiki
Jump to navigation Jump to search

Find the files

To start a dedicated server, first open up the files location from within steam :

AloftServerNoGuiLoad.ps1 Where to find.png


In the folder, you’ll see multiple files. The two important files are as follow :

DedicatedServer important files.png

You can right click them and run with powershell to launch them.

RunWithPowershell DedicatedServer.png

How to create a world for your server

The first file is the command to create the world. Open AloftServerNoGuiCreate.ps1 with notepad and edit the line $processInfo.Arguments (parameters) to your liking. It should look like this:

> -batchmode -nographics -server create#MAPNAME#500#1# log#ERROR#

  • Mapname is the name of the map you want to create. (no spaces)
  • 500 is the number of islands in the map.
  • 0 (or 1) is whether the game is set in creative mode or not.
  • Log is the log level.

After edition, it should look like this: > -batchmode -nographics -server create#ABC#250#0# log#ERROR#

This will, for example, create a map named ABC with approximately 250 islands in survival mode.

Once started, the console will output a log of different things and/or errors if any. Once the map has been created the instance will close itself automatically.

How to start your server

The second file allows you to load your map. You can edit the same $processInfo.Arguments line.

-batchmode -nographics -server load#MAPNAME# servername#ALOFTSERVER# log#ERROR# isvisible#true# privateislands#false# playercount#8# serverport#0# admin#-1# admin#-2#

  • Mapname is the name of the map you want to load. (no spaces)
  • Servername is the name of the server you’ll see in-game (no spaces)
  • Log is the log level.
  • IsVisible is if your server is going to be visible through the lobby browser (true) or just accessible through a code (false)
  • PlayerCount is the max player count
  • Privateislands is if home island spawning is protected or not in game.
  • Serverport is the server port.
  • Admin will define the in-game admins. The value needs to be the steam id. This parameter is a list, so it’ll take any number of admins.

-batchmode -nographics -server load#ABC# servername#SuperServer# log#ERROR# isvisible#false# privateislands#true# playercount#3# serverport#0# admin#76561197960287930#

The console will be outputting the game code to join :

ServerCode DedicatedServer.png

The room code will also be outputted to the ServerRoomCode txt file.

ServerCodeTextFile DedicatedServer.png

The server will be dumping its log into output.log in the build folder. If any issues arise, we may ask to look at it. Keep in mind that the file will be overwritten every time a new server boots up!

Community-created guides

https://youtu.be/ejgeYwWLd6A