Jump to content
  • 0

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 

Share this post


Link to post
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

 

Share this post


Link to post
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.

Share this post


Link to post
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;

};

Share this post


Link to post
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];

 

Share this post


Link to post
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

   

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Similar Content

    • By thegdog
      2:08:04 Error Type Any, expected String 2:08:04 File z\addons\dayz_server\compile\server_playerSync.sqf, line 41 2:08:12 Server: Object 3:54 not found (message 70) 2:08:12 "Server_PublishVehicle2 error: Wrong parameter format" 2:08:12 "Trader Menu: jeffdog (76561198147272349) purchased 1x BAF_Merlin_DZE into gear at Aircraft Trader for 1 ItemObsidian" 2:08:12 Error in expression <ceFoot = 0; trying to buy aircraft from the default aircraft trader.  never touched any of it and it giving this error.  no vehicle spawns.  it shows the arrow.  EDIT:  i tried other traders, all vehicles dont spawn when bought.
    • By webbie
      Hi all, Ive been looking for a while now for a vehicle flip script for a single player.
      Ive tried stuff ive used on previous servers but its not allowing the option so im guessing epoch has something that interferes with it.
      If anyone knows of a simple script to allow players to do this could you link it to me please,
      Thanks in advance.
      PS. Im aware the jacks flip vehicles but I actually  find this to be incredibly painstaking unless theirs a trick to it.
    • By Honey Bee
      Hallo zusammen,
      Die glorreiche Idee den Fahrzeugen das Volumen zu nehmen war jetzt nicht gerade der Bringer. Alle beschweren. Jetzt hab ich mal geschaut aber finde nix wo die Kapazität der Fahrzeuge drin steht. Jemand Erfahrung damit?
       
      Hi,
      how can i change the Vehicle capacity?
       
      THX
    • By Zoranth
      Based on Hacked Vehicles release by @Bricktop and Additional code by @Hooty from here:
      This is my first release
      This mod and code is not all my original work. 
      Credits to: 
      @Bricktop for the "Hacked Vehicles" https://epochmod.com/forum/topic/43750-hacked-vehicles-1061/
      @Hooty for his input in Bricktop's release on how to install it differently and to add support for Virtual Garage.
      What I did is took their information and made it modular and easier to install / customize. This way, you just need to #include which weapon systems you want to add into each vehicle that you want to modify.
      >> DOWNLOAD HERE <<  CURRENTLY ON HOLD DUE TO UNFORESEEN ERROR
      Install Directions:
      1.    Copy the Vehicle_Weapons directory into the root of your dayz_server directory
      2.    Next paste
      #include "\z\addons\dayz_server\Vehicle_Weapons\Add_Vehicle_Weapons.sqf";    in dayz_server\system\sever_monitor.sqf under
      3.    Then paste
      #include "\z\addons\dayz_server\Vehicle_Weapons\Add_Vehicle_Weapons.sqf";  in dayz_server\compile\server_publishVehicle2.sqf under
      4.    Then paste
      #include "\z\addons\dayz_server\Vehicle_Weapons\Add_Vehicle_Weapons.sqf";   in dayz_server\compile\spawn_vehicles.sqf under
      Installation with Virtual Garage:
      If you have @salival's Virtual Garage installed then add :
      #include "\z\addons\dayz_server\Vehicle_Weapons\Add_Vehicle_Weapons.sqf";   to dayz_server\compile\garage\server_spawnVehicles.sqf under
      How To Customize:
      If you would like to create your very own weapons pack for a vehicle, use the following instructions:
      1. Make a copy of "\z\addons\dayz_server\Vehicle_Weapons\vehicles\Generic_Add_Weapon.sqf" rename it like "<vehicle_classname>_Add_Weapons.sqf". Replace the <vehicle_classname> with the actual classname of the vehicle you want to add weapons to.
      2. Comment out or Delete the Weapon_Systems that you do not want to use on your new vehicle.
      3. Make a new #include "\z\addons\dayz_server\Vehicle_Weapons\vehicles\<Class_Name>_Add_Weapons.sqf"; line with your new vehicle file and add it to "\z\addons\dayz_server\Vehicle_Weapons\Add_Vehicle_Weapons.sqf";
      4. In the new vehicle file you just made.  Rearrange the Weapon_Systems in an order that makes sense to you. For example, list all guns, then all missiles so they are grouped together in your scroll menu for easier selection.
      Adding / Restricting an Ammo Type
      For Weapon_Systems that have multiple ammo types, You can go into that specific file and comment out an ammo type or make an extra file with just the ammo you want if you want to restrict it from your server. Example:
      In the file: "\z\addons\dayz_server\Vehicle_Weapons\Vehicles\Weapon_Systems\D81_125mm_Cannon.sqf". You could comment out an Ammo Type as shown Below.
      If you do this, you will want to save that as a new file such as : "D81_125mm_Cannon_SABOT_ONLY.sqf.
      List of Vehicle Weapons and Ammo:
      WARNING: Not all Weapon Systems work with all vehicles. For example, You obviously do not want to put a "GBU12_Bomb_Launcher" on an "ArmoredSUV_PMC", or "MLRS Rocket System" on the "ArmoredSUV_PMC".
      These weapons spawn on the vehicle when purchased and remain after restart.  This does not work with admin spawned vehicles nor does it work (for now) with the Deploy Anything Mod.  I do not have Virtual Garage installed on my test server,so I am unable to test that but it should work.
      Have Fun
    • By nova
      Hello. I was wondering if there was a way for gunners in a vehicle weither its in a ground or flying vehicle, to gain or lose humanity while killing players or a.i? Say for example you are on foot and you shoot either a player or a.i, you will lose or gain humanity but in a vehicle your humanity doesnt change.
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...