Change day properties simultaneously

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Change day properties simultaneously

Post by darkfrei »

Hi devs!

If I set day properties like

Code: Select all

surface.dusk = dusk
surface.evening = evening
surface.morning = morning
surface.dawn = dawn
Then the game can get error message that some of them is not between of another. https://mods.factorio.com/mod/NightBrig ... 000de8c51c
The problem comes due update: all new parameters have properly values, but if they mare changed not in the right sequence then I get the error before change the next one.

So if I have values {0.1, 0.2, 0.4, 0.6} and change them to {0.3, 0.5, 0.7, 0.8} then I get the error that 0.3 must be lower than second argument, that is at this moment 0.2. Every next changing gives same error.

It would be nice to change all four parameters simultaneously, like surface.day_times={0.3, 0.5, 0.7, 0.8} and the dusk, evening, morning and dawn times will be changed together.
Post Reply

Return to “Modding interface requests”