-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
err while looting litter (rotten) in advanced inventory #50714
Comments
If you can reproduce this please post a save file right before opening the AIM and pressing , |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not 'bump' or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered. |
save: info:
|
I remembered this. The fix will not be as easy as I thought. This is likely not getting fixed unless a lot changes. |
This also looks somewhat related to the fixed There is probably a bunch of things that are upset when items rot away when being actively used. |
/confirm Brambor's save can reliably replicate this.
|
It might not be easy to track whether an item rots away. When moving, we probably store a reference like object ~ But we always want to throw an error via Don't throw a It would be possible if the rotting can be communicated to the reference ( So items themselves could be implemented as references (shared ptr) which would mark the item to be destroyed when it is destroyed / consumed / rots away. Then on moving the item, we ask "Is it destroyed by rotting away?" if so, regular log it, otherwise Some parts I described might have already been implemented. The shared ptr is too expensive since every item would have to have it. So there is too little gain (solve this bug) for the price (the whole game runs slower). If not implemented already. |
I'm not great at coding so this might be nonsense. But could we add the shared ptr when we add the rotten tag? That way it's only a slowdown if there's a ton of rotting items? |
Going my way, not really. Then you need to add another level differentiating rotten and not rotten items probably slowing the game down more. And if so, it should be all items that eventually can rot, otherwise item can turn to be rotting and then rot away. Much less likely but still possible. |
That's fair, wasn't exactly sure how that works. |
Describe the bug
I have friendly turkeys, they litter all over the place (yeah!). I tried to pick up the litter and this bug showed up. Probably the litter rot into nothing while I was picking it up?
Steps To Reproduce
/
) and list all around (pressa
) while lots of litter is in reach.,
).Having large torso encumbrance probably helps, if it lowers picking speed.
Expected behavior
No bug, maybe something in log ideas:
"You tried to pick up X, but it rots away before you pick it up." - Nicely specific, should be commented in code.
"You tried to pick up X, but it is no longer there." - Vaguely generic, easier to implement.
Screenshots
No response
Versions and configuration
Dark Days Ahead [dda],
Disable NPC Needs [no_npc_food],
Bionic Professions [package_bionic_professions]
]
Additional context
debug.log:
The text was updated successfully, but these errors were encountered: