Jump to content
  • 0

need help with DZAI


Arnomus

Question

Hey guys just tryed to search for a thread on turning on vehicle and heli patrols but didnt find anything,can anyone help me out with this,i looked into the dzai init folder and changed heli patrols from  0 to 1 but that didnt work,,need directions plz

 

thanks

 

Link to comment
Share on other sites

12 answers to this question

Recommended Posts

  • 0

The file you want can be found under DZAI/init/dzai_config.sqf

 

To enable AIR patrols (airplanes works, too)

 

find and increase this to amount of AI you want at a given time (keep it low, it gets laggy as hell on populated server):

//Maximum number of active AI air vehicle patrols. Set at 0 to disable (Default: 0).							
DZAI_maxHeliPatrols = 0;

now add some AIR vehicles to an array you want to use:

DZAI_heliTypes = ["CSJ_GyroCover","CSJ_GyroC","An2_TK_EP1","C130J","GNT_C185","GNT_C185F","GNT_C185R","GNT_C185E"];	

for AI vehicles, increase this (5 seems to be a good value):

//Maximum number of active AI land vehicle patrols. Set at 0 to disable (Default: 0).	
DZAI_maxLandPatrols = 0;

here's the list of vehicles I am using, edit it to your own liking:

 

EPOCH:

DZAI_vehTypes = ["UAZ_Unarmed_TK_EP1","policecar","tractorOld","Tractor","Ikarus","M1030","Ural_TK_CIV_EP1","Oldbike_TK_CIV_EP1","car_sedan","BAF_ATV_D","UralOpen_CDF","Skoda","Pickup_PK_TK_GUE_EP1","Old_bike_TK_CIV_EP1","S1203_ambulance_EP1","Volha_1_TK_CIV_EP1_DZE1","VolhaLimo_TK_CIV_EP1_DZE2","VWGolf_DZE1","SUV_Pink","SUV_White","SUV_Orange","SUV_Green","SUV_Yellow","SUV_Blue","BAF_ATV_D"];

OVERPOCH:

DZAI_vehTypes = ["UAZ_Unarmed_TK_EP1","policecar","tractorOld","Tractor","Ikarus","M1030","Ural_TK_CIV_EP1","Oldbike_TK_CIV_EP1","car_sedan","BAF_ATV_D","UralOpen_CDF","Skoda","Pickup_PK_TK_GUE_EP1","Old_bike_TK_CIV_EP1","S1203_ambulance_EP1","Volha_1_TK_CIV_EP1_DZE1","VolhaLimo_TK_CIV_EP1_DZE2","VWGolf_DZE1","SUV_Pink","SUV_White","SUV_Orange","SUV_Green","SUV_Yellow","SUV_Blue","BAF_ATV_D","CVPI_Patrol","CVPI_Trooper_Patrol","CVPI_TrooperSL_Patrol","CVPI_NYPD_Patrol","CVPI_HighwaySL_Patrol","CVPI_UnmarkedB_Patrol","CVPI_UnmarkedG_Patrol","CVPI_LAPD_Patrol","CVPI_UnmarkedW_Patrol","CVPI_LAPDSL_Patrol","CVPI_NYPDSL_Patrol","Civcar","Civcarbu","civcarbl","Civcarre","Civcarwh","Civcarsl","Copcar","Copcarhw","Copcarswat","350z","350z_red","350z_kiwi","350z_black","350z_silver","350z_green","350z_blue","350z_gold","350z_white","350z_pink","350z_mod","350z_ruben","350z_v","350z_city","350z_yellow"];

Link to comment
Share on other sites

  • 0

Ok here is what i have without editing,when i when i added your format i got this mesage..

 

andits at [9797.9,13976.6,-0.000289917]"


