Page 1 of 1

[1.1.110] game.server_save() is under-defined

Posted: Sun Oct 20, 2024 9:54 pm
by Honktown
https://lua-api.factorio.com/1.1.110/cl ... erver_save

Code: Select all

server_save(name?)

Instruct the server to save the map. Only actually saves when in multiplayer.
Parameters
name 	:: string?	

Save file name. If not specified, the currently running save is overwritten.
What happens if the game hasn't been saved? This implies a save given via command-line can be overwritten, which raises some questions if the saves can be located outside of the designated folder for "/saves/"

Re: [1.1.110] game.server_save() is under-defined

Posted: Mon Oct 21, 2024 1:27 pm
by Therenas
Thanks, it just doesn't save anything if there is no current save. Fixed for the next release.