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

Honktown
Smart Inserter
Smart Inserter
Posts: 1042
Joined: Thu Oct 03, 2019 7:10 am
Contact:

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

Post 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/"
I have mods! I guess!
Link
User avatar
Therenas
Factorio Staff
Factorio Staff
Posts: 261
Joined: Tue Dec 11, 2018 2:10 pm
Contact:

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

Post by Therenas »

Thanks, it just doesn't save anything if there is no current save. Fixed for the next release.
Post Reply

Return to “Resolved Requests”