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.
Modded settings being interchanged between mods.
- BrainlessTeddy
- Long Handed Inserter
- Posts: 79
- Joined: Sun May 19, 2019 7:50 pm
- Contact:
Modded settings being interchanged between mods.
Last edited by BrainlessTeddy on Fri Sep 22, 2023 1:25 am, edited 1 time in total.
Please consider english is not my native language.
Re: [1.1.91] Modded settings being interchanged between mods.
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.
If you want to get ahold of me I'm almost always on Discord.
- BrainlessTeddy
- Long Handed Inserter
- Posts: 79
- Joined: Sun May 19, 2019 7:50 pm
- Contact:
Re: [1.1.91] Modded settings being interchanged between mods.
Alright thanks. So that's why so many mods have their name in each setting name.
Please consider english is not my native language.
-
- Smart Inserter
- Posts: 2571
- Joined: Tue Apr 25, 2017 2:01 pm
- Contact:
Re: [1.1.91] Modded settings being interchanged between mods.
Yes, because you have the ability to mod other mods' settings this way.BrainlessTeddy wrote: ↑Fri Sep 22, 2023 1:23 amAlright thanks. So that's why so many mods have their name in each setting name.
My Mods: Classic Factorio Basic Oil Processing | Sulfur Production from Oils | Wood to Oil Processing | Infinite Resources - Normal Yield | Tree Saplings (Redux) | Alien Biomes Tweaked | Restrictions on Artificial Tiles
- BrainlessTeddy
- Long Handed Inserter
- Posts: 79
- Joined: Sun May 19, 2019 7:50 pm
- Contact:
Re: [1.1.91] Modded settings being interchanged between mods.
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?FuryoftheStars wrote: ↑Fri Sep 22, 2023 7:33 amYes, because you have the ability to mod other mods' settings this way. :D
Please consider english is not my native language.
-
- Smart Inserter
- Posts: 2571
- Joined: Tue Apr 25, 2017 2:01 pm
- Contact:
Re: [1.1.91] Modded settings being interchanged between mods.
Yes. You can find more detail here: https://wiki.factorio.com/Tutorial:Mod_settingsBrainlessTeddy wrote: ↑Fri Sep 22, 2023 6:11 pmOhhh, 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?FuryoftheStars wrote: ↑Fri Sep 22, 2023 7:33 amYes, because you have the ability to mod other mods' settings this way.
My Mods: Classic Factorio Basic Oil Processing | Sulfur Production from Oils | Wood to Oil Processing | Infinite Resources - Normal Yield | Tree Saplings (Redux) | Alien Biomes Tweaked | Restrictions on Artificial Tiles
- BrainlessTeddy
- Long Handed Inserter
- Posts: 79
- Joined: Sun May 19, 2019 7:50 pm
- Contact:
Re: [1.1.91] Modded settings being interchanged between mods.
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?BrainlessTeddy wrote: ↑Fri Sep 22, 2023 6:11 pmOhhh, 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?FuryoftheStars wrote: ↑Fri Sep 22, 2023 7:33 amYes, because you have the ability to mod other mods' settings this way. :D
Please consider english is not my native language.
- BrainlessTeddy
- Long Handed Inserter
- Posts: 79
- Joined: Sun May 19, 2019 7:50 pm
- Contact:
Re: [1.1.91] Modded settings being interchanged between mods.
Yeah, just found that. Thats cool, thank you very much!FuryoftheStars wrote: ↑Fri Sep 22, 2023 6:18 pmYes. You can find more detail here: https://wiki.factorio.com/Tutorial:Mod_settingsBrainlessTeddy wrote: ↑Fri Sep 22, 2023 6:11 pmOhhh, 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?FuryoftheStars wrote: ↑Fri Sep 22, 2023 7:33 amYes, because you have the ability to mod other mods' settings this way. :D
Please consider english is not my native language.