Page 1 of 1

I would like a way to override darkness

Posted: Fri Jun 22, 2018 12:12 pm
by Yehn
Since from the sound of this FFF we may be approaching the last chance to get requests like this in....

I would like a way to override LuaSurface.darkness.

Even if the value itself remains read only, I would like to be able to edit the upper and lower bounds of this value.

Re: I would like a way to override darkness

Posted: Fri Jun 22, 2018 12:49 pm
by Rseding91
That's already possible by modifying these properties: http://lua-api.factorio.com/latest/LuaS ... rface.dusk

"darkness" is a calculation of those values and as such isn't something that can be written directly. You adjust it by setting dusk, dawn, and so on.

Re: I would like a way to override darkness

Posted: Sat Jun 23, 2018 6:01 am
by Yehn
Rseding91 wrote:That's already possible by modifying these properties: http://lua-api.factorio.com/latest/LuaS ... rface.dusk

"darkness" is a calculation of those values and as such isn't something that can be written directly. You adjust it by setting dusk, dawn, and so on.
But you cannot change the upper and lower bounds (1.0, 0.15) by altering those values.

Re: I would like a way to override darkness

Posted: Sat Jun 23, 2018 1:10 pm
by Rseding91
I guess a better question would be: what's the use-case for this?

Did you want the visual to be brighter or did you want to change what solar panels produce? Or something else?