I would like a way to override darkness

Things that already exist in the current mod API
Post Reply
Yehn
Fast Inserter
Fast Inserter
Posts: 111
Joined: Tue Jul 12, 2016 3:45 am
Contact:

I would like a way to override darkness

Post 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.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13198
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: I would like a way to override darkness

Post 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.
If you want to get ahold of me I'm almost always on Discord.

Yehn
Fast Inserter
Fast Inserter
Posts: 111
Joined: Tue Jul 12, 2016 3:45 am
Contact:

Re: I would like a way to override darkness

Post 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.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13198
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: I would like a way to override darkness

Post 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?
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Already exists”