Users reporting backpack items disappearing.Fixed

Good evening, I have had several of my players report their all of their items are disappearing in their pack-backs randomly and never returning. I experienced it once but it was right after a wipe, but I attributed it to the wipe. I can find no errors in the logs. I was wondering if anyone else had players experience this? Is there a fix for this? Or is there something I need to look at?

Neither I or my players have had this problem (as yet)

i have the same problem

Please the share the following information to help troubleshoot.

  • How much capacity and pages did the player have?
  • For which pages did the player have gather mode enabled?
  • For which pages did the player have retrieve mode enabled?
  • Were gather and retrieve mode reset (turned off) automatically when the items didappeared?
  • Your whole plugin list. You can DM me the list if you are concerned about sharing that publicly.

I am working on getting an answer from my players. This is my plugin list.

Listing 111 plugins:
01 "AbsolutSorter" (2.0.22) by k1lly0u (0.01s) - AbsolutSorter.cs
02 "AdminMenu" (2.0.18) by k1lly0u (2.66s) - AdminMenu.cs
03 "Admin Radar" (5.3.1) by nivex (0.41s) - AdminRadar.cs 0b/s in, 0b/s out
04 "AdminSleigh" (0.1.5) by k1lly0u (0.00s) - AdminSleigh.cs
05 "AFK API" (1.0.1) by 2CHEVSKII (0.01s) - AFKAPI.cs
06 "AlphaLoot" (3.1.20) by k1lly0u (4.78s) - AlphaLoot.cs
07 "Anti Offline Raid" (0.4.4) by Calytic/Shady14u (0.33s) - AntiOfflineRaid.cs
08 "Arkan" (1.0.21) by Antidote (0.07s) - Arkan.cs
09 "ArmoredTrain" (1.3.2) by Adem (0.18s) - ArmoredTrain.cs
10 "AutoBaseUpgrade" (1.1.7) by CASHR#6906 (0.03s) - AutoBaseUpgrade.cs
11 "Auto Broadcast" (1.0.9) by Wulf (0.02s) - AutoBroadcast.cs
12 "Auto Doors" (3.3.10) by Wulf/lukespragg/Arainrr/James/Bushhy (0.11s) - AutoDoors.cs
13 "Backpack Button" (1.0.4) by WhiteThunder (0.04s) - BackpackButton.cs
14 "Backpacks" (3.11.8) by WhiteThunder (0.05s) - Backpacks.cs
15 "Back Pump Jack" (1.4.16) by Arainrr/Lorenzo (0.20s) - BackPumpJack.cs
16 "Better Chat" (5.2.12) by LaserHydra (0.00s) - BetterChat.cs
17 "BetterNpc" (1.2.2) by KpucTaJl (0.48s) - BetterNpc.cs
18 "BGrade" (1.1.4) by Ryan / Rustoria.co (0.00s) - BGrade.cs
19 "Building Workbench" (1.3.2) by MJSU (0.12s) - BuildingWorkbench.cs
20 "CAltimeter" (1.0.9) by TF Crazy (0.12s) - CAltimeter.cs
21 "CarStorage" (1.2.0) by Ts3Hosting (0.03s) - CarStorage.cs
22 "Casino" (0.1.15) by k1lly0u (0.32s) - Casino.cs
23 "BlackJack" (0.1.9) by k1lly0u (0.00s) - BlackJack.cs
24 "ChaosExtensionDownloader" (0.1.0) by k1lly0u (0.00s) - ChaosExtensionDownloader.cs
25 "ChaosNPCDownloader" (0.1.0) by k1lly0u (0.00s) - ChaosNPCDownloader.cs
26 "Chest Stacks" (1.3.3) by supreme (0.03s) - ChestStacks.cs
27 "Claim Vehicle" (1.5.0) by WhiteThunder (0.14s) - ClaimVehicle.cs
28 "Clans" (3.0.34) by k1lly0u (0.07s) - Clans.cs
29 "Convoy" (2.2.8) by Adem (0.20s) - Convoy.cs
30 "Copy Paste" (4.1.36) by misticos (0.01s) - CopyPaste.cs
31 "Death Notes" (6.3.8) by LaserHydra (0.11s) - DeathNotes.cs
32 "Debug Missing Parent Entity" (1.0.1) by WhiteThunder (0.00s) - DebugMissingParentEntity.cs
33 "Discord Chat" (2.1.3) by MJSU (0.01s) - DiscordChat.cs
34 "Discord Core" (2.1.3) by MJSU (0.02s) - DiscordCore.cs
35 "DiscordMessages" (2.1.8) by Slut (0.02s) - DiscordMessages.cs
36 "Discord Presence" (2.0.4) by MJSU (0.14s) - DiscordPresence.cs
37 "Discord Wipe" (2.3.3) by MJSU (0.00s) - DiscordWipe.cs
38 "DynamicCupShare" (3.1.5) by k1lly0u (0.14s) - DynamicCupShare.cs
39 "Economics" (3.9.1) by Wulf (0.04s) - Economics.cs
40 "Friends" (3.1.3) by Wulf (0.00s) - Friends.cs
41 "Furnace Splitter" (2.5.1) by FastBurst (0.82s) - FurnaceSplitter.cs
42 "GatheringClothes" (1.0.4) by imthenewguy (0.65s) - GatheringClothes.cs
43 "Gather Manager" (2.2.78) by Mughisi (0.31s) - GatherManager.cs
44 "GridPower" (1.0.14) by Nikedemos (2.00s) - GridPower.cs
45 "GUIAnnouncements" (2.0.5) by JoeSheep (0.98s) - GUIAnnouncements.cs
46 "HarborEvent" (2.1.5) by KpucTaJl (0.01s) - HarborEvent.cs
47 "Helicopter Hover" (2.0.6) by 0x89A (0.12s) - HelicopterHover.cs
48 "HeliRefuel" (2.1.11) by k1lly0u (0.32s) - HeliRefuel.cs
49 "HomeRecycler" (2.0.6) by wazzzup (1.17s) - HomeRecycler.cs
50 "Hud" (2.1.18) by AhigaO#4485 (0.18s) - Hud.cs
51 "Image Library" (2.0.61) by Absolut & K1lly0u (0.11s) - ImageLibrary.cs
52 "Instant Craft" (2.2.1) by Vlad-0003 / Orange / rostov114 (0.00s) - InstantCraft.cs
53 "Item Cost Calculator" (2.0.15) by Absolut/Arainrr (0.13s) - ItemCostCalculator.cs
54 "Item Retriever" (0.6.2) by WhiteThunder (0.12s) - ItemRetriever.cs
55 "Kits" (1.2.9) by Mevent (0.15s) - Kits.cs
56 "Land On Cargo Ship" (1.0.0) by Arainrr (0.06s) - LandOnCargoShip.cs
57 "Car Lift Public" (1.3.0) by ninco90 (0.64s) - LiftCars.cs
58 "Loading Messages" (1.0.9) by CosaNostra/Def/klauz24 (0.00s) - LoadingMessages.cs
59 "LockOnRockets" (0.3.15) by k1lly0u (0.20s) - LockOnRockets.cs
60 "Lone.Design Update Checker" (1.3.0) by Nikedemos / DezLife / nivex (0.06s) - LoneUpdateChecker.cs
61 "Loot Bouncer" (1.0.10) by Sorrow/Arainrr (0.08s) - LootBouncer.cs
62 "Magic Panel" (1.0.8) by MJSU (0.02s) - MagicPanel.cs
63 "Magic Wipe Panel" (1.0.5) by MJSU (0.02s) - MagicWipePanel.cs
64 "MechanicQuest" (1.0.0) by imthenewguy (0.10s) - MechanicQuest.cs
65 "Money Time" (2.3.0) by Wulf (0.01s) - MoneyTime.cs
66 "Nav Mesh Error Fix" (1.1.1) by Ryz0r (0.00s) - NavMeshErrorFix.cs
67 "No Give Notices" (0.3.0) by Wulf (0.00s) - NoGiveNotices.cs
68 "NoobMessages" (2.0.2) by FastBurst (0.01s) - NoobMessages.cs
69 "NpcSpawn" (2.5.5) by KpucTaJl (3.08s) - NpcSpawn.cs
70 "NTeleportation" (1.7.5) by nivex (0.58s) - NTeleportation.cs
71 "Online Players" (1.1.5) by MACHIN3 (0.00s) - OnlinePlayers.cs
72 "PathFinding" (1.1.3) by Reneb / Nogrod (0.30s) - PathFinding.cs
73 "Human NPC" (0.4.0) by Razor (1.58s) - HumanNPC.cs
74 "Placeholder API" (2.2.1) by misticos (0.01s) - PlaceholderAPI.cs
75 "PlaneCrash" (0.3.7) by k1lly0u (0.02s) - PlaneCrash.cs
76 "PlayingCards" (0.1.2) by k1lly0u (0.00s) - PlayingCards.cs
77 "PrivateMessages" (1.1.11) by MisterPixie (0.00s) - PrivateMessages.cs
78 "Professions" (1.0.7) by imthenewguy (0.37s) - Professions.cs
79 "Quarry Locks" (1.3.2) by Orange (0.00s) - QuarryLocks.cs
80 "Raidable Bases" (2.7.2) by nivex (0.76s) - RaidableBases.cs
81 "Range Finder" (1.2.2) by Cannabis (0.01s) - RangeFinder.cs
82 "Remover Tool" (4.3.37) by Reneb/Fuji/Arainrr/Tryhard (0.01s) - RemoverTool.cs
83 "Rustadmin Online" (1.2.0) by misticos (0.00s) - RustadminOnline.cs
84 "Rustcord" (3.3.1) by Kirollos & OuTSMoKE (1.44s) - Rustcord.cs
85 "Rust Map Api" (1.3.2) by MJSU (0.01s) - RustMapApi.cs
86 "Scrap Heli Storage" (0.0.5) by yetzt (0.44s) - ScrapHeliStorage.cs
87 "Server Status" (1.3.0) by UNKN0WN (0.02s) - ServerStatus.cs
88 "Shop" (1.2.25) by Mevent (0.08s) - Shop.cs
89 "Sign Artist" (1.4.1) by Whispers88 (0.00s) - SignArtist.cs
90 "Sign Map" (1.0.4) by MJSU (0.00s) - SignMap.cs
91 "Skinner" (1.3.9) by Whispers88 (0.37s) - Skinner.cs
92 "SmoothRestarter" (3.2.0) by 2CHEVSKII (0.00s) - SmoothRestarter.cs
93 "Spawn Modular Car" (5.2.2) by WhiteThunder (0.05s) - SpawnModularCar.cs
94 "Stack Modifier" (2.0.5) by Khan (1.21s) - StackModifier.cs
95 "StaticLootables" (2.8.5) by Raul-Sorin Sorban (0.14s) - StaticLootables.cs
96 "Tell My Vote" (1.2.2) by Spiikesan (0.00s) - TellMyVote.cs
97 "Trade" (1.2.44) by Calytic (0.00s) - Trade.cs
98 "Traffic Drivers" (1.2.98) by walkinrey (1.69s) - TrafficDrivers.cs
99 "Tree Planter" (1.2.2) by Bazz3l (0.01s) - TreePlanter.cs
100 "Update Notice" (1.3.1) by Psystec (0.00s) - UpdateNotice.cs
101 "Vanish" (1.8.0) by Whispers88 (0.03s) - Vanish.cs
102 "Vehicle Decay Protection" (2.3.0) by WhiteThunder (0.27s) - VehicleDecayProtection.cs
103 "Vehicle Deployed Locks" (1.9.1) by WhiteThunder (0.40s) - VehicleDeployedLocks.cs
104 "Vehicle Licence" (1.7.42) by Sorrow/TheDoc/Arainrr (0.32s) - VehicleLicence.cs
105 "Vehicle Towing" (1.0.9) by SPooCK (0.13s) - VehicleTow.cs
106 "WaterBases" (1.0.11) by Nikedemos (0.51s) - WaterBases.cs
107 "Waypoints" (1.1.3) by RFC1920 (0.00s) - Waypoints.cs
108 "Welcome Gui" (0.2.7) by Dana (0.06s) - WelcomeGui.cs
109 "Wipe Info Api" (1.1.0) by MJSU (0.00s) - WipeInfoApi.cs
110 "Zone Manager" (3.1.2) by k1lly0u (1.90s) - ZoneManager.cs

