Modded settings being interchanged between mods.

Place to get help with not working mods / modding interface.
Post Reply
User avatar
BrainlessTeddy
Long Handed Inserter
Long Handed Inserter
Posts: 79
Joined: Sun May 19, 2019 7:50 pm
Contact:

Modded settings being interchanged between mods.

Post 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.
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.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [1.1.91] Modded settings being interchanged between mods.

Post 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.
If you want to get ahold of me I'm almost always on Discord.

User avatar
BrainlessTeddy
Long Handed Inserter
Long Handed Inserter
Posts: 79
Joined: Sun May 19, 2019 7:50 pm
Contact:

Re: [1.1.91] Modded settings being interchanged between mods.

Post 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.
Please consider english is not my native language.

FuryoftheStars
Smart Inserter
Smart Inserter
Posts: 2551
Joined: Tue Apr 25, 2017 2:01 pm
Contact:

Re: [1.1.91] Modded settings being interchanged between mods.

Post 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. :D
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

User avatar
BrainlessTeddy
Long Handed Inserter
Long Handed Inserter
Posts: 79
Joined: Sun May 19, 2019 7:50 pm
Contact:

Re: [1.1.91] Modded settings being interchanged between mods.

Post 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?
Please consider english is not my native language.

FuryoftheStars
Smart Inserter
Smart Inserter
Posts: 2551
Joined: Tue Apr 25, 2017 2:01 pm
Contact:

Re: [1.1.91] Modded settings being interchanged between mods.

Post 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. :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
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

User avatar
BrainlessTeddy
Long Handed Inserter
Long Handed Inserter
Posts: 79
Joined: Sun May 19, 2019 7:50 pm
Contact:

Re: [1.1.91] Modded settings being interchanged between mods.

Post 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?
Please consider english is not my native language.

User avatar
BrainlessTeddy
Long Handed Inserter
Long Handed Inserter
Posts: 79
Joined: Sun May 19, 2019 7:50 pm
Contact:

Re: [1.1.91] Modded settings being interchanged between mods.

Post 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!
Please consider english is not my native language.

Post Reply

Return to “Modding help”