[server] scenario save refresh

Things that already exist in the current mod API
Post Reply
cogito123
Inserter
Inserter
Posts: 23
Joined: Thu Feb 28, 2019 7:05 pm
Contact:

[server] scenario save refresh

Post by cogito123 »

I didn't really found an option to do this in factorio binary, but I would like to request feature that would allow refreshing existing save. Right now, if server runs for few hours, people that connect need to catch up and as I understand they simulate everything that there was done in single session in order to do so.

To mitigate this issue on servers that run for couple hundreds of hours and don't force user to redo everything, it would be good if there was an option to convert scenario save in a such way that all actions done in game apply to the world and all that "catch up" is discarded, while retaining current internal state, like forces, inventory, player positions.

If this feature was present, admins could pause server, save, convert and reset with refreshed save, when there are no people online.

User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 2242
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [server] scenario save refresh

Post by boskid »

That is not how joining multiplayer works. Server saves current state and sends it to client. Catching up is a phase when server is still running the game for others while client is loading a save file. Since it was already made "couple seconds ago" and is not up to date, client has to catch up - perform some extra updates with new inputs to be on the same tick as rest of clients. When client is slower than server it will be unable to catch up. Your suggestion would change nothing.

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: [server] scenario save refresh

Post by DaveMcW »

The reason you see problems on servers several hours old, is because there is so much stuff in the save. This means clients can't run it as fast during the catch up period. Eventually clients with weak computers can't run the game at all because the server is too fast.

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: [server] scenario save refresh

Post by eradicator »

boskid wrote:
Mon Jun 29, 2020 11:41 am
Your suggestion would change nothing.
Shouldn't this be moved to "already implemented"?
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

Post Reply

Return to “Already exists”