Page MenuHomeFeedback Tracker

Adding items to an existing stack or percentage quantity does not reset the persistence timer of the container
Closed, ResolvedPublic

Description

The action of adding additional items to an existing stack of stackable or mergeable (percentages types) items contained within a container type (crate/bag/etc) does not reset the persistence timer of the container as would be expected...

This was found in game to impact bags but should impact any container type.

In my test I used bullets as my stackable type. I suspect all stackable types to behave the same.

I also found percentage based "mergeables" have the same issue (i.e. stacking/merging/combning quantities of alcoholic tincture OR iodine and other similar types

Note that I adjusted the persistence time of the bag I tested with as well as the item clean up distance to make testing easy. This will occur at the default values as well.

Link to unlisted Youtube Video demonstrating the issue in detail with stackables:
Detailed Persistence Test

Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Operating System Version
21H2 (19044.2604)
Category
General
Steps To Reproduce
  1. For the purpose of this test, I lowered the persistence of the Blue Mountain Bag, from 8 hours to 2 minutes I did so using a custom types override file defined in cfgeconomycore.xml (see video).
  2. I also lowered the server's item despawn distance from 100m to 10 m (CleanupAvoidance in globals.xml). I did this to make it easier to see what was happening rather than going far away.
  3. Place one of the persistence altered blue mountain bags on the ground.
  4. Put a single bullet in the blue mountain bag and wait 60 seconds.
  5. Now add an additional bullet onto the existing stack inside the mountain bag to make a stack of 2 (or any size for that matter <= max).
  6. Move at least 10-15 meters away (Note: this distance is based on step (2) of changing CleanupAvoidance in globals.xml. It is 100m by default and a closer distance will allow the bag to despawn at this shorter distance.)
  7. Adding the bullet in step (5) should keep the bag alive for another 120 seconds per the adjusted persistence time as its contents were effectively changed.
  8. However, the bag despawns within 60 seconds proving that adding the bullet had no impact (bug/problem - adjusting the stack size - or merged/combined quantity - should reset the timer)
NOTE: As note above, as far as stackable items go, I only tested with bullets, but I suspect other stackable types (rags, vitamins, etc) will behave the same way. I also tested with alcoholic tincture and found the same issue, so I suspect all percentage based combinables/mergeables/stackables (iodine, etc) behave the same way.
  • When I did this test, I used 3 bags to differentiate between bags. See my video linked above.
  • I found setting persistence times below 120 seconds problematic as the CLE seemed to do it's own thing and not always persist the full time. Especially for times below 20-30 seconds. For that reason, I stuck to 120 seconds as it also made my test easier to perform.

Event Timeline

DaGreekGeek updated the task description. (Show Details)Mar 13 2023, 12:36 AM
DaGreekGeek edited Steps To Reproduce. (Show Details)
DaGreekGeek renamed this task from Adding items to an existing stack or quantity does not reset the container's persistence timer to Adding items to an existing stack or percentage quantity does not reset the persistence timer of the container.
DaGreekGeek updated the task description. (Show Details)
Geez changed the task status from New to Awaiting internal Testing.Mar 14 2023, 11:03 AM
Geez changed the task status from Awaiting internal Testing to Confirmed Internally.Mar 17 2023, 9:04 AM
Geez closed this task as Resolved.May 17 2023, 2:51 PM
Geez claimed this task.
Geez added a subscriber: Geez.

Resolved for 1.21 stable.