Page 1 of 1

[1.1.78] game.auto_save fails when writing to a subfolder

Posted: Sun Mar 26, 2023 6:46 am
by Rdjrjqouqcu2
In a clean version of 1.1.78 (no mods), running the following command will cause the screenshotted notice to pop up.

Code: Select all

/c game.auto_save("foo/bar")
Based on the docs, I would expect this to attempt to create the save in 'saves/_autosave-foo/bar.zip'.

If the second '_autosave-foo' folder is manually created, the autosave completes as expected. This autosave is loadable as expected.

This issue was encountered as part of testing for my save stamper mod: https://mods.factorio.com/mod/rd-save-stamper

Re: [1.1.78] game.auto_save fails when writing to a subfolder

Posted: Sat Oct 07, 2023 5:18 pm
by Rseding91
Thanks for the report. This is now fixed for the next 1.1. release.

Re: [1.1.78] game.auto_save fails when writing to a subfolder

Posted: Wed Nov 01, 2023 10:26 pm
by jamiechi1
Someone reported on the Quicksave mod, that it is broken again on 1.1.94.

Re: [1.1.78] game.auto_save fails when writing to a subfolder

Posted: Wed Nov 01, 2023 11:17 pm
by Rseding91
jamiechi1 wrote: Wed Nov 01, 2023 10:26 pm Someone reported on the Quicksave mod, that it is broken again on 1.1.94.
I'll need reproduction steps because this logic has not changed sine it was fixed due to this report.

Re: [1.1.78] game.auto_save fails when writing to a subfolder

Posted: Wed Nov 01, 2023 11:21 pm
by Rseding91
Because when I test it it works fine.
factorio_Tu4zGxe4cM.mp4
(4.02 MiB) Downloaded 89 times

Re: [1.1.78] game.auto_save fails when writing to a subfolder

Posted: Sat Nov 04, 2023 8:14 pm
by jamiechi1
Rseding91 wrote: Wed Nov 01, 2023 11:17 pm
jamiechi1 wrote: Wed Nov 01, 2023 10:26 pm Someone reported on the Quicksave mod, that it is broken again on 1.1.94.
I'll need reproduction steps because this logic has not changed sine it was fixed due to this report.
I should have tested it myself before reporting this. Also works ok for me.