Space Engineers

Space Engineers

130 个评价
ALight - Aeyos' Lighting Scripnt
2
2
   
奖励
收藏
已收藏
取消收藏
标签: other_script
文件大小
发表于
更新日期
95.415 KB
2022 年 3 月 9 日 上午 10:17
2022 年 3 月 23 日 上午 5:25
5 项改动说明 ( 查看 )

订阅以下载
ALight - Aeyos' Lighting Scripnt

描述
About
A script to help you decorate your ship and add dynamic effects to it.
Lighting is the soul of a space ship, statition, whatever. Take control of
your lights and create a true lightshow!

How to instal
  • Place a programmable block
  • Select script "ALight"
  • Check code and save it
  • Change settings via Custom Data
  • Select your light blocks and add to a group named "RGB Lights" (case sensitive)
    or whatever you set the groupName variable to

Commands
ALight now has commands! Here's how to use them. Simply call the programmable block with argument, this can be from hotbar, timer blocks or other scripts. Documentation is available on the CUSTOM DATA of the programmable block. Please note that you can send multiple commands at once by separating them using a semicolon ";". Here are some examples:

Police Lights:
SET:COLOR:<255,0,0>,<0,0,255>
SET:SPEED:100
SET:UPDATE_EVERY:1
SET:LIGHT_MODE:NORMAL

Or simply: SET:COLOR:<255,0,0>,<0,0,255>;SET:SPEED:100;SET:UPDATE_EVERY:1;SET:LIGHT_MODE:NORMAL

RGB Lights
SET:COLOR:<255,0,0>,<0,0,255>,<0,255,0>
SET:SPEED:20
SET:UPDATE_EVERY:1
SET:LIGHT_MODE:GRADIENT

short command: SET:COLOR:<255,0,0>,<0,0,255>,<0,255,0>;SET:SPEED:20;SET:UPDATE_EVERY:1;SET:LIGHT_MODE:GRADIENT;


Star Night
SET:COLOR:<255,255,255>,<0,0,0>
SET:SPEED:20
SET:UPDATE_EVERY:5
SET:LIGHT_MODE:RANDOM

short command: SET:COLOR:<255,255,255>,<0,0,0>;SET:SPEED:20;SET:UPDATE_EVERY:5;SET:LIGHT_MODE:RANDOM


Landing Lights
SET:COLOR:<255,255,255>,<0,0,0>
SET:SPEED:20
SET:UPDATE_EVERY:1
SET:LIGHT_MODE:PULSE
SET:PULSE_LENGTH:3

short command: SET:COLOR:<255,255,255>,<0,0,0>;SET:SPEED:20;SET:UPDATE_EVERY:1;SET:LIGHT_MODE:PULSE;SET:PULSE_LENGTH:3


Changelog
v1.3.0
1. Added "Pulse" lighting mode (single light with configurable trail
that runs along the length of lights)
2. Re-introduced multiple groups (MyGroupName 1, MyGroupName 2, etc.)
3. Added Commands to control script configuration externally, via timers
other scripts and even from hotbar
4. Added commands documentation to custom data section (no need to lookup
a random text outside of the game)
5. Added multiple commands argument (separate every command by adding a
";" between them. Ex: SET:LIGHT_MODE:GRADIENT;SET:UPDATE_EVERY:10
6. Renamed mod to Alight - Aeyos' Lighting Script to better reflect it's
current purpose
7. Updated default configuration

v1.2.0
1. Added "Random" lighting mode (chooses a color between those predefined)
2. Skipping broken or off lights (improves performance)

v1.1.0
1. Added configuration via the Custom Data field
2. Added flow direction (thanks for the suggestion!)
3. Minified code to prevent confusion
4. Added HEADER info to the script

TODO
  • ☑ Add offset to color (gradient)
  • ☑ Make configuration a little bit better (from custom data)
  • ☑ Add "Random" mode to lighting
  • ☑ Improve performance by skipping off / broken lights
  • ☑ Add hotbar commands to control groups
  • ☑ Pause/Unpause (via commands)
  • ☑ Change profile (via commands)
  • ☑ Faster/Slower (via commands)

Github Link
https://github.com/Aeyos/se_ingame_script_collection/blob/master/ALight.min.cs

FPS boost not included
31 条留言
Harold 7 月 5 日 下午 7:31 
Great mod! Really added a missing ambiance from the outside of the drill rig in deep space. Cream of the cake with the pulse mode.
Into 2024 年 10 月 28 日 上午 12:25 
Can this script handle multiple sets of lights at the same time?
jamstraz 2024 年 5 月 19 日 上午 8:37 
How do you group lights together to make them perform in sequence? Regular grouping doesn't work. Do I make different ALight Control groups?
√2 ≈ 1.41421356237 2024 年 4 月 10 日 下午 12:49 
hello how do i see the Alight in the script menu of the programmable block because when i select script it doesnt appear
Auron1701 2022 年 11 月 7 日 下午 6:08 
Is there a tutorial on how to edit this script ? How would you set a "red Alert" and back to "all clear" lights
benandcoopersdad 2022 年 9 月 23 日 上午 7:14 
I am having trouble assigning a group name variable
YeahKinda 2022 年 5 月 13 日 下午 1:17 
Time to have my RGB gaming miner come to life
Palpatine 2022 年 5 月 3 日 上午 4:47 
Can you do like the exact same script but to target LCD text color? Btw great script, I have put this on peoples bases over and over. A great addition in art terms or to troll people with colors flashing on their base in ways they wouldn't want but are so complex they cant take them down.
Tauren 2022 年 4 月 10 日 上午 10:13 
Mid Space Battle, Attacker " He got da RGB" lmao wtf this is dope
Aeyos  [作者] 2022 年 3 月 23 日 上午 5:35 
Version 1.3.0 is out! Now with commands, to give you control on lights even more. Also re-added multiple groups by looking up group names that start with the defined name