Jump to content
  • 0

[How To] Setup A DayZ Epoch server (out of date) being revised!


Guest

Question

After reading a couple of guides on setting up a DayZ Server for people to play on I have noticed that many tutorials have missing information or the user is left with different error messages to deal with or ignore.

 

The following tutorial is based on my knowledge, trial and error, debugging and contact with different users on the issue. I hope to provide the most detailed, and easy-to-follow tutorial on the web.

 

[Files Required]  

  1. Steam. http://store.steampowered.com/about/
  2. Arma 2 (Look at "Creating your server" section.)
  3. Arma 2 : Operation Arrowhead (Look at "Creating your server" section.)
  4. DayZ Commander, http://www.dayzcommander.com/
  5. Visual C++ Redistributable Packages for Visual Studio 2013, http://www.microsoft.com/en-us/download/details.aspx?id=40784 (x86 is for 32 Bit.)
  6. Visual C++ Redistributable Packages for Visual Studio 2010, http://www.microsoft.com/en-us/download/details.aspx?id=5555
  7. WAMP / XAMPP, http://www.wampserver.com/en/ or https://www.apachefriends.org/download.html (XAMPP for this tutorial)
  8. HeidySQL, http://www.heidisql.com/download.php (I recomend getting the installer)
  9. uTorrent, http://www.utorrent.com/
  10. DayZ Epoch Client Files, http://goo.gl/IN1Pt1 (Taken From http://epochmod.com/a2dayzepoch.php)
  11. DayZ Epoch Server Files, http://goo.gl/3GyZ0P (Taken From http://epochmod.com/a2dayzepoch.php)
  12. WinRar, http://www.rarlabs.com/download.htm
  13. Notepad++, http://notepad-plus-plus.org/

(Optional) Download this package made by Rotzloch https://mega.co.nz/#!uc9E0SgK!pZxZflTVTSs2jgYuBM6tUmBsYksAC4DtUeitSgmRfTU

 

[Prerequisites]

  1. A Computer with atleast 2GB Ram for a smooth experience for about 24 players. (4GB for around 60 players.)
  2. Harddrive of atleast 25GB for the game files.
  3. A Good connection (40Mbit Upload / Download)
  4. Atleast a Two-Core CPU.

[Creating your server]

 

