Space Engineers

Space Engineers

[infal] Light Flicker
21 comentarios
Into 15 OCT 2024 a las 17:30 
Would you mind making Commands for
const int OnOffChance = 70; // percent
const int DimChance = 8; // percent
const int PauseChance = 20; // percent
const int PauseMin = 35000; // milliseconds
const int PauseMax = 78000; // milliseconds
as well?
Into 10 SEP 2024 a las 1:09 
Love this mod and wanted to use it on my rover as well, but without having for every set of lights an Event Controller (which would be plenty) I just get a laser light show. Would be neat if the script would recognize if lights are turned on or off, instead of having to run script commands.
wilgee 19 DIC 2023 a las 10:45 
Great Job !!!!!:steamthumbsup:
Headhunter Echo 6 AGO 2023 a las 8:03 
Hello, sorry to bother you! There seems to be an error when I try to run this script. It says theres an invalid boolean. Any idea how I can fix this?
Sevyrs 22 JUL 2021 a las 21:02 
This will go great with our Alien themed deals and the server we plan to host. Very nice. Subbed and upped.
Commander Link 5 FEB 2021 a las 16:13 
this is great quality. SE needs more horror.
Lampglow 20 DIC 2020 a las 4:09 
How do you add this into the game? I subscribed but I don't see this in the list of mods nor scripts. What am I missing?
infal  [autor] 18 DIC 2020 a las 17:16 
Belfontan; I haven't looked at this script for a very long time but just reading through the code, it changes the on/off state, the radius, and the intensity values.

When you add a light (or group of) it stores the original values and restores those values when you remove the light from the script. (but only for on/off, intensity and radius)

If you have another script modifying on/off, radius or intensity you will probably see some undesired result, but for color and blinking settings it should be fine as this script doesn't change those at all.
Belfontan 14 DIC 2020 a las 19:47 
Absolutely great idea!
Will it interfere with color changing scripts?`
Can I add one or two lights out of a group of a dozen lights whose color and blinking status is changed by another script?

I really want to try it asap!
Primal_DLove 6 ENE 2019 a las 14:53 
would it be possible to use this for/ or make a version that does this with lcd type panels?
infal  [autor] 30 JUL 2018 a las 16:37 
deranged_teapot; No idea what could cause that. Possibly if you had an existing light with non-default settings that I haven't thought to test with, but also possibly just Space Engineers being Space Engineers.
Thanks for the update letting me know it resolved.
deranged_teapot 30 JUL 2018 a las 1:29 
Update: ground down and replaced the light. Works now.
deranged_teapot 30 JUL 2018 a las 1:13 
I'm only getting the dimming effect and no flickering. Any idea what could be causing this?
Ivan of Spades 16 JUL 2018 a las 16:38 
Awesome! Thank you!
infal  [autor] 16 JUL 2018 a las 16:11 
Ivan of Spades: I just updated the code to accept a group name so you can batch add/remove with the -g [group name] parameter
Ivan of Spades 16 JUL 2018 a las 15:44 
Good to know! Thank you!
infal  [autor] 16 JUL 2018 a las 14:27 
Ivan of Spades: I didn't really write it for groups because lighting updates are typically frame rate expensive in games, so the thought being that you would only have a light flickering while you are in the area to see it. I'll look into adding a group option as an alternative so you can batch add/remove.

If you're adding lights to the script when they're needed and removing them when not, the script will stop running when there are no lights to process. The script runs 6 times per second, so that's wasteful if there are no lights to process.

You only need one programmable block for many lights though, just add them seperately

-l "Light 1" -add
-l "Light 2" -add
etc.

You'll see lights currently processing in the bottom right of the programmable block screen in console
Ivan of Spades 16 JUL 2018 a las 13:18 
Question, how can this work with groups of lights, like for multiple lights on various areas on a ship/station? Do I need a script for each one?
infal  [autor] 13 JUL 2018 a las 0:01 
Thanks guys :)

Looking forward to seeing what you make of it, Splitsie!
Barrabaz220 12 JUL 2018 a las 14:18 
Great more inmersion!!
Splitsie 12 JUL 2018 a las 5:39 
Nice work, this is getting added to my silo soon :)