Jump to content
Faddy Theerawirot

Cleanup item drop ground ?

Recommended Posts

Anyone know a way to cleanup players dropped items (Rags, weapons, backpacks) faster once they both either die or simply drop them? or We will have a way. Cleanup dropped items After server restart?

**I mean if I dump items on floor when server restart that items is remain such as meat ,campfire ,cloth. Not mean  drop in the house.

Anyone have a solution to these issues?    Thank, 

 

Share this post


Link to post
Share on other sites

Timings for things like this are defined in the DayZServer globals.xml file -- check there.

Share this post


Link to post
Share on other sites

@drgullen

I have tried to fix it, but I don't know the exact position. Can you tell me what should I fix?

    <var name="CleanupAvoidance" type="0" value="100"/>
    <var name="CleanupLifetimeLimit" type="0" value="50"/>
    <var name="TimeLogin" type="0" value="15"/>
    <var name="TimeLogout" type="0" value="15"/>
    <var name="TimePenalty" type="0" value="20"/>
    <var name="RespawnAttempt" type="0" value="2"/>
    <var name="RespawnLimit" type="0" value="20"/>
    <var name="RespawnTypes" type="0" value="12"/>
    <var name="SpawnInitial" type="0" value="1200"/>
    <var name="ZombieMaxCount" type="0" value="1000"/>
    <var name="CleanupLifetimeDefault" type="0" value="45"/>
    <var name="ZoneSpawnDist" type="0" value="600"/>
    <var name="RestartSpawn" type="0" value="100"/>
    <var name="CleanupLifetimeRuined" type="0" value="330"/>
    <var name="AnimalMaxCount" type="0" value="200"/>
    <var name="CleanupLifetimeDeadPlayer" type="0" value="3600"/>
    <var name="CleanupLifetimeDeadInfected" type="0" value="330"/>
    <var name="CleanupLifetimeDeadAnimal" type="0" value="1200"/>
    <var name="TimeHopping" type="0" value="60"/>

Where do you think should be set?

Edited by Faddy Theerawirot

Share this post


Link to post
Share on other sites

You'll have to just play around with it, because I think multiple values come into play depending on the situation.  For example, if the player drops a worn backpack vs. a ruined backpack -- that involves two distinctly different variables, I believe.

I would try raising the value of CleanupLifetimeLimit and lowering all the other "CleanupLifetime" values and see what that does for you.

Also, at the moment, you have CleanupLifetimeDeadPlayer set to 3600, which is an hour.  Personally, I think that's too long -- I think it should be 900 which would be 15 minutes, which should be enough time to loot a player you've killed, but not enough time for that player to spawn in and travel back to his dead body.

Share this post


Link to post
Share on other sites
15 hours ago, drgullen said:

You'll have to just play around with it, because I think multiple values come into play depending on the situation.  For example, if the player drops a worn backpack vs. a ruined backpack -- that involves two distinctly different variables, I believe.

I would try raising the value of CleanupLifetimeLimit and lowering all the other "CleanupLifetime" values and see what that does for you.

Also, at the moment, you have CleanupLifetimeDeadPlayer set to 3600, which is an hour.  Personally, I think that's too long -- I think it should be 900 which would be 15 minutes, which should be enough time to loot a player you've killed, but not enough time for that player to spawn in and travel back to his dead body.

<var name="CleanupLifetimeRuined" type="0" value="330"/>

5 minutes and 30 seconds.

Also, the despawning of specific items are set in the types.xml. Every item has a lifetime, this lifetime is the time it will take before the CLE will clean it up.

Share this post


Link to post
Share on other sites

@drgullen

Do you have a sample for me I want fat Because a lot of bad habits players leave things on the ground The server is not streaming. When the server is restarted, everything will remain in the same place. No matter how many times it will accumulate a lot. Please

Share this post


Link to post
Share on other sites
5 minutes ago, IMT said:

<var name="CleanupLifetimeRuined" type="0" value="330"/>

5 minutes and 30 seconds.

Also, the despawning of specific items are set in the types.xml. Every item has a lifetime, this lifetime is the time it will take before the CLE will clean it up.

5 minutes and 30 seconds.  CleanupLifetimeRuined will have cleanup all Ruined ?  and i just edit lifetime edit for cleanup  According to the time that we set??

Share this post


Link to post
Share on other sites
23 minutes ago, Faddy Theerawirot said:

5 minutes and 30 seconds.  CleanupLifetimeRuined will have cleanup all Ruined ?  and i just edit lifetime edit for cleanup  According to the time that we set??

5 minutes and 30 seconds is for ruined items to despawn. Once you dropped a ruined item, it will despawn after that time has passed. The lifetime (in the types.xml) is the amount of seconds it takes before the CLE start cleaning up that item after it was dropped or spawned in.

Share this post


Link to post
Share on other sites
39 minutes ago, IMT said:

5 minutes and 30 seconds is for ruined items to despawn. Once you dropped a ruined item, it will despawn after that time has passed. The lifetime (in the types.xml) is the amount of seconds it takes before the CLE start cleaning up that item after it was dropped or spawned in.

How much do you think <lifetime></lifetime>  e types.xml should be set to be suitable for my server? I have set the restart every 3 hours. Do you have any suggestions for me?

Share this post


Link to post
Share on other sites
12 hours ago, Faddy Theerawirot said:

How much do you think <lifetime></lifetime>  e types.xml should be set to be suitable for my server? I have set the restart every 3 hours. Do you have any suggestions for me?

What do you mean exactly? I would leave it at default, to be honest. Most items will despawn after 30 minutes except for some specific items.

Share this post


Link to post
Share on other sites
4 hours ago, IMT said:

What do you mean exactly? I would leave it at default, to be honest. Most items will despawn after 30 minutes except for some specific items.

What are you editing? Sometimes I'm too stupid to understand the things we talk about. Can you tell me what I need to fix to make things that were dropped on the ground or safezone disappear after restarting the server? Thank you.

Share this post


Link to post
Share on other sites
1 hour ago, Faddy Theerawirot said:

What are you editing? Sometimes I'm too stupid to understand the things we talk about. Can you tell me what I need to fix to make things that were dropped on the ground or safezone disappear after restarting the server? Thank you.

To be honest, I don't think that's possible. The CLE cleans stuff up itself constantly all the time anyway, so no need to do it after a restart.

Share this post


Link to post
Share on other sites
1 hour ago, IMT said:

To be honest, I don't think that's possible. The CLE cleans stuff up itself constantly all the time anyway, so no need to do it after a restart.

Yeah, it's possible and you already answered it IMT.  If you lower the lifetime value in the types.xml file for a particular item, it will be eligible to be despawned by the CLE once that time value in seconds has passed and assuming no player has touched said item again since it was dropped in the first place.

So, if you're restarting every 4 hours let's say, which equals 14400 seconds, every lifetime value less than 14400 should be cleaned up by the CLE prior to the restart, depending on when it was dropped, of course.  If a particular item's value is 7200 for example and that item is dropped with less than an hour (3600 seconds) before restart, then it'll be there until the restart.

Of course, this is assuming the item in question isn't ruined.  I believe all ruined items despawn at the same time depending on the Cleanup Ruined value in the globals.xml file, so if you have a lot of ruined shit on the ground, you should lower that value.

At least, that's my understanding of how it works -- somebody please correct me if I'm wrong here.

Edited by drgullen
elaborated

Share this post


Link to post
Share on other sites

Also having the same issue. When I drop something or gut an animal the dropped item (regardless of condition) or animal remains will not despawn. They are still on the server 2 weeks now. The globals are all set from default. Shouldn't all dropped items be cleaned up at restart?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×