Space Engineers

Space Engineers

Animated Alert Panels and Lights Controller
59 kommentarer
Geert-Jan 7. maj 2023 kl. 4:07 
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 kl. 19:19 
Works fine in single player but does not work on dedicated server after warfare 2 update.
♫ erikhale gaming 🐺 5. nov. 2020 kl. 17:23 
i think bit slow with script and alert status is stable so i got it change little fast
meymo  [ophavsmand] 29. sep. 2020 kl. 12:11 
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 kl. 14:05 
can it respond to a sensor?
[VVAR] Razzun 25. aug. 2020 kl. 16:02 
Thank you for the script. I use this script in all my worlds/builds.
meymo  [ophavsmand] 13. mar. 2020 kl. 11:20 
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. maj 2019 kl. 6:58 
Please Update it.
Xakorik 2. maj 2019 kl. 14:23 
Isn't "Green" the all clear state, that would be the "reset" state you want
Kinoe 15. apr. 2019 kl. 2:15 
Ok, i think he has a "normal alert".
Thanks :D
meymo  [ophavsmand] 15. apr. 2019 kl. 2:07 
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 kl. 16:04 
How is the command for restore the lights and lcds?
C4PTRAMPAGE 9. sep. 2018 kl. 5:01 
but ok ill try that
C4PTRAMPAGE 9. sep. 2018 kl. 5:01 
@meymo
it doesnt say it needs to be in brackets
meymo  [ophavsmand] 9. sep. 2018 kl. 3:31 
@C4PTRAMPAGE did you include the [], it should look like this "[Alert]".
C4PTRAMPAGE 9. sep. 2018 kl. 1:52 
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. maj 2018 kl. 17:09 
@meymo ohhhhh, I just thought the script would reset the lights and stuff somehow, I'll just try the off buttons!
meymo  [ophavsmand] 25. maj 2018 kl. 11:20 
@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. maj 2018 kl. 4:53 
I love this but like, how do you turn it off?
Luvstruckmango 22. mar. 2018 kl. 0:16 
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  [ophavsmand] 21. mar. 2018 kl. 12:28 
@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 kl. 12:19 
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 kl. 13:41 
@ 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 kl. 11:14 
Just a shout ot to the author. This script is wonderful! Thank you and keep up the good work!
Luvstruckmango 2. feb. 2018 kl. 11:11 
Also, if all else fails. Reinstall Space Engineers. Sometimes after huge updates, Space Engineers does weird things. Reinstalling fixes them.
meymo  [ophavsmand] 2. feb. 2018 kl. 11:00 
@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 kl. 9:49 
script is no longer working it will not change images, activate lights or sound blocks
wizard76 12. juni 2017 kl. 8:43 
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. okt. 2016 kl. 1:16 
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  [ophavsmand] 14. okt. 2016 kl. 13:48 
@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  [ophavsmand] 14. okt. 2016 kl. 13:12 
@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. okt. 2016 kl. 22:17 
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. okt. 2016 kl. 15:02 
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 kl. 7:58 
Okay. Thanks for getting back to me. It's possible it's just something I accidentally did. It is working for me too.
meymo  [ophavsmand] 24. sep. 2016 kl. 4:33 
@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 kl. 13:06 
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  [ophavsmand] 10. sep. 2016 kl. 11:36 
@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 kl. 8:04 
yes. but how do I stop the lights and LCD?
meymo  [ophavsmand] 10. sep. 2016 kl. 3:14 
@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 kl. 9:56 
or the programable block??

FatMax1492 8. sep. 2016 kl. 9:56 
how can I stop the timer?
Luvstruckmango 7. sep. 2016 kl. 12:56 
Thank you very much meymo, this is a wonderful script and I compliment you its genius.
meymo  [ophavsmand] 7. sep. 2016 kl. 10:31 
@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 kl. 19:46 
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 kl. 8:59 
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 kl. 2:12 
Script not working
meymo  [ophavsmand] 18. mar. 2016 kl. 16:03 
Hi twotwinbrothers bug fixed script works again.
Twotwinbrothers 18. mar. 2016 kl. 10:50 
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 kl. 4:23 
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 kl. 9:33 
Thanks for reply! I figured the problem... I set texture quality to high ^^