Merged post

Not sure if this will help but here is my config file.

{
"Backpack size": {
"Default size": 6,
"Max size per page": 48,
"Enable legacy backpacks.use.1-8 row permissions": false,
"Permission sizes": [
6,
12,
18,
24,
30,
36,
42,
48
]
},
"Drop on Death (true/false)": true,
"Erase on Death (true/false)": false,
"Minimum Despawn Time (Seconds)": 300.0,
"GUI Button": {
"Enabled": false,
"Enabled by default (for players with permission)": true,
"Skin Id": 0,
"Image": "https://i.imgur.com/T6orn2Q.png",
"Background Color": "0.969 0.922 0.882 0.035",
"GUI Button Position": {
"Anchors Min": "0.5 0.0",
"Anchors Max": "0.5 0.0",
"Offsets Min": "185 18",
"Offsets Max": "245 78"
}
},
"Container UI": {
"Show page buttons on container bar": false
},
"Softcore": {
"Reclaim Fraction": 0.5
},
"Item restrictions": {
"Enabled": false,
"Enable legacy noblacklist permission": false,
"Feedback effect": "assets/prefabs/locks/keypad/effects/lock.code.denied.prefab",
"Default ruleset": {
"Allowed item categories": [
"All"
],
"Disallowed item categories": [],
"Allowed item short names": [],
"Disallowed item short names": [],
"Allowed skin IDs": [],
"Disallowed skin IDs": []
},
"Rulesets by permission": [
{
"Name": "allowall",
"Allowed item categories": [
"All"
],
"Disallowed item categories": [],
"Allowed item short names": [],
"Disallowed item short names": [],
"Allowed skin IDs": [],
"Disallowed skin IDs": []
}
]
},
"Clear on wipe": {
"Enabled": true,
"Enable legacy keeponwipe permission": true,
"Default ruleset": {
"Max slots to keep": 0,
"Allowed item categories": [],
"Disallowed item categories": [],
"Allowed item short names": [],
"Disallowed item short names": [],
"Allowed skin IDs": [],
"Disallowed skin IDs": []
},
"Rulesets by permission": [
{
"Name": "all",
"Max slots to keep": -1,
"Allowed item categories": [
"All"
],
"Disallowed item categories": [],
"Allowed item short names": [],
"Disallowed item short names": [],
"Allowed skin IDs": [],
"Disallowed skin IDs": []
}
]
}
}

