A current guide on installing and setting up a DayZ Standalone server by using SteamCMD, this guide also includes a server start batch file and a solution to download and auto-update mods.
This guide is made using Windows Server 2019 on Vultr with SteamCMD. This guide will also work on Windows 10, 8.1, Server 2016 and Server 2012 r2. You may need to install additional runtimes depending on your OS.
Dec 27, 2017 Arma2 DayZ: Epoch. Arma2 DayZ: Epoch is an unofficial open source client and server mod based on DayZ Community Edition. Arma2 DayZ: Epoch Mod brings more RP to DayZ Mod with; Metals based economy, NPC Traders, Lockable Vaults, More roles, and more. Arma2 DayZ: Epoch is set in a future time after the Great Infection.
Limited time get $100 free credit for new Vultr accounts here!
SteamCMD
- Jul 17, 2019 serverprofile is a subdirectory of serverroot that contains the main DayZ log file (DayZServerx64.RPT) and is specified on the command line as -profiles NOTE: If you are using a plain windows server, I always suggest copying server files from the STEAM download directory to something new, like c:dayzserver.
- Jul 17, 2015 dayzanim; dayzbuildings; dayzcode; dayzcommunityassets; dayzequip; dayzweapons; communitycrossbow; communityweapons; Dayzserver (server admins only) Mission (server admins only) (Prerequisites) SQL Files (server admins only) Requirements (server admins only) Microsoft Windows (Tested with 7, Server 2008) ArmA 2 Combined Operations.
- Use The Code Zombie To Grab A 10% Discount On All DayZ Standalone Servers. More specifically the server command line has a mod included that it cannot find in your server files. Ensure that all the mods in your command line exist in your files. Mod Mismatch (when joining server).
- A Full installer for DayZ Standalone. Includes an ingame server list, everything you need to play. DayZ Standalone v0.62 Server Files. Everything you need to host a cracked 0.61 DayZ server. Working Player Hive, Loot Spawning, Ingame server list, Battleye Enabled.
Download SteamCMD here and move it into a folder in the C drive called
SteamCMD
.Run
steamcmd.exe
and SteamCMD will unpack into the folderDayz Mod Private Server Files
At the C drive create
installserver.bat
and fill it with:Upon running this file it will install the DayZ server files into
C:serversdayzserver
.Opening ports
For your server to be found in the DayZ launcher and other server browsers you will need to open certain ports. To do this open up Windows Defender firewall with Advanced security.
This is for a server running on port 2302
Ports that need to be opened for UDP are:
Inbound rules:
- 2302-2306
- 4380
- 27000-27031
- 27036
Outbound rules:
- 2302-2306
- 2344
Ports that need to be opened for TCP are:
Inbound rules:
- 2302
- 2312
- 27015-27030
- 27036-27037
Outbound rules:
- 2312
- 2344
- 2345
Server start batch file
The basic batch file to start the server is this:
You can find more complex starters that include BEC and restarting here.
If your DayZ server starts, shows up in the server browser/DZSA launcher and you can connect & play; now you can begin to install mods and implement a restart system.
Adding your server to DZSA Launcher is done by going here and inputting your server IP address plus the query port which is 27016.
Launch errors
Some common errors upon starting the server are:
VCRuntime140.dll is missing
To fix go here and install the x64 bit.
XAPOFX1_5.dll and/or X3DAudio1_7.dll are missing
Install the runtime from here, note it takes a couple of minutes to install.
Configuration information
C:serversdayzserverserverDZ.cfg
has your server settings and options, importantly the server name, password options and mission file name.C:serversdayzserverPROFILENAME
change from PROFILENAME in the start batch file, this is where your logs will be generated and where you put configuration files from mods when they state your server profile folder.Installing mods
You need to get the mods workshop id and its @name, you can find its id by the number that is at the end of the workshop URL.
https://steamcommunity.com/sharedfiles/filedetails/?id=2106663048
The id is
2106663048
.Create
installmod.bat
in the C driveRun this to download the mod, move the mod file into your server’s directory, rename it and copy the key.
Auto mod updates
DayZ Workshop mods can become annoyances when updates are pushed as players will have it updated immediately via the Steam client whilst the server will not.
Auto-updating mods can be handled through the DZSA server launcher, get it here.
Using this means you need to include it in your start batch file and reference the DayZ server executable (.exe):
Server restarts
To implement a server restart system, create a batch file in the C drive called
restartdayz.bat
Fill it with:
This kills the DayZ server 64-bit process.
Server restarts are going to be run through Windows task scheduler. This is super simple to setup, On the right choose create task:
Now make Daily triggers at certain times with the action being to run the
C:restartdayz.bat
file.Here you can see that the server will be stopped every 6 hours.
Getting restart count down messages in the game chat for the restart time can be done in
db/messages.xml
which is found in your mission file at C:serversdayzservermpmissionsMISSIONNAME
.<deadline>
is in minutes.
|
Main Page | DayZ & DayZ Launcher
** WARNING!!!! *** *** PLEASE READ!!!!!! ***
|
Frequently, mod documentation tells you to edit your startup batch file, to edit the '-mod=' parameter...
On TRUgaming servers, you do not have access to the actual batch file itself.
The Commandline Manager allows you to edit any batch parameters that will not cause a conflict with other servers in the system .
For Example:
In the background the batch file looks like:
In the background the batch file looks like:
When you go to add mods, what you see in the Commandline Manager is the information unique to your server:
- As the server owner or sub-user with appropriate permissions, you can edit the batch file, but ONLY have access to the -mod= option.
- For more details on changing your commandline (batch file) see the Changing Commandline section on this page.
IMPORTANT NOTE FOR MODS:
The exact path can be seen when you open the Commandline Manager. |
There are TWO ways to add mods to your server:
- Using the Steam Workshop option, much easier and faster.
- Manually adding mods, the more traditional way and for those who know what they are doing.
Adding Mods Using The Steam Workshop
NEW FEATURE!!!!
|
Adding Mods Manually
Xbox Dayz Mod Servers
** PLEASE NOTE ***
|
- How to manually add mods to your server.. go here
- Stop your server
- Click on the Commandline Manager icon
- Click on the Active/Selected commandline link on the right of the commandline option you wish to edit
- This will open a dialog box that will allow you to add, remove or edit the order of the mods you want loaded.
- You do not have to delete the mod folder/files from your server.
- BUT, IF YOU MADE ANY CHANGES TO ANY CORE SERVER CONFIG FILES BECAUSE OF A MOD YOU ADDED, IT MAY BREAK YOUR SERVER
- SO REMEMBER WHAT YOU DID AND HOW YOU DID IT
- Save you changes
- Start your server
- Navigate to the DayZ game folder on your PC.
- Typically .../Steam/steamapps/common/DayZ
- Under this folder you will see a folder called !Workshop
- Double click on this folder
- You will see all your subscribed mods
- You will see all your subscribed mods
- With the release of version 1.08, it is now easier to make changes to core files without overriding the existing vanilla files.
Source1: DayZ:Central Economy mission files modding
Source2: DayZ:Central Economy Configuration
Source2: DayZ:Central Economy Configuration
To Modify the Mission Central Economy
You need to edit the cfgeconomycore.xml file under the mpmssions<map> folder.
Note: You still need to manually edit the cfgeventspawns.xml file as it is not included in the options.
Note: You still need to manually edit the cfgeventspawns.xml file as it is not included in the options.
folder: defines the name of the folder, where custom xml files are stored.
type: defines the type of given xml, can be one of the following:
- types - interprets file as types.xml (See File Specifics section for more details on types)
- spawnabletypes - interprets file as cfgspawnabletypes.xml
- globals - interprets file as globals.xml
- economy - interprets file as economy.xml
- events - interprets file as events.xml
- messages - interprets file as messages.xml
There can be multiple files defined under ce element as well as multiple ce elements. This can be used, for example, when one folder handles overrides of vanilla values and other folders append files from chosen mods.
Dayz Mod Download
Under the mpmissions<map> folder you would create a custom folder to hold all the custom .xml files.
Located under the mpmissions<map>custom folder you would then add your custom trader_types.xml and weaponsredux_types.xml files.
These file(s) would be renamed copies of the types.xml file(s) provided by the mod developer (in most cases).
Located under the mpmissions<map>custom folder you would then add your custom trader_types.xml and weaponsredux_types.xml files.
These file(s) would be renamed copies of the types.xml file(s) provided by the mod developer (in most cases).
Dayz Server Bat File
Top
Dayz Modded Server Files
Retrieved from 'https://trugaming.com/wiki/index.php?title=DayZ:_Modding_Your_Server&oldid=3439'