[Tutorial] How to Create a server and customise it (locally)

FallingSheep

OpenDayZ Lord!
THIS IS A LOCAL SETUP NOT THRU A HOST

(no offenese meant by the basic instructions but i cant be sure who knows what :p)

ok first follow this guide to get a clean epoch server up and running

1. First install/update your Visual C++ x86 Redistributable Packages for Visual Studio 2013 fromhttp://www.microsoft.com/en-us/download/details.aspx?id=40784 The file is called "vcredist_x86.exe".

2. Download both client and server epoch files and extract to the root "Arma 2 Operation Arrowhead" folder.
Example: "C:\Program Files (x86)\Steam\steamapps\common\Arma 2 Operation Arrowhead".

(assuming your running chernarus map)
3. copy "DayZ_Epoch_instance_11_Chernarus.bat" (located in Config-Examples folder) to the root "Arma 2 Operation Arrowhead" folder.
also copy the folder "instance_11_Chernarus" to the root "Arma 2 Operation Arrowhead" folder.

4. create a new blank text file and paste this into it
Code (Text):

start Expansion\beta\arma2oa.exe -mod=@Dayz_Epoch; -beta=Expansion\beta;Expansion\beta\Expansion
save the file as DayZ_Epoch_client.bat (must be a .bat file) make sure its saved to the root "Arma 2 Operation Arrowhead" folder.

MYSQL
5. download and install Xampp
http://downloads.sourceforge.net/project/xampp/XAMPP Windows/1.8.3/xampp-win32-1.8.3-4-VC11-installer.exe

6. start Xampp control panel (there should be a shortcut on your desktop) now click the Start buttons for Apache and MySql

7. click the admin button for Apache (wait for it to be highlighted in green before clicking) it will open a internet browser window (choose your preferred language)

8. you should now be at the Welcome to XAMPP for Windows screen, on the right hand side click phpMyAdmin

9. click on the Databases tab at the top, next under the text "Create database" enter dayz_epoch and click create

10. click on the Users tab at the top then click on add user

(these you can change but for this tut ill use the below)
11. fill in the fields like so
User name: dayz
host: localhost
Password: 123456

now next to the text Global Privileges click the "Check All" box
then in the bottom left click the "Go" button

12. on the left hand side click on dayz_epoch
13. click the import tab at the top then click "Choose File" and browse to Arma 2 Operation Arrowhead\SQL
import the SQL files in this order click the "Go" button after choosing the file (do for each file)
add_recommended_mysql_events
epoch
1.0.5_Updates

close the browser window and start your new server up!
to start it double click the BAT files
DayZ_Epoch_client.bat
DayZ_Epoch_instance_11_Chernarus.bat

you will also need to make sure XAMPP is running and that MySql is started (no need to start Apache as its only to manage the Database)

in game click multiplayer then down the bottom right click Internet (it should change to LAN)
double click on your server to join!

Thats it you have have a epoch server up and running! next ill show you how to add scripts and begin customsing your server!

If you have any issue following my instructions post here and let me know which step your having issues with
 
Ok heres part 2 - add a custom script!

you will need the following
Notepad++
http://download.tuxfamily.org/notepadplus/6.6.7/npp.6.6.7.Installer.exe
PBO Manager - (not used in this tut but will be needed for future tuts!)
http://arma3.fr/files/get/arma_2/misc_utilities/pbo_manager_v14.7z

first we will add a very basic Client side script (no server file editing)

for this tut i will use this script (godmode for traders + more see post for full details)
http://opendayz.net/threads/release-community-agn.20272/

download this (also available in the release thread)
http://www.mediafire.com/download/smiie72x2d6iczk/CAGN.zip

now lets get started!

1. open your Mission folder
Example: "C:\Program Files (x86)\Steam\steamapps\common\Arma 2 Operation Arrowhead\MPMissions\DayZ_Epoch_11.Chernarus".

2. extract the CAGN.zip into it so you should end up with a new folder in there called CAGN
(open the CAGN folder and make sure it has files in it and not another CAGN folder, if it does open it and move the files to the first CAGN folder)

3. in your Mission folder open init.sqf with Notepad++ (or your text editor of choice)
at the VERY BOTTOM of the file paste this
Code:
if (!isDedicated) then {
       [] execVM 'CAGN\initiate.sqf';
};

what this does is execute the file initiate.sqf located in your CAGN folder.

thats it you have just added CAGN to your server!

now fire up your server and go to a trader to test out your new godmode!
 
Back
Top