This visual guide demonstrates how I install DZAI into DayZ Epochusing PBO Manager. The basic steps are nearly identical to every other DayZ mod out there so this guide is applicable to more than just Epoch.
This guide has been updated on 7/13/2014, installing DZAI 2.1.0 into DayZ Epoch 1.0.5.1 (Caribou map).
What you need:
Part 1: Installing DZAI to dayz_server.pbo (click images for larger version):
1. Right-click your dayz_server.pbo and click "Open".

2. You will encounter the PBO Manager GUI. First, you will need to extract your server_monitor.sqf for editing. Right-click server_monitor.sqf and select "Extract to dayz_server\".

3. Open the extracted dayz_server folder and find your extracted server_monitor.sqf.

4. Open server_monitor.sqf with Notepad++.

5. Find the line containing "allowConnection = true;"

6. Add the required "call compile..." line like so:
This is the line you need to insert:
7. Save and copy this edited server_monitor.sqf. Return to the PBO Manager GUI, right-click the "system" folder and click "Paste".

8. Copy the "DZAI" folder located in the DZAI installation package into dayz_server.pbo by right-clicking "dayz_server.pbo" in the PBO Manager GUI and clicking "Paste".

9. Start your server. When the first player logs onto the server, look in your arma2oaserver.RPT file for confirmation that DZAI has been successfully installed. You should see something like this:

Part 2: Installing DZAI Client-side addon (Optional)
1. Copy the DZAI_Client folder from the DZAI installation package
2. Extract your server's mission pbo file in the MPMissions folder if it exists as a .pbo file.
3. Open the extracted folder. In the above screenshot, you can see the folder already present.
4. Paste the DZAI_Client folder inside the extracted mission pbo folder.
5. Edit your init.sqf. Insert the following line inside any if (!isDedicated) then { block like so:
This is the line you need to insert:
6. Do not close init.sqf yet - you are not finished editing it yet. Insert the following strings into the square brackets [] depending on what feature you want enabled:
Here is the line if you want to copy-paste it for yourself:
7. Repack your mission pbo. For your mission pbo, it should be safe to repack it using the right-click context menu. Here, I select "PBO Manager > Pack into "DayZ_Epoch_21.Caribou.pbo":
8. Double-check to see if you made the necessary steps to dzai_config.sqf in Step 6.
9. You are done. Start your server.
This guide has been updated on 7/13/2014, installing DZAI 2.1.0 into DayZ Epoch 1.0.5.1 (Caribou map).
What you need:
- PBO Manager: http://www.armaholic.com/page.php?id=16369
- Notepad++ (highly recommended for .sqf editing): http://notepad-plus-plus.org/
- SQF Syntax Highlighting addon for Notepad++* (highly recommended): http://www.armaholic.com/page.php?id=8680
- Latest version of DZAI downloaded (https://github.com/dayzai/DZAI)
Part 1: Installing DZAI to dayz_server.pbo (click images for larger version):
1. Right-click your dayz_server.pbo and click "Open".

2. You will encounter the PBO Manager GUI. First, you will need to extract your server_monitor.sqf for editing. Right-click server_monitor.sqf and select "Extract to dayz_server\".

3. Open the extracted dayz_server folder and find your extracted server_monitor.sqf.

4. Open server_monitor.sqf with Notepad++.

5. Find the line containing "allowConnection = true;"

6. Add the required "call compile..." line like so:

This is the line you need to insert:
Code:
[] call compile preprocessFileLineNumbers "\z\addons\dayz_server\DZAI\init\dzai_initserver.sqf";
7. Save and copy this edited server_monitor.sqf. Return to the PBO Manager GUI, right-click the "system" folder and click "Paste".

8. Copy the "DZAI" folder located in the DZAI installation package into dayz_server.pbo by right-clicking "dayz_server.pbo" in the PBO Manager GUI and clicking "Paste".

9. Start your server. When the first player logs onto the server, look in your arma2oaserver.RPT file for confirmation that DZAI has been successfully installed. You should see something like this:

Part 2: Installing DZAI Client-side addon (Optional)
1. Copy the DZAI_Client folder from the DZAI installation package

2. Extract your server's mission pbo file in the MPMissions folder if it exists as a .pbo file.

3. Open the extracted folder. In the above screenshot, you can see the folder already present.
4. Paste the DZAI_Client folder inside the extracted mission pbo folder.

5. Edit your init.sqf. Insert the following line inside any if (!isDedicated) then { block like so:

This is the line you need to insert:
Code:
_nul = [] execVM "DZAI_Client\dzai_initclient.sqf";
6. Do not close init.sqf yet - you are not finished editing it yet. Insert the following strings into the square brackets [] depending on what feature you want enabled:
- "clientradio" - Enable client-side radio messages. DZAI_clientRadio and DZAI_radioMsgs needs to be enabled in your dzai_config.sqf.
- "zombieenemy" - Enable AI-to-zombie hostility. DZAI_zombieEnemy needs to be enabled in your dzai_config.sqf.

Here is the line if you want to copy-paste it for yourself:
Code:
_nul = ["clientradio","zombieenemy"] execVM "DZAI_Client\dzai_initclient.sqf";
7. Repack your mission pbo. For your mission pbo, it should be safe to repack it using the right-click context menu. Here, I select "PBO Manager > Pack into "DayZ_Epoch_21.Caribou.pbo":

8. Double-check to see if you made the necessary steps to dzai_config.sqf in Step 6.
9. You are done. Start your server.