Jump to content
  • 0

Custom Vehicle Patrols not spawning in


Thug

Question

Setting up one of the AI Citys that I use on Epoch 106. Everything works, but two of the vehicles patrols do not come in. Can someone point me in the right direction. 

My script worked fine in 1.0.5.1  Do I have to add the vehicles to the variables.sqf??

I get this in the RTP

 2:31:26 "HIVE: Request sent"
 2:31:26 "HIVE: Streamed 353 objects"
 2:31:39 "HIVE: BENCHMARK - Server_monitor.sqf finished streaming 353 objects in 13.0137 seconds (unscheduled)"
 2:31:39 "Total Number of spawn locations 6"
 2:31:39 "[DZAI] Initializing DZAI version 2.2.1 Release Build 20141208 using base path z\addons\dayz_server\DZAI."
 2:31:39 "[DZAI] Reading DZAI configuration file."
 2:31:39 "[DZAI] DZAI configuration file loaded."
 2:31:39 "CLEANUP: INITIALIZING Vehicle SCRIPT"
 2:31:39 "[DZAI] Compiling DZAI functions."
 2:31:39 ["z\addons\dayz_server\system\scheduler\sched_sync.sqf","TIME SYNC: Local Time set to:",[2012,8,2,17,31],"Fullmoon:",true,"Date given by HiveExt.dll:",[2017,2,20,17,31]]
 2:31:39 ["z\addons\dayz_server\system\scheduler\sched_safetyVehicle.sqf","KILLING A HACKER","Haikal Saikal"," IN ","HMMWV_M1151_M2_CZ_DES_EP1_DZ"]
 2:31:39 ["z\addons\dayz_server\system\scheduler\sched_safetyVehicle.sqf","KILLING A HACKER","Mikhail Bulgakov"," IN ","HMMWV_M1151_M2_CZ_DES_EP1_DZ"]
 2:31:39 ["z\addons\dayz_server\system\scheduler\sched_safetyVehicle.sqf","KILLING A HACKER","Qadeer Hakimi"," IN ","M1A2_TUSK_MG"]
 2:31:39 ["z\addons\dayz_server\system\scheduler\sched_safetyVehicle.sqf","KILLING A HACKER","Arkadiy Morozov"," IN ","M1A2_TUSK_MG"]

 2:31:40 "HIVE: WRITE: "CHILD:306:365:[["glass1",1],["glass2",1],["glass3",1],["glass4",1],["telo",0.019]]:0.66:""
 2:31:42 "HIVE: WRITE: "CHILD:306:401:[["NEtrup",0.604],["motor",1],["elektronika",1],["mala vrtule",0.193],["velka vrtule",1],["munice",0],["sklo predni P",0],["sklo predni L",0],["glass1",0.041],["glass2",0.041],["glass3",0.643],["glass4",0.64],["glass5",1],["glass6",0]]:0.242:""
 2:31:42 "[DZAI] DZAI functions compiled."
 2:31:42 "DayZ (Default) classnames loaded."
 2:31:42 "[DZAI] DZAI settings: Debug Level: 0. DebugMarkers: false. WorldName: chernarus. ModName:  (Ver: dayz epoch 1.0.6). DZAI_dynamicWeaponList: true. VerifyTables: true."
 2:31:42 "[DZAI] AI spawn settings: Static: false. Dynamic: true. Random: false. Air: true. Land: false."
 2:31:42 "[DZAI] AI settings: DZAI_findKiller: true. DZAI_useHealthSystem: true. DZAI_weaponNoise: false. DZAI_zombieEnemy: true."
 2:31:42 "[DZAI] DZAI loading completed in 3.48047 seconds."
 2:31:42 "CRASHSPAWNER: Starting crash site spawner. Frequency: 25±20 min. Spawn chance: 0.75"
 2:31:42 "INFO - Player: PID#3(Zoranth)(UID:76561198084105705/CID:20) Status: LOGGING IN"
 2:31:43 Server: Object 3:6 not found (message 94)
 2:31:59 Server: Object 3:9 

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

sounds like your BE are killing the ia .

check this example

_helicopter =  createVehicle [_heli_class, [(_position select 0) + 4, (_position select 1) + 100],[], 0, "FLY"];
dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_helicopter];//this line

 

Link to comment
Share on other sites

  • 0
9 hours ago, juandayz said:

sounds like your be are killing the ia .

check this example


_helicopter =  createVehicle [_heli_class, [(_position select 0) + 4, (_position select 1) + 100],[], 0, "FLY"];
dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_helicopter];//this line

 

As @juandayzhas pointed out, your script is not updated to 1.0.6 epoch, you need to have the script add the vehicle created (for example, juans _helicopter) added to the dayz_serverObjectMonitor variable with the example juan posted.

That variable will differ depending on who wrote it, _helicopter, _vehicle, _unit etc.

If you get stuck, post the script here and we can advise you.

Link to comment
Share on other sites

  • 0
On 2/21/2017 at 11:29 PM, salival said:

If you get stuck, post the script here and we can advise you

Here is one of the scripts that I use and again here is the error that I get in the RPT:

