gr8pefish / IronBackpacks

A Minecraft mod that adds portable storage in the form of tiered backpacks with modular upgrades.
GNU General Public License v3.0
60 stars 33 forks source link

IronBackpack contents disappearing #262

Open Physicist1616 opened 5 years ago

Physicist1616 commented 5 years ago

Issue Description:

Backpack contents disappear completely.

I assembled this collection of of mods yesterday. Both today and yesterday it cleared contents on at least one occasion each.

What happens:

I put items in my backpack, and twice now I've observed that opening it some time later (same real-time day, probably several MC days, there might have been a server restart if it hung itself up, but no log entries about the hang, just have to ctrl-C it--Edit: Nope, the next server restart due to hang didn't clear it--), it's empty.

It's a simple first-tier leather-and-chest backpack. No upgrades or metals.

If it matters, I'm wearing the backpack. I bound the hotkey for this to V. I bound (or left it default) the hotkey for checking the backpack to R. Coincidentally, this is also the inventory tweaks sort button, but they seem to work together just fine. I acknowledge this could be the issue; has this been noted and determined unfixable?

Iron Backpacks was a special request by my wife, so I'd love to figure out why or what is causing it to clear contents.

Steps to reproduce (important):

I haven't been able to identify the specific circumstances, but am hoping to solicit testing advice to narrow this down.

Is there a verbose logging option somewhere that could yield insight? Is there a logging action somewhere likely to say something to the effect of, "[backpack data corrupt; discarding]"

I'm tempted to write a watcher script to let me know when the backpack content file zeroes-out, but I haven't dived into the save-structure for Iron Backpacks enough to know what file it is, or whether that would be a practical approach (all backpacks in a save into one file? backpack as part of the character's NBT?)


Affected Versions (Do not use "latest"):

Physicist1616 commented 5 years ago

Crap, now I see that 1.7.10 is unsupported.

Any information on this, especially known issues, would be appreciated; I acknowledge no code is likely to be submitted to fix the issue. I just want 1.7.10 because two of my favorite mods which I haven't "completed" are 1.7.10 only.

Physicist1616 commented 5 years ago

The cause of the hangs-to-infinite, as revealed by Opis, was VillageNames. With that removed, I don't get the crashes, but I did still get an Iron Backpack (this time an Iron one, on my back) inventory clear.

I was delving in a Chromaticraft Cavern this time. I ran out of inventory space, so I put the contents of the loot chests and some gold ore blocks in my Iron Backpack. Then, not 2 minutes later, when I wanted to put some crystals and black stone from the walls of it in there, it was empty.

How can I learn the cause of the clearings?