Page 1 of 1

Change day properties simultaneously

Posted: Tue Mar 26, 2019 11:21 am
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.