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

The "reload" command loads the second most recent autosave #3882

Open
Toodles2You opened this issue Dec 19, 2024 · 0 comments
Open

The "reload" command loads the second most recent autosave #3882

Toodles2You opened this issue Dec 19, 2024 · 0 comments

Comments

@Toodles2You
Copy link

The reload command is called after player death, or via the player_loadsaved entity, in order to load the most recent save.

If the most recent save is an autosave (autosav.sav), the second most recent autosave (autosave01.sav) will be loaded instead.

I'm guessing this occurs because the file change times are being compared instead of modify times. And autosave01.sav usually ends up with the same change time as autosave.sav, since it's just the previous one being renamed/copied when the autosave command is called.

Relevant file times retrieved from stat:

  • autosave.sav
    • Modify: 11:00:35
    • Change: 11:00:35
  • autosave01.sav
    • Modify: 10:42:13
    • Change: 11:00:35

touch autosave.sav will cause reload to load it, as expected.

Operating System Version:
Pop!_OS 22.04 LTS (64 bit)
Kernel Name: Linux
Kernel Version: 6.9.3-76060903-generic
Steam Runtime Version: steam-runtime_0.20241024.105847
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant