[1.0.0] game.auto_save fails to save to subdirectory

Bugs that are actually features.
User avatar
Shados
Burner Inserter
Burner Inserter
Posts: 9
Joined: Sat Mar 05, 2016 11:08 am
Contact:

[1.0.0] game.auto_save fails to save to subdirectory

Post by Shados »

It is possible to save to a subdirectory when using the save menu (although the subdirectory must first be created externally), which is useful for organising and grouping game saves. `game.server_save` is also capable of saving to subdirectories, but `game.auto_save` fails to do so.

I believe the issue is related to `game.auto_save` adding a `_autosave` prefix to the save name, as it does successfully create a subdirectory (with the `_autosave` prefix) but then attempts to write the save file into a nested subdirectory of that subdirectory (according to the error message and log file, which is attached to this post).
Attachments
factorio-current.log
(26.3 KiB) Downloaded 55 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 14337
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [1.0.0] game.auto_save fails to save to subdirectory

Post by Rseding91 »

Thanks for the report however that function does not support saving to sub directories. It specifically asks for a name and that name will get put into the default saves folder.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Not a bug”