If you have any of the games installed previously, I would recommend deleting them to not face any problems in the future.

  1. Install the C++ Redistributable Packages and restart your computer/box. (I recommend to install both x64 and x86 if you have a 64bit Operating system.
  2. Create a folder, preferably on your Desktop called "Dayz Epoch Server".
  3. Launch steam, login.
  4. Download Arma 2.
  5. Download Arma 2 : Operation Arrowhead.
  6. Wait until they are complete.
  7. Launch Arma 2 in windowed mode, wait until you are at the main menu, then close the game.
  8. Do the same for Arma 2 : Operation Arrowhead.
  9. Launch DayZ Commander.
  10. Click "install/update" in the top right of the window.
  11. Install the Arma 2 Beta Patch http://i.imgur.com/RwNq8ti.png
  12. Wait until that is complete.
  13. Now, go to your Steam Folder. Usually C:\Program Files (x86)\Steam\SteamApps\common\
  14. Copy everything from inside your "Arma 2" Folder inside the "DayZ Epoch Server" folder we created on your desktop in Step 1.
  15. Do the same for your "Arma 2 Operation Arrowhead" Folder EXCEPT any folders starting with an @.
  16. Click "Yes" to any popups asking you to overwrite the files.
  17. Take a deep breath. The easy part is now done.
  18. Take the Epoch Client and Server files that you downloaded earlier and put them on your Desktop.
  19. Open them up with WinRar http://i.imgur.com/g48k2s5.png
  20. Copy "@DayZ_Epoch" from the Client files into "DayZ Epoch Server" on your Desktop.
  21. Copy "@DayZ_Epoch_Server" from the Server files into "DayZ Epoch Server" on your Desktop.
  22. Copy the "Keys" folder from the Server files into "DayZ Epoch Server".
  23. Open the "Battleye" folder inside the Server files and copy everything inside into the "BattlEye" folder inside the "DayZ Epoch Server folder" on your Desktop. (Note the difference in Capitalization.)
  24. Copy all the 4 ".dll" files from your Server files into the "Dayz Epoch Server" folder. http://i.imgur.com/vzYLZ4v.png
  25. Open up "MPMissions" from your Server files and find the mission that you want. I will be using "DayZ_Epoch_11.Chernarus" for this tutorial.
  26. Copy that to your "MPMissions" folder inside the "Dayz Epoch Server" folder that is on your Desktop.
  27. Open "Config-Examples" from your Server files, then copy the matching instance number as your Mission to your "Dayz Epoch Server" folder. We will use "instance_11_Charnarus".
  28. Copy "DayZ_Epoch_instance_11_Chernarus.bat" from that same folder into the "Dayz Epoch Server" on your Desktop.
  29. Setup and install XAMPP, then make sure mysql and apache are started.
  30. Click the "Admin" button next to MySQL in the XAMPP control panel.
  31. Once the phpMyAdmin page is loaded, at the top, click "Users".
  32. Under the Users overview, click Add user.
  33. Enter "Epoch_User" as the User name. (without the "" ).
  34. As the Host, select "Local" from the dropdown box.
  35. Enter a password. I will use "password123" but please make sure to use something more secure.
  36. Scroll down and click "Check All" from the Global privileges then remove ALL Administration privileges like GRANT and SUPER.
  37. At the bottom, click Go on the right.
  38. Now you have your user created. Click "Databases" at the top.
  39. Under Create database, type in "Epoch_Database" as the Database name then click Create.
  40. Now you have your database. You can go ahead and stop Apache from the XAMPP control panel, you dont need it enabled anymore.
  41. Inside your Server files, open up the SQL folder and copy "epoch.sql" to your Desktop.
  42. Open HeidySQL.
  43. As the session name in the top left, we will have it just named as "DayZ Server SQL"
  44. Hostname / IP should be "127.0.0.1".
  45. User should be "Epoch_User"
  46. Password is "password123" or whatever you specified in your user setup.
  47. Click "Save" at the bottom left. then click Open.
  48. On the left hand side, you should see "Epoch_Database" go ahead and double click it.
  49. It should say "Database: Epoch_Database" at the middle tab on top.
  50. Click the "Query" tab.
  51. You should be presented with a text box, just drag your "epoch.sql" from your desktop into that textbox.
  52. Click the blue Play button above the Query tab or press F9.
  53. It should start executing the SQL into your database. You might get a "3 Warnings" popup at the end, ignore that.
  54. Restart HeidySQL and double click your database on the left, you should see some tables created. http://i.imgur.com/xBknVUv.png
  55. Close HeidySQL.
  56. Take another deep breath. The hard part is now done, you are nearly finished with your server!
  57. Go to your desktop and open your DayZ Epoch Server folder. It should look something like this. http://i.imgur.com/CHeOg9o.png
  58. Open up your instance_11_Chernarus folder.
  59. Open "config.cfg" with Notepad++.
  60. Edit this file to your liking, and set a "passwordAdmin" value for you to be able to login as an admin from ingame.
  61. Add requiredSecureId = 2; under BattlEye = 1; This is to prevent the UID spoofing.
  62. At the bottom, change your difficulty="veteran"; to difficulty="regular";
  63. Save and close.
  64. Open up "HiveExt.ini" with Notepad++.
  65. Scroll down to the [Database] section.
  66. Make sure Host = 127.0.0.1
  67. Same with Database = Epoch_Database
  68. The same with Username = Epoch_User
  69. And finally, Password = password123
  70. Save and close.
  71. Run DayZ_Epoch_instance_11_Chernarus.bat to start your server.

(Optional) Open up "cmd" from your start menu and type ipconfig to get your server's ip. Put that into DayZ Commander as a favorite so you can connect easily.

(Note) If your MySQL hosting is provided by your host, you can skip the MySQL setup part and not download XAMPP / Wamp and just use that info from your host.

(Linux Note) If you are running a linux machine, and running Wine to allow you to run windows applications, please put "msvcp120.dll" & "msvcr120.dll" into your "DayZ Epoch Server" folder. A simple google search should help you find those two files. <Credits to Flodding for reminding me about this.>

(NEW) Created an Auto-Restarter.

 

I hope that my tutorial has covered any questions you may have, and good luck with all your servers!

Link to comment
Share on other sites

Recommended Posts

  • 0

 

Followed steps, however when I launch the .bat file, During server creation I get this Error  

 

Server Creation Failed

1:38:16 Dedicated host created.

1:38:16 BattlEye initialization failed
 
any idea of the next steps i should take?

 

Have you ran the game once through steam? If so, try to run the Setup_BattlEyeARMA2OA.exe inside your BEsetup folder.

Link to comment
Share on other sites

  • 0

Nice Detailed writeup.

 

A bit more detail on exactly what permissions are needed for the DB user would probably help new users.

 

Take a look at MySQL Workbench (comes as standard with MySQL) as it allows you to do server administration (start / stop / amend config files / user configuration / etc) as well as multi-tabbed sql sessions to multiple servers if desired.  That will save having to install WAMP / XAMP and Heidi.

 

I also found that with the latest versions, only the Addons folder is needed from the ARMA 2 directory.  Just copy this to the server folder and then copy in the ARMA II OA and @Epoch mod files.

 

Info on opening firewall ports would also probably be helpful to some.

 

Just went through the process last night hence this lot just happens to be fairly fresh in my head :) .

Link to comment
Share on other sites

  • 0

Thanks for this Tutorial,

but there is something missing.
You have a link to "Visual C++ Redistributable Packages for Visual Studio 2013" but you need also "Visual C++ Redistributable Packages for Visual Studio 2010".

I have setup our Server completly new and this was missing after all your information. 

Perhaps you can add this also, that new Admins have no Problems with "Missing msvcr100.dll" Message.

 

Kind Regards

Rotzloch

 

 

Edit:

