Changing settings based on other settings (and their values)

Things that we aren't going to implement
User avatar
BraveCaperCat
Filter Inserter
Filter Inserter
Posts: 370
Joined: Mon Jan 15, 2024 10:10 pm
Contact:

Changing settings based on other settings (and their values)

Post by BraveCaperCat »

I want to be able to change a setting based on the value of another setting, or at least disable+hide different settings based on the value of a setting, like a dropdown menu selected by another dropdown menu. This would be very useful, as it allows other mods to add other things to my mod which i am making, which enables different recipes based on a setting. I then use another setting to chose which of the new recipes to unlock in control.lua, which is all implemented in the library the mod creates (it also adds some examples)
Creator of multiple mods, including Quality Assurance - My most popular one.
Go check them out with the first and second links!
I'll probably be wanting or giving help with modding most of the time I spend here on the forum.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14594
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Changing settings based on other settings (and their values)

Post by Rseding91 »

This is technically not possible. Settings defined based off the value of settings is the definition of an infinite loop. Every time it would run it could get a different result.

So sorry, but this can never be done.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Won't implement”