darkness_to_turn_on doesn't seem to do anything?

Place to get help with not working mods / modding interface.
Big_J
Burner Inserter
Burner Inserter
Posts: 8
Joined: Wed Feb 17, 2021 11:48 pm
Contact:

darkness_to_turn_on doesn't seem to do anything?

Post by Big_J »

When modifying darkness_to_turn_on on NVG, or adding new NVG with this parameter different, the value doesn't seem to affect anything.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3054
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: darkness_to_turn_on doesn't seem to do anything?

Post by boskid »

Works for me.
Big_J
Burner Inserter
Burner Inserter
Posts: 8
Joined: Wed Feb 17, 2021 11:48 pm
Contact:

Re: darkness_to_turn_on doesn't seem to do anything?

Post by Big_J »

boskid wrote: Sat Nov 23, 2024 8:12 pmWorks for me.
Am I using it wrong?

I set the value to 0.3, when surface.daytime >= 0.3, the NVG do not switch on.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3054
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: darkness_to_turn_on doesn't seem to do anything?

Post by boskid »

It says "darkness to turn on", not "daytime to turn on". Check LuaSurface::darkness (read)
Post Reply

Return to “Modding help”