Merged post

This is the replay I got from the 2 users that reported the problem.

gather/retrieve mode was not enabled, and did not reset as I didn't have them on. the backpack was mostly full when it disappeared for me

I don't see anything in your plugin list that is suspicious, but if there is some sort of conflict, we may be able to narrow it down if other affected users share their plugin lists.

Off the top of my head, there's one known way that the contents of a player's backpack can be erased unexpectedly, which is if the storage container holding the items is destroyed. The containers are all at 0,-500,0 with damage immunity and decay disabled, but theoritcally another plugin could do something that would cause them to be destroyed. I can make you an alternate version of the plugin that logs an error if it detects that the container had been destroyed unexpectedly, so that we can at least rule out whether that is what is happening.

Timeline details can also be useful. For instance, when did the player last successfully open the backpack, how much time passed before they opened it again and found it empty, did anything happen in between such as the server saved or the player disconnected or died, etc.

If you would like to make a version I can ask my players to give me any feedback if more items are being deleted from their backpacks and send you any error logs generated. LOL just tell me where to find them.

Please download the debug version here:
https://raw.githubusercontent.com/WheteThunger/Backpacks/develop/Backpacks.cs

You can look for the following log message, which will include the steam id of the affected player as well.

[Backpacks] Unexpected destruction of backpack container

