jgalla5400 Posted June 3, 2014 Report Share Posted June 3, 2014 https://github.com/SMVampire/DZMS-DayZMissionSystem/commit/82f0c91a1259fd99a83589767e9ab05b1e5e2d3chttps://github.com/SMVampire/DZMS-DayZMissionSystem/commit/8c2f14d17d6fbc3d2825c1cb155f56b2b9e07e10 Thanks Vampire :) Will try this tonight Link to comment Share on other sites More sharing options...
jgalla5400 Posted June 4, 2014 Report Share Posted June 4, 2014 Still getting errors after using the two files provided_u>5:28:10 Error Undefined variable in expression: _weapon5:28:10 File z\addons\dayz_server\DZMS\Scripts\DZMSAISpawn.sqf, line 745:28:10 Error in expression <itch (_skill) do {case 0: {_aicskill = DZMSSkills0;};case 1: {_aicskill = DZMS>5:28:10 Error position: <DZMSSkills0;};case 1: {_aicskill = DZMS>5:28:10 Error Undefined variable in expression: dzmsskills05:28:10 File z\addons\dayz_server\DZMS\Scripts\DZMSAISpawn.sqf, line 955:28:10 Error in expression <[(_x select 0),(_x select 1)]} forEach _aicskill;_unit addEventHandler ["Kil>5:28:10 Error position: <_aicskill;_unit addEventHandler ["Kil>5:28:10 Error Undefined variable in expression: _aicskill5:28:10 File z\addons\dayz_server\DZMS\Scripts\DZMSAISpawn.sqf, line 1035:28:10 Error in expression <itch (_skill) do {case 0: {_aiweapon = DZMSWeps0;};case 1: {_aiweapon = DZMSWe>5:28:10 Error position: <DZMSWeps0;};case 1: {_aiweapon = DZMSWe>5:28:10 Error Undefined variable in expression: dzmsweps05:28:10 File z\addons\dayz_server\DZMS\DZMSFunctions.sqf, line 1985:28:10 Error in expression < {_aiweapon = DZMSWeps3;};};_weapon = _aiweapon call BIS_fnc_selectRandom;_ma>5:28:10 Error position: <_aiweapon call BIS_fnc_selectRandom;_ma>5:28:10 Error Undefined variable in expression: _aiweapon5:28:10 File z\addons\dayz_server\DZMS\DZMSFunctions.sqf, line 2035:28:10 Error in expression <"_i" from 1 to 3 do {_unit addMagazine _magazine;};_unit addWeapon _weapon;_>5:28:10 Error position: <_magazine; Link to comment Share on other sites More sharing options...
TheVampire Posted June 4, 2014 Report Share Posted June 4, 2014 Make sure you download and replace the whole file with the one on github. Link to comment Share on other sites More sharing options...
insertcoins Posted June 4, 2014 Author Report Share Posted June 4, 2014 getting this one with the latest release: 7:09:05 Error Undefined variable in expression: _sleeptime 7:09:05 File z\addons\dayz_server\DZMS\DZMSFunctions.sqf, line 253 7:09:05 Error in expression <nterval; (diag_tickTime - _startTime) > _sleepTime;}; }; DZMSPurgeObject = { _> 7:09:05 Error position: <_sleepTime;}; }; DZMSPurgeObject = { _> 7:09:05 Error Undefined variable in expression: _sleeptime 7:09:05 File z\addons\dayz_server\DZMS\DZMSFunctions.sqf, line 253 Link to comment Share on other sites More sharing options...
jgalla5400 Posted June 4, 2014 Report Share Posted June 4, 2014 Make sure you download and replace the whole file with the one on github.I did use the whole fileDone it again now and restarting to see if it was just me being stupid :) Link to comment Share on other sites More sharing options...
jgalla5400 Posted June 4, 2014 Report Share Posted June 4, 2014 SO now I get the below :-_cntMis = count DZMSMinorArr>8:07:04 Error Undefined variable in expression: _wait8:07:04 File z\addons\dayz_server\DZMS\Scripts\DZMSMinTimer.sqf, line 218:07:09 Error in expression <{sleep 5;(diag_tickTime - _startTime) > _wait;};_cntMis = count DZMSMajorArr>8:07:09 Error position: <_wait;};_cntMis = count DZMSMajorArr>8:07:09 Error Undefined variable in expression: _wait8:07:09 File z\addons\dayz_server\DZMS\Scripts\DZMSMajTimer.sqf, line 218:07:09 Error in expression <{sleep 5;(diag_tickTime - _startTime) > _wait;}; Link to comment Share on other sites More sharing options...
insertcoins Posted June 5, 2014 Author Report Share Posted June 5, 2014 still getting the error, anyone got a fix? Link to comment Share on other sites More sharing options...
TheVampire Posted June 5, 2014 Report Share Posted June 5, 2014 Really not sure what could be wrong with the DZMSSleep Function. All the code seems correct, and it can't be a scope error. Link to comment Share on other sites More sharing options...
insertcoins Posted June 5, 2014 Author Report Share Posted June 5, 2014 Hmm, weird. Link to comment Share on other sites More sharing options...
Falcon911 Posted June 5, 2014 Report Share Posted June 5, 2014 _> 14:50:54 Error Undefined variable in expression: _sleeptime 14:50:54 File z\addons\dayz_server\DZMS\DZMSFunctions.sqf, line 253 14:50:54 Error in expression <nterval; (diag_tickTime - _startTime) > _sleepTime;}; }; DZMSPurgeObject = { _> 14:50:54 Error position: <_sleepTime;}; }; DZMSPurgeObject = { _> 14:50:54 Error Undefined variable in expression: _sleeptime 14:50:54 File z\addons\dayz_server\DZMS\DZMSFunctions.sqf, line 253 Same issue but different outcome on my end.. New beta?? Link to comment Share on other sites More sharing options...
jgalla5400 Posted June 6, 2014 Report Share Posted June 6, 2014 seeing this one a lot aswell_unit addWeapon _weapon;_>11:16:54 Error Undefined variable in expression: _magazine11:16:54 File z\addons\dayz_server\DZMS\Scripts\DZMSAISpawn.sqf, line 7211:16:54 Error in expression <"_i" from 1 to 3 do {_unit addMagazine _magazine;}; Link to comment Share on other sites More sharing options...
clemontine36 Posted June 10, 2014 Report Share Posted June 10, 2014 18:10:07 Error position: <_x knowsAbout EastMHQ > 0} count [WestSl> 18:10:07 Error Undefined variable in expression: _x 18:10:07 File ca\missions\MPScenarios\MP_WarWelcome.utes\init.sqf, line 22 18:10:07 Error in expression <e "Init.sqf8", ""]] call RE; Got this after using that fix? It crashed the server! Link to comment Share on other sites More sharing options...
jgalla5400 Posted June 10, 2014 Report Share Posted June 10, 2014 Looks like an error in that init.sqf file , get the file into notepad ++ and look at line 22 Looks like an extra " Might not be that obvious but worth a try I haven't had any issues after using Vampires updates other than a few of my own miss types :) Link to comment Share on other sites More sharing options...
TheVampire Posted June 10, 2014 Report Share Posted June 10, 2014 If you are getting Weapon and Skill errors, make sure you have all the arrays located in the DZMSAIConfig.sqf file. DZMSWeps0 and DZMSSkills0 mainly. Link to comment Share on other sites More sharing options...
clemontine36 Posted June 11, 2014 Report Share Posted June 11, 2014 //disable greeting menu player setVariable ["BIS_noCoreConversations", true]; //disable radio messages to be heard and shown in the left lower corner of the screen enableRadio true; // May prevent "how are you civillian?" messages from NPC enableSentences true; Enablesentecestrue; is line 22? Looks fine to me this is my DZMSAIConfig: http://pastebin.com/2e1Lfbfb thanks Link to comment Share on other sites More sharing options...
TheVampire Posted June 11, 2014 Report Share Posted June 11, 2014 getting this one with the latest release: 7:09:05 Error Undefined variable in expression: _sleeptime 7:09:05 File z\addons\dayz_server\DZMS\DZMSFunctions.sqf, line 253 7:09:05 Error in expression <nterval; (diag_tickTime - _startTime) > _sleepTime;}; }; DZMSPurgeObject = { _> 7:09:05 Error position: <_sleepTime;}; }; DZMSPurgeObject = { _> 7:09:05 Error Undefined variable in expression: _sleeptime 7:09:05 File z\addons\dayz_server\DZMS\DZMSFunctions.sqf, line 253 Can you post the mission that runs right before it errors to pastebin? Link to comment Share on other sites More sharing options...
insertcoins Posted June 11, 2014 Author Report Share Posted June 11, 2014 It was the moment dzms was initiated, before a mission started.\ For some reason, copy pasting dzms from my other server fixed it. No idea how or why, error is gone. Link to comment Share on other sites More sharing options...
MrInfro Posted June 11, 2014 Report Share Posted June 11, 2014 Problem is with the last beta patch. A lots of scripts now get Undefined variable and such. Link to comment Share on other sites More sharing options...
insertcoins Posted June 11, 2014 Author Report Share Posted June 11, 2014 Problem is with the last beta patch. A lots of scripts now get Undefined variable and such. Yes. Link to comment Share on other sites More sharing options...
codyr Posted June 11, 2014 Report Share Posted June 11, 2014 15:37:34 [DZMS]: Starting DayZ Mission System. 15:37:34 [DZMS]: Relations not found! Using DZMS Relations. 15:37:34 Warning Message: Script z\addons\dayz_server\DZMS\DZMSConfig.sqf not found 15:37:34 [DZMS]: Currently Running Version: any 15:37:34 [DZMS]: Mission and Extended Configuration Loaded! 15:37:34 [DZMS]: chernarus Detected. Map Specific Settings Adjusted! 15:37:34 [DZMS]: DayZ Epoch Detected! Some Scripts Adjusted! 15:37:34 Error in expression <[DZMS]: Currently Running Version: %1", DZMSVersion]; if (DZMSVersion != "1.1F> 15:37:34 Error position: <DZMSVersion]; if (DZMSVersion != "1.1F> 15:37:34 Error Undefined variable in expression: dzmsversion 15:37:34 File mpmissions\DayZ_Epoch_11.Chernarus\EMS\DZMSInit.sqf, line 74 15:37:34 [DZMS]: Loading ExecVM Functions. 15:37:34 [DZMS]: Loading Compiled Functions. 15:37:34 [DZMS]: Loading All Other Functions. 15:37:34 [DZMS]: Mission Functions Script Loaded! 15:37:34 [DZMS]: Major Mission Clock Starting! 15:37:34 Error in expression <hile {_run} do { _wait = round(random _timeVar); [_wait,5] call DZMSSleep; > 15:37:34 Error position: <_timeVar); [_wait,5] call DZMSSleep; > 15:37:34 Error Undefined variable in expression: _timevar 15:37:34 File mpmissions\DayZ_Epoch_11.Chernarus\EMS\Scripts\DZMSMajTimer.sqf, line 19 15:37:34 Error in expression <s","_ranMis","_varName"]; _timeDiff = DZMSMajorMax - DZMSMajorMin; _timeVar = > 15:37:34 Error position: <DZMSMajorMax - DZMSMajorMin; _timeVar = > 15:37:34 Error Undefined variable in expression: dzmsmajormax 15:37:34 File mpmissions\DayZ_Epoch_11.Chernarus\EMS\Scripts\DZMSMajTimer.sqf, line 9 15:37:34 [DZMS]: Minor Mission Clock Starting! 15:37:34 Error in expression <hile {_run} do { _wait = round(random _timeVar); [_wait,5] call DZMSSleep; > 15:37:34 Error position: <_timeVar); [_wait,5] call DZMSSleep; > 15:37:34 Error Undefined variable in expression: _timevar 15:37:34 File mpmissions\DayZ_Epoch_11.Chernarus\EMS\Scripts\DZMSMinTimer.sqf, line 19 15:37:34 Error in expression <s","_ranMis","_varName"]; _timeDiff = DZMSMinorMax - DZMSMinorMin; _timeVar = > 15:37:34 Error position: <DZMSMinorMax - DZMSMinorMin; _timeVar = > 15:37:34 Error Undefined variable in expression: dzmsminormax 15:37:34 File mpmissions\DayZ_Epoch_11.Chernarus\EMS\Scripts\DZMSMinTimer.sqf, line 9 15:37:34 [DZMS]: Mission Marker Loop for JIPs Starting! 15:37:39 Error in expression <nterval; (diag_tickTime - _startTime) > _sleepTime;}; }; DZMSPurgeObject = { _> 15:37:39 Error position: <_sleepTime;}; }; DZMSPurgeObject = { _> 15:37:39 Error Undefined variable in expression: _sleeptime 15:37:39 File mpmissions\DayZ_Epoch_11.Chernarus\EMS\DZMSFunctions.sqf, line 253 15:37:39 Error in expression <nterval; (diag_tickTime - _startTime) > _sleepTime;}; }; DZMSPurgeObject = { _> 15:37:39 Error position: <_sleepTime;}; }; DZMSPurgeObject = { _> 15:37:39 Error Undefined variable in expression: _sleeptime 15:37:39 File mpmissions\DayZ_Epoch_11.Chernarus\EMS\DZMSFunctions.sqf, line 253 Vampire here you are http://pastebin.com/iXgxT1kw edit;; I fixed the error message already, by where the file location was pointed to i forgot to change. Double edit;; Seems it's all fixed possibly due to the simple slight misdirection of where the path was set too in my DZMSConfig.sqf will keep you updated. triple edit;; lol, how would i go about adding the EM1 mission in without it erroring out and saying it cannot find it when trying to run it. Link to comment Share on other sites More sharing options...
TheVampire Posted June 11, 2014 Report Share Posted June 11, 2014 In DZMSConfig.sqf. DZMSMajorArray = ["SM1","SM2","SM3","SM4","SM5","SM6","EM1"]; codyr 1 Link to comment Share on other sites More sharing options...
hogscraper Posted June 12, 2014 Report Share Posted June 12, 2014 Wanted to put this out there as it worked for me. I found a quick fix for the parachutes not cleaning up after the guys land while using heli_para.sqf. if (!isServer)exitWith{}; private ["_cleanheli","_drop","_helipos","_gunner2","_gunner","_playerPresent","_skillarray","_aicskill","_aiskin","_aigear","_helipatrol","_gear","_skin","_backpack","_mags","_gun","_triggerdis","_startingpos","_aiweapon","_mission","_heli_class","_startPos","_helicopter","_unitGroup","_pilot","_skill","_paranumber","_position","_wp1"]; _position = _this select 0; _startingpos = _this select 1; _triggerdis = _this select 2; _heli_class = _this select 3; _paranumber = _this select 4; _skill = _this select 5; _gun = _this select 6; _mags = _this select 7; _backpack = _this select 8; _skin = _this select 9; _gear = _this select 10; _helipatrol = _this select 11; if (count _this > 12) then { _mission = _this select 12; } else { _mission = False; }; //_delay = _this select 12; _aiweapon = []; _aigear = []; _aiskin = ""; _aicskill = []; _skillarray = ["aimingAccuracy","aimingShake","aimingSpeed","endurance","spotDistance","spotTime","courage","reloadSpeed","commanding","general"]; // wait for player to come into area. diag_log "WAI: Paradrop Waiting for player"; waitUntil { sleep 10; _playerPresent = false; {if((isPlayer _x) AND (_x distance [(_position select 0),(_position select 1),0] <= _triggerdis)) then {_playerPresent = true};}forEach playableUnits; (_playerPresent) }; //Delay before chopper spawns in. //sleep _delay; //Spawing in Chopper and crew diag_log format ["WAI: Spawning a %1 with %2 units to be paradropped at %3",_heli_class,_paranumber,_position]; _unitGroup = createGroup east; _pilot = _unitGroup createUnit ["Bandit1_DZ", [0,0,0], [], 1, "NONE"]; [_pilot] joinSilent _unitGroup; ai_air_units = (ai_air_units +1); _helicopter = createVehicle [_heli_class, [(_startingpos select 0),(_startingpos select 1), 100], [], 0, "FLY"]; _helicopter setFuel 1; _helicopter engineOn true; _helicopter setVehicleAmmo 1; _helicopter flyInHeight 150; _helicopter addEventHandler ["GetOut",{(_this select 0) setFuel 0;(_this select 0) setDamage 1;}]; _pilot assignAsDriver _helicopter; _pilot moveInDriver _helicopter; _gunner = _unitGroup createUnit ["Bandit1_DZ", [0,0,0], [], 1, "NONE"]; _gunner assignAsGunner _helicopter; _gunner moveInTurret [_helicopter,[0]]; [_gunner] joinSilent _unitGroup; ai_air_units = (ai_air_units +1); _gunner2 = _unitGroup createUnit ["Bandit1_DZ", [0,0,0], [], 1, "NONE"]; _gunner2 assignAsGunner _helicopter; _gunner2 moveInTurret [_helicopter,[1]]; [_gunner2] joinSilent _unitGroup; ai_air_units = (ai_air_units +1); {_pilot setSkill [_x,1]} forEach _skillarray; {_gunner setSkill [_x,0.7]} forEach _skillarray; {_gunner2 setSkill [_x,0.7]} forEach _skillarray; {_x addweapon "Makarov";_x addmagazine "8Rnd_9x18_Makarov";_x addmagazine "8Rnd_9x18_Makarov";} forEach (units _unitgroup); PVDZE_serverObjectMonitor set [count PVDZE_serverObjectMonitor,_helicopter]; [_helicopter] spawn veh_monitor; _unitGroup allowFleeing 0; _unitGroup setBehaviour "CARELESS"; _unitGroup setSpeedMode "FULL"; _unitGroup setCombatMode "RED"; // Add waypoints to the chopper group. _wp = _unitGroup addWaypoint [[(_position select 0), (_position select 1)], 0]; _wp setWaypointType "MOVE"; _wp setWaypointCompletionRadius 100; _DeleteP=[]; _drop = True; _helipos = getpos _helicopter; while {(alive _helicopter) AND (_drop)} do { private ["_magazine","_weapon","_weaponandmag","_chute","_para","_pgroup"]; sleep 1; _helipos = getpos _helicopter; if (_helipos distance [(_position select 0),(_position select 1),100] <= 200) then { _pgroup = createGroup east; for "_x" from 1 to _paranumber do { _helipos = getpos _helicopter; switch (_gun) do { case 0 : {_aiweapon = ai_wep0;}; case 1 : {_aiweapon = ai_wep1;}; case 2 : {_aiweapon = ai_wep2;}; case 3 : {_aiweapon = ai_wep3;}; case 4 : {_aiweapon = ai_wep4;}; case "Random" : {_aiweapon = ai_wep_random call BIS_fnc_selectRandom;}; }; _weaponandmag = _aiweapon call BIS_fnc_selectRandom; _weapon = _weaponandmag select 0; _magazine = _weaponandmag select 1; switch (_gear) do { case 0 : {_aigear = ai_gear0;}; case 1 : {_aigear = ai_gear1;}; case 2 : {_aigear = ai_gear2;}; case 3 : {_aigear = ai_gear3;}; case 4 : {_aigear = ai_gear4;}; case "Random" : {_aigear = ai_gear_random call BIS_fnc_selectRandom;}; }; _gearmagazines = _aigear select 0; _geartools = _aigear select 1; if (_skin == "") then { _aiskin = ai_skin call BIS_fnc_selectRandom; } else { _aiskin = _skin }; _para = _pgroup createUnit [_aiskin, [0,0,0], [], 1, "PRIVATE"]; if (_backpack == "") then { _aipack = ai_packs call BIS_fnc_selectRandom; } else { _aipack = _backpack }; _para enableAI "TARGET"; _para enableAI "AUTOTARGET"; _para enableAI "MOVE"; _para enableAI "ANIM"; _para enableAI "FSM"; _para setCombatMode ai_combatmode; _para setBehaviour ai_behaviour; removeAllWeapons _para; removeAllItems _para; _para addweapon _weapon; for "_i" from 1 to _mags do {_para addMagazine _magazine;}; _para addBackpack _aipack; {_para addMagazine _x} forEach _gearmagazines; {_para addweapon _x} forEach _geartools; if (ai_custom_skills) then { switch (_skill) do { case 0 : {_aicskill = ai_custom_array1;}; case 1 : {_aicskill = ai_custom_array2;}; case 2 : {_aicskill= ai_custom_array3;}; case "Random" : {_aicskill = ai_skill_random call BIS_fnc_selectRandom;}; }; {_para setSkill [(_x select 0),(_x select 1)]} forEach _aicskill; } else { {_para setSkill [_x,_skill]} forEach _skillarray; }; ai_ground_units = (ai_ground_units + 1); _para addEventHandler ["Killed",{[_this select 0, _this select 1, "ground"] call on_kill;}]; _chute = createVehicle ["ParachuteEast", [(_helipos select 0), (_helipos select 1), (_helipos select 2)], [], 0, "NONE"]; _DeleteP=_DeleteP + [_chute]; _para moveInDriver _chute; [_para] joinSilent _pgroup; sleep 1.5; }; _drop = false; _pgroup selectLeader ((units _pgroup) select 0); diag_log format ["WAI: Spawned in %1 ai units for paradrop",_paranumber]; [_pgroup, _position,_mission] call group_waypoints; }; }; if (_helipatrol) then { _wp1 = _unitGroup addWaypoint [[(_position select 0),(_position select 1)], 100]; _wp1 setWaypointType "SAD"; _wp1 setWaypointCompletionRadius 150; _unitGroup setBehaviour "AWARE"; _unitGroup setSpeedMode "FULL"; _unitGroup setCombatMode "RED"; {_x addEventHandler ["Killed",{[_this select 0, _this select 1, "air"] call on_kill;}];} forEach (units _unitgroup); } else { {_x doMove [(_startingpos select 0), (_startingpos select 1), 100]} forEach (units _unitGroup); _unitGroup setBehaviour "CARELESS"; _unitGroup setSpeedMode "FULL"; _unitGroup setCombatMode "RED"; _cleanheli = True; while {_cleanheli} do { sleep 20; _helipos1 = getpos _helicopter; if ((_helipos1 distance [(_startingpos select 0),(_startingpos select 1),100] <= 200) OR (!alive _helicopter)) then { deleteVehicle _helicopter; {deleteVehicle _x} forEach (units _unitgroup); sleep 10; deleteGroup _unitGroup; ai_air_units = (ai_air_units -3); diag_log "WAI: Paradrop cleaned up"; _cleanheli = False; }; }; }; sleep 35; {deleteVehicle _x} forEach _DeleteP; I defined an array _DeleteP just above the while loop start. Then inside the loop that spawns the guys and assigns them to a parachute I added _DeleteP=_DeleteP + [_chute]; and at the very end of the script I use sleep to give them 35 seconds to land and delete everything inside the _DeleteP array. Depending on terrain or other factors you may want to adjust the 35 seconds but that seems to work for me. Hope this helps! hogs Link to comment Share on other sites More sharing options...
TheVampire Posted June 12, 2014 Report Share Posted June 12, 2014 Wanted to put this out there as it worked for me. I found a quick fix for the parachutes not cleaning up after the guys land while using heli_para.sqf. I defined an array _DeleteP just above the while loop start. Then inside the loop that spawns the guys and assigns them to a parachute I added _DeleteP=_DeleteP + [_chute]; and at the very end of the script I use sleep to give them 35 seconds to land and delete everything inside the _DeleteP array. Depending on terrain or other factors you may want to adjust the 35 seconds but that seems to work for me. Hope this helps! hogs That is WickedAI, not DZMS. WickedAI has it's own post dedicated to it in a different forum section. Link to comment Share on other sites More sharing options...
hogscraper Posted June 12, 2014 Report Share Posted June 12, 2014 Right, sorry about that. I was reading this thread about the variables and saw someone complaining about parachutes not disappearing so I got confused. Link to comment Share on other sites More sharing options...
clemontine36 Posted June 13, 2014 Report Share Posted June 13, 2014 Vampire Any idea about my problem?(Posted page 2) thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now