DizzY DizzAsteR
New Member
The Thing EAST worked. thanks
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.
if (_object getVariable "Sarge" == 1) exitWith {};
<& (vehicle _x getVariable ["Mission",0] != 1) && !(vehicle _x in PVDZE_serverObj>
if (_object getVariable "Sarge" == 1) exitWith {};
/*
if (!_parachuteWest) then {
if ((typeOf _object) in SafeObjects) then {
} else {
if (_objectID == "0" && _uid == "0") then
{
_object_position = getPosATL _object;
#ifdef OBJECT_DEBUG
diag_log(format["Deleting object %1 with invalid ID at pos [%2,%3,%4]",
typeOf _object,
_object_position select 0,
_object_position select 1,
_object_position select 2]);
#endif
_isNotOk = true;
};
};
};
*/
_hummer setVariable ["Missions",1,true];
_coord1 = [4908.355,11216.505,0];
_coord2 = [6162.9888,11324.005,0];
_coord3 = [7761.3657,11569.265,0];
_coord4 = [8336.6055,10441.17,0];
_coord5 = [7201.0664,10400.667,0];
_coord6 = [6249.1104,9579.043,0];
_coord7 = [4763.3818,9802.2734,0];
_coord8 = [3675.6865,7353.2798,0];
_coord9 = [6815.6362,5599.0854,0];
_coord10 = [7532.0742,8164.3203,0];
_coord11 = [6046.6455,8771.2178,0];
_coord12 = [5266.6836,7273.8135,0];
23:28:12 Error in expression <";
};
if (_object getVariable "Sarge" == 1) exitWith {};
if (_object getVari>
23:28:12 Error position: <== 1) exitWith {};
if (_object getVari>
23:28:12 Error Generic error in expression
23:28:12 File z\addons\dayz_server\compile\server_updateObject.sqf, line 30
server_checkHackers = {
if (DZE_DYN_AntiStuck2nd > 3) then { DZE_DYN_HackerCheck = nil; DZE_DYN_AntiStuck2nd = 0; };
if(!isNil "DZE_DYN_HackerCheck") exitWith { DZE_DYN_AntiStuck2nd = DZE_DYN_AntiStuck2nd + 1;};
DZE_DYN_HackerCheck = true;
{
//if(vehicle _x != _x && !(vehicle _x in PVDZE_serverObjectMonitor) && (isPlayer _x) && !((typeOf vehicle _x) in DZE_safeVehicle)) then {
if (vehicle _x != _x && !(vehicle _x in PVDZE_serverObjectMonitor) && (isPlayer _x) && (vehicle _x getVariable ["Sarge",0] != 1) && !((typeOf vehicle _x) in DZE_safeVehicle)) then {
diag_log ("CLEANUP: KILLING A HACKER " + (name _x) + " " + str(_x) + " IN " + (typeOf vehicle _x));
(vehicle _x) setDamage 1;
_x setDamage 1;
sleep 0.25;
};
sleep 0.001;
} forEach allUnits;
DZE_DYN_HackerCheck = nil;
};
private ["_object","_type","_objectID","_uid","_lastUpdate","_needUpdate","_object_position","_object_inventory","_object_damage","_isNotOk","_parachuteWest","_firstTime","_object_killed","_object_repair","_isbuildable"];
_object = _this select 0;
if(isNull(_object)) exitWith {
diag_log format["Skipping Null Object: %1", _object];
};
_type = _this select 1;
_parachuteWest = ((typeOf _object == "ParachuteWest") or (typeOf _object == "ParachuteC"));
_isbuildable = (typeOf _object) in dayz_allowedObjects;
_isNotOk = false;
_firstTime = false;
_objectID = _object getVariable ["ObjectID","0"];
_uid = _object getVariable ["ObjectUID","0"];
if ((typeName _objectID != "string") || (typeName _uid != "string")) then
{
diag_log(format["Non-string Object: ID %1 UID %2", _objectID, _uid]);
//force fail
_objectID = "0";
_uid = "0";
};
// Missions
if (_object getVariable "Sarge" == 1) exitWith {};
// Halo Jump
if (_object getVariable ["bis_fnc_halo_now",0] == 1) exitWith {};
if (!_parachuteWest and !(locked _object)) then {
if (_objectID == "0" && _uid == "0" && (vehicle _object getVariable ["Sarge",0] != 1)) then
{
_object_position = getPosATL _object;
_isNotOk = true;
};
};
// do not update if buildable and not ok
if (_isNotOk and _isbuildable) exitWith { };
// delete if still not ok
if (_isNotOk) exitWith { deleteVehicle _object; diag_log(format["Deleting object %1 with invalid ID at pos [%2,%3,%4]",typeOf _object,_object_position select 0,_object_position select 1, _object_position select 2]); };
_lastUpdate = _object getVariable ["lastUpdate",time];
_needUpdate = _object in needUpdate_objects;
..........
.........
I don't use epoch, or DZAI , but why are you filtering "Sarge" when you don't use Sarge?...posted twice..sorry
I don't use epoch, or DZAI , but why are you filtering "Sarge" when you don't use Sarge?
line30 - if (isnil {_object getvariable "Sarge"}) then {_freakingVal = 0;} else {_freakingVal = _object getvariable ["Sarge","0"];};
line31- if (_freakingVal == 1) exitWith {};
19:35:48 Error in expression <riable ["Sarge","0"];};
if (_fuckingVal == 1) exitWith { };
if (!_parachuteWes>
19:35:48 Error position: <== 1) exitWith { };
if (!_parachuteWes>
19:35:48 Error Generic error in expression
19:35:48 File z\addons\dayz_server\compile\server_updateObject.sqf, line 31
No matter which missions system i use i get the same error....i even tried to do this:
Code:line30 - if (isnil {_object getvariable "Sarge"}) then {_freakingVal = 0;} else {_freakingVal = _object getvariable ["Sarge","0"];}; line31- if (_freakingVal == 1) exitWith {};
but still get:
Code:19:35:48 Error in expression <riable ["Sarge","0"];}; if (_fuckingVal == 1) exitWith { }; if (!_parachuteWes> 19:35:48 Error position: <== 1) exitWith { }; if (!_parachuteWes> 19:35:48 Error Generic error in expression 19:35:48 File z\addons\dayz_server\compile\server_updateObject.sqf, line 31
//if(vehicle _x != _x && !(vehicle _x in PVDZE_serverObjectMonitor) && (isPlayer _x) && !((typeOf vehicle _x) in DZE_safeVehicle)) then {
I have removed the hacker check from the .fsm file and added it in the server_functions.sqf and i am calling it from there of course.
//----------InitMissions--------//
MissionGo = 0;
MissionGoMinor = 0;
if (isServer) then {
SMarray = ["SM1","SM2","SM3","SM4","SM5","SM6","SM7","SM8","SM9","SM10","SM11","SM12","SM13"];
[] execVM "\z\addons\dayz_server\EMS\major\SMfinder.sqf"; //Starts major mission system
SMarray2 = ["SM1","SM2","SM3","SM4","SM5","SM6","SM7","SM8","SM9","SM10","SM11","SM12","SM13"];
[] execVM "\z\addons\dayz_server\EMS\minor\SMfinder.sqf"; //Starts minor mission system
};
//---------EndInitMissions------//
yea Im trying man lol you sound possibly more advanced than I am since I can't write my own code. I know epoch is a little different. I wish some of the more experienced epoch guys would chime in, I know they're out there. Is that your server_cleanup.fsm in the first link cause I didn't see the hacker line in there at all.. did you try completely quoting out the hacker part? if you're using infiSTAR you probably don't need to worry about that... but Im stumped and out of ideas. Sorry I couldn't be more helpful. Is it possible there is some kind of error when you're repacking your pbo?Hi, yeah i've tried EMS, Missions, any type of mission there is out there....They all work perfectly fine...I even edited the loot etc...markers show, markers get removed...bots firing, crates staying, no explosion when you get in veh etc.....BUT spam on the log for the server_updateObject function.....all the time with whatever mission.
My .fsm (cleaned from the function..)
http://pastebin.com/zxuaS65K
My server_updateObject.sqf with a small modification when it comes to the troubling function:
http://pastebin.com/WGvf3aw1
My server_updateObject.sqf , yesterday (before i tried to do anything possible to fix this)
http://pastebin.com/AT01u05T
Both files give the same error: Error Generic error in expression
I even tried to diag_log the variable for every freaking object that gets updated and i get:
"########FREAKING SARGE: 0"
"########FREAKING SARGE: 1"
which means its fine.....its either 0 or 1 the getvariable.
Why its not working when i place the server.pbo on the real server and not the test server, i dont know.
On the test server i tried it with 3 people....and no error no nothing...when i place the pbo on the real server and more than 10 start logging in...the error starts...and doesnt stop.
I've been coding for dayz epoch for a few months now....I not just a copy/paster so i can write some code of my own....but this bug....is really messing with my mojo. Its the ONLY bug i have in the logs...
Using: Epoch 1.0.3.1
infinistar AH (even with that disabled same error)
Battleye 1 (even with 0 same thing)
On this page: http://epochmod.com/forum/index.php?/topic/6556-server-cleanupfsm-once-and-for-all-solve-this/page-2
I have included my whole server.pbo and as you can see...2 pages of trying to fix it.
This error shouldn't be there....
ps: yeah my server_function.sqf is like that
-Thanks for taking the time though![]()