Page 1 of 1

[0.18.21][Modded MP] Mod content difference when syncing

Posted: Tue Apr 28, 2020 2:52 pm
by lovely_santa
Hello,

Before the release of 0.18.21 (I expect 0.18.20 as well), when syncing to a modded server, it downloads all the mods with default settings. After restarting the game, you try to join again. It used to first check the startup settings, prompting you the settings are different, so you permit to sync the settings and you restart your game a second time, and then you are good to go.

Now, with 0.18.21, after you reloaded for the first time, when you try to join with different settings, it prompts you with the message that the mod settings are the same, but that the content is different. When manualy 'syncing' these settings and reloading the game, it works and you can join.

I'm getting quite a few of these bug reports from people playing with angels mods, hence why this report.

Kind regards
lovely_santa

Re: [0.18.21][Modded MP] Mod content difference when syncing

Posted: Tue Apr 28, 2020 3:19 pm
by Bilka
Don't conditionally require things based on settings, as the error message tells you. Mod setting sync did not change related to this.

Example:

https://github.com/Arch666Angel/mods/bl ... s/data.lua

Code: Select all

angelsmods.industries.tech = settings.startup["angels-enable-tech"].value -- enable technology overhaul
--angelsmods.industries.tech=false --temp overrides to disable until ready

angelsmods.industries.components = settings.startup["angels-enable-components"].value
--Enforce components to be true if tech is true, can remove this later once we re-jig the recipes to allow tech without components.
if angelsmods.industries.tech == true then
  angelsmods.industries.components = true
end
--angelsmods.industries.components = false --temp overrides to disable until ready

angelsmods.industries.overhaul = settings.startup["angels-enable-industries"].value -- enable industries
https://github.com/Arch666Angel/mods/bl ... pdates.lua

Code: Select all

if angelsmods.industries then
  if angelsmods.industries.components then
    require("prototypes.recipes.smelting-recipe-updates")
    require("prototypes.technology.smelting-technology-component-updates")
  end

  if angelsmods.industries.overhaul and angelsmods.industries.tech then
    require("prototypes.technology.smelting-technology-tech-updates")
  end
Doc for "don't do that": https://wiki.factorio.com/Tutorial:Mod_settings#Tips

Moving to modding help.