18:00:24 "WAI: Spawned a group of 8 Bandits at [9808.41,13984.8,8.64586]"
18:00:25 "WAI: Spawned a group of 10 Bandits at [9592.34,13834.8,-2.28882e-005]"
18:00:25 "WAI: Spawned a group of 8 Bandits at [9606.64,13732.1,6.86646e-005]"
18:00:26 "WAI: Spawned a group of 8 Bandits at [9927.34,13395.5,-1.52588e-005]"
18:00:27 "WAI: Spawned a group of 8 Bandits at [9856.27,13331.6,1.52588e-005]"
18:00:28 "WAI: Spawned a group of 8 Bandits at [9798.69,13393,0.000244141]"
18:00:28 "WAI: Spawned a group of 5 Bandits at [9743.31,13364.3,0.000244141]"
18:00:29 "WAI: Spawned a group of 7 Bandits at [9907.27,13245.6,7.62939e-005]"
18:00:30 "WAI: Spawned a group of 7 Bandits at [9796.58,13291.3,9.15527e-005]"
18:00:30 "WAI: Spawned a group of 7 Bandits at [9852.16,13239.3,6.10352e-005]"
18:00:31 "WAI: Spawned a group of 7 Bandits at [9941.52,13185.7,-4.57764e-005]"
18:00:32 "WAI: Spawned a group of 7 Bandits at [10003.5,13159.1,0.000442505]"
18:00:33 "WAI: Spawned a group of 7 Bandits at [9661.15,13049.9,-0.000167847]"
18:00:34 "WAI: Spawned a group of 10 Bandits at [9494.95,13002.2,0.000213623]"
18:00:35 "WAI: Spawned a group of 7 Bandits at [9524.89,12870.7,-0.000198364]"
18:00:36 "WAI: Spawned a group of 8 Bandits at [9695.85,13562.9,0.000541687]"
18:00:37 "WAI: Sapwned in 3 M2StaticMG"
18:00:37 "WAI: Paradrop Waiting for player"
18:00:37 "WAI: Paradrop Waiting for player"
18:00:38 "WAI: Sapwned in 13 M2StaticMG"
18:00:39 "get: STRING (76561198086395874), sent: STRING (76561198086395874)"
18:00:39 "DISCONNECT: KillerNme (76561198086395874) Object: B 1-1-A:1 (KillerNme) REMOTE, _characterID: 0 at loc [-7244.94,19534.5,0]"
18:00:39 "ERROR: Cannot Sync Character KillerNme as no characterID"
18:00:39 Client: Remote object 2:9 not found
18:00:39 Client: Remote object 2:10 not found
18:00:39 Client: Remote object 2:11 not found
18:00:39 Warning: Cleanup player - person 2:0 not found
18:00:39 "WAI: Spawned a group of 5 Bandits at [9873.17,14064.2,0.000137329]"
18:00:40 "WAI: Spawned a group of 5 Bandits at [9847.18,14052.6,0.000152588]"
18:01:04 "146 Active ground units"
18:01:04 "16 Active emplacement units"
18:01:04 "0 Active chopper patrol units (Crew)"
18:01:04 "0 Active vehicle patrol units (Crew)"
18:01:31 "infiSTAR.de PlayerConnected: _uid: 76561198052181908 _name: Discotone"
18:01:31 "infiSTAR.de - Player-Log: Discotone(76561198052181908) - 0h 05min | ******ADMIN******"
18:02:00 "CLEANUP: INITIALIZING CLEANUP SCRIPT"
18:03:35 "get: STRING (76561198052181908), sent: STRING (76561198052181908)"
18:03:35 "DISCONNECT: Discotone (76561198052181908) Object: B 1-1-A:1 (Discotone) REMOTE, _characterID: 0 at loc [-7245.22,19535.3,1.0813]"
18:03:35 "ERROR: Cannot Sync Character Discotone as no characterID"
18:03:35 Client: Remote object 2:3910 not found
18:03:35 Client: Remote object 2:3911 not found
18:03:35 Client: Remote object 2:3912 not found
18:03:35 Client: Remote object 4:0 not found
18:04:22 Warning: Cleanup player - person 2:3909 not found

 

here is my edited version before the error

 

