Page 1 of 1

Script for Dark Night ? :x...

Posted: Fri May 22, 2020 2:15 am
by PanTobi
I'm working on Map and i need Dark Nights like in this Mod: https://mods.factorio.com/mod/DarkNight

But i don't want to use Mod because
1) its gonna be MP Map and some ppl may not want to download this Mod only to play this Map
2) i don't want to include Mods to this Map :3...

I wanted to copy paste scripts from this mod to Scenario Folder, but it contains some Graphics and lel... no control.lua
so idk how to include it anywaa xDDD

any help ? :x...

plz?


//Edit:
:)
He He

Re: Script for Dark Night ? :x...

Posted: Fri May 22, 2020 7:19 am
by darkfrei
https://lua-api.factorio.com/latest/Lua ... brightness

Code: Select all

/c game.player.surface.min_brightness = 0.05

Re: Script for Dark Night ? :x...

Posted: Fri May 22, 2020 2:00 pm
by PanTobi
Wow Nice <3
Thank You ^_^

i was testing some settings and:
Image

Code: Select all

/c game.surfaces[1].brightness_visual_weights = {  1.4, 1.4, 1.4 }