[Support] DZMS DayZ Mission System

looking at DZMSBox.sqf around those lines.. its having an error pulling something from your MG list. the list where you set up what guns spawn and there are primary , MG, sniper, pistol, etc... you messed something up in the MG list. maybe a gun that doesn't work or a bad classname... post your MG list here
 
This is my DZMSWeaponCrateList.sqf

Code:
/*
    Below are the lists of allowed weapons for the weapon crates. Adjust them to your liking.
*/

//////////////////////////////////////////////////////////////////////////////////////////////
// Pistols
DZMSpistolList = ["M9","M9SD","Makarov","MakarovSD","COLT1911","SA61_EP1","UZI_EP1","UZI_SD_EP1","REVOLVER_EP1","REVOLVER_GOLD_EP1","GLOCK17_EP1"];

// Sniper Rifles
DZMSsniperList = ["M24","M40A3","SVD","SVD_CAMO","HUNTINGRIFLE","DMR_DZ","M24_DES_EP1","SVD_DES_EP1","M110_NVG_EP1","SCAR_H_LNG_SNIPER","SCAR_H_LNG_SNIPER_SD","M107_DZ","BAF_AS50_SCOPED_DZ","KSVK_DZE","BAF_LRR_SCOPED","BAF_LRR_SCOPED_W"];

// Light Machineguns
DZMSLMGList = ["RPK_74","M249_DZ","M240_DZ","MK_48_DZ","M8_SAW","PECHENEG_DZ","M240_SCOPED_EP1_DZE","M249_EP1_DZ","M249_M145_EP1_DZE","M60A4_EP1_DZE","BAF_L86A2_ACOG"];

// Primary Rifles
DZMSprimaryList = ["M16A2","M16A2GL","M16A4","M16A4_ACG","M16A4_GL","M16A4_ACG_GL","M4A1","M4A1_AIM","M4A1_AIM_CAMO","M4SPR","M4A1_RCO_GL","M4A1_AIM_SD_CAMO","M4A1_HWS_GL_SD_CAMO","M4A1_HWS_GL","M4A1_HWS_GL_CAMO","G36C","G36_C_SD_EOTECH","G36A","G36K","MG36","AK_47_M","AK_47S","AKS_GOLD","AK_74","AK_107_KOBRA","AK_107_GL_KOBRA","AK_107_GL_PSO","AK_107_PSO","AKS_74_KOBRA","AKS_74_PSO","AKS_74_U","AKS_74_UN_KOBRA","M8_CARBINE","M8_CARBINEGL","M8_COMPACT","M8_SHARPSHOOTER","BAF_L85A2_RIS_HOLO","BAF_L85A2_UGL_HOLO","BAF_L85A2_RIS_SUSAT","BAF_L85A2_UGL_SUSAT","BAF_L85A2_RIS_ACOG","BAF_L85A2_UGL_ACOG","SA58P_EP1","SA58V_EP1","SA58V_RCO_EP1","SA58V_CCO_EP1","M4A3_CCO_EP1","M4A3_RCO_GL_EP1","AK_74_GL_KOBRA","AKS_74","FN_FAL","FN_FAL_ANPVS4","G36C_CAMO","G36_C_SD_CAMO","G36A_CAMO","G36K_CAMO","MG36_CAMO","LEEENFIELD","M14_EP1","SCAR_L_CQC","SCAR_L_CQC_HOLO","SCAR_L_STD_EGLM_RCO","SCAR_L_CQC_EGLM_HOLO","SCAR_L_STD_HOLO","SCAR_L_CQC_CCO_SD","SCAR_H_CQC_CCO","SCAR_H_CQC_CCO_SD","SCAR_H_STD_EGLM_SPECT","M8_HOLO_SD"];


////////////////////////////////////////////////////////////////////////////////////////////////
// Epoch Supplies. If you have Epoch, these are the supplies in the Construction Crates
DZMSConTools = ["ItemToolbox","ItemCrowbar","ItemKnife","ItemEtool","ItemHatchet_DZE","ItemMatchbox_DZE"];

DZMSConSupply = ["CinderBlocks","MortarBucket","ItemTankTrap","ItemPole","PartGeneric","PartPlywoodPack","PartPlankPack","ItemTentOld","ItemTentDomed","ItemTentDomed2","ItemSandbag","ItemWire","workbench_kit","ItemGenerator"];