/* AI Air vehicle patrol settings. These AI vehicles will randomly travel between different cities and towns.


--------------------------------------------------------------------------------------------------------------------*/

//Global maximum number of active AI air vehicle patrols. Set at 0 to disable (Default: 0).
DZAI_maxHeliPatrols = 5;

//Set minimum and maximum wait time in seconds to respawn an AI vehicle patrol after vehicle is destroyed or disabled. (Default: Min 600, Max 900).
DZAI_respawnTMinA = 600;
DZAI_respawnTMaxA = 900;

//Classnames of air vehicle types to use, with the maximum amount of each type to spawn. Default: [["UH1H_DZ",1]]
DZAI_heliList = ["UH1H_DZ","MH6J_EP1","Mi17_UN_CDF_EP1"];

//Difficulty level of air vehicle patrol units. Difficulty level also affects unit loadout and loot. Possible values: 0 to 3 (Default: 3)
DZAI_heliUnitLevel = 3;

//Maximum number of gunner units per air vehicle. Limited by actual number of available gunner positions. (Default: 2)
DZAI_heliGunnerUnits = 3;

//Specify vehicle weapon for air vehicles that are unarmed by default. DZAI will arm these air vehicles with the specified weapons upon spawning each vehicle.
//Weapon classnames are verified. If the classname is invalid (banned or nonexistent), it will not be added to the vehicle.
//Format: Each row containing a vehicle classname will be equipped with the weapon from the corresponding row in weapon classnames section. DZAI will automatically select ammo type.
DZAI_airWeapons = [
//Air vehicle classnames (Remember: no comma for last entry! Otherwise, separate each string with commas)
["UH1H_DZ","MH6J_EP1","Mi17_UN_CDF_EP1"];
,
//Corresponding weapon classnames (Remember: no comma for last entry! Otherwise, separate each string with commas)
["Helicopter1_Example_Weapon","Helicopter2_Example_Weapon"]
];

 

 

here is my default initconfig

 

/* AI Air vehicle patrol settings. These AI vehicles will randomly travel between different cities and towns.


--------------------------------------------------------------------------------------------------------------------*/

//Global maximum number of active AI air vehicle patrols. Set at 0 to disable (Default: 0).
DZAI_maxHeliPatrols = 0;

//Set minimum and maximum wait time in seconds to respawn an AI vehicle patrol after vehicle is destroyed or disabled. (Default: Min 600, Max 900).
DZAI_respawnTMinA = 600;
DZAI_respawnTMaxA = 900;

//Classnames of air vehicle types to use, with the maximum amount of each type to spawn. Default: [["UH1H_DZ",1]]
DZAI_heliList = [["UH1H_DZ",1]];

//Difficulty level of air vehicle patrol units. Difficulty level also affects unit loadout and loot. Possible values: 0 to 3 (Default: 3)
DZAI_heliUnitLevel = 3;

//Maximum number of gunner units per air vehicle. Limited by actual number of available gunner positions. (Default: 2)
DZAI_heliGunnerUnits = 3;

//Specify vehicle weapon for air vehicles that are unarmed by default. DZAI will arm these air vehicles with the specified weapons upon spawning each vehicle.
//Weapon classnames are verified. If the classname is invalid (banned or nonexistent), it will not be added to the vehicle.
//Format: Each row containing a vehicle classname will be equipped with the weapon from the corresponding row in weapon classnames section. DZAI will automatically select ammo type.
DZAI_airWeapons = [
//Air vehicle classnames (Remember: no comma for last entry! Otherwise, separate each string with commas)
["Helicopter1_Example_Classname","Helicopter2_Example_Classname"]
,
//Corresponding weapon classnames (Remember: no comma for last entry! Otherwise, separate each string with commas)
["Helicopter1_Example_Weapon","Helicopter2_Example_Weapon"]
];

 

Im sure i did something wrong >.>

Link to comment
Share on other sites

  • 0