When a player next reports that their backpack contents have gone missing, you can check if that message appears in the server logs. If that message is not present, then we need to look at alternative potential root causes such as edge cases in the plugin logic.

I have it installed and have asked my players to report any issues so I can look into the logs.

Merged post

Well, I have my 1st hit,

06/03/2023 11:48:05 | [Backpacks] Unexpected destruction of backpack container for player: 76561############. This is not supposed to happen. Items might have been lost.

I am trying to get a hold of the player to see if I can get anymore information.

Merged post

I was able to find out from the user that his backpack had some wood in it. He did not remember how much and that the options were off. Now he is telling me he cannot open his backpack. I have checked his permissions and all is right.

Same thing happens here recentry.

I(admin) have one moderator on my server and both of us encountered the issue more than 3 times this week.
Both of us have permission to use noclip, god mode, Map Note Teleport and Vanish. We use them a lot.
I suspect any of above cause the problem because no other players on my server report the issue.

When this happens, the backpacks data file for my steam ID is initialized and it's impossible to open my backpack GUI (only gather and retrieve mode is drawn on the screen with no slots) until I reload the Backpasks plugin.

In attempt to mitigate this issue, I've pushed another change which should prevent the backpack storage entity from being killed by anything besides the plugin itself. Please download from the same link as before.
https://raw.githubusercontent.com/WheteThunger/Backpacks/develop/Backpacks.cs