And my DZMSBox.sqf (I have made no changes to this one)

Code:
/*
    Usage: [_crate,"type"] execVM "dir\DZMSBox.sqf";
        _crate is the crate to fill
        "type" is the type of crate
        "type" can be weapons or medical
*/
_crate = _this select 0;
_type = _this select 1;

// Clear the current cargo
clearWeaponCargoGlobal _crate;
clearMagazineCargoGlobal _crate;

// Define lists. Some lists are defined in DZMSWeaponCrateList.sqf in the ExtConfig.
_bpackList = ["DZ_Patrol_Pack_EP1","DZ_Assault_Pack_EP1","DZ_Czech_Vest_Puch","DZ_ALICE_Pack_EP1","DZ_TK_Assault_Pack_EP1","DZ_British_ACU","DZ_CivilBackpack_EP1","DZ_Backpack_EP1"];
_gshellList = ["HandGrenade_west","FlareGreen_M203","FlareWhite_M203"];
_medical = ["ItemBandage","ItemMorphine","ItemEpinephrine","ItemPainkiller","ItemWaterbottle","FoodMRE","ItemAntibiotic","ItemBloodbag"];
_money = ["ItemSilverBar","ItemSilverBar10oz","ItemGoldBar","ItemGoldBar10oz"];

//////////////////////////////////////////////////////////////////
// Medical Crates
if (_type == "medical") then {
    // load medical
    _scount = count _medical;
    for "_x" from 0 to 40 do {
        _sSelect = floor(random _sCount);
        _item = _medical select _sSelect;
        _crate addMagazineCargoGlobal [_item,(round(random 2))];
    };
};

///////////////////////////////////////////////////////////////////
// Weapon Crates
if (_type == "weapons") then {
    // load grenades
    _scount = count _gshellList;
    for "_x" from 0 to 2 do {
        _sSelect = floor(random _sCount);
        _item = _gshellList select _sSelect;
        _crate addMagazineCargoGlobal [_item,(round(random 2))];
    };
  
    // load packs
    _scount = count _bpackList;
    for "_x" from 0 to 3 do {
        _sSelect = floor(random _sCount);
        _item = _bpackList select _sSelect;
        _crate addBackpackCargoGlobal [_item,1];
    };
    
    // load pistols
    _scount = count DZMSpistolList;
    for "_x" from 0 to 2 do {
        _sSelect = floor(random _sCount);
        _item = DZMSpistolList select _sSelect;
        _crate addWeaponCargoGlobal [_item,1];
        _ammo = [] + getArray (configFile >> "cfgWeapons" >> _item >> "magazines");
        if (count _ammo > 0) then {
            _crate addMagazineCargoGlobal [(_ammo select 0),(round(random 8))];
        };
    };

    //load sniper
    _scount = count DZMSsniperList;
    for "_x" from 0 to 1 do {
        _sSelect = floor(random _sCount);
        _item = DZMSsniperList select _sSelect;
        _crate addWeaponCargoGlobal [_item,1];
        _ammo = [] + getArray (configFile >> "cfgWeapons" >> _item >> "magazines");
        if (count _ammo > 0) then {
            _crate addMagazineCargoGlobal [(_ammo select 0),(round(random 8))];
        };
    };

    //load mg
    _scount = count DZMSmgList;
    for "_x" from 0 to 1 do {
        _sSelect = floor(random _sCount);
        _item = DZMSmgList select _sSelect;
        _crate addWeaponCargoGlobal [_item,1];
        _ammo = [] + getArray (configFile >> "cfgWeapons" >> _item >> "magazines");
        if (count _ammo > 0) then {
            _crate addMagazineCargoGlobal [(_ammo select 0),(round(random 8))];
        };
    };

    //load primary
    _scount = count DZMSprimaryList;
    for "_x" from 0 to 2 do {
        _sSelect = floor(random _sCount);
        _item = DZMSprimaryList select _sSelect;
        _crate addWeaponCargoGlobal [_item,1];
        _ammo = [] + getArray (configFile >> "cfgWeapons" >> _item >> "magazines");
        if (count _ammo > 0) then {
            _crate addMagazineCargoGlobal [(_ammo select 0),(round(random 8))];
        };
    };
};

