CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.63k stars 4.18k forks source link

Picking up an item makes another item drop out #72762

Open Etgfrog opened 7 months ago

Etgfrog commented 7 months ago

Describe the bug

After filling up the inventory with a bunch of stuff, including a few very heavy and large items, I found a medium battery and picked that up, which caused one of those heavy items to drop. After dropping the medium battery then picking the large item up again, I attempted to try again and a different item dropped out. Its possible the get item function is seeing volume inside one of the pockets that is being reserved for other items and is pushing it into the cardboard box which might be looking at its weight through its weight reduction.

Attach save file

Brookland Terrace-trimmed.tar.gz

Steps to reproduce

  1. Wear a warped hauler's harness from sky island with a cardboard box.
  2. Fill the cardboard box with some items.
  3. Wear any other bag that had pocket settings that exclude the random items being picked up.
  4. Pickup an item and some of the the stuff in the cardboard box will fall out.

Expected behavior

I expect items to not randomly fall out when I try to pick things up.

Screenshots

No response

Versions and configuration

Additional context

This problem has been observed by one other person, I do not know the setup of their inventory and my own attempts to recreate the bug failed after a few hours of testing. So I'll be submitting the issue now that I've encountered it a second time in this almost 100 hour long game.

PatrikLundell commented 7 months ago

I have had a weird thing happen a few times: Picking up an arrow previously fired, only for the whole stack of arrows then fall to the ground. The stack could be picked up again (so there wasn't an actual lack of room). Unfortunately, concentration on game play led to none of the cases being reported (and it doesn't help that the compressed save is too large anyway). This happened when I last played, which probably was late November.

IdleSol commented 7 months ago

We need the following items:

  1. Body bag - 1 piece
  2. Sand - 11 000 piece
  3. Canning pot - 1 piece
  4. Bronze anvil - 1 piece
Body bag pocket: 100 L, 100 kg
11 000 x Sand: 55 L, 88 kg
Canning pot: 25 L, 4.08 kg
Canning pot pocket: 20L, 40 Kg
Bronze anvil: 12L, 26kg

Steps to reproduce

  1. Default world and character
  2. Remove all clothes
  3. Pick up the body bag
  4. Put sand in the bag body bag + 11 000 sand = 55/100 L, 88/100 kg
  5. Ensure that only the pot fits in the bag, not the anvil. Weight restriction. We need 26 kg, but only 12 kg is available.
  6. Put the pot in a bag body bag + 11 000 sand + canning pot= 88/100 L, 92.08/100 kg
  7. Once again we try to pick up the anvil and make sure we can do it.
  8. Picking up the anvil
  9. We look at the sand that has fallen out of the bag.

The anvil fits into the pot ( 26 kg required, 40 kg available). But after the anvil fits in the pot, we exceed the maximum weight limit for the bag that holds the pot with the anvil. 92.08 + 26 from 100 And the sand falls out.

Let's change the order of operations.

  1. Let's take the bag in our hands
  2. Pick up the pot
  3. Pick up the anvil
  4. Pick up the sand
  5. Make sure that only part of the sand is picked up (8739 from 11000).
  6. Make sure the game says we can pick up the remaining sand (action available). But when trying to pick up: "you`re overburdened"

P.S. I hope that's clear enough. And I haven't mistranslated anywhere.

UPD. Additionally, the setting must be set to: general/player safety options/Dangerous pickups = true It's not necessary. It's just more convenient.

If the setting is dangerous pickups = false. Then use the advanced inventory manager. The result will be the same.

hexagonrecursion commented 7 months ago

/confirmed sand does fall out as described by IdleSol

image