Skip to content

Instantly share code, notes, and snippets.

@SDGNelson

SDGNelson/.md Secret

Created January 2, 2020 23:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SDGNelson/f503cd94007a66124c63cb3631e74911 to your computer and use it in GitHub Desktop.
Save SDGNelson/f503cd94007a66124c63cb3631e74911 to your computer and use it in GitHub Desktop.

Hosting

Downloading the dedicated server from the tools tab requires a login during the private beta, but will be available anonymously once the game is marked as released on Steam.

Running a client on the same machine as dedicated server(s) requires specifying the -DisableSteamServerInit launch option. Running a listen server does not require this however.

Launch the server with the map name, and -Log to open a command prompt. Valid map names:

Firing_Range
Blastlane
Survival_Sandbox
Horde_Sandbox
Horde_Chapel
Horde_Potato

Until configuration is thoroughly implemented, a temporary config file format similar to 3.0's is available. Specify the -U4SV=MyFile.json on the command-line. This can be a file name in the Saved folder, or an absolute file path anywhere on the system. The game populates defaults in this format:

{
	"SessionLabel": "Name in the server list",
	"MaxPlayers": 64,
	"MaxSpectators": 2,
	"UniqueNetIdWhitelist":
	[
		"STEAM:FirstSteamId64",
		"STEAM:SecondSteamId64"
	]
}
@MechaRy
Copy link

MechaRy commented Mar 17, 2020

I'm not understanding the U4SV=MyFile.json part. This is what I have so far.

cd C:\Program Files (x86)\Steam\steamapps\common\U4DS
U4Server.exe survival_sandbox -log
U4SV=MyFile.json

The server works fine but I don't know how to specify the MyFile.json location.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment