OpenFactorioServerManager / factorio-server-manager

A tool to help manage Factorio multiplayer servers including mods and save games.
MIT License
615 stars 140 forks source link

Constant `Your active mods don't match the server's.` #408

Open FrederikNJS opened 1 month ago

FrederikNJS commented 1 month ago

After today's update to version 2.0.7, I'm unable to join my server. The server is updated to version 2.0.7, and my game client is updated to version 2.0.7 also.

The save that I'm hosting is a save from version 1.1.110 with no mods applied, and since updating both the server and the client to 2.0.7, whenever I try to join the server, it tells me:

Your active mods don't match the server's. Do you want to sync your mods with the server?

When I then click Synchronize, I'm presented with this screen: image

However when I press confirm, the game reloads, and starts directly up to the Your active mods don't match the server's prompt.

I have tried downloading the save and running it locally, which gave me the same prompt, but allowed my to load the save without synchronizing the mods. After loading the save, and saving it again, I can now load the local save without getting the mod sync prompt... But even uploading the "fixed" save to the server doesn't resolve the continuous Your active mods don't match the server's.

Is there any way to resolve this?

knoxfighter commented 1 month ago

That sounds like it could be an issue with factorio itself. Please send the factorio Log. What happens if you host the factorio server and save without fsm?

FrederikNJS commented 1 month ago

Here's the log: factorio.log

I don't quite have the time to set up a regular factorio server right now, but I'll report back when I have the chance

fmdx commented 1 month ago

I had this issue this morning after the patch, I then purchased the Space Age DLC and it then connected with no issues.

TConnor2003 commented 1 month ago

i think this is due to the factorio server file including the new expansion content by default if i find a way to disable this i will update

FrederikNJS commented 1 month ago

Just to be extra clear, both the save, and the game is without the Space Age expansion. I have not purchased it yet

TConnor2003 commented 1 month ago

Found a fix to the issue make sure you stop the server then in the mods folder of the factorio open mod-list.json and make sure these are all set to false

    {
      "name": "elevated-rails",
      "enabled": false,
      "version": "2.0.7"
    },

    {
      "name": "quality",
      "enabled": false,
      "version": "2.0.7"
    },

    {
      "name": "space-age",
      "enabled": false,
      "version": "2.0.7"
    }
  ]
}

then start the server again and it should work @FrederikNJS

knoxfighter commented 1 month ago

The server started with:

0.024 Info ModManager.cpp:434: FeatureFlag expansion-shaders = true
0.024 Info ModManager.cpp:434: FeatureFlag freezing = true
0.024 Info ModManager.cpp:434: FeatureFlag quality = true
0.024 Info ModManager.cpp:434: FeatureFlag rail-bridges = true
0.024 Info ModManager.cpp:434: FeatureFlag segmented-units = true
0.024 Info ModManager.cpp:434: FeatureFlag space-travel = true
0.024 Info ModManager.cpp:434: FeatureFlag spoiling = true
0.026 Loading mod core 0.0.0 (data.lua)
0.037 Loading mod base 2.0.7 (data.lua)
0.161 Loading mod elevated-rails 2.0.7 (data.lua)
0.180 Loading mod quality 2.0.7 (data.lua)
0.189 Loading mod space-age 2.0.7 (data.lua)
0.352 Loading mod base 2.0.7 (data-updates.lua)
0.364 Loading mod quality 2.0.7 (data-updates.lua)
0.382 Loading mod space-age 2.0.7 (data-updates.lua)

That is what i thought, it enables them by default, cause it is the headless server. Unfortunately your only option is to edit the mods file manually like described by TConnor for now.

FrederikNJS commented 1 month ago

Thank you, this solution worked!

Highcooley commented 3 weeks ago

Dunno if it helps, but factorio tools added an environment variable to disable space age DLC related mods: https://github.com/factoriotools/factorio-docker/commit/89ae20012e5e40419cc8e9e52036b4385d26cf11