How to use Command Lines Print

  • 27

This article will guide you how to use command lines in your dedicated game server

Configuring

 There are 2 ways to configure the dedicated server:
 
Using command line parameters.
Using the Server.cfg file.
Note: Command line parameters overwrite the Server.cfg file setup.


Using the command line configuration
To launch a dedicated server using the command line tool you need:
Open the ports 8766, 27015 and 27016 (on your router and firewall) for TCP/UDP.


The available command lines parameters are:

-serverip <ip> // Must be set to the server ip on the local network

-serversteamport <port> // Set the steam server port, default is 8766

-servergameport <port> // Set the server game port, default is 27015

-serverqueryport <port> // Set the server game port, default is 27016

-servername <name> // Set the server display name

-serverplayers <maxPlayers> // Set the max. number of players, default is 8

-serverpassword <password> // Set the server password, default is none

-serverpassword_admin <password> // Set the server admin password, default is none

-serversteamaccount <name> // Set the steam account, blank means anonymous (see Steam server account bellow)

-enableVAC // Enable Valve Anti Cheat

-serverautosaveinterval <Interval> // Set the autosave interval in minutes, default is 15

-difficulty <Peaceful|Normal|Hard> // Set the game difficult level, default is Normal

-inittype <New|Continue> // Set the init type of game, default is New

-slot <1|2|3|4|5> // Set the save slot to use, default is 1

-showlogs // Enable server log window


Was this answer helpful?

« Back