-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Arithmetical error after consuming a lonely aspirin #40968
Comments
Cannot reproduce. Could you upload your save? |
the accident happened way far from my last save, i picked up some aspirine and it automatically sorted them in a way that separated that single pill from the rest |
I got that bug too yesterday. I don't know how to reproduce it, yet, but there is definitely a bug there. |
It happens with many small items, not only aspirin. Sometimes - don't know how to reproduce it sadly - when you moving statcks of things like drugs, nuts or sweets betweed containers and inventory, one singular unit bugs out somehow. You can see it no longer stacks correctly with the rest and there is weirdness with moving it around - it does not turn a "-" to a "+" sign when you sellect it to drop and when dropped anyway, it does not go into world container (like vehicle trunk or braizer) but always on the ground. Trying to consume such bugged item crashes the game as OP described. |
what would happen if you move to the ground the whole stack + the lone item then pick it up again? it should disappear it must have something to do with the nested hell system |
I tried picking up a cake (12), the game prompted me to unequip an item to wield it. I declined, and the cake (12) fell on the floor I was standing, mentioning "you pick up 0 cakes (fresh)". I sat on a chair near the floor to (E)at the cake (12). The "- consuming..." dialog is shown. I get the exact same error log as above, except the IL's (@0x...) are changed slightly due to running 0.E-2818-gbbc9163 instead of 0.E-2684-g2bb4c7f. E.g:
More tests:
When you attempt to pick up with a full inventory, then (Esc)ape out of the menu asking you what to do with a wielded item, an item "cake (fresh)" is still added to your inventory, while cake (12) remains on the floor below the player. Eating from the floor works fine, but attempting to eat the fake "cake (fresh)" listed under Food causes the Arithmetical Error!
|
I would guess that the problem is the way picking up those items is handled. I would normally expect a prompt in the vein of "You don't have space for that item, would you like to remove your wielded weapon?", but it immediately seems to go to removing the wielded weapon, which, when cancelled out of, adds "0" of the item to your inventory. Then, the consuming code must be dividing by the count of the item at some point, resulting in a simple division by zero error. |
Same here. I think it happened after I drank some soda from a can. |
Please comment if you see this again and we'll reopen this issue. |
the bug:
I have some pain, I decide to consume an aspirin, I see a lonely aspirin in my inventory, I think is the leftover of a stash in one of my pockets, I consume it and.... BOOM
This is the crashlog
Steps To Reproduce
Eh, wait until you have a lonely item of a stash in your inventory or IDK
Expected behavior
it shouldn't crash and give me headache
Versions and configuration
-->
Additional context
https://textsaver.flap.tv/lists/3exj
The text was updated successfully, but these errors were encountered: