Change day properties simultaneously

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.
Bilka
Factorio Staff
Factorio Staff
Posts: 3618
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Change day properties simultaneously

Post by Bilka »

I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Post Reply

Return to “Implemented mod requests”