Page 1 of 1

Save game LUA command ?

Posted: Thu Jun 29, 2017 7:17 pm
by Minuit
Hi guy's !

Can I save the game with LUA command because I play in Multiplayer with dédicated serveur, and if the server reboot, he restart with the last save, but this save is the map beginning
So we can do update this save with the LUA command for save the game before disconnecting ?

Thanks you for your time.

If it not possible, please KOVAREX add this command Thanks you :D

Re: Save game LUA command ?

Posted: Fri Jun 30, 2017 8:16 am
by Mooncat
Haven't tried the following but according to the doc, it should be something you want:

Code: Select all

/c game.server_save()
server_save(name)
Instruct the server to save the map.

Parameters
name :: string (optional): Save name. If not specified, writes into the currently-running save.

http://lua-api.factorio.com/latest/LuaG ... erver_save

Re: Save game LUA command ?

Posted: Fri Jun 30, 2017 12:50 pm
by Minuit
Thanks You :)