I have packed following Files to one 7z File:

  • Visual C++ Redistributable Packages for Visual Studio 2010
  • Visual C++ Redistributable Packages for Visual Studio 2013
  • .Net Framework 4
  • Steam
  • Xampp
  • uTorrent
  • Notepad++
  • HeidiSQL
  • DayZCommander
  • PBOManager

Here is the Link: https://mega.co.nz/#!uc9E0SgK!pZxZflTVTSs2jgYuBM6tUmBsYksAC4DtUeitSgmRfTU

Link to comment
Share on other sites

  • 0

Hi ,
 
My name is kieran
 
 
Thanks for the tutorial it was awesome took me a while but I got there In the end ,
 
But the problem is now the steam up date with arma , When i join my server it says this server is old version if you are the
Admin of this server go to Http://epoch.com . I'm very confused could anyone help me or get in in contact with me
So i can launch my server to mess around on , If so message me on this email [email protected]
 
 
Thank you very much
 
Kind Regards
 
Kieran

Link to comment
Share on other sites

  • 0

Hi ,

 

My name is kieran

 

 

Thanks for the tutorial it was awesome took me a while but I got there In the end ,

 

But the problem is now the steam up date with arma , When i join my server it says this server is old version if you are the

Admin of this server go to Http://epoch.com . I'm very confused could anyone help me or get in in contact with me

So i can launch my server to mess around on , If so message me on this email [email protected]

 

 

Thank you very much

 

Kind Regards

 

Kieran

 

i was having similar issues.  i think what fixed it for me was reinstalling A2, A2:OA, and DayZ in steam, one at a time, and while each was installing i had to Right Click on the game, go to Properties, Updates, and set the option to Do Not Update.  After that, i opened each one up, let it load to the main menu, then closed it.  After that, i stopped getting the "older version" message...i think :P

Link to comment
Share on other sites

  • 0

Hey and thanks for a great tutorial!

 

I have one small problem tho. I've installed everting step by step that you showed in the tutorial. But when I find my server on dayz commander it's says it has 1.0.5 installed even to everything we have installed is 1.0.5.1?

 

http://i.imgur.com/nz8hoJE.jpg

 

What can I do to fix this?

Go to your server config and change your hostname server/arma versions. 1.5.0.1/112555

Link to comment
Share on other sites

  • 0

Hey great tutorial, but i had a problem right at the end... 

 

 

When i go to launch the .BAT file, i get two errors.

 

First one : Addon 'dayz_server' requires addon 'dayz_code'

 

then it takes a 2 second pause, and then i get the second one.

 

Second one : File instance_24_Napf\config.cfg, line25: .requiredSecureId: Member already defined.

 

 

 

If someone could help, that'd be great.

 

And as you can see, i did NAPF, not charnarus

 

thanks if someone can help :)

Link to comment
Share on other sites

  • 0

Followed the steps exactly, however when I use the batch file to launch the server, it stops at "host identity created" and does nothing else. Any idea what's wrong?

 

Here is the full tree of my epoch server, maybe you could print your tree to a file and upload it, I could use notepad++ to compare and find the differences between mine and a working one. (to do it open CMD and put in Tree "your server folder path" /f /a > C:\Users\%USERNAME\Desktop\Epochtree.txt

 

if there is a space in your server folder name keep it in the quotation marks.

 

https://www.dropbox.com/s/hma99351tk4rg35/epoch%20tree.txt

 

Just the folders:

 

C:\Users\Administrator>tree "C:\Dayz Epoch Server"
Folder PATH listing
Volume serial number is C082-05BC
C:\DAYZ EPOCH SERVER
├───@DayZ_Epoch
│   ├───addons
│   └───Keys
├───@DayZ_Epoch_Server
│   └───addons
├───AddOns
├───BattlEye
├───BEsetup
├───Common
├───DirectX
├───dll
├───Dta
├───Expansion
│   ├───Addons
│   ├───BattlEye
│   ├───beta
│   │   ├───dll
│   │   └───expansion
│   │       ├───addons
│   │       └───dta
│   ├───dta
│   └───Keys
├───instance_11_Chernarus
│   ├───BattlEye
│   └───Users
│       └───instance_11_Chernarus
├───Keys
│   └───External Keys (use as needed)
│       ├───CAA1
│       ├───Caribou Frontier
│       ├───Celle
│       ├───Dingor
│       ├───Duala
│       ├───Fapovo
│       ├───Lingor
│       ├───Namalsk
│       ├───Panthera
│       ├───Podagorsk
│       ├───Sahrani
│       └───Taviana
├───Missions
└───MPMissions
    └───DayZ_Epoch_11.Chernarus
        └───ca
            └───modules
                └───functions

C:\Users\Administrator>

 

edit: Ignore all that, connected on a wrong port out of habit.

 

Anyways, tried connecting and got this error: http://steamcommunity.com/sharedfiles/filedetails/?id=284710024

 

I have the mod installed, but I'm guessing I need to re-download the client files as well? I'm just not sure where to put em, it's been a while lol

 

Great tutorial though.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...