Page 1 of 1
Modded settings being interchanged between mods.
Posted: Fri Sep 22, 2023 1:06 am
by BrainlessTeddy
I made two very similar mods regarding the main menu:
Selector for Main Menu Simulations and
Selector for SE Menu Simulations.
I basicly copied most of the code of 'data.lua' and 'settings.lua' from the first over to the second mod. I ended up with the setting 'disable_all_other' being in both mods. But it changes different things in each mod and how I noticed the bug at first, it has different orders in each mod ('b' vs. 'd').
What happened is that in the settings of one mod the 'disable_all_other' setting was in the very middle as if the order was 'b'. Tho it was supposed to be at the last position as 'd'. It also carried out the function of the wrong mod.
The other mod however was missing this setting altogether.
Re: [1.1.91] Modded settings being interchanged between mods.
Posted: Fri Sep 22, 2023 1:20 am
by Rseding91
Thanks for the report however that's how settings work; every mod has to make their setting names unique unless they want to clobber each others settings. It's the same as data stage prototypes.
Re: [1.1.91] Modded settings being interchanged between mods.
Posted: Fri Sep 22, 2023 1:23 am
by BrainlessTeddy
Rseding91 wrote: Fri Sep 22, 2023 1:20 am
Thanks for the report however that's how settings work; every mod has to make their setting names unique unless they want to clobber each others settings. It's the same as data stage prototypes.
Alright thanks. So that's why so many mods have their name in each setting name.
Re: [1.1.91] Modded settings being interchanged between mods.
Posted: Fri Sep 22, 2023 7:33 am
by FuryoftheStars
BrainlessTeddy wrote: Fri Sep 22, 2023 1:23 am
Rseding91 wrote: Fri Sep 22, 2023 1:20 am
Thanks for the report however that's how settings work; every mod has to make their setting names unique unless they want to clobber each others settings. It's the same as data stage prototypes.
Alright thanks. So that's why so many mods have their name in each setting name.
Yes, because you have the ability to mod other mods' settings this way.

Re: [1.1.91] Modded settings being interchanged between mods.
Posted: Fri Sep 22, 2023 6:11 pm
by BrainlessTeddy
FuryoftheStars wrote: Fri Sep 22, 2023 7:33 am
Yes, because you have the ability to mod other mods' settings this way. :D
Ohhh, so that's what settings-update.lua and settings-final-fixes is for, yeah? Can you hide settings from the player and change other mod's settings in the background?
Re: [1.1.91] Modded settings being interchanged between mods.
Posted: Fri Sep 22, 2023 6:18 pm
by FuryoftheStars
BrainlessTeddy wrote: Fri Sep 22, 2023 6:11 pm
FuryoftheStars wrote: Fri Sep 22, 2023 7:33 am
Yes, because you have the ability to mod other mods' settings this way.
Ohhh, so that's what settings-update.lua and settings-final-fixes is for, yeah? Can you hide settings from the player and change other mod's settings in the background?
Yes. You can find more detail here:
https://wiki.factorio.com/Tutorial:Mod_settings
Re: [1.1.91] Modded settings being interchanged between mods.
Posted: Fri Sep 22, 2023 6:19 pm
by BrainlessTeddy
BrainlessTeddy wrote: Fri Sep 22, 2023 6:11 pm
FuryoftheStars wrote: Fri Sep 22, 2023 7:33 am
Yes, because you have the ability to mod other mods' settings this way. :D
Ohhh, so that's what settings-update.lua and settings-final-fixes is for, yeah? Can you hide settings from the player and change other mod's settings in the background?
Alright found it on the wiki. So if I put default = true on another mod's setting it will change that setting to true as long as my setting get's defined in settings-update or final-fixes?
Re: [1.1.91] Modded settings being interchanged between mods.
Posted: Fri Sep 22, 2023 6:19 pm
by BrainlessTeddy
FuryoftheStars wrote: Fri Sep 22, 2023 6:18 pm
BrainlessTeddy wrote: Fri Sep 22, 2023 6:11 pm
FuryoftheStars wrote: Fri Sep 22, 2023 7:33 am
Yes, because you have the ability to mod other mods' settings this way. :D
Ohhh, so that's what settings-update.lua and settings-final-fixes is for, yeah? Can you hide settings from the player and change other mod's settings in the background?
Yes. You can find more detail here:
https://wiki.factorio.com/Tutorial:Mod_settings
Yeah, just found that. Thats cool, thank you very much!