[Support] DZMS DayZ Mission System

Nvm got the patch Working with a New install of arma2

Gesendet von meinem GT-I9100 mit Tapatalk
 
Good stuff!

Well I'm down to just the 2 errors in DZMS, 1 with my additional buildings (bsb_chernarus_v2) and 1 in WAI now. Have fixed the other 2 non customised errors:
Death messages server_playerDied.sqf, line 36
Server_functions.sqf, line 837

by following this very helpful link here:
http://epochmod.com/forum/index.php?/topic/9916-rpt-log-error-server-functions/?p=78079

So would be massively grateful if anyone could help with these for DZMS:
23:18:20 Error in expression <{
_findRun = false;
};
if (_isTavi AND (_tavHeight <= 185)) then {
_findRun = fa>
23:18:20 Error position: <_tavHeight <= 185)) then {
_findRun = fa>
23:18:20 Error Undefined variable in expression: _tavheight
23:18:20 File z\addons\dayz_server\DZMS\DZMSFunctions.sqf, line 107

and then under that, these are spammed a lot:

23:18:28 Error in expression <[(_x select 0),(_x select 1)]
} forEach _aicskill;


_unit addEventHandler ["Kil>
23:18:28 Error position: <_aicskill;


_unit addEventHandler ["Kil>
23:18:28 Error Undefined variable in expression: _aicskill
23:18:28 File z\addons\dayz_server\DZMS\Scripts\DZMSAISpawn.sqf, line 101

Thanks
 
quickfix (to stop spamming rpt) for DZMSAISpawn.sqf

replace

Code:
switch (_skill) do {
case 0: {_aicskill = DZMSSkills0;};
case 1: {_aicskill = DZMSSkills1;};
case 2: {_aicskill = DZMSSkills2;};
case 3: {_aicskill = DZMSSkills3;};
};

with

Code:
switch (_skill) do {
case 0: {_aicskill = DZMSSkills0;};
case 1: {_aicskill = DZMSSkills1;};
case 2: {_aicskill = DZMSSkills2;};
case 3: {_aicskill = DZMSSkills3;};
default {_aicskill = DZMSSkills1;};
};

...and add somewhere above

Code:
_aicskill = DZMSSkills1;
 
I, too, am still getting these spamming my .RPT. Any solutions?

2:25:23 Error position: <DZMSMinDone};
DZMSMinDone = nil;
};>
2:25:23 Error Undefined variable in expression: dzmsmindone
2:25:23 File z\addons\dayz_server\DZMS\Scripts\DZMSMinTimer.sqf, line 42
2:25:23 Error in expression <or Mission %1.",_varName];
 
edit DZMSMinTimer.sqf,

add this
Code:
DZMSMinDone = false;
before
Code:
while {_run} do


and change this
Code:
DZMSMinDone = nil;
to this
Code:
DZMSMinDone = false;

same for DZMSMajDone variable in DZMSMajTimer.sqf
 
I Follow the steps EXACTLY... upload the server.pbo to my server host, restart the server, run the server.. but all me and my friends get is waiting for server to authenticate... up to like 70.. what the hack...?
 
I Follow the steps EXACTLY... upload the server.pbo to my server host, restart the server, run the server.. but all me and my friends get is waiting for server to authenticate... up to like 70.. what the hack...?


You might wanna post your RTP someone will look whats wrong.
 
I Follow the steps EXACTLY... upload the server.pbo to my server host, restart the server, run the server.. but all me and my friends get is waiting for server to authenticate... up to like 70.. what the hack...?
Im gonna take a guess and say that your PBO editor is either corrupting your PBO's OR more likely it isn't including the prefix when you repack it. This is very common with PBO manager. Before repacking the PBO, open the server file, click on the properties tab at the top (looks like a cog) and under "Property" type prefix and under "value" type z\addons\dayz_server, then save and repack.
 
edit DZMSMinTimer.sqf,

add this
Code:
DZMSMinDone = false;
before
Code:
while {_run} do


and change this
Code:
DZMSMinDone = nil;
to this
Code:
DZMSMinDone = false;

same for DZMSMajDone variable in DZMSMajTimer.sqf

That hasn't fixed the problem. Also tried to reinstall DZMS as linked in the aforementioned post, but also no fix.
 
To anyone getting DZMSMinDone and DZMSMajDone errors, make sure you updated DZMSMinTimer.sqf and DZMSMajTimer.sqf from the github.
 
To anyone getting DZMSMinDone and DZMSMajDone errors, make sure you updated DZMSMinTimer.sqf and DZMSMajTimer.sqf from the github.
Running the current files from the github.

Code:
/*
DayZ Mission System Timer by Vampire
Based on fnc_hTime by TAW_Tonic and SMFinder by Craig
This function is launched by the Init and runs continuously.
*/
private["_run","_timeDiff","_timeVar","_wait","_cntMis","_ranMis","_varName"];

