Space Engineers

Space Engineers

Animated Alert Panels and Lights Controller
59 条留言
Geert-Jan 2023 年 5 月 7 日 上午 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 2022 年 2 月 25 日 下午 7:19 
Works fine in single player but does not work on dedicated server after warfare 2 update.
♫ erikhale gaming 🐺 2020 年 11 月 5 日 下午 5:23 
i think bit slow with script and alert status is stable so i got it change little fast
meymo  [作者] 2020 年 9 月 29 日 下午 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 2020 年 9 月 28 日 下午 2:05 
can it respond to a sensor?
[VVAR] Razzun 2020 年 8 月 25 日 下午 4:02 
Thank you for the script. I use this script in all my worlds/builds.
meymo  [作者] 2020 年 3 月 13 日 上午 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 2019 年 5 月 10 日 上午 6:58 
Please Update it.
Xakorik 2019 年 5 月 2 日 下午 2:23 
Isn't "Green" the all clear state, that would be the "reset" state you want
Kinoe 2019 年 4 月 15 日 上午 2:15 
Ok, i think he has a "normal alert".
Thanks :D
meymo  [作者] 2019 年 4 月 15 日 上午 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 2019 年 4 月 14 日 下午 4:04 
How is the command for restore the lights and lcds?
C4PTRAMPAGE 2018 年 9 月 9 日 上午 5:01 
but ok ill try that
C4PTRAMPAGE 2018 年 9 月 9 日 上午 5:01 
@meymo
it doesnt say it needs to be in brackets
meymo  [作者] 2018 年 9 月 9 日 上午 3:31 
@C4PTRAMPAGE did you include the [], it should look like this "[Alert]".
C4PTRAMPAGE 2018 年 9 月 9 日 上午 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 2018 年 5 月 25 日 下午 5:09 
@meymo ohhhhh, I just thought the script would reset the lights and stuff somehow, I'll just try the off buttons!
meymo  [作者] 2018 年 5 月 25 日 上午 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 2018 年 5 月 25 日 上午 4:53 
I love this but like, how do you turn it off?
Luvstruckmango 2018 年 3 月 22 日 上午 12: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  [作者] 2018 年 3 月 21 日 下午 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 2018 年 3 月 20 日 下午 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 2018 年 2 月 6 日 下午 1: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 2018 年 2 月 2 日 上午 11:14 
Just a shout ot to the author. This script is wonderful! Thank you and keep up the good work!
Luvstruckmango 2018 年 2 月 2 日 上午 11:11 
Also, if all else fails. Reinstall Space Engineers. Sometimes after huge updates, Space Engineers does weird things. Reinstalling fixes them.
meymo  [作者] 2018 年 2 月 2 日 上午 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 2018 年 2 月 2 日 上午 9:49 
script is no longer working it will not change images, activate lights or sound blocks
wizard76 2017 年 6 月 12 日 上午 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 2016 年 10 月 15 日 上午 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  [作者] 2016 年 10 月 14 日 下午 1: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  [作者] 2016 年 10 月 14 日 下午 1: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🍁 2016 年 10 月 9 日 下午 10: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 2016 年 10 月 9 日 下午 3: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 2016 年 9 月 24 日 上午 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  [作者] 2016 年 9 月 24 日 上午 4:33 
@Archangle I can't find any spaces in the location you descriped. The script also is working fine on my end.
Luvstruckmango 2016 年 9 月 13 日 下午 1: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  [作者] 2016 年 9 月 10 日 上午 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 2016 年 9 月 10 日 上午 8:04 
yes. but how do I stop the lights and LCD?
meymo  [作者] 2016 年 9 月 10 日 上午 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 2016 年 9 月 8 日 上午 9:56 
or the programable block??

FatMax1492 2016 年 9 月 8 日 上午 9:56 
how can I stop the timer?
Luvstruckmango 2016 年 9 月 7 日 下午 12:56 
Thank you very much meymo, this is a wonderful script and I compliment you its genius.
meymo  [作者] 2016 年 9 月 7 日 上午 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 2016 年 9 月 4 日 下午 7: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 2016 年 8 月 22 日 上午 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 2016 年 8 月 20 日 上午 2:12 
Script not working
meymo  [作者] 2016 年 3 月 18 日 下午 4:03 
Hi twotwinbrothers bug fixed script works again.
Twotwinbrothers 2016 年 3 月 18 日 上午 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 2016 年 2 月 8 日 上午 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 2015 年 12 月 12 日 上午 9:33 
Thanks for reply! I figured the problem... I set texture quality to high ^^