Sophisticated Backpacks

Sophisticated Backpacks

97M Downloads

Inventory & upgrades deleted from my backpack

Otakriss opened this issue · 20 comments

commented

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.

commented

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.

commented

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.

commented

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.

commented

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.

commented

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.

commented

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.

commented

Are you able to provide steps to recreate or should I just close?

commented

Personally, I've not been able to reproduce it consistently yet. Or even find more factors to determine what causes it. It definitely is still a huge frustration for me that this happens, as well. But I can't speak for the OP on whether to close this issue.

One thing that I found, was that most of the time this happens, I was inserting items into a backpack using the "click item onto backpack item" like a bundle. But unfortunately, I can't say that's how it happened all the time. I also definitely opened the GUI before and inserted normally, only to realise upon reopening immediately afterwards, that the entire batch of insertions was without persistence. So this detail doesn't consistently say anything.

Another thing I found, was that when the issue happened in the GUI of the backpack, it was always empty prior. But, again unfortunately, this wasn't the case when inserting stuff into it like a bundle. I've been inserting stuff into the backpack while clicking items onto its own item, and there was already content in it, but nothing new was added in the end. So nothing consistent in this detail either.

The only thing consistent is the modpack it happens in, but then again, it's the only one I'm playing, so that doesn't say much.

If lag is the cause for this, then try to interact with backpacks in a modpack that keeps hitting the 90%'s of allocated mem usage. Then maybe at some point the mod runs into a tick where it can't fully perform its save, and then cause this issue. But, nobody knows for sure that's the actual cause.

commented

Seems this might be related: FTBTeam/FTB-Modpack-Issues#6273

commented

Seems this might be related: FTBTeam/FTB-Modpack-Issues#6273

That definitely sounds like those two backpacks have or had the same id (which was since changed by SBs deduping logic). Either the players duplicated it in creative or using something like loot pinata or potentially they got the backpack from something like quest with the id already assigned but I don't think that FTB evolutions would hve a quest like that?

commented

@alfredggttv I commented on the linked FTB issue, pretty sure fixing those quests solves your part here.

@Jack-McKalling I would like to somehow close this issue and at the moment I have no way of recreating the issue so if you can provide more please do otherwise I will just close until this happens again and you would have steps I can use then.
And just one more thing from you pointing out that items right clicked are not getting put into the backpack that sounds like some mod may be handling that same action and vanishing the item. Also there was no mention of version or modpack here and whether this is in single player or on a server (and potentially on what kind of a server) Perhaps that could give me a clue?

commented

It appeared to me that right-clicking wasn't the only thing that caused loss of data. It also happened multiple times to me that when I inserted items into the backpack through the GUI normally, it also didn't get saved. So it's probably not a mod handling the right-click action and vanishing it. (unless there are multiple causes at once for data loss).

Specifically, I opened the empty backpack and dumped a lot of stuff from my inventory into it by shift-clicking each stack, closed backpack, and reopened it later to store some more. And it was empty once again. And I can 100% certainly say that it doesn't always happen to the same backpack, because I had used that specific one many times before successfully (as well as successfully afterwards).

I'm playing SSP, not server. Using the modpack From Magic To Tech, for 1.20.1.
I recently updated the mod manually though (from 3.20.11.1115 to 3.20.17.1150), and haven't specifically experienced the issue yet so cannot confirm that it was fixed already (unlikely though)

Let me know if there's anything else you need to know, besides hard repro steps (I wish there were any)

commented

Well, the issue I see with the logic that there's something wrong with saving in general is that this seems to be the only report of something like that happening. there are reports of people losing all of their backpack contents during crashes (explained by server not saving data) or randomly (explained by duplicated UUIDs). But you seem to be the only one suffering from some items sometimes disappearing despite the huge number of players who play with the backpacks.

commented

And yeah I will need repro steps because I also play with backpacks in 1.20 and am not experiencing anything like this so I would say that I have done my part of trying to recreate :) and I will need to understand how I can do that.

commented

I am sorry if I dont help a lot but it happened to us two times and its right after our server crashed, everyone lost their backpacks inventory the sbp.dat file show the backpacks of only the one who connected since the crash/clear the 4 access log are me and the friend who connected since and in backpack content it says 27 but there is no content(not sure what that means tho)?

Sure if the server crashed while saving data it didn't save the backpack data and thus you would lose it like this. The only thing that can help there is backup. From 1.21 neo has a way of preventing the crash lost of data in dat files in most of the cases so from there on this should way more rare occurence but backup is still a way to go for those rare cases when the file may not get saved for some reason.

commented

I am sorry if I dont help a lot but it happened to us two times and its right after our server crashed, everyone lost their backpacks inventory the sbp.dat file show the backpacks of only the one who connected since the crash/clear the 4 access log are me and the friend who connected since and in backpack content it says 27 but there is no content(not sure what that means tho)?
image

commented

Girlfriend and I were playing on LAN, very few mods. Only way of getting a backpack was to craft it or find it on a mob through your specific mod. We logged in the next day and both backpacks we had equipped to use were empty.

commented

@Talvysh

Girlfriend and I were playing on LAN, very few mods. Only way of getting a backpack was to craft it or find it on a mob through your specific mod. We logged in the next day and both backpacks we had equipped to use were empty.

Did you save the game properly after you ended playing? No crash happened? No errors in the log?

commented

Hello, tell me how difficult it would be to transfer uuid between backpacks that are used for crafting, I mean, it would be possible to do something like this, when improving the backpack, the improvements and contents of the backpack would be saved. I hope my message will be conveyed correctly using Google Translate

commented

Hello, tell me how difficult it would be to transfer uuid between backpacks that are used for crafting, I mean, it would be possible to do something like this, when improving the backpack, the improvements and contents of the backpack would be saved. I hope my message will be conveyed correctly using Google Translate

If you mean when you are upgrading from let's say iron tier to gold tier of backpack that is already a thing. If that doesn't work in the modpack that you play that would mean the modpack author changed the recipe, but is using incorrect recipe type - the one used by mod by default needs to be used to transfer contents regardless of recipe ingredients