When this happens, you can now expect to see a log message like the following. Not expecting to see the old one anymore unless something is destroying the backpack via Unity APIs directly instead of via Rust functions (very unlikely).

[Backpacks] Prevented unexpected destruction of backpack container for player

Thank you so much!
I've installed it and will check the log file for a while.



Merged post

I catched the 2 log messages today. And the backpack didn't disappeared.
Thanks again!

----------------------------
Calling 'OnServerSave' on 'BoxLooters v0.3.6' took 209ms
[Economics] Saving balances for players...
[Backpacks] Prevented unexpected destruction of backpack container for player: 7656119806769XXXX
[Backpacks] Prevented unexpected destruction of backpack container for player: 7656119910547XXXX
Invalid Position: item_drop[208897787] (0.0, -500.0, 0.3) (destroying)
Saved 154,566 ents, cache(1.02), write(0.13), disk(0.06).
----------------------------



Merged post

I got 2 more logs yesterday.
This time, (I don't know when it happened but) I lost items in my backpack and found the items section of the json file got empty. 

{
"GatherMode": {
"0": "Existing"
},
"OwnerID": 76561############,
"Items": []
}

Anyway, this doesn't happen to auth level 0 players on my server so it's not critical here.

Thanks for providing that first log. It shows that the backpack containers are being destroyed during server save. It also shows that the mitigation did not fully work, since an item container was dropped at 0,-500,0 which is where backpack storage entities are located. If a backpack was destroyed incorrectly, and contained items on the first page, it would spawn that item_drop container, which Rust would then kill for being a mobile entity that it outside the bounds of the map.

The server save timing is particularly relevant because that's when the plugin destroys backpacks of players who are no longer connected to the server. In general, it would be surprising for another plugin to find and destroy the backpack containers, so what's likely happening here is a logic error, probably related to pooling, that causes the plugin to destroy backpacks improperly. I'll see if I can determine how that could happen, and will send another debug version.

Sorry I was gone for a few days. I have also installed this new version and will check my logs.

Merged post

Just a heads up. I got another one

06/03/2023 11:48:05 | [Backpacks] Unexpected destruction of backpack container for player: 76561############. This is not supposed to happen. Items might have been lost.

I just had the backpack glitch happen to me. I had 2 stacks of explosive ammo, 5 guns, 2 rocket launchers, 50 high velocity rockets, 6 normal rockets, 20 incen rockets, 4 c4, a couple bags, grenade launcher with a couple extra rounds. it was all in the first 3 rows of my backpack

I couldn't find any logic errors in the plugin that could cause this, so I pushed another change for troubleshooting. The plugin will now log when it cleans up a disconnected player's backpack (shortly after server save), so we can at least rule out the bad plugin logic hypothesis. It will also log if the backpack container was "killed" using the combat system of the game, since that's the only way that it should be triggering the item_drop to appear which was in somebody's logs above.

Download from the same link. Please share the logs the next time the issue happens, particularly the logs that say the backpack destruction was prevented, with a few lines before and after.
https://raw.githubusercontent.com/WheteThunger/Backpacks/develop/Backpacks.cs

Locked automatically