You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The perishable food, like meat chunk, put inside a vehicle that has its freezer on constantly after its normal lifespan, rot immediately when taken out of the freezer.
Steps To Reproduce
put food inside a freezer of a vehicle (furniture freezer not tested)
wait long enough time.
take the food out of the freezer
they immediately rot after 1 second
Screenshots
These are the food I put in my vehicle freezer, note the lifespan in its description.
I put the food in my inventory, note the time on the right of the screen.
When selected from the inventory at this second, the lifespan description is normal.
1 second later they're rotten.
Versions and configuration
game version is the latest nightly build.
Additional context
No response
The text was updated successfully, but these errors were encountered:
it's kind of design and performance limitation.
tracking item temperature each turn (like in DDA) is expensive, so afaik rotness is only tested when it's used by comparing its creation time and current time.
so it might be possible following might happen:
food of 1 day freshness
store it in freezer for 3 day
take it out
since there's change in position, rotness is recalculated
since its age is 3 days and not on freezer, the check determines item is rotten
might be able to solve it by checking previous position in step 4
A hacky way to deal with it is to reset the rot calculation completely whenever it was frozen. While exploitable (but food rarely is a problem for us), it would give some time if the freezer is out for whatever reason for some time. So:
Can freshness be tracked similar to "charge" and if when moving/loading the item, check for the following
if the source is
warm = reduce the freshness charge slower
normal temp = reduce freshness per usual
cold = reduce freshness slower
freezer = keep freshness the same
I.e. can we track freshness like the leaky batteries in cars? But instead of damage, leak is determined by temperature of container.
This problem was certainly accounted for earlier, it must be a relatively recent regression.
Seems that last rot check or birthday isn't updated properly.
Can freshness be tracked similar to "charge"
It effectively is. Each item has rot and last_rot_check. Last rot check is bumped (to current time) on rot processing regardless of the temperature. Rot is increased based on temperature and difference between current time and last rot check.
Describe the bug
The perishable food, like meat chunk, put inside a vehicle that has its freezer on constantly after its normal lifespan, rot immediately when taken out of the freezer.
Steps To Reproduce
Screenshots
Versions and configuration
game version is the latest nightly build.
Additional context
No response
The text was updated successfully, but these errors were encountered: