calamity Posted August 28, 2014 Report Share Posted August 28, 2014 I get this error in my server RPT file 5:17:29 Error in expression <EANUP: Deleted %1 fireplaces out of %2",_delQtyNull,_qty]); }; }; server_spawnCl> 5:17:29 Error position: <_delQtyNull,_qty]); }; }; server_spawnCl> 5:17:29 Error Undefined variable in expression: _delqtynull 5:17:29 File z\addons\dayz_server\init\server_functions.sqf, line 862 The Undefined variable _delqtynull is not defined anywhere in my server_functions.sqf I look at a fresh server_functions.sqf and it does not have it defined either I found an older guessing 1.0.4.2 release and its defined MY server_functions.sqf DZE_DYN_HackerCheck = nil;}; server_spawnCleanFire = { private ["_delQtyFP","_qty","_delQtyNull","_missionFires"]; _missionFires = allMissionObjects "Land_Fire_DZ"; _delQtyFP = 0; { if (local _x) then { deleteVehicle _x; sleep 0.025; _delQtyFP = _delQtyFP + 1; }; sleep 0.001; } count _missionFires; if (_delQtyFP > 0) then { _qty = count _missionFires; diag_log (format["CLEANUP: Deleted %1 fireplaces out of %2",_delQtyNull,_qty]); }; }; server_spawnCleanLoot = { older server_functions.sqf from DEC 2013 server_spawnCleanNull = { private ["_delQtyNull"]; _delQtyNull = 0; { if (isNull _x) then { //diag_log (format["CLEANUP: Purge performed on null OBJ: %1",_x]); _x call dayz_perform_purge; sleep 1; _delQtyNull = _delQtyNull + 1; }; sleep 0.001; } forEach (allMissionObjects ""); if (_delQtyNull > 0) then { diag_log (format["CLEANUP: Deleted %1 null objects",_delQtyNull]); }; }; server_spawnCleanFire = { private ["_delQtyFP","_qty","_delQtyNull","_missionFires"]; _missionFires = allMissionObjects "Land_Fire_DZ"; _delQtyFP = 0; { if (local _x) then { deleteVehicle _x; sleep 0.025; _delQtyFP = _delQtyFP + 1; }; sleep 0.001; } forEach _missionFires; if (_delQtyFP > 0) then { _qty = count _missionFires; diag_log (format["CLEANUP: Deleted %1 fireplaces out of %2",_delQtyNull,_qty]); }; }; server_spawnCleanLoot = { should I just add it back in ?? Can anyone look at their server_fucktions.sqf and see if they have _delQtyNull defined Link to comment Share on other sites More sharing options...
0 calamity Posted August 28, 2014 Author Report Share Posted August 28, 2014 thankz for that ..... Link to comment Share on other sites More sharing options...
0 calamity Posted August 29, 2014 Author Report Share Posted August 29, 2014 Is there a fix for this error ?? looking at another server_functions.sqf looks the same.... know where I can find the 1.0.5.2 ?? 21:17:33 Error in expression <_x getVariable["permaLoot", false];if (!_keep) then { _created = _x getVariable> 21:17:33 Error position: <!_keep) then { _created = _x getVariable> 21:17:33 Error !: Type Number, expected Bool 21:17:33 File z\addons\dayz_server\init\server_functions.sqf, line 874 My line 874 in server_functions.sqf if (!isNull _x) then { _keep = _x getVariable["permaLoot", false]; if (!_keep) then { _created = _x getVariable["created", -0.1]; if (_created == -0.1) then{ _x setVariable["created", _dateNow, false]; _created = _dateNow; } else { _age = (_dateNow - _created) * 525948; if (_age > 20) then{ _nearby = { (isPlayer _x) && (alive _x) } count(_x nearEntities[["CAManBase", "AllVehicles"], 130]); if (_nearby == 0) then{ deleteVehicle _x; sleep 0.025; _delQty = _delQty + 1; }; }; }; }; }; Link to comment Share on other sites More sharing options...
0 calamity Posted August 29, 2014 Author Report Share Posted August 29, 2014 THANKZ AGAIN....... :) Link to comment Share on other sites More sharing options...
0 calamity Posted August 29, 2014 Author Report Share Posted August 29, 2014 wow that broke the server_monitor its like a chain of events fix this it breaks that fix that it breaks something else.. when I added } forEach _missonAnimals; server_spawnCleanAnimals = { private ["_pos","_delQtyAnimal","_qty","_missonAnimals","_nearby"]; _missonAnimals = entities "CAAnimalBase"; _delQtyAnimal = 0; { if (local _x) then { _x call dayz_perform_purge; sleep 0.05; _delQtyAnimal = _delQtyAnimal + 1; } else { if (!alive _x) then { _pos = getPosATL _x; if (count _pos > 0) then { _nearby = {(isPlayer _x) && (alive _x)} count (_pos nearEntities [["CAManBase","AllVehicles"], 130]); if (_nearby==0) then { _x call dayz_perform_purge; sleep 0.05; _delQtyAnimal = _delQtyAnimal + 1; }; }; }; }; sleep 0.001; } count _missonAnimals; } forEach _missonAnimals; if (_delQtyAnimal > 0) then { _qty = count _missonAnimals; diag_log (format["CLEANUP: Deleted %1 Animals out of %2",_delQtyAnimal,_qty]); }; }; server wouldnt load with lotz of these these errors diag_log ("HIVE: S> 12:06:18 Error position: <spawn_roadblocks; }; diag_log ("HIVE: S> 12:06:18 Error Undefined variable in expression: spawn_roadblocks 12:06:18 File z\addons\dayz_server\system\server_monitor.sqf, line 482 12:06:18 Error in expression <rom 1 to MaxDynamicDebris do { [] spawn spawn_roadblocks; }; if(isnil "dayz_MapA> 12:06:19 Error position: <spawn_mineveins; }; if(isnil "dayz_MapA> 12:06:19 Error Undefined variable in expression: spawn_mineveins 12:06:19 File z\addons\dayz_server\system\server_monitor.sqf, line 492 12:06:19 Error in expression <x" from 1 to MaxMineVeins do { [] spawn spawn_mineveins; }; when I look at I believe 1.0.5.2 server_monitor.sqf the variables are defined but are not defined in mine.. I have none of this...... [spoiler] spawn_ammosupply = { private ["_position","_veh","_istoomany","_marker","_spawnveh","_WreckList"]; if (isDedicated) then { _WreckList = ["Supply_Crate_DZE"]; waitUntil{!isNil "BIS_fnc_selectRandom"}; _position = RoadList call BIS_fnc_selectRandom; _position = _position modelToWorld [0,0,0]; waitUntil{!isNil "BIS_fnc_findSafePos"}; _position = [_position,5,20,5,0,2000,0] call BIS_fnc_findSafePos; if ((count _position) == 2) then { _istoomany = _position nearObjects ["All",5]; if((count _istoomany) > 0) exitWith { diag_log("DEBUG VEIN: Too many at " + str(_position)); }; _spawnveh = _WreckList call BIS_fnc_selectRandom; if(DZEdebug) then { _marker = createMarker [str(_position) , _position]; _marker setMarkerShape "ICON"; _marker setMarkerType "DOT"; _marker setMarkerText str(_spawnveh); }; _veh = createVehicle [_spawnveh,_position, [], 0, "CAN_COLLIDE"]; _veh enableSimulation false; _veh setDir round(random 360); _veh setpos _position; _veh setVariable ["ObjectID","1",true]; }; }; }; DZE_LocalRoadBlocks = []; spawn_roadblocks = { private ["_position","_veh","_istoomany","_marker","_spawnveh","_WreckList"]; _WreckList = ["SKODAWreck","HMMWVWreck","UralWreck","datsun01Wreck","hiluxWreck","datsun02Wreck","UAZWreck","Land_Misc_Garb_Heap_EP1","Fort_Barricade_EP1","Rubbish2"]; waitUntil{!isNil "BIS_fnc_selectRandom"}; if (isDedicated) then { _position = RoadList call BIS_fnc_selectRandom; _position = _position modelToWorld [0,0,0]; waitUntil{!isNil "BIS_fnc_findSafePos"}; _position = [_position,0,10,5,0,2000,0] call BIS_fnc_findSafePos; if ((count _position) == 2) then { // Get position with ground _istoomany = _position nearObjects ["All",5]; if((count _istoomany) > 0) exitWith { diag_log("DEBUG: Too many at " + str(_position)); }; waitUntil{!isNil "BIS_fnc_selectRandom"}; _spawnveh = _WreckList call BIS_fnc_selectRandom; if(DZEdebug) then { _marker = createMarker [str(_position) , _position]; _marker setMarkerShape "ICON"; _marker setMarkerType "DOT"; _marker setMarkerText str(_spawnveh); }; _veh = createVehicle [_spawnveh,_position, [], 0, "CAN_COLLIDE"]; _veh enableSimulation false; _veh setDir round(random 360); // Randomize placement a bit _veh setpos _position; _veh setVariable ["ObjectID","1",true]; }; }; }; spawn_mineveins = { private ["_position","_veh","_istoomany","_marker","_spawnveh","_positions"]; if (isDedicated) then { _position = [getMarkerPos "center",0,(HeliCrashArea*0.75),10,0,2000,0] call BIS_fnc_findSafePos; if ((count _position) == 2) then { _positions = selectBestPlaces [_position, 500, "(1 + forest) * (1 + hills) * (1 - houses) * (1 - sea)", 10, 5]; _position = (_positions call BIS_fnc_selectRandom) select 0; // Get position with ground _istoomany = _position nearObjects ["All",10]; if((count _istoomany) > 0) exitWith { diag_log("DEBUG VEIN: Too many objects at " + str(_position)); }; if(isOnRoad _position) exitWith { diag_log("DEBUG VEIN: on road " + str(_position)); }; _spawnveh = ["Iron_Vein_DZE","Iron_Vein_DZE","Iron_Vein_DZE","Iron_Vein_DZE","Iron_Vein_DZE","Silver_Vein_DZE","Silver_Vein_DZE","Silver_Vein_DZE","Gold_Vein_DZE","Gold_Vein_DZE"] call BIS_fnc_selectRandom; if(DZEdebug) then { _marker = createMarker [str(_position) , _position]; _marker setMarkerShape "ICON"; _marker setMarkerType "DOT"; _marker setMarkerText str(_spawnveh); }; //diag_log("DEBUG: Spawning a crashed " + _spawnveh + " with " + _spawnloot + " at " + str(_position)); _veh = createVehicle [_spawnveh,_position, [], 0, "CAN_COLLIDE"]; _veh enableSimulation false; // Randomize placement a bit _veh setDir round(random 360); _veh setpos _position; _veh setVariable ["ObjectID","1",true]; }; }; }; now my dang spoiler wont work..... I think Im done for the day Link to comment Share on other sites More sharing options...
Question
calamity
I get this error in my server RPT file
The Undefined variable _delqtynull is not defined anywhere in my server_functions.sqf
I look at a fresh server_functions.sqf and it does not have it defined either
I found an older guessing 1.0.4.2 release and its defined
MY server_functions.sqf
should I just add it back in ??
Can anyone look at their server_fucktions.sqf and see if they have _delQtyNull defined
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now