2:31:39 ["z\addons\dayz_server\system\scheduler\sched_safetyVehicle.sqf","KILLING A HACKER","Haikal Saikal"," IN ","HMMWV_M1151_M2_CZ_DES_EP1_DZ"]

 

if (isServer) then {

_vehicle_02 = objNull;
if (true) then
{
  _this = createVehicle ["HMMWV_M1151_M2_CZ_DES_EP1_DZ", [6414.438, 14200.033, 9.1552734e-005], [], 0, "CAN_COLLIDE"];

// @salival Added the below 


dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_this];

 

_vehicle_02 = _this;
  _this setDir 180;
  _this setPos [6414.438, 14200.033, 9.1552734e-005];
   _this setVariable ["MalSar",true];
};


_this = createCenter east;
_this setFriend [west, 0];
_this setFriend [resistance, 0];
_this setFriend [civilian, 0];
_center_1 = _this;


//--------------------------------GROUP 1----------------------------

_group_1 = createGroup _center_1;

_unit_01 = objNull;
if (true) then
{
  _this = _group_1 createUnit ["TK_Special_Forces_TL_EP1", [6406.5366, 14198.632, -6.1035156e-005], [], 0, "CAN_COLLIDE"];
  _unit_01 = _this;
  _this setUnitAbility 1;
  _this moveInDriver _vehicle_02;
  if (true) then {_group_1 selectLeader _this;};
};

_unit_02 = objNull;
if (true) then
{
  _this = _group_1 createUnit ["RUS_Soldier1", [6406.5034, 14203.528, 0.00015258789], [], 0, "CAN_COLLIDE"];
  _unit_02 = _this;
  _this setUnitAbility 0.70000002;
  _this moveInGunner _vehicle_02;
  if (false) then {_group_1 selectLeader _this;};
};

_this = _group_1 addWaypoint [[6307.0249, 13979.368, 0.0002746582], 0];
_waypoint_01 = _this;

_this = _group_1 addWaypoint [[6631.022, 13478.583, 3.0517578e-005], 0];
_waypoint_02 = _this;

_this = _group_1 addWaypoint [[6214.3291, 13804.49, 0.00012207031], 0];
_waypoint_03 = _this;

_this = _group_1 addWaypoint [[6145.5425, 14114.805, 3.0517578e-005], 0];
_waypoint_04 = _this;

_this = _group_1 addWaypoint [[6346.9219, 14214.078, -0.00042724609], 0];
_waypoint_05 = _this;

_this = _group_1 addWaypoint [[6425.126, 14348.47, 0.00054931641], 0];
_waypoint_06 = _this;

_this = _group_1 addWaypoint [[6339.4292, 14387.261, 0.00012207031], 0];
_waypoint_07 = _this;

_this = _group_1 addWaypoint [[6424.438, 14205.033, 9.1552734e-005], 0];
_this setWaypointType "CYCLE";
_waypoint_08 = _this;

};

Link to comment
Share on other sites

  • 0
21 minutes ago, Thug said:

Here is one of the scripts that I use and again here is the error that I get in the RPT:

2:31:39 ["z\addons\dayz_server\system\scheduler\sched_safetyVehicle.sqf","KILLING A HACKER","Haikal Saikal"," IN ","HMMWV_M1151_M2_CZ_DES_EP1_DZ"]

  Hide contents

if (isServer) then {

_vehicle_02 = objNull;
if (true) then
{
  _this = createVehicle ["HMMWV_M1151_M2_CZ_DES_EP1_DZ", [6414.438, 14200.033, 9.1552734e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_02 = _this;
  _this setDir 180;
  _this setPos [6414.438, 14200.033, 9.1552734e-005];
   _this setVariable ["MalSar",true];
};


_this = createCenter east;
_this setFriend [west, 0];
_this setFriend [resistance, 0];
_this setFriend [civilian, 0];
_center_1 = _this;


//--------------------------------GROUP 1----------------------------

_group_1 = createGroup _center_1;

_unit_01 = objNull;
if (true) then
{
  _this = _group_1 createUnit ["TK_Special_Forces_TL_EP1", [6406.5366, 14198.632, -6.1035156e-005], [], 0, "CAN_COLLIDE"];
  _unit_01 = _this;
  _this setUnitAbility 1;
  _this moveInDriver _vehicle_02;
  if (true) then {_group_1 selectLeader _this;};
};

_unit_02 = objNull;
if (true) then
{
  _this = _group_1 createUnit ["RUS_Soldier1", [6406.5034, 14203.528, 0.00015258789], [], 0, "CAN_COLLIDE"];
  _unit_02 = _this;
  _this setUnitAbility 0.70000002;
  _this moveInGunner _vehicle_02;
  if (false) then {_group_1 selectLeader _this;};
};

_this = _group_1 addWaypoint [[6307.0249, 13979.368, 0.0002746582], 0];
_waypoint_01 = _this;

_this = _group_1 addWaypoint [[6631.022, 13478.583, 3.0517578e-005], 0];
_waypoint_02 = _this;

_this = _group_1 addWaypoint [[6214.3291, 13804.49, 0.00012207031], 0];
_waypoint_03 = _this;

_this = _group_1 addWaypoint [[6145.5425, 14114.805, 3.0517578e-005], 0];
_waypoint_04 = _this;

_this = _group_1 addWaypoint [[6346.9219, 14214.078, -0.00042724609], 0];
_waypoint_05 = _this;

_this = _group_1 addWaypoint [[6425.126, 14348.47, 0.00054931641], 0];
_waypoint_06 = _this;

_this = _group_1 addWaypoint [[6339.4292, 14387.261, 0.00012207031], 0];
_waypoint_07 = _this;

_this = _group_1 addWaypoint [[6424.438, 14205.033, 9.1552734e-005], 0];
_this setWaypointType "CYCLE";
_waypoint_08 = _this;

};

Wow, that's a badly written script

 

Add this line: 

dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_this];

directly after this line:

_this = createVehicle ["HMMWV_M1151_M2_CZ_DES_EP1_DZ", [6414.438, 14200.033, 9.1552734e-005], [], 0, "CAN_COLLIDE"];

so it looks like this:

  _this = createVehicle ["HMMWV_M1151_M2_CZ_DES_EP1_DZ", [6414.438, 14200.033, 9.1552734e-005], [], 0, "CAN_COLLIDE"];
  dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_this];

 

