-
-
Notifications
You must be signed in to change notification settings - Fork 124
Setup Headless Server
Since Nebula 0.8.7, Nebula can be ran in headless mode (#62, #553)
The following are the steps to run it.
If you purchased the game on Steam, you're required to be logged into Steam in order to run the game on your server.
If you only have one Steam account, you can setup Steam Offline Mode.
Create a steam_appid.txt file in the root of the game directory (next to DSPGame.exe) with the text 1366540. Now you can run the game from the exe.
If you're using the mod manager, you can go to Settings -> Debugging -> Set launch parameters to set the following command line.
For example, -batchmode -nographics -server -load save1
The config file can be found in Config editor -> find BepInEx\config\nebula.cfg
The dedicated server can be started from the command line with:
./DSPGAME.exe -batchmode -nographics -server -load save1
Where save1 is the name of the savefile.
| Command | Details |
|---|---|
-batchmode |
Run the application in “headless” mode. In this mode, the application doesn’t display anything or accept user input. |
-nographics |
When you use this argument in batch mode, Unity doesn’t initialize a graphics device. |
-logFile <pathname> |
Specify where Unity writes the Editor or Windows/Linux/OSX standalone log file. |
| Command | Details |
|---|---|
-server |
Start DSP in dedicated headless server mode. |
-load <savename> |
Specify the save to load. App quits when the save doesn't exist. |
-ups <integer value> |
Set UPS to value using FPSController.SetFixUPS(value). Range: 5-240. |
The config file is BepInEx\config\nebula.cfg
| Config Options | Default | Details |
|---|---|---|
AutoPauseEnabled |
true |
Auto pause the game when there are no connected players. |
RemoteAccessEnabled |
false |
Let authenticated clients access remote server commands |
RemoteAccessPassword |
If provided, this will set a password used for clients to authenticate for access to remote server commands | |
ServerPassword |
If provided, this will set a password for the hosted server. |
When the server has RemoteAccessEnabled set to true, clients can use following commands:
| Command | Example | Details |
|---|---|---|
/server login [RemoteAccessPassword] |
/server login hunter2 |
Enables access to the following commands |
/server list [saveNum] |
/server list 5 |
Show the recent [saveNum] savefiles by time and savename on the server. |
/server save [saveName] |
/server save save1 |
Save current game as [saveName]. If saveName is not specified, it will save to _lastexit_. |
/server load <saveName> |
/server load save1 |
Load game from saveName. Current game will be saved to _lastexit_ before restart. |
Headless server and a client, test chat commands
Check How to run 2 game instances on the same computer to run multiple instances of DSP.