///////////////////////////////////////////////////////////////////
// Epoch Supply Crates
if (_type == "supply") then {
    // load tools
    _scount = count DZMSConTools;
    for "_x" from 0 to 2 do {
        _sSelect = floor(random _sCount);
        _item = DZMSConTools select _sSelect;
        _crate addWeaponCargoGlobal [_item, 1];
    };
   
    // load construction
    _scount = count DZMSConSupply;
    for "_x" from 0 to 30 do {
        _sSelect = floor(random _sCount);
        _item = DZMSConSupply select _sSelect;
        _crate addMagazineCargoGlobal [_item,1];
    };
};

///////////////////////////////////////////////////////////////////
// Epoch Money Crates
if (_type == "money") then {
    // load money
    _scount = count _money;
    for "_x" from 0 to 3 do {
        _sSelect = floor(random _sCount);
        _item = _money select _sSelect;
        _crate addMagazineCargoGlobal [_item,1];
    };
};
 
Last edited:
What version of the beta are you running on your server? The new 112555 version now checks for and reports undefined variables in all the files and there are a ton of them all over the place in most of the mods.

Anyone have a idea here – I get this in my RPT log.

No idea what to do about it, I downloadet the latest version from the github. The missions apperes to start just fine....

Thank you in advance


13:59:16 [DZMS]: Starting DayZ Mission System.

13:59:16 [DZMS]: Relations not found! Using DZMS Relations.

13:59:16 [DZMS]: Currently Running Version: 1.1FIN

13:59:16 [DZMS]: Mission and Extended Configuration Loaded!

13:59:16 [DZMS]: chernarus Detected. Map Specific Settings Adjusted!

13:59:16 [DZMS]: DayZ Epoch Detected! Some Scripts Adjusted!

13:59:16 [DZMS]: Loading ExecVM Functions.

13:59:16 [DZMS]: Loading Compiled Functions.

13:59:16 [DZMS]: Loading All Other Functions.

13:59:16 [DZMS]: Mission Functions Script Loaded!

13:59:16 [DZMS]: Major Mission Clock Starting!

13:59:16 [DZMS]: Minor Mission Clock Starting!

13:59:16 [DZMS]: Mission Marker Loop for JIPs Starting!

14:00:06 "RUNNING EVENT: crash_spawner on [2014,6,28,13,0]"

14:01:36 "CLEANUP: INITIALIZING CLEANUP SCRIPT"

14:06:31 [DZMS]: Running Minor Mission SM2.

14:06:34 Error in expression <rom 0 to 1 do {

_sSelect = floor(random _sCount);

_item = DZMSmgList select _sSe>

14:06:34 Error position: <_sCount);

_item = DZMSmgList select _sSe>

14:06:34 Error Undefined variable in expression: _scount

14:06:34 File z\addons\dayz_server\DZMS\Scripts\DZMSBox.sqf, line 78

14:06:34 Error in expression <rom 0 to 1 do {

_sSelect = floor(random _sCount);

_item = DZMSmgList select _sSe>

14:06:34 Error position: <_sCount);

_item = DZMSmgList select _sSe>

14:06:34 Error Undefined variable in expression: _scount

14:06:34 File z\addons\dayz_server\DZMS\Scripts\DZMSBox.sqf, line 78

14:06:34 Error in expression <nd(random 8))];

};

};



_scount = count DZMSmgList;

for "_x" from 0 to 1 do {

_s>

14:06:34 Error position: <DZMSmgList;

for "_x" from 0 to 1 do {

_s>

14:06:34 Error Undefined variable in expression: dzmsmglist

14:06:34 File z\addons\dayz_server\DZMS\Scripts\DZMSBox.sqf, line 76

14:06:34 [DZMS]: (DZMSUnitsMinor) 4 AI Spawned, 4 units in mission.

14:06:36 "TIME SYNC: Local Time set to [2013,8,3,13,6]"

14:06:37 [DZMS]: (DZMSUnitsMinor) 4 AI Spawned, 8 units in mission.

14:06:41 [DZMS]: (DZMSUnitsMinor) 4 AI Spawned, 12 units in mission.

14:06:44 [DZMS]: (DZMSUnitsMinor) 4 AI Spawned, 16 units in mission.

14:06:47 [DZMS]: (DZMSUnitsMinor) Waiting for 16/16 Units or Less to be Alive and a Player to be Near the Objective.

14:09:38 [DZMS]: Running Major Mission SM5.

14:09:40 Error in expression <rom 0 to 1 do {

_sSelect = floor(random _sCount);

_item = DZMSmgList select _sSe>

14:09:40 Error position: <_sCount);

_item = DZMSmgList select _sSe>

14:09:40 Error Undefined variable in expression: _scount

14:09:40 File z\addons\dayz_server\DZMS\Scripts\DZMSBox.sqf, line 78

14:09:40 Error in expression <rom 0 to 1 do {

_sSelect = floor(random _sCount);

_item = DZMSmgList select _sSe>

14:09:40 Error position: <_sCount);

_item = DZMSmgList select _sSe>

14:09:40 Error Undefined variable in expression: _scount

14:09:40 File z\addons\dayz_server\DZMS\Scripts\DZMSBox.sqf, line 78

14:09:40 Error in expression <nd(random 8))];

};

};



