Space Engineers

Space Engineers

Animated Alert Panels and Lights Controller
59 Comments
Geert-Jan 7 May, 2023 @ 4:07am 
Hello, i have a problem with the LCD and sound block, there both do nothing after i tagged everyything [Alert] The lights are working fine.
68ChevySS 25 Feb, 2022 @ 7:19pm 
Works fine in single player but does not work on dedicated server after warfare 2 update.
♫ erikhale gaming 🐺 5 Nov, 2020 @ 5:23pm 
i think bit slow with script and alert status is stable so i got it change little fast
meymo  [author] 29 Sep, 2020 @ 12:11pm 
It's a script for the programmable block. It can respond to anything that can trigger a programmable block. So yes I think sensors shopuld work.
big_blue_4101 28 Sep, 2020 @ 2:05pm 
can it respond to a sensor?
[VVAR] Razzun 25 Aug, 2020 @ 4:02pm 
Thank you for the script. I use this script in all my worlds/builds.
meymo  [author] 13 Mar, 2020 @ 11:20am 
It compiled fine for me, but there where quite some warnings.
I updated the script to get rid of the warnings and as a bonus it now also supports cockpits and other blocks with multiple displays.
Feuerspucker 10 May, 2019 @ 6:58am 
Please Update it.
Xakorik 2 May, 2019 @ 2:23pm 
Isn't "Green" the all clear state, that would be the "reset" state you want
Kinoe 15 Apr, 2019 @ 2:15am 
Ok, i think he has a "normal alert".
Thanks :D
meymo  [author] 15 Apr, 2019 @ 2:07am 
Mhmm I'm not sure what you mean? There is no restore command, since the script does not remember the original state of anything. It can only set stuff to one of the alert states...
Kinoe 14 Apr, 2019 @ 4:04pm 
How is the command for restore the lights and lcds?
C4PTRAMPAGE 9 Sep, 2018 @ 5:01am 
but ok ill try that
C4PTRAMPAGE 9 Sep, 2018 @ 5:01am 
@meymo
it doesnt say it needs to be in brackets
meymo  [author] 9 Sep, 2018 @ 3:31am 
@C4PTRAMPAGE did you include the [], it should look like this "[Alert]".
C4PTRAMPAGE 9 Sep, 2018 @ 1:52am 
so i have a problem, when i run the pb with green / yellow / red / whatever it shows the alert in the pb terminal info thing but its not doing anything with the lights or lcds, its not an ownership issue and i added "Alert" to the block names so i dont know whats wrong.
bonox 25 May, 2018 @ 5:09pm 
@meymo ohhhhh, I just thought the script would reset the lights and stuff somehow, I'll just try the off buttons!
meymo  [author] 25 May, 2018 @ 11:20am 
@Booze_Boy Why would you ever want to turn it off? :D Joking asside I'm not sure what you are trying to do... Turn of the lights, the lcds, the programmable block?
bonox 25 May, 2018 @ 4:53am 
I love this but like, how do you turn it off?
Luvstruckmango 22 Mar, 2018 @ 12:16am 
That is interesting. It happens every time I use the script, which normally doesn't bother me cause I build the ship to have enough lights to compensate. If I may make a suggestion, perhpas it would also be an added benifit to customizing if there were brightness, fallout, ect options for the differnt condtions? I like the customizing options for changing the value of color. Maybe it would be a natural progression to add the ability to customize the other values of the lights? Again, I love this script. I use it on everything I build. Great work!
meymo  [author] 21 Mar, 2018 @ 12:28pm 
@Luvstruckmango mhmm interesting the script only touches the color and blink interval of the lights and in my test world all the other values do remain unchanged...
Luvstruckmango 20 Mar, 2018 @ 12:19pm 
meymo, I love this script. Its amazin! I've noticed that when I use condition green it changes the lights that are labeled as [Alert] to 2.2 distance on the light range. Is it possible to adjust the script so that it will keep the range of the light set in the light's settings?
Yakuza_of_Borg 6 Feb, 2018 @ 1:41pm 
@ meymo i have done everything i can think of including an empty world and nothing the programble block says it is on whatever alert i sent to it but the screen aren't changing they remain blank
Luvstruckmango 2 Feb, 2018 @ 11:14am 
Just a shout ot to the author. This script is wonderful! Thank you and keep up the good work!
Luvstruckmango 2 Feb, 2018 @ 11:11am 
Also, if all else fails. Reinstall Space Engineers. Sometimes after huge updates, Space Engineers does weird things. Reinstalling fixes them.
meymo  [author] 2 Feb, 2018 @ 11:00am 
@Yakuza_of_Borg Now for the favourite line of every programmer: "Works on my machine" Maybe try loading the script into the programmable block again?
Yakuza_of_Borg 2 Feb, 2018 @ 9:49am 
script is no longer working it will not change images, activate lights or sound blocks
wizard76 12 Jun, 2017 @ 8:43am 
I am not sure, if I am the only one with this problem, but for a while the images don't load on the screens anymore, with lights and sound I didn't check, but the image loading is offline and there is no error report of the script, so no idea why.
Luvstruckmango 15 Oct, 2016 @ 1:16am 
Thanks meymo! You're awesome! Keep up the great work. :) I look forward to using this script in the next major ship build I'm doing.
meymo  [author] 14 Oct, 2016 @ 1:48pm 
@Archangel this is now possible. Be sure to add [Alert Text] to the LCD in question and edit the message in the script (string greenText = "Condition Green"; etc. use \n for linebreaks)
meymo  [author] 14 Oct, 2016 @ 1:12pm 
@Buzzed Bear you can already do that, look at the lines string[] green = {"...","..."}; and replace the stuff between the "" with the name of the texture you want. If you want only one texture it should look something like this: string[] green = {"Texture Name Here"};
🍁BuzzedBear🍁 9 Oct, 2016 @ 10:17pm 
Hi Meymo! What an aswesomely simple to use script! Thanks so much. I have the same question as Archangel pretty much. I am working on a complety refinery station / assembly setup in which you can rotate refinery platforms. I have incorporated a safefy system and would just love to be able to have an LCD be able to switch one of more of the vanilla images. I could simply copy the keen image and name it appropriately, but it would be easier to just run this awesome program!
Luvstruckmango 9 Oct, 2016 @ 3:02pm 
Hey meymo. This script is super fantastic. I ues it pretty much in everything. I had a question. For sake of building something modless, is it possible to add into the script the option to use an lcd/text panel that would display a message? For example, with condition blue, your script allows for the required LCD mod to desplay the correct visuals for what the condition is describing. Would it be possible to set it up so a generic LCD panel will display a desired message that a user would indiate in a specific place in the script? That way someone using the script but not using the mod could still get the type of condition for condition blue across to people. I hope my question makes sense. Again, fabulous mod!
Luvstruckmango 24 Sep, 2016 @ 7:58am 
Okay. Thanks for getting back to me. It's possible it's just something I accidentally did. It is working for me too.
meymo  [author] 24 Sep, 2016 @ 4:33am 
@Archangle I can't find any spaces in the location you descriped. The script also is working fine on my end.
Luvstruckmango 13 Sep, 2016 @ 1:06pm 
Just to let you know meymo, in your script at the beginning where the id tag is where it says "Alert" there are spaces behind the word alert and it prevents the script from working until you remove it. I thought I'd inform you incase soneone else is having the problem of getting the script to function. Thanks again for creating such a fantastic script. You're awesome!
meymo  [author] 10 Sep, 2016 @ 11:36am 
@FatMax1492 In the script at the beginning change the 0.3f in
float imageChangeInterval = 0.3f;
and the 1.5f in
float redBlinkInterval = 1.5f;
to 0.0f
FatMax1492 10 Sep, 2016 @ 8:04am 
yes. but how do I stop the lights and LCD?
meymo  [author] 10 Sep, 2016 @ 3:14am 
@FatMax1492 I'm not sure what you mean. You dont need a timer block for this script. And every time you run the programm it will only run once.
FatMax1492 8 Sep, 2016 @ 9:56am 
or the programable block??

