Jump to content
  • 0

Sarge AI RPT error


SupremeHorse

Question

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

9 answers to this question

Recommended Posts

  • 0

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

  • 0

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

  • 0

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

  • 0

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

  • 0

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

  • 0

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...