Link to comment
Share on other sites

  • 0
20 hours ago, salival said:

Wow, that's a badly written script

May look bad, but it worked lol

Still learning

Will try out later today. Thank you very much

=================UPDATE=================

@salival I put this in:  dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_this];

The vehicle is there and gunner and driver in vehicle. The gunner will shoot at you, but driver must be on strike lol, because he just sits there. There is a tank also at the mission. It is doing the same thing. 

I can tell you it worked in 1.0.5.1

If someone could help me I will buy you 2 cases of in game beer.

Salival, what would you suggest 

RPT:  NOTE this runs on for over 5500 lines

15:05:59 Error in expression <(( (count needUpdate_objects) > 0) && (diag_tickTi>
15:05:59   Error position: <needUpdate_objects) > 0) && (diag_tickTi>
15:05:59   Error Undefined variable in expression: needupdate_objects
15:05:59 Error in expression <(( (count needUpdate_FenceObjects) > 0) && (diag_t>
15:05:59   Error position: <needUpdate_FenceObjects) > 0) && (diag_t>
15:05:59   Error Undefined variable in expression: needupdate_fenceobjects
15:05:59 Error in expression <(( (count needUpdate_objects) > 0) && (diag_tickTi>
15:05:59   Error position: <needUpdate_objects) > 0) && (diag_tickTi>
15:05:59   Error Undefined variable in expression: needupdate_objects
15:05:59 Error in expression <(( (count needUpdate_FenceObjects) > 0) && (diag_t>
15:05:59   Error position: <needUpdate_FenceObjects) > 0) && (diag_t>
15:05:59   Error Undefined variable in expression: needupdate_fenceobjects
15:05:59 Error in expression <(( (count needUpdate_objects) > 0) && (diag_tickTi>
15:05:59   Error position: <needUpdate_objects) > 0) && (diag_tickTi>
15:05:59   Error Undefined variable in expression: needupdate_objects
15:05:59 Error in expression <(( (count needUpdate_FenceObjects) > 0) && (diag_t>
15:05:59   Error position: <needUpdate_FenceObjects) > 0) && (diag_t>
15:05:59   Error Undefined variable in expression: needupdate_fenceobjects
15:05:59 Error in expression <(( (count needUpdate_objects) > 0) && (diag_tickTi>
15:05:59   Error position: <needUpdate_objects) > 0) && (diag_tickTi>
15:05:59   Error Undefined variable in expression: needupdate_objects
15:05:59 Error in expression <(( (count needUpdate_FenceObjects) > 0) && (diag_t>
15:05:59   Error position: <needUpdate_FenceObjects) > 0) && (diag_t>
15:05:59   Error Undefined variable in expression: needupdate_fenceobjects
15:05:59 Error in expression <_trigger;

while {1 == 1} do {
if ((str dayz_traps != _array) || (str dayz_traps>
15:05:59   Error position: <dayz_traps != _array) || (str dayz_traps>
15:05:59   Error Undefined variable in expression: dayz_traps
15:05:59 File z\addons\dayz_server\system\server_monitor.sqf, line 366
15:05:59 Error in expression <(( (count needUpdate_objects) > 0) && (diag_tickTi>
15:05:59   Error position: <needUpdate_objects) > 0) && (diag_tickTi>
15:05:59   Error Undefined variable in expression: needupdate_objects
15:05:59 Error in expression <(( (count needUpdate_FenceObjects) > 0) && (diag_t>
15:05:59   Error position: <needUpdate_FenceObjects) > 0) && (diag_t>
15:05:59   Error Undefined variable in expression: needupdate_fenceobjects
15:05:59 Error in expression <(( (count needUpdate_objects) > 0) && (diag_tickTi>
15:05:59   Error position: <needUpdate_objects) > 0) && (diag_tickTi>
15:05:59   Error Undefined variable in expression: needupdate_objects

   

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Discord

×
×
  • Create New...