[Support] DZMS DayZ Mission System

Hi mbnq,

I just come back from holydays.

Could U please explain where i must insert your code in the DZMSFunctions.sqf

Youre help will be very appreciate

Code:
  if (DZMSStaticPlc) then {
_pos = DZMSStatLocs call BIS_fnc_selectRandom;

// here

};
 
Hey there, I have been playing around with different parts of the code to customise it for my server. One thing I have had problems with though, is the amount of weapons that spawn in the different boxes. What value do I need to change? I thought I deciphered it but apparently not haha

Basically in DZMSBox.sqf in the scripts folder, there are IF's that dictate what box gets filled with what.
if (_name = "weapons") etc.
In this if there are multiple FOR's.
Inside the FOR is an addWeaponCargoGlobal or similar with a number.

The FOR goes through and chooses however many items based on the amount of times it loops. It could choose the same item multiple times.
When the FOR chooses an item, it gets added by addXCargoGlobal. That command requires an item count. For some lines like weapons, it is simply 1, meaning the FOR loop could pick 8 different weapons, and they would each get added 1 time, creating 8 weapons in the box.
Some lines have a round(random(#)) instead, which will instead add a random amount of the chosen item, up to a max of the number. This means if my FOR loops once, there could still be # amount of that one item added to the crate.

Hey Vampire I posted my my question here didn't know you had this thread

http://opendayz.net/threads/help-dzms-how-to-add-hero-kills.20690/

I don't believe there are such a thing as "Hero Kills", I believe only bandit kills are recorded.

As for the humanity, as long as you have DZMSMissHumanity set to true in the config, it should be working, based on what number you have it set to. I think the default is 25.
 
Basically in DZMSBox.sqf in the scripts folder, there are IF's that dictate what box gets filled with what.
if (_name = "weapons") etc.
In this if there are multiple FOR's.
Inside the FOR is an addWeaponCargoGlobal or similar with a number.

The FOR goes through and chooses however many items based on the amount of times it loops. It could choose the same item multiple times.
When the FOR chooses an item, it gets added by addXCargoGlobal. That command requires an item count. For some lines like weapons, it is simply 1, meaning the FOR loop could pick 8 different weapons, and they would each get added 1 time, creating 8 weapons in the box.
Some lines have a round(random(#)) instead, which will instead add a random amount of the chosen item, up to a max of the number. This means if my FOR loops once, there could still be # amount of that one item added to the crate.



I don't believe there are such a thing as "Hero Kills", I believe only bandit kills are recorded.

As for the humanity, as long as you have DZMSMissHumanity set to true in the config, it should be working, based on what number you have it set to. I think the default is 25.

Thanks for getting back to me the humanity is not going down on the AI I set as hero is what i used correct should take - 25 off humanity but on test humanity doesn't move.

if (DZMSMissHumanity) then {
_player setVariable ["humanity",(_humanity - DZMSCntHumanity),true];
};

config is set true I checked.
 
Hello i managed to get the script installed and the missions work perfectly but there is only 1 problem, it doesn't show up on the screen that there is a mission started, you have to go onto the map to see if there is a mission
 
Hey there, i've recently installed this on my Napf server, the server runs fine but it's like the mission file isn't there as nothing shows up at all?
 
hi vampie just a few things need help with one is how do I make more missions active at oonce I can only get two at a time to load on server and the other is possible to get a mission to spawn in a on a set area using coords? I plan to have AI mission in a bunker on map.
 
Hiya Vampire,
i like to convert your DZMS from Chernarus to use it on Napf. Will this be possible by changing the Coordinates?
Cause now the missions seems to be misplaced at Napf. How can this be done? I have no clue about the coordinate system...Thanks.
Cheers
 
Last edited:
Hiya Vampire,
i like to convert your DZMS from Chernarus to use it on Napf. Will this be possible by changing the Coordinates?
Cause now the missions seems to be misplaced at Napf. How can this be done? I have no clue about the coordinate system...Thanks.
Cheers
It works on all maps, it detects the map and uses coordinates for it. However Napf is a bit glitchy and stuff only spawns on the sound mountain ridge. This can be fixed however by using static coordinates.

To set up static locations go to the DZMSConfig.sqf then go to line 50 or so and you should see this text

Code:
//////////////////////////////////////////////////////////////////////////////////////////
// Do you want to use static coords for missions?
// Leave this false unless you know what you are doing.
DZMSStaticPlc = false;

// Array of static locations. X,Y,Z
DZMSStatLocs = [];


To set static positions you would set locations in the array.. I happen to have a bunch of locations used for Napf, so I will paste them here for you..

My DZMSConfig.sqf now looks like this at line 50

Code:
//////////////////////////////////////////////////////////////////////////////////////////
// Do you want to use static coords for missions?
// Leave this false unless you know what you are doing.
DZMSStaticPlc = true;

// Array of static locations. X,Y,Z
DZMSStatLocs = [
[10185,10306,0],
[11180,18313,0],
[10049,18488,0],
[10631,18568,0],
[10304,17658,0],
[11081,17179,0],
[9829,17146,0],
[9246,16745,0],
[8740,16831,0],
[8148,16711,0],
[9479,15937,0],
[8704,15400,0],
[7728,15336,0],
[7127,15429,0],
[5925,16157,0],
[6109,15490,0],
[5003,15614,0],
[5573,14472,0],
[4686,14935,0],
[3875,13984,0],
[5446,13647,0],
[4556,12971,0],
[5488,13148,0],
[5436,12258,0],
[6304,13223,0],
[6950,13712,0],
[7431,14574,0],
[8601,14736,0],
[9589,14918,0],
[10269,14382,0],
[10521,15350,0],
[11190,15469,0],
[11427,15946,0],
[11389,15050,0],
[11230,14661,0],
[11813,14599,0],
[11928,13951,0],
[10990,14202,0],
[13220,15110,0],
[13090,16063,0],
[13055,14312,0],
[13060,13551,0],
[14025,13140,0],
[14753,13330,0],
[15526,12095,0],
[13604,11903,0],
[12776,12619,0],
[12334,12073,0],
[11713,13105,0],
[11080,12477,0],
[9801,12851,0],
[9499,13771,0],
[8880,13916,0],
[7868,13816,0],
[7289,12978,0],
[6549,12332,0],
[7307,12033,0],
[6646,11559,0],
[6748,10793,0],
[7242,10896,0],
[5753,10387,0],
[6040,9681,0],
[5137,9771,0],
[4803,10332,0],
[4222,11023,0],
[3309,9955,0],
[2833,10599,0],
[2990,11118,0],
[3471,11666,0],
[2905,12389,0],
[2349,12404,0],
[2506,11786,0],
[1798,11120,0],
[850,10985,0],
[1025,10457,0],
[1776,10222,0],
[2686,9519,0],
[1516,8908,0],
[2863,8985,0],
[3870,8699,0],
[4825,9078,0],
[4673,8330,0],
[3905,7317,0],
[2661,6776,0],
[4671,6325,0],
[5521,7310,0],
[3631,5147,0],
[5052,5325,0],
[4668,3487,0],
[5536,2300,0],
[6998,4556,0],
[6377,5863,0],
[7279,5517,0],
[8429,4681,0],
[9913,5369,0],
[8521,5828,0],
[9187,4556,0],
[6998,6621,0],
[10115,6349,0],
[9504,8220,0],
[8599,8130,0],
[7254,8793,0],
[9793,9000,0],
[10402,8349,0],
[11646,9005,0],
[11033,9977,0],
[11881,10191,0],
[12217,9660,0],
[13873,10074,0],
[12038,11149,0],
[14579,10964,0],
[14901,11710,0],
[15821,11418,0],
[19048,13114,0],
[17317,11859,0],
[12965,5227,0],
[14530,5238,0],
[15489,5540,0],
[16563,4740,0],
[16254,4025,0],
[16253,3497,0],
[16361,3125,0],
[16768,2849,0],
[17684,2902,0],
[18148,3721,0],
[18052,4058,0],
[19104,6691,0],
[16153,8026,0],
[19082,12026,0],
[18474,16943,0],
[17336,13114,0],
[1336,12117,0]
];

///////////////////////////////////////////////////////////////////////////////////////////////////////////
// Do you want vehicles from missions to save to the Database? (this means they will stay after a restart)
 
Hello Andrew_S90,

many thanks for your fast response. i have changed the parameters. Works perfect now^^
May you help me in 2 little other things? i cant find the solution and nobody seems to answer me...
Thanks in advance.
:D
Skype: padidiver0808 or PM if possible
 
Last edited:
Hi any one help.
my arma2oaserver.RPT is full of the following error=

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


but my MinTimer.sqf reads the same as the MajTimer.sqf below. (Any Ideas)?

/*
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 = nil;
};
 
Last edited:
I think since last arma2 patch for steam a few variables have chnaged , change the = nil to false

DZMSMinDone = false
 
I have issue with AI not attacking tanks they just look at while players run them over does anyone have a solution to this?
 
Hey Darthmard, i had an issue with players just running AI over in vehicles to complete missions, so i gave the AI RPG's, and made them dissapear on AI's death, might be a good solution for you, you can configure it in the .config
maybe a solution for you!
 
Hey man im getting this error.
2:55:01 [DZMS]: Starting DayZ Mission System.
2:55:01 [DZMS]: Relations not found! Using DZMS Relations.
2:55:04 [DZMS]: Currently Running Version: any
2:55:04 [DZMS]: Mission and Extended Configuration Loaded!
2:55:04 [DZMS]: chernarus Detected. Map Specific Settings Adjusted!
2:55:04 [DZMS]: DayZ Epoch Detected! Some Scripts Adjusted!
2:55:04 Error in expression <[DZMS]: Currently Running Version: %1", DZMSVersion];


if (DZMSVersion != "1.1F>
2:55:04 Error position: <DZMSVersion];


if (DZMSVersion != "1.1F>
2:55:04 Error Undefined variable in expression: dzmsversion
2:55:04 File z\addons\dayz_server\DZMS\DZMSInit.sqf, line 74
2:55:04 "RUNNING EVENT: Construction on [2014,8,27,10,55]"


and this one

DZMSPurgeObject = {
_>
3:05:00 Error Undefined variable in expression: _sleeptime
3:05:00 File z\addons\dayz_server\DZMS\DZMSFunctions.sqf, line 253
3:05:00 Error in expression <nterval; (diag_tickTime - _startTime) > _sleepTime;};
};


DZMSPurgeObject = {
_>
3:05:00 Error position: <_sleepTime;};
};


DZMSPurgeObject = {
_>
3:05:00 Error Undefined variable in expression: _sleeptime
3:05:00 File z\addons\dayz_server\DZMS\DZMSFunctions.sqf, line 253
3:05:05 Error in expression <nterval; (diag_tickTime - _startTime) > _sleepTime;};
};


DZMSPurgeObject = {
_>
3:05:05 Error position: <_sleepTime;};
};


DZMSPurgeObject = {
_>
3:05:05 Error Undefined variable in expression: _sleeptime
3:05:05 File z\addons\dayz_server\DZMS\DZMSFunctions.sqf, line 253
3:05:05 Error in expression <nterval; (diag_tickTime - _startTime) > _sleepTime;};
};


None of the events seem to be running. Thanks in advance
 
Hey when i go to a mission, the AI don't shoot back at me. I walked right up next to one and he just turned and ran away. I followed the install instructions correctly. Anyone have an idea as to what's happening?
 
Hey when i go to a mission, the AI don't shoot back at me. I walked right up next to one and he just turned and ran away. I followed the install instructions correctly. Anyone have an idea as to what's happening?

If you are running Overpoch I believe the STALKER skins have issues with the AI. Otherwise it may be a relations issue. If you can post your RPT, it would help.
 
Hi Guys, I have started to get a problem with RPG's not disappearing with AI upon death, The only Error in RTP for DZMS is as follows :

17:40:39 [DZMS]: (DZMSUnitsMajor) 4 AI Spawned, 16 units in mission.
17:40:46 Error in expression < getVariable["actionSet", false];

if (!_actionSet) then {
s_player_holderPickup>
17:40:46 Error position: <_actionSet) then {
s_player_holderPickup>
17:40:46 Error Undefined variable in expression: _actionset
17:40:46 File z\addons\dayz_code\init\object_BackpackAction.sqf, line 13
17:40:48 Error in expression < getVariable["actionSet", false];

if (!_actionSet) then {
s_player_holderPickup>
17:40:48 Error position: <_actionSet) then {
s_player_holderPickup>
17:40:48 Error Undefined variable in expression: _actionset
17:40:48 File z\addons\dayz_code\init\object_BackpackAction.sqf, line 13


20:26:04 [DZMS]: Running Major Mission SM5.
20:26:07 Server: Object 2:13011 not found (message 221)
20:26:07 Server: Object 2:13020 not found (message 221)
20:26:07 Server: Object 2:13030 not found (message 221)
20:26:07 Server: Object 2:13030 not found (message 221)
20:26:07 Server: Object 2:13011 not found (message 221)
20:26:07 Server: Object 2:13020 not found (message 221)
20:26:37 Server: Object 15:19 not found (message 94)
20:26:37 Server: Object 15:27 not found (message 70)
20:26:37 Server: Object 15:28 not found (message 94)
20:26:37 Server: Object 15:20 not found (message 94)
20:26:37 Server: Object 15:17 not found (message 94)
20:26:37 Server: Object 15:18 not found (message 94)
20:26:37 Server: Object 15:23 not found (message 70)
20:26:37 Server: Object 15:21 not found (message 94)
20:26:37 Server: Object 15:22 not found (message 94)
20:26:37 Server: Object 15:24 not found (message 94)
20:26:37 Server: Object 15:25 not found (message 94)
20:26:37 Server: Object 15:26 not found (message 94)
20:26:54 Error in expression < getVariable["actionSet", false];

if (!_actionSet) then {
s_player_holderPickup>
20:26:54 Error position: <_actionSet) then {
s_player_holderPickup>
20:26:54 Error Undefined variable in expression: _actionset
20:26:54 File z\addons\dayz_code\init\object_BackpackAction.sqf, line 13
20:26:57 Error in expression < getVariable["actionSet", false];

if (!_actionSet) then {
s_player_holderPickup>
20:26:57 Error position: <_actionSet) then {
s_player_holderPickup>
20:26:57 Error Undefined variable in expression: _actionset
20:26:57 File z\addons\dayz_code\init\object_BackpackAction.sqf, line 13
20:26:57 [DZMS]: (DZMSUnitsMajor) 4 AI Spawned, 4 units in mission.
20:27:14 "EPOCH SERVERTRADE: Player: MegaZ (76561197990778975) sold a M240_DZ in/at trader city Lenzburg for 6x ItemGoldBar"
20:27:29 [DZMS]: (DZMSUnitsMajor) 5 AI Spawned, 9 units in mission.
20:27:29 Error in expression < getVariable["actionSet", false];

if (!_actionSet) then {
s_player_holderPickup>
20:27:29 Error position: <_actionSet) then {
s_player_holderPickup>
20:27:29 Error Undefined variable in expression: _actionset
20:27:29 File z\addons\dayz_code\init\object_BackpackAction.sqf, line 13
20:27:31 "get: STRING (76561198068654564), sent: STRING (76561198068654564)"
20:27:31 "DISCONNECT: Bobfreakshow (76561198068654564) Object: B 1-1-F:1 (Bobfreakshow) REMOTE, _characterID: 6656 at loc [11078.5,11771.5,8.01558]"
20:27:31 Client: Remote object 9:0 not found
20:27:31 Client: Remote object 9:7 not found
20:27:31 Client: Remote object 9:5 not found
20:27:31 Client: Remote object 9:4 not found
20:27:33 Warning: Cleanup player - person 9:6 not found
20:27:34 Error in expression < getVariable["actionSet", false];

if (!_actionSet) then {
s_player_holderPickup>
20:27:34 Error position: <_actionSet) then {
s_player_holderPickup>
20:27:34 Error Undefined variable in expression: _actionset
20:27:34 File z\addons\dayz_code\init\object_BackpackAction.sqf, line 13

23:39:35 [DZMS]: Running Major Mission SM3.
23:40:04 [DZMS]: (DZMSUnitsMajor) 3 AI Spawned, 3 units in mission.
23:40:18 Error in expression < getVariable["actionSet", false];

if (!_actionSet) then {
s_player_holderPickup>
23:40:18 Error position: <_actionSet) then {
s_player_holderPickup>
23:40:18 Error Undefined variable in expression: _actionset
23:40:18 File z\addons\dayz_code\init\object_BackpackAction.sqf, line 13
23:40:19 [DZMS]: (DZMSUnitsMajor) 3 AI Spawned, 6 units in mission.

I saw rss_adm post having simular issues:
http://opendayz.net/threads/support-dzms-dayz-mission-system.18421/page-38#post-107610

Any help with this would be great
MegaZ
 
Back
Top