-
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
fix time travel due to 1s turns #36576
fix time travel due to 1s turns #36576
Conversation
I think this will also make saves created after the 1s turn change and before this PR gets merged to time-travel forward when loaded? |
Yes, that's the reason for the suggestion to wait a while before merging the PR, to give players a chance to pick up the new version number in their saves. |
c9508f5
to
fa222fe
Compare
e25f073
to
989dfbe
Compare
Took the time to set up a 0.D world with 3 revealed overmaps, and a scattering of fruit pies across 5 locations. This save archive is directly out of 0.D, and has not yet been loaded in 0.E. I marked all of the locations where I have fruit pies with map notes. For instance, this is the starting evac shelter (first overmap): Directly southwest from that, in the same overmap, is the first refugee center I gifted with a single fruit pie. (it's on the road in front of the building. Don't mind the military base, the character is invincible.) (still first overmap) Almost straight west is a tacoma ranch (the notes are in the wrong location, the actual target is the road out front like with the refugee center). (second overmap) This location is notable, because the stack of 99 pies there, should be rotten (due to being something like 30 days old), but somehow isn't. There's also a single pie which shouldn't be rotten. its stats reflect what's expected. Directly north of the midpoint between the first refugee center and the first ranch, is the second refugee center (still second overmap): It had a slight ant problem, but those are dead and now there is pie. North a bunch and west a little, is the second ranch (third overmap): I saved and loaded in the first overmap, then explored the second and third overmaps in a second go. everything except the rotting seems to be approximately what I expect. Important note: for some reason, when I loaded up in 0.E, the pie in the evac shelter was frozen, which wasn't quite expected. I let a little over a day pass so it would thaw, before checking out other locations. |
With latest commit, the previously-rotten pies are gone when loading a fresh copy of the 0.D save into 0.E. |
Things that I haven't tested yet:
|
all right, i think 5 days since the savegame bump is pretty good for those on experimental. |
This pull request has been mentioned on Cataclysm: Dark Days Ahead. There might be relevant details there: https://discourse.cataclysmdda.org/t/date-change-and-sudden-food-rotting/22450/2 |
Summary
SUMMARY: Bugfixes "Fix time travel due to 1s turns"
Purpose of change
Fixes #31249
When loading a save from 0.D in 0.E, you get sent back in time. this fixes that by altering some key things upon load given the previous savegame loading version:
Testing
Created a game in 0.D summer and waited a few days. Spawned in some fresh meat and dropped it at my feet, and walked away several OMTs. Loaded the game with these changes and observed the meat did not rot in my hands, the season is the same, and the meat i dropped a few OMTs away is still fresh.
Additional context
This PR should hang out for a couple days just so people who are playing on experimental and migrate their savs periodically have a chance to bump their savegame version.