Jump to content
  • 0

Blue Phoenix 1.0.4 Server_cleanup.fsm FIX


warriorn1

Question

Ok im gonna redo this, What i did was Put this in Server_cleanup.fsm

I use Both Bluephoenix ""Sarge"" and AI missions ""Mission""
 

 

I did this on my servers .PBO and it works 100% for me

 

What
Scender is saying works aswell, but i did this instead.

 

 

      name = "group_cleanup";
      init = /*%FSM<STATEINIT""">*/"//Check for hackers" \n
       " {" \n
       "    if(vehicle _x != _x && !(vehicle _x in PVDZE_serverObjectMonitor) && (isPlayer _x)  && !((typeOf vehicle _x) in DZE_safeVehicle) && (vehicle _x getVariable [""Mission"",0] != 1) && (vehicle _x getVariable [""Sarge"",0] != 1)) 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
       " } forEach allUnits;"/*%FSM</STATEINIT""">*/;
      precondition = /*%FSM<STATEPRECONDITION""">*/""/*%FSM</STATEPRECONDITION""">*/;
      class Links
Link to comment
Share on other sites

12 answers to this question

Recommended Posts

  • 0

dont touch server_cleanup.fsm!

 

just open dayz_server/init/server_function.sqf and search for

 

server_cleanupGroups (line 770) and server_checkHackers (line 783) ..do your changes there

 

 

cheers

 

I have no clue what I'd doing, I'm good with scripts and know small stuffs, but I've always had hell getting this admin tool to work, could you please explain what changes need to be made?

Link to comment
Share on other sites

  • 0

In dayz_server/init/server_functions.sqf 

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) && (vehicle _x getVariable ["Sarge",0] !=1)) 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;
};

Change Sarge to whatever variable you are using

Link to comment
Share on other sites

  • 0

In dayz_server/init/server_functions.sqf 

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) && (vehicle _x getVariable ["Sarge",0] !=1)) 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;
};

Change Sarge to whatever variable you are using

How do I know what Variable I'm useing?

Link to comment
Share on other sites

  • 0

How do I know what Variable I'm useing?

I believe Blue Phoenix uses Sarge variable by default. What I posted above should work for you, but remember to stay away from server_cleanup.fsm as that step should be replaced with what I have posted for server_functions.sqf

Link to comment
Share on other sites

  • 0

as far as i can tell it should work but i seem to be having problems with unpacking and packing the PBO. i never used to have any problems with cpbo but since uppgrading to 1.0.4 it wont recognise the pbo correctly.

 

I have tried other pbo apps to unpack and repack and i have even tried just unpacoing and repacking the file without making changes and still the only thing that lets my server boot is the default PBO.

 

Any tips?

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
  • Discord

×
×
  • Create New...