Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt to grab an item from damaging field may cause you grab another thing #8978

Open
3721assistant opened this issue Sep 13, 2014 · 5 comments

Comments

Projects
None yet
7 participants
@3721assistant
Copy link
Contributor

commented Sep 13, 2014

say, if you want to grab something from fire/acid tile,if the item is destroyed before you take it, you will grab another thing instead. While fighting with bare hands, trying to grab something from acid pool may cause you wield an acid zombie corpse instead, and this is very annoying.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@Snaaty

This comment has been minimized.

Copy link
Contributor

commented Sep 14, 2014

Yeah, can confirm that bug.

@kevingranade

This comment has been minimized.

Copy link
Member

commented Sep 15, 2014

This might also trigger a crash in some situations, bleh.

@Rivet-the-Zombie

This comment has been minimized.

Copy link
Member

commented Nov 15, 2014

Recently from the forums: http://smf.cataclysmdda.com/index.php?topic=8361.msg191202#msg191202

@Coolthulhu:

This is a relatively old bug that sometimes works a bit alarming. I never had it cause a crash, though.

When you attempt to pick up items from a tile affected by an item damaging field (or any other effect that can remove items), the item indices can change, causing the pickup function to grab unintended items or even items that don't exist.

For example, attempting to "save" an item from a freshly dead spitter corpse pile will often pick up the corpse itself. Sometimes instead of just picking up the corpse, it will spawn another one, this time with a name. So far I've seen 2 names: spitter zombie corpse "of INCONSPICUOUS" and "of null".

I managed to replicate item duping by dropping 1 brandy, 1 gasoline and 1 non-flammable item (power armor) on one tile, lighting it up with a bionic (takes no time), then trying to pick up both the liquids. Instead of picking a liquid, I picked up a copy of the power armor.

@Leland

This comment has been minimized.

Copy link
Contributor

commented Aug 24, 2017

Super old bug (that was considered old in 2014, phew) – can anyone confirm this is still around?

@Coolthulhu

This comment has been minimized.

Copy link
Contributor

commented Aug 24, 2017

It is.
The items are still addressed by their position in item vector.
There is no way to fix it without either being able to confirm that the item is the one we want, or tracking all instances of "wanted" items.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.