Page 1 of 1
[1.1.53] Multiplayer cannot sync and join server with certain settings
Posted: Mon Feb 21, 2022 3:00 am
by robot256
Problem:
Joining a multiplayer game synchronizes only the mod list at first. If the server contains mod settings that differ from the default or your current client settings, a second connection attempt and game restart is required to synchronize them. If the custom values of the startup settings affect whether the game can load at all, it is possible to make a game that cannot be joined without manually copying the settings from the server to the client.
Loading single player games does not have this problem. The custom mod settings are applied at the same time that the mod list is downloaded or enabled, so only one restart is needed and the correct settings are used on the first try.
Reproduction:
- Create a game with several tile-adding mods, such that with default settings of all mods the tile limit is reached. Disable enough tiles in mod startup settings that the game loads correctly in single player. (See attached example.)
- Create a multiplayer server with this save, mod list and mod settings.
- Attempt to connect to the server with a fresh install of Factorio.
- Accept the "sync mod list" dialog to download all the mods and restart the game.
- Observe the "tile limit reached" error message. If the settings had been synchronized, this would not have appeared.
To actually join the game, the following steps are required:
- Manually copy the save file from the server onto the client.
- Load the save file in single player mode.
- Accept the "sync mods and mod settings" dialog (uncheck "load after restart") to enable all the mods, apply the settings, and restart the game.
- Connect to the server successfully.
Re: [1.1.53] Multiplayer cannot sync and join server with certain settings
Posted: Sun Apr 10, 2022 4:57 pm
by Rseding91
Can you still reproduce this? I suspect it's related to this:
viewtopic.php?f=11&t=101689
Re: [1.1.53] Multiplayer cannot sync and join server with certain settings
Posted: Sun Apr 10, 2022 5:26 pm
by Loewchen
This is related to
101654
Re: [1.1.53] Multiplayer cannot sync and join server with certain settings
Posted: Sun Apr 10, 2022 10:50 pm
by Rseding91
Ah right, I copied the wrong link.
Re: [1.1.53] Multiplayer cannot sync and join server with certain settings
Posted: Mon Apr 11, 2022 2:19 am
by robot256
Yes, I can reproduce this in 1.1.57, with a non-corrupted mod settings file.
With the attached save file, mod-list, and mod-settings, the server and game can load. If the server is started first, and a fresh client connects with no mods already installed, it will not be able to load due to the tile limit. Copying mod-settings from the server into the client game, or manually applying the same sequence of settings changes to fix the tile limit, will allow the game to load.
Re: [1.1.53] Multiplayer cannot sync and join server with certain settings
Posted: Mon Apr 11, 2022 2:26 am
by Rseding91
That's a separate issue and one that the mod(s) need to address themselves.
Re: [1.1.53] Multiplayer cannot sync and join server with certain settings
Posted: Mon Apr 11, 2022 3:21 am
by robot256
I'm curious why the sync behavior should be different between single player and multiplayer? And how should the mods address it? Their settings are correct, but the game does not load the values from the save file.