Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Hi, I follow the instructions but do not appear missions. Should we turn them in somewhere?
// Epoch Supplies. If you have Epoch, these are the supplies in the Construction Crates
DZMSConTools = ["ItemToolbox","ItemCrowbar","ItemKnife","ItemEtool","ItemHatchet_DZE","ItemMatchbox_DZE"];
DZMSConSupply = ["Metal_Floor_kit","ItemWoodFloor","ItemWoodWall","ItemComboLock","CinderBlocks","MortarBucket","ItemTankTrap","ItemPole","PartGeneric","PartPlywoodPack","PartPlankPack","ItemTentOld","ItemTentDomed","ItemTentDomed2","ItemSandbag","ItemWire","workbench_kit","ItemGenerator"];
[_crate,"weapons"] ExecVM DZMSBoxSetup;
In DZMSFunctions.sqf -> line 36-115ish are where the global center for the map is found and set. Thats why in the regular mission sqfs its normally "_coords = call DZMSFindPos;". I changed that line to what I posted to have my own centers so that the regular missions would still run normally how they had been.
EDIT:
might have mis-interpreted what you were getting at. But how it works is when the mission starts it runs this (near the begining of all missions) "_coords = call DZMSFindPos;" <- this is where the worldspace comes from when all the vehicles, buildings ect are spawned in. When that code is run, it calls the function from the DZMSFunctions.sqf to find a safe spot to create the mission. Once it has decided on the coordinates the script continues on through to spawn everything. Example lets say it chooses elektro and the coordinates are [10,11,0]. [10,11,0] = _coords from when it called the function earlier. We then use worldspace coordinates looking like this [(_coords select 0) + 6, (_coords select 1) - 0.5, 0] which would translate to [(10)+6, (11)-0.5, 0] <- we are offsetting each item to be spawned so that around the location chosen everything will spawn in correctly.
What I have done is replaced the "_coords = call DZMSFindPos;" at the begining of my custom mission and changed it to what I had above my edit. Heres a pastebin of my mission I made if you want to look at it.
http://pastebin.com/A96nbLL6
Hi, tried you mission but when it spawns there is no Ai and in rpt log i have following -
_unit = _unitGroup createUnit [_aiskin, [(_position select >
21:25:00 Error position: <createUnit [_aiskin, [(_position select >
21:25:00 Error Type Any, expected Number
21:25:00 File z\addons\dayz_server\DZMS\Scripts\DZMSAISpawn.sqf, line 33
21:25:00 Error in expression <_fnc_selectRandom;
_unit = _unitGroup createUnit [_aiskin, [(_position select >
21:25:00 Error position: <createUnit [_aiskin, [(_position select >
21:25:00 Error Type Any, expected Number
21:25:00 File z\addons\dayz_server\DZMS\Scripts\DZMSAISpawn.sqf, line 33
21:25:00 Error in expression <_fnc_selectRandom;
_unit = _unitGroup createUnit [_aiskin, [(_position select >
21:25:00 Error position: <createUnit [_aiskin, [(_position select >
21:25:00 Error Type Any, expected Number
21:25:00 File z\addons\dayz_server\DZMS\Scripts\DZMSAISpawn.sqf, line 33
21:25:00 [DZMS]: (DZMSUnitsMinor) 0 AI Spawned, 0 units in mission.
Any ideas, everything spawns ok except no Ai , have checked the code and its same as your mission file in the pastebin.com
DZMSBAFSkins = ["BAF_crewman_W","BAF_Soldier_Officer_W","BAF_Soldier_L_W","BAF_Soldier_GL_W","BAF_Soldier_SniperH_W"];
[[(_coords select 0) - 8.4614,(_coords select 1) - 5.0527,0],6,2,"DZMSUnitsMajor","BAF"] call DZMSAISpawn;
I added in the line
private = "_unitMissionSkin"
and in the following Line
_unitMissionSkin = _this select 4;
if (_uniMissionSkin == "BAF") then {
_aiskin = DZMSBAFSkins call BIS_fnc_selectRandom;
} else {
_aiskin = DZMSBanditSkins call BIS_fnc_selectRandom;
};
Hello,
little question, does the script run when i place it in the mission folder and change all the url's from example: " z\addons\dayz_server\DZMS\DZMSConfig.sqf" to "DZMS\DZMSConfig.sqf" in the created mission DZMS folder?
I have to try this because nothing works when i put something into the dayz_server.
Thank You.
15:54:33 [DZMS]: Starting DayZ Mission System.
15:54:33 [DZMS]: Relations not found! Using DZMS Relations.
15:54:33 Warning Message: Script DZMS\DZMSConfig.sqf not found
15:54:33 Warning Message: Script DZMS\ExtConfig\DZMSWeaponCrateList.sqf not found
15:54:33 Warning Message: Script DZMS\ExtConfig\DZMSAIConfig.sqf not found
15:54:33 [DZMS]: Currently Running Version: any
15:54:33 [DZMS]: Mission and Extended Configuration Loaded!
15:54:33 [DZMS]: napf Detected. Map Specific Settings Adjusted!
15:54:33 [DZMS]: DayZ Epoch Detected! Some Scripts Adjusted!
15:54:33 Warning Message: Script DZMS\DZMSFunctions.sqf not found
// Let's Load the Mission Configuration
call compile preprocessFileLineNumbers "\DZMS\DZMSConfig.sqf";
// These are Extended configuration files the user can adjust if wanted
call compile preprocessFileLineNumbers "\DZMS\ExtConfig\DZMSWeaponCrateList.sqf";
call compile preprocessFileLineNumbers "\DZMS\ExtConfig\DZMSAIConfig.sqf";
Post your RPT file and I'll tell you why it isn't working.
Vampire,
Great mission system once again. It has worked flawlessly on Nemalsk and Cherno for us. Players have enjoyed the greatery randomness over AI Mission system.
I have one suggestion regarding how the mission timers deal with AI for one mission when another for the same class is spawned. Using the Major missions as an example, presently, all AI bodies for one major mission are deleted at the time the next one spawns. thus, AI killed by a player may have their bodies deleted long before the maximum time set for that function. I have modified the code to deal with this as follows. This change ensures that dead AI bodies remain until the timer set in AIKilled deletes them. I guess the downside is more timers running. Anyway, here is what I have changed.
Cheers,
Ghost
Hello,
little question, does the script run when i place it in the mission folder and change all the url's from example: " z\addons\dayz_server\DZMS\DZMSConfig.sqf" to "DZMS\DZMSConfig.sqf" in the created mission DZMS folder?
I have to try this because nothing works when i put something into the dayz_server.
Thank You.
Vampire: I found this error in the RPT file, but the file exists in the directory DZMSInit.sqf Specified
"Warning Message: Script z \ addons \ dayz_server \ DZMS \ DZMSInit.sqf not found"
Why will not generate missions?
Excuse my English
DZMSWeps0 = [
"M16A2",
"M16A2GL",
"AK_74",
"M4A1_Aim",
"AKS_74_kobra",
"AKS_74_U",
"AK_47_M",
"M24",
"M1014",
"DMR_DZ",
"M4A1",
"M14_EP1",
"Remington870_lamp",
"MP5A5",
"MP5SD",
"M4A3_CCO_EP1"
];
DZMSWeps1 = [
"M16A2",
"M16A2GL",
"M249_DZ",
"AK_74",
"M4A1_Aim",
"AKS_74_kobra",
"AKS_74_U",
"AK_47_M",
"M24",
"SVD_CAMO",
"M1014",
"DMR_DZ",
"M4A1",
"M14_EP1",
"Remington870_lamp",
"M240_DZ",
"M4A1_AIM_SD_camo",
"M16A4_ACG",
"M4A1_HWS_GL_camo",
"Mk_48_DZ",
"M4A3_CCO_EP1",
"Sa58V_RCO_EP1",
"Sa58V_CCO_EP1",
"M40A3",
"Sa58P_EP1",
"Sa58V_EP1"
];
DZMSWeps2 = [
"FN_FAL",
"FN_FAL_ANPVS4",
"Mk_48_DZ",
"M249_DZ",
"BAF_L85A2_RIS_Holo",
"G36C",
"G36C_camo",
"G36A_camo",
"G36K_camo",
"AK_47_M",
"AKS_74_U",
"M14_EP1",
"bizon_silenced",
"DMR_DZ",
"RPK_74"
];
DZMSWeps3 = [
"FN_FAL",
"FN_FAL_ANPVS4",
"Mk_48_DZ",
"M249_DZ",
"BAF_L85A2_RIS_Holo",
"G36C",
"G36C_camo",
"G36A_camo",
"G36K_camo",
"AK_47_M",
"AKS_74_U",
"M14_EP1",
"bizon_silenced",
"DMR_DZ",
"RPK_74"
];