-
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
Tried removing item from object which did not contain it with no clear cause #39402
Comments
there were some recent issues that were closed by a PR i made ~6 hours ago. this is very likely related to the PR that caused those, which was the encapsulate item contents pr. i don't know the number off the top of my head. |
I just updated to the latest build(10508) and had it happen. Even figured out reproduction steps:
upd: if you have multiple containers with the liquid and choose to reload your container, in source container selection list previously emptied ones will show 1 in "amount" column (but even if you choose them they won't provide any). |
oooohkay, it's even worse than that. Those containers that showed amount:1 in reload selection list? after reloading a save, they actually DO have an amount of liquid. I had 3 condoms of motor oil which were most definitely empty after loading their contents into a jerrycan (but still had amount:1 as noted in previous post), but after reloading the save each one had 250ml of motor oil. Loadable into other containers and all that. That's not just an error, it's an exploit. |
Tried bisecting it but it turns out a week old code can't read modern save files. |
e03227a is the first bad commit |
Damn i'm too C++-dump to grok it. |
Just want to add - bug doesn't happen if you are refilling vehicle from container, drinking from it or spilling its contents on ground. It only happens when you are filling one container from another. |
i have a save file when it occurs w/o any such event |
Just returning to the game after some months, and what do I find in my new game? This exact bug, I attach the save file, you just need to go east (To the closest city) and it will start happening without doing anything but walking, but if you go west it wont happen (I have just looted a single house in that city, so I don't know why this is happening) Edit: |
I specifically added that it was regarding player-managed containers only. 100% reproducible steps to help find (at least one of) the source(s) of the problem. I, too, have it happen sometimes in cities, my guess is something to do with zombies moving through RB boundaries. Anyway, something for @KorGgenT to meditate on if he hadn't fixed it yet: after getting kinda-but-not-empty container as described in one of my previous posts here, trying to drink from such container generates another error:
After which the bottle becomes regular empty bottle, with no charges and no liquid name slapped on it. |
i will have to revisit this and the handful of other similar issues after nested containers, and see if they go away due to that PR. |
This issue has been mentioned on Cataclysm: Dark Days Ahead. There might be relevant details there: |
Describe the bug
Every once in a while the following error pops up a number of times. I've had this happen while reading, while crafting and just walking around. The game doesn't crash, and I can sort of ignore it.
item visitable<T>::remove_item(item&) [with T = item]] Tried removing item from object which did not contain it
I couldn't find any other reports with this issue, and most related seem to be related to butchering(?) instead of "just popping up"
Steps To Reproduce
No discernable pattern(to me) on when it happens. Sometimes it doesn't happen for a long time, sometimes it fires multiple turns after another.
Expected behavior
It doesn't bug out
Versions and configuration
Dark Days Ahead [dda],
Aftershock [aftershock],
Simplified Nutrition [novitamins],
C.R.I.T Expansion Mod [crt_expansion],
MSX Hide DEBUG [UDP_No_Debug_Tile],
Mythical Martial Arts [MMA],
Urban Development [Urban_Development],
Alternative Map Key [alt_map_key],
Disable NPC Needs [no_npc_food],
Craftable Gun Pack [craftgp],
Fuji's Military Profession Pack [fuji_mpp],
Beta National Guard Camp [national_guard_camp],
SpeedyDex [speedydex],
Stats Through Skills [StatsThroughSkills]
Additional context
Debug trace:
Attached save:
Saved right after the incidents.
save.zip
The text was updated successfully, but these errors were encountered: