Vapok / AdventureBackpacks

A Valheim Mod to add Adventuring Backpacks to the Game. These packs grow and become more useful as the game progresses.
MIT License
15 stars 11 forks source link

Backpack inventories getting cleared on reloading #127

Open Visteus opened 5 months ago

Visteus commented 5 months ago

Describe the bug On reloading a world, every player's equipped backpacks are sometimes empty. I haven't been able to make it consistent. Also, sometimes a player will instead see their backpack filled with old items from a previous reload, but I haven't been able to replicate that in singleplayer.

To Reproduce Steps to reproduce the behavior:

  1. Put items in backpack (any will do)
  2. Save the game.
  3. Close out the world (either fully close game or logout to menu)
  4. Load back in.
  5. See empty backpack.

Expected behavior Items put into the backpacks shouldnt be deleted on loading.

Visteus commented 5 months ago

An update, that this seems to be less than just "deleting items" and more "reverting to some previous state". I still can't consistently trigger this, but sometimes on respawning (either game load or dying and waking up in bed), opening a backpack will show some previous state rather than what Im expecting.

For example, I had a bunch of wood + core wood in the backpack at one point, gathering in the black forest. Empty the pack back at base, then sail out to a swamp to look for iron. Gather some scrap iron and put it in the backpack, but die. Then when I get back to my backpack, it's full of the wood + core wood I had earlier.

Doesn't seem to be tied to world save state, as saving with new backpack inventory then dying (and getting the issue to occur, again it seems kinda random) may revert to an inventory from 2hrs ago.

Bluesun-Rise commented 2 weeks ago

I think i found some additinal info on this bug.

What i found was that the backpack inventory sometimes seemed to decouple from the backpack item. Causing a phantom inventory to appear you could withdraw or put stuff into but that wouldnt get saved, additionally the backpacks (item) weight wouldnt change based on the backpacks inventory. This would stop when reequipping the backpack, presumably resyncronizing the Backpack inventory with the Backpack item (losing the phantom inventory in the process).

The decoupling seems to reliably appear when reloading the world (I checked, and this seems to be caused by ComfyQuickslots in my case).

Vapok commented 2 weeks ago

@Bluesun-Rise I've been unable to reproduce this.

Can you please attach your full Player.log when this happens? Can you also list your full mod list?

Thanks!