//Let's get our time Min and Max
_timeDiff = DZMSMinorMax - DZMSMinorMin;
_timeVar = _timeDiff + DZMSMinorMin;

diag_log text format ["[DZMS]: Minor Mission Clock Starting!"];

//Lets get the loop going
_run = true;
while {_run} do
{
//Lets wait the random time
_wait = round(random _timeVar);
    [_wait,5] call DZMSSleep;

//Let's check that there are missions in the array.
//If there are none, lets end the timer.
_cntMis = count DZMSMinorArray;
if (_cntMis == 0) then { _run = false; };

//Lets pick a mission
_ranMis = floor (random _cntMis);
_varName = DZMSMinorArray select _ranMis;
   
    // clean up all the existing units before starting a new one
    {if (alive _x) then {_x call DZMSPurgeObject;};} forEach DZMSUnitsMinor;
   
    // rebuild the array for the next mission
    DZMSUnitsMinor = [];
   
//Let's Run the Mission
[] execVM format ["\z\addons\dayz_server\DZMS\Missions\Minor\%1.sqf",_varName];
diag_log text format ["[DZMS]: Running Minor Mission %1.",_varName];

//Let's wait for it to finish or timeout
waitUntil {DZMSMinDone};
DZMSMinDone = false;
};

and

Code:
/*
DayZ Mission System Timer by Vampire
Based on fnc_hTime by TAW_Tonic and SMFinder by Craig
This function is launched by the Init and runs continuously.
*/
private["_run","_timeDiff","_timeVar","_wait","_cntMis","_ranMis","_varName"];

//Let's get our time Min and Max
_timeDiff = DZMSMajorMax - DZMSMajorMin;
_timeVar = _timeDiff + DZMSMajorMin;

diag_log text format ["[DZMS]: Major Mission Clock Starting!"];

//Lets get the loop going
_run = true;
while {_run} do
{
//Lets wait the random time
_wait = round(random _timeVar);
    [_wait,5] call DZMSSleep;

//Let's check that there are missions in the array.
//If there are none, lets end the timer.
_cntMis = count DZMSMajorArray;
if (_cntMis == 0) then { _run = false; };

//Lets pick a mission
_ranMis = floor (random _cntMis);
_varName = DZMSMajorArray select _ranMis;
   
    // clean up all the existing units before starting a new one
    {if (alive _x) then {_x call DZMSPurgeObject;};} forEach DZMSUnitsMajor;
   
    // rebuild the array for the next mission
    DZMSUnitsMajor = [];
   
//Let's Run the Mission
[] execVM format ["\z\addons\dayz_server\DZMS\Missions\Major\%1.sqf",_varName];
diag_log text format ["[DZMS]: Running Major Mission %1.",_varName];

//Let's wait for it to finish or timeout
waitUntil {DZMSMajDone};
DZMSMajDone = false;
};

and still getting 80,000 lines of:

Code:
 3:38:34   Error Undefined variable in expression: dzmsmindone
3:38:34 File z\addons\dayz_server\DZMS\Scripts\DZMSMinTimer.sqf, line 42
3:38:34 Error in expression <or Mission %1.",_varName];


waitUntil {DZMSMinDone};
DZMSMinDone = nil;
};>
3:38:34   Error position: <DZMSMinDone};
DZMSMinDone = nil;
};>
3:38:34   Error Undefined variable in expression: dzmsmindone
3:38:34 File z\addons\dayz_server\DZMS\Scripts\DZMSMinTimer.sqf, line 42
3:38:34 Error in expression <or Mission %1.",_varName];


waitUntil {DZMSMinDone};
DZMSMinDone = nil;
};>
3:38:34   Error position: <DZMSMinDone};
DZMSMinDone = nil;
};>
3:38:34   Error Undefined variable in expression: dzmsmindone
3:38:34 File z\addons\dayz_server\DZMS\Scripts\DZMSMinTimer.sqf, line 42
3:38:34 Error in expression <or Mission %1.",_varName];

Help would be greatly appreciated. Been working on this for hours, and not sure what I am doing wrong. Tried reinstalling to a fresh unconfigured DZMS and still get the errors.
 
Running the current files from the github.

Help would be greatly appreciated. Been working on this for hours, and not sure what I am doing wrong. Tried reinstalling to a fresh unconfigured DZMS and still get the errors.

Per those errors you still don't have the newest files. If you did, it would not have "nil" in them. They should be "false" instead.

https://github.com/SMVampire/DZMS-DayZMissionSystem/commit/09de330200454557c3ac581dfa7c2f8777a635ac

That is the fix.
 
Vampire, since upgrading to 1.63.112555 the only problem I now have since updating the files is that the AN2 mission (SM2) is having a problem where the plane is stuck at 0,0,0 on the map..... It just circles around there. Is this something you are aware of? Anyone else having the same problem?
 
Back
Top