Save game LUA command ?

Post all other topics which do not belong to any other category.
Minuit
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri Feb 19, 2016 8:18 pm
Contact:

Save game LUA command ?

Post 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
User avatar
Mooncat
Smart Inserter
Smart Inserter
Posts: 1196
Joined: Wed May 18, 2016 4:55 pm
Contact:

Re: Save game LUA command ?

Post 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
Minuit
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri Feb 19, 2016 8:18 pm
Contact:

Re: Save game LUA command ?

Post by Minuit »

Thanks You :)
Post Reply

Return to “General discussion”