How-To Create A DayZ SA Server

One nice thing about DayZ SA (I’ll just call it DayZ from now on) is that setting up a server is very easy. DayZ is self-contained and doesn’t require installation of an external database.

  1. Download DayZ Server from Steam -> Library -> Tools [Note that DayZ Server Experimental is a separate download and can be installed similarly]
    • By default, the files will be in  c:\Program Files (x86)\Steam\steamapps\common\DayZServer
    • Copy that directory to another location because steam will auto-update that location and overwrite any changes you have made. For simplicity of this documentation, I will use C:\dayzserver\ .
  2. Edit C:\dayzserver\DayZServer\serverDZ.cfg
    • change hostname
    • set password if needed
    • Add a line for steamQueryPort = 2303;
      • Use whatever number you want, I generally use gamePort +1
      • The default steam query port is 27016, but better to explicitly set the port
  3. Open and port forward the gamePort (2302) and steamqueryport (2303) [both UDP Protocol]. No other ports or port ranges are required to be opened or forwarded.
  4. gamePort is set on the command line. For this example, I’ll use 2302
  5. Read this to learn how to add mods to the server.
  6. Run the server via this command (replacing @mod1;@mod2;@mod3; with our mods or remove =mod if you want to run vanilla)
    "C:\Windows\System32\cmd.exe " /C start "DayZSA" C:\dayzserver\DayZServer_x64.exe -config=C:\dayzserver\serverDZ.cfg -port=2302 -profiles=C:\dayzserver\profile "-mods=@mod1;@mod2;@mod3;" -BEPath=C:\dayzserver\battleye -dologs -adminlog
  7. The -profiles directory will contain log files *.RPT, *.ADM, *LOG
    1. It is also where mods keep their configuration files

 

TROUBLESHOOTING

  • XAPOFX1_5.dll is missing

 

TODO : Tools discussion for start/restart/log rotate.

2 thoughts on “How-To Create A DayZ SA Server

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s