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 12 forks source link

Backpack inventories getting cleared on reloading #127

Open Visteus opened 8 months ago

Visteus commented 8 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 8 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 months 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 months 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!

shankapotimusrex commented 1 month ago

Yeah, I have been seeing some of the same thing. Sometimes it loads a previous inventory, which can either look like item duplication or item loss. Right now, I think it is an interaction with ServerSideCharacters & fail to save on game exit. I still have more testing to confirm this. I also need to see If others on my server experience the same.

Vapok commented 3 weeks ago

This might actually be a problem with ServerSide Characters if something happens to the profile on the server.

As of right now, I've not been able to reproduce this issue.

Vapok commented 3 weeks ago

I am still unable to reproduce this issue when I use Adventure Backpacks by itself. This is most likely due to a module issue, and I'm going to need help from those experiencing this issue to start to remove parts of your mods and let me know which mod you remove that causes this issue to go away.

Jeesson commented 2 weeks ago

Also encountered this problem with a friend. We have as if roll back the state of the backpack when you restart on the server (I host) to the state in which it was an hour ago or more (hard to track when exactly it was saved)

I've attached the mod sheet and profile code below just in case:

0193115f-80e0-69ef-9fc0-396c956ba313
denikson-BepInExPack_Valheim-5.4.2202
ValheimModding-HookGenPatcher-0.0.4
nwesterhausen-DiscordConnector-2.3.1
RandyKnapp-EpicLoot-0.10.6
RandyKnapp-EquipmentAndQuickSlots-2.1.14
RandyKnapp-ItsJustWood-1.1.0
RandyKnapp-MinimalStatusEffects-1.0.7
RandyKnapp-ImprovedBuildHud-1.0.8
TStein-Storage_Utils-1.1.0
Smoothbrain-PassivePowers-1.1.2
Tjs1000-AnyPortal-1.0.4
GoldenJude-Blacksmiths_tools-2.0.3
GoldenJude-Judes_Equipment-2.2.4
Smoothbrain-SmoothSave-1.0.5
Smoothbrain-SteadyRegeneration-1.0.3
Smoothbrain-TimedItemDestruction-1.0.3
Smoothbrain-Sailing-1.1.7
JereKuusela-Smoke_Collision-1.8.0
OdinPlus-CraftyCartsRemake-3.1.6
OdinPlus-TeleportEverything-2.7.0
OdinPlus-OdinCampsite-1.5.5
OdinPlus-ChainSword-0.0.7
castix-FloatingItems-1.0.0
eideehi-Automatics-1.5.1
virtuaCode-EmoteWheel-1.4.1
BentoG-CoolerWorkbench-2.0.0
Smoothbrain-Professions-1.4.3
Smoothbrain-Blacksmithing-1.3.1
Smoothbrain-Cooking-1.2.0
Smoothbrain-Lumberjacking-1.0.5
RandyKnapp-Auga-1.3.11
Smoothbrain-Backpacks-1.3.5
Smoothbrain-DualWield-1.0.9
MSchmoecker-MultiUserChest-0.6.0
cazou-QuickerStack-0.0.5
virtuaCode-EquipWheel-1.5.3
JereKuusela-ESP-1.27.0
WithinReason-MultiCraft-1.1.1
OdinPlus-OdinHorse-1.3.1
CookieMilk-SuspiciousPieces-1.2.5
Smoothbrain-Farming-2.2.0
Marlthon-LandAnimals-0.3.8
Marlthon-AirAnimals-0.2.1
Smoothbrain-Jewelcrafting-1.5.30
OdinPlus-OdinsSteelworks-0.2.1
Goldenrevolver-Quick_Stack_Store_Sort_Trash_Restock-1.4.10
Azumatt-Official_BepInEx_ConfigurationManager-18.3.0
Smoothbrain-Foraging-1.0.9
Crystal-DigDeeper-1.1.5
Crystal-Pathfinder-2.0.11
Crystal-ProperPortals-1.2.5
Korppis-SolidHitboxes-1.0.5
RandyKnapp-AdvancedPortals-1.0.11
RandyKnapp-Jam-1.0.9
RandyKnapp-ImprovedDvergerCirclet-1.0.7
MSchmoecker-ContentsWithin-2.1.6
ValheimModding-Jotunn-2.21.3
BentoG-MissingPieces-2.2.0
OdinPlus-BoomStick-0.0.14
Marlthon-OdinShip-0.4.6
OdinPlus-OdinBanners-1.1.9
SpikeHimself-XPortal-1.2.21
CrazyPony-InstantMonsterLootDrop-0.5.0
CrazyPony-Clock-1.6.0
Crystal-CrystalLib-1.1.0
Crystal-Underwater-1.0.7
Smoothbrain-GapFiller-1.0.5
Azumatt-Recycle_N_Reclaim-1.3.5
NexusRPLD-aedenthorn_TerrainReset-0.8.0
Smoothbrain-Exploration-1.0.3
probablykory-UsefulTrophies-2.2.2
MathiasDecrock-TransparentSail-1.3.0
Numenos-NotificationTweaks_By_Aedenthorn-0.5.0
GemHunter1-HipWeapons-1.1.0
CrazyPony-Compass-1.3.1
blacks7ar-BoatAdditions-1.3.5
blacks7ar-SimpleElevators-1.2.7
Bugas-Badgers_Shading_Overhaul-0.3.2
Crystal-Sated-1.1.11
Crystal-Comfortable-1.0.4
Crystal-ClearTheAir-1.0.3
ComfyMods-SearsCatalog-1.6.0
Searica-More_Vanilla_Build_Prefabs-1.3.0
shudnal-RichDiscordPresence-1.0.5
Vapok-AdventureBackpacks-1.7.9
BetterUI_ForeverMaintained-BetterUI_ForeverMaintained-2.5.7
joryjuky_team-Better_Blast_Furnaces-1.0.0
Frogger-KilnReimagined-1.3.7
Alpus-HeadLamp-1.3.2
Alpus-FurtherUpgrades-1.1.2
OdinPlus-BetterLanterns-1.1.0
Rabid_Wolf_Studios-Climbing-1.0.6
Frogger-CosmeticSlots-1.6.0
RustyMods-Seasonality-3.4.6
RustyMods-SeasonalityTextures-1.0.1
rendl0449-CraftFromContainers-3.5.7
TastyChickenLegs-BedRules-2.0.2
Roses-SmarterContainers-1.7.0
Advize-PlantEverything-1.18.2
Marlthon-TheFisher-0.2.4
Advize-PlantEasily-1.9.2
Searica-BuildRestrictionTweaksSync-1.2.0
Searica-Extra_Snap_Points_Made_Easy-1.4.0
blacks7ar-GlassPieces-1.2.3
blacks7ar-RefinedStonePieces-1.0.7
MSchmoecker-ItemHopper-2.0.0
shudnal-HipLantern-1.0.11
Searica-AdvancedTerrainModifiers-1.4.0
RustyMods-RustyBuildPieces-1.0.8
RustyMods-FishTrap-1.0.2
ishid4-BetterArchery-1.9.8
MSchmoecker-DynamicStoragePiles-0.6.1
VentureValheim-Pathside_Assistance-0.2.3
NoPetRides-CropUtils-1.5.0