Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inventory & upgrades deleted from my backpack #1127

Open
Otakriss opened this issue Aug 25, 2024 · 6 comments
Open

Inventory & upgrades deleted from my backpack #1127

Otakriss opened this issue Aug 25, 2024 · 6 comments
Labels
question Further information is requested

Comments

@Otakriss
Copy link

I have a problem with my backpack. It was filled with many items and fully upgraded. I put it on my back, and after that, when I pressed the key to open it, it was completely empty—no upgrades, no items.

This isn't the first time I've encountered this issue, both in single-player mode and on multiplayer servers, across multiple versions.

I don't know why this happened, but I want to know if there's a way to recover the many hours of gameplay and the unique items I've lost.

Thank you very much.

@P3pp3rF1y
Copy link
Owner

potentially the backpack was duplicated and deduplication logic set it to new UUID. you can try using /sbp list /sbp give commands to get your backpack but if it was really duplicated then that's not going to help as another player has already opened "your" backpack and it will be assigned to them in the history of backpacks open most recently.

Anyway if you feel like there's anything to fix here I will need more info to be able to recreate, but this is such a basic thing that if that really was an issue in general I would have hundreds if not thousands of reports like this and yet I don't see them.

@P3pp3rF1y P3pp3rF1y added the question Further information is requested label Aug 26, 2024
@Jack-McKalling
Copy link

Second reporting of this happening.
In my case, I had a diamond-tier backpack (but otherwise no content, colour or upgrades) and put a couple of Twilight Forest loot items in, and stored it in a Iron Chests chest of diamond tier with other content. When taking the backpack out again, it was suddenly completely empty and the TF items were gone.

Third reporting of this issue.
Yesterday I left leftover blocks from construction in a backpack (potentially the same ID, cannot figure out), left it on my hotbar, and logged out. Today I log back in, and all the blocks are gone. I even went as far as checking the NBT of my playerdata, the data of the associated backpack NBT, and checked the same data in backups. It is nowhere, even in backups that should have the items still in.

It looks like this particular backpack doesn't save its NBT or something, but I cannot see or tell why it wouldn't. There is and were never any illegal or corrupt items in it to cause its NBT to break down.

@Jack-McKalling
Copy link

Jack-McKalling commented Sep 6, 2024

Additional thought that may be incredibly relevant here, this backpack might have been a drop from a loot piñata. Maybe the mod doesn't allow the same UUID to happen multiple times, and maybe I didn't observe duplicate backpacks getting dropped at any point, but the attempt might still have happened and corrupted a UUID in my save. That's the only cause I can think of why this one particular backpack doesn't save correctly.

This at least gives a potential for repro steps, however I haven't been able to repro it yet even with this in mind.

@P3pp3rF1y
Copy link
Owner

yeah loot pinata duplicates backpacks including the UUID and then if 2 backpacks with the same UUID exist in inventory of a single player or 2 online players one of them will get its UUID changed to prevent item duplication / loss bugs. 1 backpack retains its UUID and thus its inventory though. Backpacks are actually not corrupted or saving incorrectly just have the UUID deduplicated.

Anyway if the backpacks were duplicated this way I am going to just close as it's working as intended. Unless you have any additional info that this is not the case and steps how I can recreate.

@Jack-McKalling
Copy link

That is not what happens. I brought up loot piñata because it would make sense that the backpack could get corrupted because of one.

Never has the backpack been dropped multiple times from the same mob though, I was under the impression you have a mechanism already to account for duplication of that kind and prevent it at least partially.

Whenever a loot piñata drops a backpack, only one backpack is dropped. So this might not be related after all. Then I don't know anything about why it could happen.

@P3pp3rF1y
Copy link
Owner

I have no way of preventing loot pinata from dropping multiple backpacks so if it's only dropping 1 that must be something on that mod's side.

The issue could also potentially be caused by a crash happening at the time of server saving data.
If that's not the case I will need to understand steps I can use to recreate otherwise there's nothing I can do here. This obviously isn't a common "backpacks sometimes not saving contents" issue otherwise this tracker would be full of those reports. So there's something special going on here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants