Jump to content
  • 0

RPT Spam, Ai mission trigger?


includes08

Question

Hi there,

 

I have some trouble with my server

 

- First thing is i have a massive rpt spam, I am not even talking about the spam of the gauss, thats a accident ^^'

- Second thing when i kill a M2 gunner, instead of dying it just sits down for some reason probably causes problems with the mission complete trigger. Else i have no clue why it doesn't complete.

 

Here are my error logs, if i need to provide something else i gladly do. I wanna solve this problem asap but i have no idea where to start.

 

http://pastebin.com/jAb6G47Z

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Might want to fix these errors first

21:39:46 Error in expression <_x getVariable["permaLoot", false];
if (!_keep) then {
_created = _x getVariable>
21:39:46   Error position: <!_keep) then {
_created = _x getVariable>
21:39:46   Error !: Type Number, expected Bool
21:39:46 File z\addons\dayz_server\init\server_functions.sqf, line 1026
22:52:15 Warning Message: Error: creating weapon nsw_er7s with scope=private
23:05:05 Warning Message: Script z\addons\dayz_server\TLC\Missions\crash_spawner.sqf not found

Post your server_functions.sqf, around line 1026

 

Remove nsw_er7s weapon

 

Make sure crash_spawner.sqf is inside z\addons\dayz_server\TLC\Missions\

Or

Remove it from the events in MPmission\init.sqf

 

This TLC mission system is something you created?

Link to comment
Share on other sites

  • 0

Might want to fix these errors first

21:39:46 Error in expression <_x getVariable["permaLoot", false];
if (!_keep) then {
_created = _x getVariable>
21:39:46   Error position: <!_keep) then {
_created = _x getVariable>
21:39:46   Error !: Type Number, expected Bool
21:39:46 File z\addons\dayz_server\init\server_functions.sqf, line 1026
22:52:15 Warning Message: Error: creating weapon nsw_er7s with scope=private
23:05:05 Warning Message: Script z\addons\dayz_server\TLC\Missions\crash_spawner.sqf not found

Post your server_functions.sqf, around line 1026

 

Remove nsw_er7s weapon

 

Make sure crash_spawner.sqf is inside z\addons\dayz_server\TLC\Missions\

Or

Remove it from the events in MPmission\init.sqf

 

This TLC mission system is something you created?

 

Line 1016 - 1054

server_spawnCleanLoot = {
	private ["_created","_delQty","_nearby","_age","_keep","_qty","_missionObjs","_dateNow"];
	if (DZE_DYN_AntiStuck > 3) then { DZE_DYN_cleanLoot = nil; DZE_DYN_AntiStuck = 0; };
	if(!isNil "DZE_DYN_cleanLoot") exitWith {  DZE_DYN_AntiStuck = DZE_DYN_AntiStuck + 1;};
	DZE_DYN_cleanLoot = true;

	_missionObjs =  allMissionObjects "ReammoBox";
	_delQty = 0;
	_dateNow = (DateToNumber date);
	{
		if (!isNull _x) then {
			_keep = _x getVariable["permaLoot", false];
			if (!_keep) then {
				_created = _x getVariable["created", -0.1];
				if (_created == -0.1) then{
					_x setVariable["created", _dateNow, false];
					_created = _dateNow;
				}
				else {
					_age = (_dateNow - _created) * 525948;
					if (_age > 20) then{
						_nearby = { (isPlayer _x) && (alive _x) } count(_x nearEntities[["CAManBase", "AllVehicles"], 130]);
						if (_nearby == 0) then{
							deleteVehicle _x;
							sleep 0.025;
							_delQty = _delQty + 1;
						};
					};
				};
			};
		};
		sleep 0.001;
	} forEach _missionObjs;
	if (_delQty > 0) then {
		_qty = count _missionObjs;
		diag_log (format["CLEANUP: Deleted %1 Loot Piles out of %2",_delQty,_qty]);
	};
	DZE_DYN_cleanLoot = nil;
};

The railgun (er7s) was accidently spawned in so thats not a problem, there is no crash_spawner.sqf anymore so i will disable that later. The TLC mission system is not something i created but i don't know how to reach the person that did. Our namalsk server is running almost the exact same setup but the M2 Statics don't glitch out on there. They die and don't sit down. But on chernarus they do.

Link to comment
Share on other sites

  • 0
21:39:46 Error in expression <_x getVariable["permaLoot", false];
if (!_keep) then {
_created = _x getVariable>
21:39:46   Error position: <!_keep) then {
_created = _x getVariable>
21:39:46   Error !: Type Number, expected Bool
21:39:46 File z\addons\dayz_server\init\server_functions.sqf, line 1026

This error is being caused because another script. There is no error in this spot.

 

It is the same as mine.

		if (!isNull _x) then {
			_keep = _x getVariable["permaLoot", false];
			if (!_keep) then {
				_created = _x getVariable["created", -0.1];
				if (_created == -0.1) then{
					_x setVariable["created", _dateNow, false];
					_created = _dateNow;
				}

You will have to find out what script is causing this. I think it will be something that is putting the permaLoot variable on a weapon box or something with loot in it.

 

For your M2 static problem you will have to remove them or ask the guy that made it. There is no release of this to install it myself and find your problem.

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...