_scount = count DZMSmgList;

for "_x" from 0 to 1 do {

_s>

14:09:40 Error position: <DZMSmgList;

for "_x" from 0 to 1 do {

_s>

14:09:40 Error Undefined variable in expression: dzmsmglist

14:09:40 File z\addons\dayz_server\DZMS\Scripts\DZMSBox.sqf, line 76

14:09:41 [DZMS]: (DZMSUnitsMajor) 6 AI Spawned, 6 units in mission.

14:09:46 [DZMS]: (DZMSUnitsMajor) 6 AI Spawned, 12 units in mission.

14:09:51 [DZMS]: (DZMSUnitsMajor) 4 AI Spawned, 16 units in mission.

14:09:56 [DZMS]: (DZMSUnitsMajor) Waiting for 16/16 Units or Less to be Alive and a Player to be Near the Objective.

14:11:36 "TIME SYNC: Local Time set to [2013,8,3,13,11]"
 
Yea was just about to say there isn't an MG list only an LMG list. Also, Im assuming you're running epoch but there might be some bad classnames in there. I haven't been on epoch in awhile but I see "M60A4_EP1_DZE" try just using "M60A4_EP1"
The same with M249_m145_EP1, M249_EP1, m240_scoped_EP1... I don't remember ever seeing the DZE classname at the end of any of those weapons and I have looked at several sources including Infistar's box list for epoch. So I could be wrong but I never used those classname when I Ran epoch. here is my epoch weapons crate list. Although I don't run epoch any longer.
Code:
// Pistols
DZMSpistolList = ["Colt1911","glock17_EP1","M9","M9SD","Makarov","MakarovSD","revolver_EP1","UZI_EP1"];

// Sniper Rifles
DZMSsniperList = ["SVD_CAMO","DMR_DZ","BAF_AS50_scoped","KSVK_DZE","M4SPR","M14_EP1","M24","M40A3","VSS_vintorez","SCAR_H_LNG_Sniper","SCAR_H_LNG_Sniper_SD"];

// Light Machineguns
DZMSmgList = ["M240_DZ","M249_DZ","Mk_48_DZ","Pecheneg_DZ","m240_scoped_EP1","BAF_L110A1_Aim","RPK_74","M249_EP1","BAF_L86A2_ACOG","M60A4_EP1"];

// Primary Rifles
DZMSprimaryList = ["AK_47_M","AK_74","AKS_74_kobra","AKS_74_U","BAF_L85A2_RIS_Holo","bizon_silenced","FN_FAL","G36A_camo","G36C_camo","G36C","G36K_camo","M16A2","M16A2GL","M4A1_AIM_SD_camo","M4A1_Aim","M4A1_HWS_GL_camo","M4A1","M4A3_CCO_EP1","Sa58P_EP1","Sa58V_CCO_EP1","Sa58V_EP1","Sa58V_RCO_EP1","AKS_GOLD","m8_carbine","m8_carbineGL","BAF_L85A2_UGL_ACOG","AA12_PMC","SCAR_L_CQC_Holo","SCAR_L_CQC_CCO_SD","SCAR_L_STD_Mk4CQT","SCAR_L_STD_EGLM_RCO","SCAR_L_CQC_EGLM_Holo","SCAR_H_CQC_CCO","SCAR_H_CQC_CCO_SD","SCAR_H_STD_EGLM_Spect","SMAW"];

////////////////////////////////////////////////////////////////////////////////////////////////
// Epoch Supplies. If you have Epoch, these are the supplies in the Construction Crates
DZMSConTools = ["ItemToolbox","ItemCrowbar","ItemKnife","ItemEtool","ItemHatchet_DZE","ItemMatchbox_DZE"];

DZMSConSupply = ["CinderBlocks","MortarBucket","ItemTankTrap","ItemPole","PartGeneric","PartPlywoodPack","PartPlankPack","ItemTentOld","ItemTentDomed","ItemTentDomed2","ItemSandbag","ItemWire","workbench_kit","ItemGenerator","metal_floor_kit","metal_panel_kit","cinder_door_kit","cinder_wall_kit","cinder_garage_kit"];
 
Epoch has added several DZE versions of the weapons. Here is the list straight out of my overpoch DB. all of these spawn and trade. From what I can tell of them they are just coded to only take the primary slot instead of both the primary and backpack slots.

KSVK_DZE
m240_scoped_EP1_DZE
M249_m145_EP1_DZE
M60A4_EP1_DZE
 
Epoch has added several DZE versions of the weapons. Here is the list straight out of my overpoch DB. all of these spawn and trade. From what I can tell of them they are just coded to only take the primary slot instead of both the primary and backpack slots.

KSVK_DZE
m240_scoped_EP1_DZE
M249_m145_EP1_DZE
M60A4_EP1_DZE
That's what I figured they were doing if they were in fact real.
 
Anyone have a fix for the killing once you get into vehicle?
I applied the turn everything to false trick, but still seems to kill people randomly.
 
Hey Vampire i dont know if you have already addressed this but is there a way to spawn more then 2 missions on the map at any given time ?

I have been editing heavily and managed to get Hero AI and missions in but i would like to run 1 Hero 1Bandit and 1 Minor on the map.
 
Last edited:
Hey Vampire i dont know if you have already addressed this but is there a way to spawn more then 2 missions on the map at any given time ?

I have been editing heavily and managed to get Hero AI and missions in but i would like to run 1 Hero 1Bandit and 1 Minor on the map.

You would need to edit DZMSMarkerLoop, make a new timer file, make a new addmarker file, and make a new mission folder with your new missions. However DZMS doesn't support friendly AI. If you add friendly AI, you are going to get the vehicle glitches that go along with that.
 
Anyone have a fix for the killing once you get into vehicle?
I applied the turn everything to false trick, but still seems to kill people randomly.
if you look, you don't even have to look hard, you'll find your answer. The answer to your question is the same answer to regarding any mod that adds vehicles that are not database spawned vehicles.
Hint- Cleanup
Super Hint- hacker

Good luck
 
You would need to edit DZMSMarkerLoop, make a new timer file, make a new addmarker file, and make a new mission folder with your new missions. However DZMS doesn't support friendly AI. If you add friendly AI, you are going to get the vehicle glitches that go along with that.

I have done just about all of that of that just having only issue im having is when say the hero mission runs its on the map no worries AI dont attack unless attacked and if your humanity is lower then -2500 they will attack you but when the next major mission runs they despawn.
 
I have done just about all of that of that just having only issue im having is when say the hero mission runs its on the map no worries AI dont attack unless attacked and if your humanity is lower then -2500 they will attack you but when the next major mission runs they despawn.

Make sure that in the spawn line you aren't using DZMSMajorUnits or whatever it is, has to be unique.
 
if you look, you don't even have to look hard, you'll find your answer. The answer to your question is the same answer to regarding any mod that adds vehicles that are not database spawned vehicles.
Hint- Cleanup
Super Hint- hacker

Good luck

You normally don't have to do that, but something was changed in the newest version of DayZ that broke it.
 
Hi,

First thx to Vampire.
With DSMZ we have created some awesome missions :
exemple of mission :


But we have, sometime, a big problem :
The spawn of 2 differents missions at the same place.
(The first mission is not completed when the second begins at the same place)

My question is:
Is there a solution to avoid this overlap ?

thx


HGGC server information : http://www.epochservers.com/viewtopic.php?f=12&t=260
 
Hi,

First thx to Vampire.
With DSMZ we have created some awesome missions :
exemple of mission :


But we have, sometime, a big problem :
The spawn of 2 differents missions at the same place.
(The first mission is not completed when the second begins at the same place)

My question is:
Is there a solution to avoid this overlap ?

thx


HGGC server information : http://www.epochservers.com/viewtopic.php?f=12&t=260

This was fixed a long time ago in DZMS. Are you still running 1.0 or something?
 
Back
Top