Space Engineers

Space Engineers

72 个评价
Mikr-Smooth Color Transition
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
43.131 KB
2020 年 3 月 31 日 上午 10:12
2021 年 9 月 26 日 上午 8:25
5 项改动说明 ( 查看 )

订阅以下载
Mikr-Smooth Color Transition

描述
The Script now works with LCDs. Multiple LCDs don't update their color at the same time because that's just how lcds work in Space Engineers


I searched for a Script that lets me do this. I found one but it was old and lacking features. So I made this.
This lets you set up smooth color transitions for your lights


First:
After you are done changing whatever it is that you want to change run the Script with "updategroups" or "updatecolors" .... im gonna leave it to your imagination which one updates what.

Also.. before you contact me and say it doesn't work, run it with the argument "updategroups".

Now the Instructions:
Put this in a programmable block
Add the tag "[MSCM]" to the name of the group
In ANY light in the group add to the Description:
For transition presets write:

colors [the name of the preset (eg: RGBsimple)]

for example:

colors RGBsimple

For custom transition write:

"colors" in the first line
each line after that is one color in the transition. Format it the following way: "([r], [g], [b])"

For example if you want a simple two color transition (lets say red and blue) do the following:
colors (255,0,0) (0,0,255)

Now run it with the argument "updategroups"

Notes
Nothing is case sensitive
If your lights stay black its because it can't read the colors, which means either you didn't do it yet or you did it incorrectly
If you change the colors after you ran it with updategroups you need to run it with updatecolors

IMPORTANT: no spaces

If you can't figure it out message me on Discord

Custom Timing
If you want the script to idle for a bit when it get to a color or if you want to change the speed of the animation you can do that as of version 0.9.1

simply add brackets after "colors" and do "colors([Updates],[IdlePercentage])"
Updates is how many updates it takes to get from one color to the next(one update is 1/60th of a second)
IdlePercentage is how many of those updates it idles
Updates is an int(whole number)
IdlePercentage is a number between 0 and 1 (so if you don't know 50% = 0.5)

for example:
colors(60,0.1) (255,0,0) (0,0,255)

In this example i have chosen 60 updates (so one second) and 10% of those (or 6 updates) it will idle

If you mess anything up in this part it will use the default values which are 60 frames and 0%


Join my discord if:
  • You want to be informed of new scripts to test (i make my scripts available on pastebin if they aren't ready for the workshop yet)
  • You want to hear about script updates
  • Want to ask me to make Scripts (yes i do that)
  • Want to suggest changes to my scripts
  • Want a quick reply to your question/problem (I can be offline for days on steam)
https://discord.gg/psXq4bK
Or dm me: mik #3030


Stellar Compass : Coming soon
Speedometer MK2 : Coming soon, available on my discord
Instrument Panel Ground Edition
Instrument Panel Aircraft Edition
Planetary Compass
16 条留言
Ender 2023 年 3 月 7 日 下午 9:04 
"In ANY light in the group add to the Description:"

?? When I click on a light within my group, I don't see any field labled "description"

I've assumed you mean Custom Data. But now I'm confused as I updated groups and colors to no avail. I am doing something wrong. Or I don't know where to enter in a description lol
LettuceSupreme (Nitron X) 2021 年 10 月 4 日 下午 3:58 
Thank you@!@!!!!!!!!!
mikr  [作者] 2021 年 9 月 26 日 上午 8:34 
done
LettuceSupreme (Nitron X) 2021 年 9 月 8 日 上午 12:20 
Hey, would it be possible to update this to also change the rgb values for lcd panels? I run into situations where they're better than lights for my uses (especially the transparent lcd panel).
Gryphorim 2020 年 4 月 15 日 下午 2:43 
yeah, that's reasonable. I just wanted to see how far I could push this script.
mikr  [作者] 2020 年 4 月 15 日 上午 9:30 
Gryphorim it failed because the thrusters aren't lights

Sounds stupid but the script looks for any block of the type IMyLightningBlock and thrusters arent lights
Gryphorim 2020 年 4 月 12 日 下午 2:41 
I tried to use this in conjunction with custom thruster colours. No good. I think it failed because the thrusters have 2 colours to set each (idle and full power), Havent tried with custom emissives, but predicting a similar result.
mikr  [作者] 2020 年 4 月 12 日 上午 9:21 
Celestite, making scripts obviously.
Effenheimer done
seronis ill probably add that
seronis 2020 年 4 月 7 日 上午 3:39 
You might consider having the script internally track the colors as HSV instead of RGB so that the transitions are smoother and its easier to maintain consistent brightness levels
⎝⧹Greedynuf⧸⎠ 2020 年 4 月 6 日 下午 4:47 
Nice