Setting min/max dependent on other setting's value?

Place to get help with not working mods / modding interface.
FuryoftheStars
Smart Inserter
Smart Inserter
Posts: 2767
Joined: Tue Apr 25, 2017 2:01 pm
Contact:

Setting min/max dependent on other setting's value?

Post by FuryoftheStars »

Just curious if this is possible.

Basically, if setting A (an int-setting) gets assigned a value of 40, then setting B's value (also an int-setting) cannot be more/less than this. But if setting A is changed to 20, then setting B's min/max gets updated to reflect this.

In my use case, I have a series of int-settings that are meant to define a range. Realistically they should allow the user to enter a value from 0-1000, but setting-A must be < setting-B must be < setting-C.
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 | New Gear Girl & HR Graphics
Rseding91
Factorio Staff
Factorio Staff
Posts: 15912
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Setting min/max dependent on other setting's value?

Post by Rseding91 »

This isn't possible. What you've described is a possible infinite loop: A sets its limits off the value of B, B sets its limits off the value of A, repeat forever every time one is changed and the game is restarted it changes the value of the other and each game restart changes things again.
If you want to get ahold of me I'm almost always on Discord.
FuryoftheStars
Smart Inserter
Smart Inserter
Posts: 2767
Joined: Tue Apr 25, 2017 2:01 pm
Contact:

Re: Setting min/max dependent on other setting's value?

Post by FuryoftheStars »

Hmm, ok. I guess, imo, I would've put that on the lap of the mod creator not to do/deal with, but if you all don't want to do it then so be it.
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 | New Gear Girl & HR Graphics
Post Reply

Return to “Modding help”