[Support] DZMS DayZ Mission System

Hi Vampire,

We are using DZMS 1.1 ( last update ).

During the missions setting we use :

DZMSStaticPlc = true;
// Array of static locations. X,Y,Z
DZMSStatLocs = [
[5064.08,3727.29,0],
[4819.39,4722.03,0],
[3872.91,2935.39,0],
........ ( around 50 spawn spots)
],

and, sometime :
The first mission is not completed when the second begins at the same place.
 
Hi Vampire,

We are using DZMS 1.1 ( last update ).

During the missions setting we use :

DZMSStaticPlc = true;
// Array of static locations. X,Y,Z
DZMSStatLocs = [
[5064.08,3727.29,0],
[4819.39,4722.03,0],
[3872.91,2935.39,0],
........ ( around 50 spawn spots)
],

and, sometime :
The first mission is not completed when the second begins at the same place.

If you are using static positions, that can't be helped. The whole reason behind static positioning is to pick locations that aren't right on top of each other so you can get missions all over the map. I believe it has a check to make sure it doesn't choose the same exact location, but if you have a location right next to it, it can still spawn there.
 
I believe that something like this, added to DZMSFunctions.sqf should resolve problem:

Code:
    while {(count (_pos nearEntities ["Man", 1000])) > 0} do {
       _pos = DZMSStatLocs call BIS_fnc_selectRandom;
     };

I'm using similar function to prevent missions being spawned too close to player camps.

edit:
I'm testing this on my server atm.

Code:
if (DZMSStaticPlc) then {

      while {(count (_pos nearEntities ["Man", 1000])) > 0} do {
       diag_log format ["[DZMS]: Player or AI too close! Computing new pos (%1)",_pos];
       sleep 0.5;
       _pos = DZMSStatLocs call BIS_fnc_selectRandom
      };

  diag_log format ["[DZMS]: Static pos %1 ready!",_pos]
};

edit:

Code:
8:08:53 "[DZMS]: Running Major Mission SM2."
8:08:54 "[DZMS]: Player or AI too close! Computing new pos"
8:08:54 "[DZMS]: Player or AI too close! Computing new pos"
8:08:55 "[DZMS]: static pos [7450.87,8917.9,0] ready!"

It works and resolves 2 problems:
- spawning 2 mission in same place
- spawning mission too close from player position
 
Last edited:
Hello, Vampire!
I've been told that it is possible to have the crate spawn at a random location within the zone. Is this the case or not? If it is, how? Would like to know. :)

Regards,
Kire
 
Noticed over last few dayz that alot of the vehicles that spawn in the actual missions sometimes explode though not all the time, anyone have any ideas what the problem could be? dayz 1.8.1
 
Noticed over last few dayz that alot of the vehicles that spawn in the actual missions sometimes explode though not all the time, anyone have any ideas what the problem could be? dayz 1.8.1
something with 1.8.1... try blocking out the killing a hacker section in the servercleanup.fsm
 
regarding vehicles exploding after spawning in when mission starts in my RPT log i find

0:54:53 "CLEANUP: KILLING A HACKER Victoria Gonzales O 1-1-E:1 IN Ural_INS"
0:55:59 "CLEANUP: KILLING A HACKER Olivia Lewis O 1-1-F:6 IN SUV_TK_CIV_EP1"

this has only started happening last few days.
Searched for different settings for the killing hacker in cleanup script but can only find them on SARGE Ai
 
it probably started happening fairly soon after you upgraded to the 1.8.1 but either way Vampire said that's whats causing it.
Your best bet is to go into your server_cleanup.fsm, find the section that references killing a hacker, and quote it out.
Something like this
Code:
"//Check for hackers" \n
       "// {" \n
       "//      if(vehicle _x != _x && (vehicle _x getVariable [""Sarge"",0] != 1) && !(vehicle _x in _safety) && (typeOf vehicle _x) != ""ParachuteWest"") then {" \n
       "//        diag_log (""CLEANUP: KILLING A HACKER "" + (name _x) + "" "" + str(_x) + "" IN "" + (typeOf vehicle _x));" \n
       "//           (vehicle _x) setDamage 1;" \n
       "//           _x setDamage 1;" \n
       "//     };" \n
       "// } forEach allUnits;" \n
 
Not working :(

server_monıtor

a9c2f29cc4.png

dayz_server.pbo

b9d1d1b62c.png
 
Not working :(

server_monıtor

a9c2f29cc4.png

dayz_server.pbo

b9d1d1b62c.png
  1. Open up your server_monitor.SQF in the system folder in your server.PBO.

    Search for this line

    Code:
    allowConnection = true;

    And insert this line directly above it.

    If you have DZAI or WickedAI Installed, the DZMS line should go under theirs.

  2. Code:
    [] ExecVM "\z\addons\dayz_server\DZMS\DZMSInit.sqf";
 
it probably started happening fairly soon after you upgraded to the 1.8.1 but either way Vampire said that's whats causing it.
Your best bet is to go into your server_cleanup.fsm, find the section that references killing a hacker, and quote it out.
Something like this
Code:
"//Check for hackers" \n
       "// {" \n
       "//      if(vehicle _x != _x && (vehicle _x getVariable [""Sarge"",0] != 1) && !(vehicle _x in _safety) && (typeOf vehicle _x) != ""ParachuteWest"") then {" \n
       "//        diag_log (""CLEANUP: KILLING A HACKER "" + (name _x) + "" "" + str(_x) + "" IN "" + (typeOf vehicle _x));" \n
       "//           (vehicle _x) setDamage 1;" \n
       "//           _x setDamage 1;" \n
       "//     };" \n
       "// } forEach allUnits;" \n



thats worked fine thnx
 
better give the vehicles an variable and an exception in the cleanup.fsm
too much work, not enough reward. Ive never caught a cheater by a vehicle exploding on them. If they have a BE work around to actually spawn the vehicle without getting detected, they have a work around for that Im sure.
 
21:03:02 [DZMS]: Starting DayZ Mission System.
21:03:02 [DZMS]: Relations not found! Using DZMS Relations.
21:03:02 [DZMS]: <ERROR> DZMS is Installed Twice or Installed Incorrectly!
21:03:02 [DZMS]: <ERROR> DZMS is Installed Twice or Installed Incorrectly!
 
21:03:02 [DZMS]: Starting DayZ Mission System.
21:03:02 [DZMS]: Relations not found! Using DZMS Relations.
21:03:02 [DZMS]: <ERROR> DZMS is Installed Twice or Installed Incorrectly!
21:03:02 [DZMS]: <ERROR> DZMS is Installed Twice or Installed Incorrectly!
You did something wrong man lol.
 
Not working :(
server_monıtor
a9c2f29cc4.png

(...)

21:03:02 [DZMS]: Starting DayZ Mission System.
21:03:02 [DZMS]: Relations not found! Using DZMS Relations.
21:03:02 [DZMS]: <ERROR> DZMS is Installed Twice or Installed Incorrectly!
21:03:02 [DZMS]: <ERROR> DZMS is Installed Twice or Installed Incorrectly!

rpt is solution itself
you are executing dzms 2 times, delete one of those lines
Code:
[] ExecVM "\z\addons\dayz_server\DZMS\DZMSInit.sqf";
 
Back
Top