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

Food in vehicle freezer rot immediately when taken out of the freezer despite still having a long lifespan in description #6019

Open
Noire-Black-Heart opened this issue Jan 31, 2025 · 2 comments
Labels

Comments

@Noire-Black-Heart
Copy link

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

  1. put food inside a freezer of a vehicle (furniture freezer not tested)
  2. wait long enough time.
  3. take the food out of the freezer
  4. they immediately rot after 1 second

Screenshots

Image These are the food I put in my vehicle freezer, note the lifespan in its description.

Image I put the food in my inventory, note the time on the right of the screen.

Image When selected from the inventory at this second, the lifespan description is normal.

Image 1 second later they're rotten.

Versions and configuration

game version is the latest nightly build.

Additional context

No response

@scarf005
Copy link
Member

scarf005 commented Jan 31, 2025

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:

  1. food of 1 day freshness
  2. store it in freezer for 3 day
  3. take it out
  4. since there's change in position, rotness is recalculated
  5. 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

@Lamandus
Copy link
Contributor

Lamandus commented Feb 3, 2025

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:

  1. Food is 2 days old, it rots at 5.
  2. Put in freezer
  3. Freezer goes out or food is removed
  4. Food is 1 day old again.

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

No branches or pull requests

3 participants