• 0
Bushwick

Server cleans up bodies in < 5 mins.

Question

Isn't it supposed to be 15 mins for body cleanup?

Server I'm on has bodies and gear despawning really fast if nobody is within about 100m.

Is this a bug or intended and is it fixable?

 

MAny thanks.

Share this post


Link to post
Share on other sites

12 answers to this question

  • 1

from what I can see of the code, they (devs) tried to combine loot cleanup with dead body clean up and...epically failed.

specifically, the code right here:

		if (_timeBeingDead >= _forceDespawnAfterMinutes) then
		{
			_objectsToRemove pushBack _x;
		}
		else 
		{
			// Is the area around this building free of players?
			if !([getPosATL _x, _despawnRadius] call ExileServer_util_position_isPlayerNearby) then
			{
				_objectsToRemove pushBack _x;
			};
		};

What this code is doing is...if a body has been there for more than or equal to 15 mins (forceDespawnAfterMinutes), delete it....

OR

delete it anyway if no one is within the _despawnRadius. Since the cleanup code runs every 5 mins, then clearly bodies will get cleaned up every 5 mins.

For a fix, you can do something like:

		_isLoot = _x getVariable ["ExileIsLoot", false];

		if (_timeBeingDead >= _forceDespawnAfterMinutes and !_isLoot) then
		{
			_objectsToRemove pushBack _x;
		}
		else 
		{
			// Is the area around this building free of players?
			if !([getPosATL _x, _despawnRadius] call ExileServer_util_position_isPlayerNearby) then
			{
				_objectsToRemove pushBack _x;
			};
		};

 

Edited by hangender

Share this post


Link to post
Share on other sites
  • 1

alterable, if you add in my changes then you can edit forceDespawnAfterMinutes value in config.cpp to something like 30 to 40 min.

Otherwise, it always get deleted in 5 mins if no one is near.

Edited by hangender

Share this post


Link to post
Share on other sites
Advertisement
  • 1

Can anyone shed some light on the issue of "how much time a player has to get to their dead body", in Kiwi?

Guys are complaining about not having enough time to get to their dead body. But, from what I can see, the
code affects "ALL" dead bodies. Player and Ai alike.

And, on a server that has an Ai island, Slums, and Salt Flats missions, gear crates, underwater missions,
patrols in air, sea, and land, that can be a lot of ai. I don't really want their dead bodies hanging around too long,
for server performance.

So, if possible, is there a way to "ONLY" increase the amount of time a "player" has to get to their body?

Thanks,

Share this post


Link to post
Share on other sites
  • 0

Same issue with our server and I noted the same problem starting on another server right after they updated to tomato.

Edited by [=AWOL=] Calvus

Share this post


Link to post
Share on other sites
  • 0

I understand searching, but before you get all parsimonious, this seems to refer to Main weapons only?

Not everything on, in and around the body.

Share this post


Link to post
Share on other sites
  • 0

I was looking for a little more than "the fix I posted seems to work", but you keep being you.

Obviously your solution is the be-all and end-all for this problem.

Share this post


Link to post
Share on other sites
  • 0

from what I can see of the code, they (devs) tried to combine loot cleanup with dead body clean up and...epically failed.

specifically, the code right here:

		if (_timeBeingDead >= _forceDespawnAfterMinutes) then
		{
			_objectsToRemove pushBack _x;
		}
		else 
		{
			// Is the area around this building free of players?
			if !([getPosATL _x, _despawnRadius] call ExileServer_util_position_isPlayerNearby) then
			{
				_objectsToRemove pushBack _x;
			};
		};

What this code is doing is...if a body has been there for more than or equal to 15 mins (forceDespawnAfterMinutes), delete it....

OR

delete it anyway if no one is within the _despawnRadius. Since the cleanup code runs every 5 mins, then clearly bodies will get cleaned up every 5 mins.

 

Many thanks, is this alterable in any way?  Makes me wonder if the dev's PVP at all...

Share this post


Link to post
Share on other sites
Advertisement

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

  • Recently Browsing   0 members

    No registered users viewing this page.