DZAI_airWeapons = [
//Air vehicle classnames (Remember: no comma for last entry! Otherwise, separate each string with commas)
["UH1H_DZ","MH6J_EP1","Mi17_UN_CDF_EP1"]; <---- THIS SHOULD NOT BE HERE!
,
//Corresponding weapon classnames (Remember: no comma for last entry! Otherwise, separate each string with commas)
["Helicopter1_Example_Weapon","Helicopter2_Example_Weapon"]
];

This array is invalid, you have a semicolon between the first and second set of internal arrays.

Link to comment
Share on other sites

  • 0

ok im not sure what im doing wrong here. i removed the " ; " at the end of the classnames and my sever is not letting me in again here is the error message.. 

 

]# form>


10:06:01 Error Undefined variable in expression: dzai_debuglevel
10:06:01 File z\addons\dayz_server\DZAI\init\dzai_initserver.sqf, line 44
10:06:01 "EPOCH EVENTS INIT"
10:06:08 "DEBUG VEIN: Too many objects at [4173.47,11496.8]"
10:06:16 "WAI: AI Config File Loaded"
10:06:20 "WAI: AI Monitor Started"
10:06:32 "WAI: Mission Config File Loaded"
10:06:37 "WAI: Starting AI Missions Moniter"
10:07:17 "WAI: Spawned a group of 1 Bandits at [9871.56,14060.4,5.34058e-005]"
10:07:25 "get: STRING (76561198086395874), sent: STRING (76561198086395874)"
10:07:25 "DISCONNECT: KillerNme (76561198086395874) Object: B 1-1-A:1 (KillerNme) REMOTE, _characterID: 0 at loc [-7244.94,19534.5,0]"
10:07:25 "ERROR: Cannot Sync Character KillerNme as no characterID"
10:07:25 Client: Remote object 2:9 not found
10:07:25 Client: Remote object 2:10 not found
10:07:25 Client: Remote object 2:11 not found
10:07:28 Warning: Cleanup player - person 2:0 not found

 

here is the code ass i have it now,can u guys do this for me the right way? :)

 

AI Air vehicle patrol settings. These AI vehicles will randomly travel between different cities and towns.


--------------------------------------------------------------------------------------------------------------------*/

//Global maximum number of active AI air vehicle patrols. Set at 0 to disable (Default: 0).
DZAI_maxHeliPatrols = 4;

//Set minimum and maximum wait time in seconds to respawn an AI vehicle patrol after vehicle is destroyed or disabled. (Default: Min 600, Max 900).
DZAI_respawnTMinA = 600;
DZAI_respawnTMaxA = 900;

//Classnames of air vehicle types to use, with the maximum amount of each type to spawn. Default: [["UH1H_DZ",1]]
DZAI_heliList = ["UH1H_DZ","MH6J_EP1","Mi17_UN_CDF_EP1"]

//Difficulty level of air vehicle patrol units. Difficulty level also affects unit loadout and loot. Possible values: 0 to 3 (Default: 3)
DZAI_heliUnitLevel = 3;

//Maximum number of gunner units per air vehicle. Limited by actual number of available gunner positions. (Default: 2)
DZAI_heliGunnerUnits = 2;

//Specify vehicle weapon for air vehicles that are unarmed by default. DZAI will arm these air vehicles with the specified weapons upon spawning each vehicle.
//Weapon classnames are verified. If the classname is invalid (banned or nonexistent), it will not be added to the vehicle.
//Format: Each row containing a vehicle classname will be equipped with the weapon from the corresponding row in weapon classnames section. DZAI will automatically select ammo type.
DZAI_airWeapons = [
//Air vehicle classnames (Remember: no comma for last entry! Otherwise, separate each string with commas)
["Helicopter1_Example_Classname","Helicopter2_Example_Classname"]
,
//Corresponding weapon classnames (Remember: no comma for last entry! Otherwise, separate each string with commas)
["Helicopter1_Example_Weapon","Helicopter2_Example_Weapon"]

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
  • Advertisement
  • Discord

×
×
  • Create New...