FatMax1492 8 Sep, 2016 @ 9:56am 
how can I stop the timer?
Luvstruckmango 7 Sep, 2016 @ 12:56pm 
Thank you very much meymo, this is a wonderful script and I compliment you its genius.
meymo  [author] 7 Sep, 2016 @ 10:31am 
@Archangle jepp was broken, should be fixed now.
@Baltazar added the ability to only run some sounds. Add the alert you want to the name of the Soundblock like this: [Alert blue] See the updated description.
Luvstruckmango 4 Sep, 2016 @ 7:46pm 
The script seems to be broken it is giving me errors on the compilation. Its says Program(107,57): Error: The type or member
'ShowTextOnScreenFlag' is prohibited
Program (107,78): Error: The type or member
'ShowTextOnScreenFlag.NONE' is prohibited
Baltazar 22 Aug, 2016 @ 8:59am 
I like this alot only prob is I get all sounds playing at once if I choose more than 1 alert to play an alert sound
FatMax1492 20 Aug, 2016 @ 2:12am 
Script not working
meymo  [author] 18 Mar, 2016 @ 4:03pm 
Hi twotwinbrothers bug fixed script works again.
Twotwinbrothers 18 Mar, 2016 @ 10:50am 
Hi Meymo

Script is not working after Keen Update on 16-3-16
Change line 107
current.SetShowOnScreen(Sandbox.Common.ObjectBuilders.ShowTextOnScreenFlag.NONE);
to
current.ShowTextureOnScreen();

script will work again.
Twotwinbrothers 8 Feb, 2016 @ 4:23am 
Hi Meymo

Great script it learn me how to change textures
here is a sugestion

current.AddImagesToSelection(target, true);

change true in false

wen "true" it gives you there problems:
interval freese
wen texture already are there they wil be removed

you solf this by adding these lines:

if( current.GetPublicText().Equals(argument, StringComparison.InvariantCultureIgnoreCase) ){
continue;
}

current.WritePublicText(argument);

and in the argument: , StringComparison.InvariantCultureIgnoreCase

whit that set to false al that is not needed any more,

after removing those line i add the texture part to my script called: Multi LCD config Version 2.3

Ko'to Wolfir 12 Dec, 2015 @ 9:33am 
Thanks for reply! I figured the problem... I set texture quality to high ^^