Snakeyes
Member
I was watching some YouTube videos of Sarge AI. I like that there are friendly NPCs as well as bandit. I would like to try it out on my server, but I'm stymied by the following code and I'm not sure what to do to proceed.
I got stuck on this part from the quick installation guide at GitHub. I don't find these lines of code at all in my server_cleanup.fsm file. There may be similar code, but not in a conditional statement like those. If I can get beyond that, the rest is pretty straight forward.
[excerpt]
A2) Adjust your server_cleanup.fsm file for group cleanups
Check out the server_cleanup.fsm file that is part of this repository. Take it as an EXAMPLE (might differ based on server package that you use)how to adjust yours.
Look for (around line 290)
" if ((count units _x==0) ) then {" \n
" diag_log (""CLEANUP: DELETING A GROUP: "" + str(_x));" \n
and change the FIRST line to to:
" if ((count units _x==0) && !(_x getVariable[""SAR_protect"",false])) then {" \n
" diag_log (""CLEANUP: DELETING A GROUP: "" + str(_x));" \n
A2) Adjust your server_cleanup.fsm file for "Killed a hacker" fix
Depends which DayZ version you are running.
The line you are looking for is either:
" if (!(vehicle _x in _safety) && ((typeOf vehicle _x) != ""ParachuteWest"") ) then {" \n
Change to / add as shown:
" if (!(vehicle _x in _safety) && ((typeOf vehicle _x) != ""ParachuteWest"") && (vehicle _x getVariable [""Sarge"",0] != 1) ) then {" \n
Or the line looks like
if(vehicle _x != _x && !(vehicle _x in _safety) && (typeOf vehicle _x) != ""ParachuteWest"") then {" \n
Change that to
if(vehicle _x != _x && (vehicle _x getVariable [""Sarge"",0] != 1) && !(vehicle _x in _safety) && (ty
I got stuck on this part from the quick installation guide at GitHub. I don't find these lines of code at all in my server_cleanup.fsm file. There may be similar code, but not in a conditional statement like those. If I can get beyond that, the rest is pretty straight forward.
[excerpt]
A2) Adjust your server_cleanup.fsm file for group cleanups
Check out the server_cleanup.fsm file that is part of this repository. Take it as an EXAMPLE (might differ based on server package that you use)how to adjust yours.
Look for (around line 290)
" if ((count units _x==0) ) then {" \n
" diag_log (""CLEANUP: DELETING A GROUP: "" + str(_x));" \n
and change the FIRST line to to:
" if ((count units _x==0) && !(_x getVariable[""SAR_protect"",false])) then {" \n
" diag_log (""CLEANUP: DELETING A GROUP: "" + str(_x));" \n
A2) Adjust your server_cleanup.fsm file for "Killed a hacker" fix
Depends which DayZ version you are running.
The line you are looking for is either:
" if (!(vehicle _x in _safety) && ((typeOf vehicle _x) != ""ParachuteWest"") ) then {" \n
Change to / add as shown:
" if (!(vehicle _x in _safety) && ((typeOf vehicle _x) != ""ParachuteWest"") && (vehicle _x getVariable [""Sarge"",0] != 1) ) then {" \n
Or the line looks like
if(vehicle _x != _x && !(vehicle _x in _safety) && (typeOf vehicle _x) != ""ParachuteWest"") then {" \n
Change that to
if(vehicle _x != _x && (vehicle _x getVariable [""Sarge"",0] != 1) && !(vehicle _x in _safety) && (ty