Changing settings based on other settings (and their values)

Things that we aren't going to implement
Post Reply
BraveCaperCat
Long Handed Inserter
Long Handed Inserter
Posts: 76
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)

Rseding91
Factorio Staff
Factorio Staff
Posts: 13347
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”