RabidPanda01 Posted March 8, 2015 Report Share Posted March 8, 2015 So I am getting this error in my RPT.. This was the first instance of it... It seems to pop up randomly, no player or AI activity seems to instigate it. I have Zupa 3.0 using his files a myriad of scripts e.g. safe zones, ESS WAI DZAI Lift Tow Deployables I think it has something to do with the coin.. but can't be certain... or maybe even Infinistar? Any help would be appreciated. this is the error 11:57:14 Error in expression <_x getVariable["permaLoot", false]; if (!_keep) then { _created = _x getVariable> 11:57:14 Error position: <!_keep) then { _created = _x getVariable> 11:57:14 Error !: Type Number, expected Bool 11:57:14 File z\addons\dayz_server\init\server_functions.sqf, line 846 This is that Line in the server_functions.sqf server_spawnCleanLoot = { private ["_created","_delQty","_nearby","_age","_keep","_qty","_missionObjs","_dateNow"]; if (DZE_DYN_AntiStuck > 3) then { DZE_DYN_cleanLoot = nil; DZE_DYN_AntiStuck = 0; }; if(!isNil "DZE_DYN_cleanLoot") exitWith { DZE_DYN_AntiStuck = DZE_DYN_AntiStuck + 1;}; DZE_DYN_cleanLoot = true; _missionObjs = allMissionObjects "ReammoBox"; _delQty = 0; _dateNow = (DateToNumber date); { 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; }; }; }; }; }; sleep 0.001; } count _missionObjs; if (_delQty > 0) then { _qty = count _missionObjs; diag_log (format["CLEANUP: Deleted %1 Loot Piles out of %2",_delQty,_qty]); }; DZE_DYN_cleanLoot = nil; }; Link to comment Share on other sites More sharing options...
RabidPanda01 Posted March 8, 2015 Author Report Share Posted March 8, 2015 Thank you Ebay! I will start digging...I wonder what one it is...I don't have many, maybe a loot crate or something. Thanks again! Edit.. that didn't take long... if (true) then { _bldObj = createVehicle ["USBasicWeaponsBox", [2894.1621, 4511.9194, 5.4094419], [], 0, "CAN_COLLIDE"]; _bldObj = _bldObj; _bldObj setDir -43.746803; _bldObj setPos [2894.1621, 4511.9194, 5.4094419]; _bldObj setVariable ["PermaLoot",1,true]; [_bldObj] execVM "\z\addons\dayz_server\Maps\crates\prisoncrate.sqf"; }; So the _bldObj setVariable ["PermaLoot",1,true]; should be _bldObj setVariable ["PermaLoot",true]; Link to comment Share on other sites More sharing options...
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