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

Picking up multiple items while in a moving vehicle item loss / duplication #34528

Closed
PaulBlay opened this issue Oct 7, 2019 · 1 comment · Fixed by #34537
Closed

Picking up multiple items while in a moving vehicle item loss / duplication #34528

PaulBlay opened this issue Oct 7, 2019 · 1 comment · Fixed by #34537

Comments

@PaulBlay
Copy link

PaulBlay commented Oct 7, 2019

If you drive your motorbike over a pile of stuff and try to pick it up without stopping your vehicle you end up picking up, and not picking up, some of the objects resulting in item duplication. You can also lose objects this way as they 'fall into the cracks' between reality and irreality. (Does not actually cause a shimmering portal to appear, but maybe it should ;)

  1. Put a pile of lots of stuff in the middle of the road.
  2. Bike past it.
  3. While over/adjacent to the pile of stuff pick it up.
  4. Time passes while you are picking up stuff so by the time you finish you are no longer over the objects.
  5. Game gets confused and throws out a debug error.

=> Result: Some of the stuff you picked up is still on the ground as well. But you can also lose something you tried to pick up.
=> Expected result: Not having stuff left behind as well as in your inventory.

Alternative: Just don't let people grab stuff from the ground while in moving vehicles.

items

  • OS: Windows
    • OS Version: MINGW/CYGWIN/MSYS2 on Windows 8.1
  • Game Version: 0.D-8234-gfd91108 [64-bit]
  • Graphics Version: Tiles
  • Mods loaded: [
    Dark Days Ahead [dda],
    Disable NPC Needs [no_npc_food],
    No Monsters [Only_Wildlife]
    ]

Additional context

Test save that shows the behavoir. Just load and try to pick up everything.

Duplication.zip

@mrkybe
Copy link
Contributor

mrkybe commented Oct 7, 2019

Yep. Can replicate. Also similarly:

If you put some items in a container, ie: back of a pickup truck, and drive past it and do a 'pickup' all action, it will continue doing it. No duplication at least though.

I think grabbing stuff from moving vehicles should be solved separately, since there's interesting cases where it should be allowed (rolling by at 1-4 mph) and weird cases where you can pick stuff up through the floor of your car by driving over something and parking on top of it. Also the semi-related: grabbing stuff from a moving vehicle, namely, the one you're in, while driving.

I think the solution is to just cancel the pick_up activity and roll-back any progress on it (no progress is made), if the player's position changes before it completes. I'm going to try implementing that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants