SupremeHorse Posted January 13, 2014 Report Share Posted January 13, 2014 Hello there! So i've installed Sarge AI 1.5.2 on my Epoch Server And this error keeps spamming this RPT log: 1:03:35 Error in expression <le ["Sarge",0] != 1) && !(vehicle _x in _safety) && (typeOf vehicle _x) != "Para> 1:03:35 Error position: <_safety) && (typeOf vehicle _x) != "Para> 1:03:35 Error Undefined variable in expression: _safety What should i do with the variable, _safety ? Should i just remove, !(vehicle _x in _safety) && ? This is what my killing a hacker section looks like in the server_cleanup.fsm name = "group_cleanup"; init = /*%FSM<STATEINIT""">*/"//Check for hackers" \n " {" \n " if(vehicle _x != _x && (vehicle _x getVariable [""Sarge"",0] != 1) && !(vehicle _x in _safety) && (typeOf vehicle _x) != ""ParachuteWest"") then {" \n " diag_log (""CLEANUP: KILLING A HACKER "" + (name _x) + "" "" + str(_x) + "" IN "" + (typeOf vehicle _x));" \n " (vehicle _x) setDamage 1;" \n " _x setDamage 1;" \n " };" \n Is this error the reason for the server lag after installing Sarge AI? The RPT is spammed with the same error multiple times a second. Please help :) Link to comment Share on other sites More sharing options...
0 i76 Posted January 13, 2014 Report Share Posted January 13, 2014 Yeah... a couple of days ago for no reason at all I started getting the same rpt spam from sarge... just tweaked it a little and this seems to work for me... if(vehicle _x != _x && (vehicle _x getVariable [""Sarge"",0] != 1) && !(vehicle _x in PVDZE_serverObjectMonitor) && (isPlayer _x) && !((typeOf vehicle _x) in DZE_safeVehicle)) then {" \n hope it helps Link to comment Share on other sites More sharing options...
0 SupremeHorse Posted January 13, 2014 Author Report Share Posted January 13, 2014 Yeah, i thought removing _safety would do the trick! Thank you for this! Since i have missions installed i also added an extra (vehicle _x getVariable [""Mission"",0] != 1) Looks like this now: if(vehicle _x != _x && (vehicle _x getVariable [""Mission"",0] != 1) && (vehicle _x getVariable [""Sarge"",0] != 1) && !(vehicle _x in PVDZE_serverObjectMonitor) && (isPlayer _x) && !((typeOf vehicle _x) in DZE_safeVehicle)) then {" \n No more RPT log spam! Link to comment Share on other sites More sharing options...
0 SupremeHorse Posted January 13, 2014 Author Report Share Posted January 13, 2014 nevermind...I keep getting the same error even though there is clearly no sign of the variable in there! In the RPT log: 9:17:37 "CLEANUP: INITIALIZING CLEANUP SCRIPT" 9:17:39 Error in expression <le ["Sarge",0] != 1) && !(vehicle _x in _safety) && (typeOf vehicle _x) != "Para> 9:17:39 Error position: <_safety) && (typeOf vehicle _x) != "Para> 9:17:39 Error Undefined variable in expression: _safety In my cleanup script: name = "group_cleanup"; init = /*%FSM<STATEINIT""">*/"//Check for hackers" \n " {" \n " if(vehicle _x != _x && (vehicle _x getVariable [""Mission"",0] != 1) && (vehicle _x getVariable [""Sarge"",0] != 1) && !(vehicle _x in PVDZE_serverObjectMonitor) && (isPlayer _x) && !((typeOf vehicle _x) in DZE_safeVehicle)) then {" \n " diag_log (""CLEANUP: KILLING A HACKER "" + (name _x) + "" "" + str(_x) + "" IN "" + (typeOf vehicle _x));" \n " (vehicle _x) setDamage 1;" \n " _x setDamage 1;" \n " };" \n No idea what is happening.. Link to comment Share on other sites More sharing options...
0 Sofabear Posted January 28, 2014 Report Share Posted January 28, 2014 nevermind...I keep getting the same error even though there is clearly no sign of the variable in there! In the RPT log: 9:17:37 "CLEANUP: INITIALIZING CLEANUP SCRIPT" 9:17:39 Error in expression <le ["Sarge",0] != 1) && !(vehicle _x in _safety) && (typeOf vehicle _x) != "Para> 9:17:39 Error position: <_safety) && (typeOf vehicle _x) != "Para> 9:17:39 Error Undefined variable in expression: _safety In my cleanup script: name = "group_cleanup"; init = /*%FSM<STATEINIT""">*/"//Check for hackers" \n " {" \n " if(vehicle _x != _x && (vehicle _x getVariable [""Mission"",0] != 1) && (vehicle _x getVariable [""Sarge"",0] != 1) && !(vehicle _x in PVDZE_serverObjectMonitor) && (isPlayer _x) && !((typeOf vehicle _x) in DZE_safeVehicle)) then {" \n " diag_log (""CLEANUP: KILLING A HACKER "" + (name _x) + "" "" + str(_x) + "" IN "" + (typeOf vehicle _x));" \n " (vehicle _x) setDamage 1;" \n " _x setDamage 1;" \n " };" \n No idea what is happening.. Did you find a solution for this ? Link to comment Share on other sites More sharing options...
0 SupremeHorse Posted January 28, 2014 Author Report Share Posted January 28, 2014 Yes, I did! Link to comment Share on other sites More sharing options...
0 insertcoins Posted January 28, 2014 Report Share Posted January 28, 2014 *sigh* Could you tell us? Link to comment Share on other sites More sharing options...
0 dracondarks Posted January 28, 2014 Report Share Posted January 28, 2014 i too would also like to know how you fixed this as i am getting the same error with _safety variable. Link to comment Share on other sites More sharing options...
0 SupremeHorse Posted January 28, 2014 Author Report Share Posted January 28, 2014 Replaced "_safety" with "PVDZE_serverObjectMonitor" My line now looks like this: if(vehicle _x != _x && (vehicle _x getVariable [""Mission"",0] != 1) && (vehicle _x getVariable [""Sarge"",0] != 1) && !(vehicle _x in PVDZE_serverObjectMonitor) && (isPlayer _x) && !((typeOf vehicle _x) in DZE_safeVehicle)) then {" \n First re-pbo didnt apply the change somehow. So just make sure you save changes and re-pbo properly. Link to comment Share on other sites More sharing options...
0 dracondarks Posted January 28, 2014 Report Share Posted January 28, 2014 ok thanks i will have a go at this fix and see if it stops my rpt file being spammed. well that has stopped that from spamming my rpt file thanks for that fix now i just get this that spams over now "Wrong text element 'null'" just spams over and over but don't seem to cause me any lag Link to comment Share on other sites More sharing options...
Question
SupremeHorse
Hello there!
So i've installed Sarge AI 1.5.2 on my Epoch Server
And this error keeps spamming this RPT log:
What should i do with the variable, _safety ?
Should i just remove, !(vehicle _x in _safety) && ?
This is what my killing a hacker section looks like in the server_cleanup.fsm
Is this error the reason for the server lag after installing Sarge AI? The RPT is spammed with the same error multiple times a second.
Please help :)
Link to comment
Share on other sites
9 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