Space Engineers

Space Engineers

74 ratings
Luma 2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
13.601 KB
24 Dec, 2018 @ 5:11pm
19 May, 2019 @ 10:13am
8 Change Notes ( view )

Subscribe to download
Luma 2

Description
Luma Script

A very simple solution for automatic lights turning. Also supports doors, lcds, any other blocks.

Updated to 2.11
1.189 Ready

Updated to 2.10
  • Direction of the pistons and the rotors velocity can be managed now. (Use + and - in the CustomData for direction, the Example World for the best understanding)
  • Cargo Magnet works now and with the connectors
Script requires
  • at least one sensor
  • any number of any types of other blocks

As default it uses 2 meter for LCDs, 6 m. for lights, 4m. for doors and 2 meters for other types.
You can set your own sense range to the CustomData to any block (except LCDs)

Script works with block group named gLuma

The _JB key sets any block to just turn on/off

Use the Cargo Source key _Luma to specify where to get the components. Optionally.

Updated to 2.00
  • Added the Cargo Magnet feature (watch the video). Not in all servers the Easy Inventory mod is present, so it's almost alternative.
Updated to 1.02
  • Added the DebugMode (set to true in the head of script and add the lcd panel named Debug)
  • Other small fixes
  • World example published link
Updated to 1.01
Now it works with Large and Small Grids, also non human NPC (don't forget to setup the sensors)
37 Comments
Cruel Sun  [author] 6 Dec, 2019 @ 4:16pm 
You need to include in gLuma Group only needed blocks.
_JB - for example you have a door named MyDoor, if you will rename it to MyDoor_JB then that door will just be on/off.
Montaz-Mautino 6 Dec, 2019 @ 1:19pm 
Thanks a lot! I suggest you add this somewhere in the description.
Also, I'm wondering how to use "_JB". I want to exclude to lights from gLuma. Do I also add _JB to the CustomData of both lights?

Thanks again for this great script!
Cruel Sun  [author] 6 Dec, 2019 @ 8:08am 
Hi, for example you want to activate some light on 30 meters. Open the Grid terminal, find your light - press CustomData key and put 30. Complete.
Montaz-Mautino 6 Dec, 2019 @ 7:36am 
"You can set your own sense range to the CustomData to any block (except LCDs)"

How do I do this, please? I can't seem to find what to write in the custom data field.
Cronyx 5 Nov, 2019 @ 10:10am 
Gotcha, no problem. I'll just use two sensors :)
Cruel Sun  [author] 4 Nov, 2019 @ 11:03pm 
Yes, all detected objects will activate Luma.
Cronyx 4 Nov, 2019 @ 5:36pm 
If I set the Luma group Sensor to detect enemy players, will it also open doors for *them* too? I ask because I was going to try minimize the number of sensors I'm using, and I'm already using an Elite Sensor for radar.
Cronyx 4 Nov, 2019 @ 4:10pm 
Thanks for the vid; Yeah that's what I was doing, it just wasn't working. Maybe it was a server desync issue? 147.135.125.188:27015 is the server.
Cruel Sun  [author] 4 Nov, 2019 @ 2:37pm 
Can you share the world or just a grid? Or invite me?

I tried to check it out - https://youtu.be/Ofhbb1ZxmGc
Cronyx 4 Nov, 2019 @ 1:18pm 
Alright so this is weird. I ground down the PB, rebuilt it, reloaded the script, and it still wants to control the blocks I'm trying to remove. I guess I'll just grind down *those* blocks and rebuild them. ¯\_(ツ)_/¯