Space Engineers

Space Engineers

130 ratings
ALight - Aeyos' Lighting Scripnt
2
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
95.415 KB
9 Mar, 2022 @ 10:17am
23 Mar, 2022 @ 5:25am
5 Change Notes ( view )

Subscribe to download
ALight - Aeyos' Lighting Scripnt

Description
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 Comments
Harold 5 Jul @ 7:31pm 
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 28 Oct, 2024 @ 12:25am 
Can this script handle multiple sets of lights at the same time?
jamstraz 19 May, 2024 @ 8:37am 
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 10 Apr, 2024 @ 12:49pm 
hello how do i see the Alight in the script menu of the programmable block because when i select script it doesnt appear
Auron1701 7 Nov, 2022 @ 6:08pm 
Is there a tutorial on how to edit this script ? How would you set a "red Alert" and back to "all clear" lights
benandcoopersdad 23 Sep, 2022 @ 7:14am 
I am having trouble assigning a group name variable
YeahKinda 13 May, 2022 @ 1:17pm 
Time to have my RGB gaming miner come to life
Palpatine 3 May, 2022 @ 4:47am 
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 10 Apr, 2022 @ 10:13am 
Mid Space Battle, Attacker " He got da RGB" lmao wtf this is dope
Aeyos  [author] 23 Mar, 2022 @ 5:35am 
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