I have it installed. Let's see what I can find. And thanks for your time on this!
Users reporting backpack items disappearing.Fixed
What is the current status of this problem?
I am currently having the same problem.
Specifically, I am unable to open a user's backpack at random, and when I reload the plugin, the contents of the backpack are lost.
01 "ArmoredTrain" (1.3.5) by Adem (2.76s) - ArmoredTrain.cs
02 "Authentication" (2.1.2) by FakeNinja (0.02s) - Authentication.cs
03 "AutoBaseUpgrade" (1.1.9) by CASHR#6906 (0.62s) - AutoBaseUpgrade.cs
04 "Automated Events" (1.0.11) by k1lly0u/mspeedie/Arainrr (0.58s) - AutomatedEvents.cs
05 "Backpacks" (3.12.0) by WhiteThunder (1.32s) - Backpacks.cs
06 "BetterNpc" (1.2.2) by KpucTaJl (1.10s) - BetterNpc.cs
07 "Blueprint Manager" (2.0.6) by Whispers88 (0.09s) - BlueprintManager.cs
08 "BossMonster" (2.1.0) by KpucTaJl (0.82s) - BossMonster.cs
09 "Component Blocker" (0.1.9) by Calytic (4.29s) - ComponentBlocker.cs
10 "Convoy" (2.3.0) by Adem (0.88s) - Convoy.cs
11 "Copy Paste" (4.1.37) by misticos (0.07s) - CopyPaste.cs
12 "Craft Car Chassis" (1.2.2) by WhiteThunder (0.11s) - CraftChassis.cs
13 "Crafting Controller" (3.2.8) by Whispers88 (0.13s) - CraftingController.cs
14 "CustomMixing" (1.0.4) by ThePitereq (1.91s) - CustomMixing.cs
15 "CustomSpawnPoints" (1.1.2) by Reneb / k1lly0u (0.04s) - CustomSpawnPoints.cs
16 "Custom Vending Setup" (2.10.2) by WhiteThunder (0.38s) - CustomVendingSetup.cs
17 "Discord Chat" (2.1.3) by MJSU (0.08s) - DiscordChat.cs
18 "Discord Hooks" (0.2.2) by NooBlet (0.00s) - DiscordHooks.cs
19 "DiscordMessages" (2.1.8) by Slut (0.01s) - DiscordMessages.cs
20 "Discord Sign Logger" (1.0.10) by MJSU (0.05s) - DiscordSignLogger.cs
21 "Economics" (3.9.1) by Wulf (1.26s) - Economics.cs
22 "Entity Scale Manager" (2.1.3) by WhiteThunder (105.76s) - EntityScaleManager.cs
23 "Firework Gun" (1.1.0) by k1lly0u and Kusha (38.83s) - FireworkGun.cs
24 "GUIAnnouncements" (2.0.5) by JoeSheep (2.78s) - GUIAnnouncements.cs
25 "GUIShop" (2.4.45) by Khan (2.59s) - GUIShop.cs
26 "Hostile Time" (1.0.2) by Orange (0.22s) - HostileTime.cs
27 "Hud" (2.1.18) by AhigaO#4485 (5.93s) - Hud.cs
28 "IQBearRide" (1.3.13) by BadMandarin/ Support: Mercury (6.71s) - IQBearRide.cs
29 "IQCases" (2.2.71) by Mercury (0.67s) - IQCases.cs
30 "Image Library" (2.0.62) by Absolut & K1lly0u (0.06s) - ImageLibrary.cs
31 "Kits" (4.4.0) by k1lly0u (0.03s) - Kits.cs
32 "Loot Bouncer" (1.0.10) by Sorrow/Arainrr (0.66s) - LootBouncer.cs
33 "Magic Images Panel" (1.0.2) by MJSU (0.02s) - MagicImagesPanel.cs
34 "Magic Panel" (1.0.8) by MJSU (0.10s) - MagicPanel.cs
35 "Minicopter Seating" (1.1.6) by Bazz3l (0.19s) - MinicopterSeating.cs
36 "Monument Addons" (0.14.1) by WhiteThunder (0.33s) - MonumentAddons.cs
37 "Monument Finder" (3.1.1) by WhiteThunder (0.02s) - MonumentFinder.cs
38 "Nav Mesh Error Fix" (1.1.1) by Ryz0r (0.00s) - NavMeshErrorFix.cs
39 "No Give Notices" (0.3.0) by Wulf (0.00s) - NoGiveNotices.cs
40 "NoSupplySignal" (0.2.0) by Wulf/lukespragg, Whispers88 (0.00s) - NoSupplySignal.cs
41 "No Tech Tree" (1.2.0) by Sche1sseHund (0.00s) - NoTechTree.cs
42 "NpcSpawn" (2.5.5) by KpucTaJl (10.09s) - NpcSpawn.cs
43 "PathFinding" (1.1.3) by Reneb / Nogrod (0.42s) - PathFinding.cs
44 "Human NPC" (0.4.2) by Razor (41.98s) - HumanNPC.cs
45 "Pay for Electricity" (1.0.3) by mr01sam (7.81s) - PayForElectricity.cs
46 "Phones Plus" (1.0.2) by mr01sam (13.16s) - PhonesPlus.cs
47 "Placeholder API" (2.2.2) by misticos (0.02s) - PlaceholderAPI.cs
48 "PogoStick" (1.0.2) by Adem (1.42s) - PogoStick.cs
49 "PopUpAPI" (2.0.2) by ThePitereq (0.03s) - PopUpAPI.cs
50 "Raid Tracker" (2.1.1) by Clearshot (0.21s) - RaidTracker.cs
51 "Raidable Bases" (2.7.3) by nivex (12.13s) - RaidableBases.cs
52 "Recycler Speed" (2.0.2) by Ryz0r/yetzt (0.01s) - RecyclerSpeed.cs
53 "Remover Tool" (4.3.40) by Reneb/Fuji/Arainrr/Tryhard (0.11s) - RemoverTool.cs
54 "Research Block" (1.0.1) by Orange (0.00s) - ResearchBlock.cs
55 "RocketMan" (1.1.0) by Netch (0.00s) - RocketMan.cs
56 "Sign Artist" (1.4.1) by Whispers88 (0.02s) - SignArtist.cs
57 "SmoothRestarter" (3.2.0) by 2CHEVSKII (0.03s) - SmoothRestarter.cs
58 "Sort Button" (2.0.2) by MON@H (0.91s) - SortButton.cs
59 "Spawns" (2.0.36) by Reneb / k1lly0u (0.01s) - Spawns.cs
60 "Stack Size Controller" (4.1.1) by AnExiledDev (14.92s) - StackSizeController.cs
61 "Stations" (1.0.2) by bmgjet (0.00s) - Stations.cs
62 "Telekinesis" (3.2.0) by WhiteThunder (0.14s) - Telekinesis.cs
63 "TimeOfDay" (2.3.4) by FuJiCuRa (0.00s) - TimeOfDay.cs
64 "Vanish" (1.8.0) by Whispers88 (0.13s) - Vanish.cs
65 "Vehicle Decay Protection" (2.4.0) by WhiteThunder (0.20s) - VehicleDecayProtection.cs
66 "Voice UI" (1.0.4) by Pinkstink (23.02s) - VoiceUI.cs
67 "Waypoints" (1.1.3) by RFC1920 (0.00s) - Waypoints.cs
68 "Weapon Damage Scaler" (1.1.7) by Shady (1.77s) - WeaponDamageScaler.cs
69 "ZMail" (0.1.2) by Zeeuss (0.03s) - ZMail.cs
70 "Zone Manager" (3.1.2) by k1lly0u (4.76s) - ZoneManager.cs
71 "Hotel" (2.0.24) by Shady14u (5.62s) - Hotel.cs
To summarize the issue, 4 server owners (including you) have reported that sometimes specific players' backpacks cannot be opened, and that when the plugin is reloaded, the contents of those backpacks are gone. On some servers, many players been affected. On other servers, only admins/moderators have been affected.
As far as investigation progress, due to help of two server owners that has been running a debug version of the plugin, we have determined multiple things. Unfortunately, the sum of all evidence provides mixed directional signals, so it's difficult to say what the root cause is.
- The storage entities of the affected backpacks are being destroyed, causing the items to be erased.
- The storage entities are being destroyed by the
BaseCombatEntity.Die()function, not theBaseEntity.Kill()function. - The
Die()function is being called by aGroundWatchcomponent attached to the storage entity. This should not happen because the plugin destroys theGroundWatchcomponent before spawning the storage entity, so we suspected other plugins are somehow recreating that component. However, a code search through plugins revealed no obvious indicators that another plugin is causing GroundWatch to be recreated. - It happens during server save, when the plugin is saving the contents of backpacks and cleaning up backpacks of disconnected players.
The debug version of the plugin, which can be obtained at the following link, is believed to mitigate the item loss at this time because it uses a hook to block GroundWatch from destroying the backpack storage entity. Since you are affected, I advise you to run the debug version, to see if it mitigates the issue, and to provide any server logs that say "GroundWatch", plus any surrounding log lines.
https://raw.githubusercontent.com/WheteThunger/Backpacks/develop/Backpacks.cs
Thanks, I will try to install it and monitor the logs.
I will report back if I find anything.
Merged post
I got this log immediately after loading the plugin.
[Sort Button] UseClans is set to true, but plugin Clans is not loaded!
[Sort Button] UseFriends is set to true, but plugin Friends is not loaded!
Homeless[4630715] was killed by scientist[76561############] at (618.2, -71.8, 318.4)
Scientist[5886609] was killed by える[76561############] at (1179.3, 28.3, -280.5)
Destroying components immediately is not permitted during physics trigger/contact, animation event callbacks or OnValidate. You must use Destroy instead.
Destroying components immediately is not permitted during physics trigger/contact, animation event callbacks or OnValidate. You must use Destroy instead.
Destroying components immediately is not permitted during physics trigger/contact, animation event callbacks or OnValidate. You must use Destroy instead.
Destroying components immediately is not permitted during physics trigger/contact, animation event callbacks or OnValidate. You must use Destroy instead.
[Backpacks] Backpack storage has 1 GroundWatch components after spawn, but expected 0
Destroying components immediately is not permitted during physics trigger/contact, animation event callbacks or OnValidate. You must use Destroy instead.
hamigaki[76561############] has spawned
Scientist[4937747] was killed by BlackDog[76561############] at (1207.5, 28.1, -275.5)
'RustCore v2.0.5983' is using deprecated hook 'OnMapMarkerRemove', which will stop working on Sunday, 31 December 2023. Please ask the author to update to 'OnMapMarkerRemove(BasePlayer player, List mapMarker, int index)'
[Backpacks] Detected GroundWatch while closing backpack container for player 76561############. Not sure how it got here. Destroying it.
Thanks, that's really insightful. That means that the backpack storage entity was created during a physics event, so the attempt to destroy the GroundWatch component failed. I'm guessing a physics event killed the player, causing their uninitialized backpack to drop, requiring that the backpack storage entity be created in the process. I can address this in the next update by avoiding creation of the backpack storage entity if the player isn't opening the backpack (I thought it already worked that way, but perhaps not), and I will see if I can detect whether a physics event is ongoing during the storage entity creation, in order to call Destroy instead of DestroyImmediate.
I am honored to be of assistance.
Looking forward to the next update.
im using MapNoteTeleport regulary and no problem about backpack personnaly...Kinya
My backpack was gone and I got these log today using V3.11.9.
I'm not sure but I think I was using teleport comand at this time.
Now, I suspect teleportation (instant teleportation like console comand or MapNoteTeleport) but NTeleportation is fine I guess.15:45 [Info] [Server Armour] Player 76561############ is at steam level 9
15:45 [Info] [Server Armour] IP/CACHE| ID:76561############ ADD:*.*.*.* RATING:0 AGE:
15:48 [Info] [Server Armour] Player 76561############ is at steam level 3
15:48 [Info] [Server Armour] IP/CACHE| ID:76561############ ADD:*.*.*.* RATING:0 AGE: 2023-06-25T06:48:07.089Z
15:48 [Warning] [BoxLooters] Saved Boxlooters data
15:48 [Info] [Economics] Saving balances for players...
15:48 [Warning] [Backpacks] Cleaning up backpack for disconnected player 76561############
15:48 [Warning] [Backpacks] Detected unexpected death of backpack container for player: 76561############. No HitInfo
15:48 [Warning] [Backpacks] Prevented unexpected destruction of backpack container for player: 76561############
15:52 [Info] [Server Armour] Player 76561############ is at steam level 3
15:52 [Info] [Server Armour] IP/CACHE| ID:76561############ ADD:*.*.*.* RATING:0 AGE: 2023-06-25T06:52:18.192Z
Unfortunately, I was gone for a few days but this showed up in my console search but I can not go back that far in the Rustadmin online log so this is all I have. But I have several of these in the console search (Just put 3 examples in below) dating back to the 9th all different players I added the last 4 of their id's.
08/14/2023 21:12:20 | [Backpacks] Detected GroundWatch while closing backpack container for player 76561########7020. Not sure how it got here. Destroying it.
08/14/2023 21:10:14 | [Backpacks] Backpack storage has 1 GroundWatch components after spawn, but expected 0
08/09/2023 15:11:02 | [Backpacks] Detected GroundWatch while closing backpack container for player 76561########4034. Not sure how it got here. Destroying it.
08/09/2023 14:23:42 | [Backpacks] Backpack storage has 1 GroundWatch components after spawn, but expected 0
08/09/2023 18:31:06 | [Backpacks] Detected GroundWatch while closing backpack container for player 76561########1224. Not sure how it got here. Destroying it.
08/09/2023 18:27:50 | [Backpacks] Backpack storage has 1 GroundWatch components after spawn, but expected 0
Merged post
I am home again so I'll keep a better watch.
Tankiim using MapNoteTeleport regulary and no problem about backpack personnaly...
Thank you. I found out that the MNTeleport is not related to this issue.
I just received a report from a player (with auth level 0) on my server today. He has no permission for MapNoteTeleport.
Only blue gathering mode was shown on his screen and his json file got emply.
I unloaded the Backpack plugin, restored his json file from my backup then reloaded the plugin.
I backup data\Backpacks folder every 2 hours lately...
Locked automatically