Space Engineers

Space Engineers

240 ratings
Projector Aligner
4
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
343.058 KB
Jan 24, 2021 @ 11:50am
Jul 20, 2024 @ 12:07pm
13 Change Notes ( view )

Subscribe to download
Projector Aligner

Description
Script to align a projector's projection from a control seat, and to switch projectors from a menu. This script can handle several groups of projectors, each with their own sets of screens and control seats.

All configuration is done through Custom Data. Simply create a heading
in the custom data of any block that you wish to use with this script:

[projector]

You may add cockpits, flight seats, remote controls and projectors.
By default all blocks will be in the "default" projector group. You can
change this by specifying a group name. For example:

[projector]
group=Ship Printer

To make use of a display, specify a display number and (optionally) a
scale and a color. For example:

[projector]
display=0
scale=0.5
color=00CED1

Change the number to the screen that you wish to use; numbers start at 0, so a
five-screen cockpit has screens 0, 1, 2, 3 and 4.
Color should be entered as six hexadecimal digits representing red, green and blue.

Additionally, you can specify details for a specific display using
numbered headings. This allows you to configure the display for more
than one group on a multi-display block, such as a cockpit, or to
display the output on a cockpit without using it for control. For example:

[projector_display0]
scale=0.8
color=F07020
group=Second Printer

Arguments
---------

up Move up one line on screen
down Move down one line on screen
apply Enter Menu / Select current projector from Menu
select "
build Re-read the Custom Data of blocks, and reconfigure
rebuild "
save Store the current alignment values in Custom Data
load Recover the alignment values from Custom Data

Follow the argument with a group name if other than "default". Use quotes if the
group name contains spaces or begins with a hyphen.

This script is released under the MIT license. You can find the MDK project here:
https://github.com/Brianetta/Projector-Aligner/

If you find a bug, or want to request a feature, feel free to create an issue on GitHub:
https://github.com/Brianetta/Projector-Aligner/issues

If you need help using the script, I can be reached in the comments or on the official Keen discord.

Building a ship printer, and want something to move a print head made of welders around? Check out the 3D Printer Script from SpaceEngineers.de:
https://steamcommunity.com/sharedfiles/filedetails/?id=2376883341
151 Comments
Spencer Feb 17 @ 7:04am 
hmm I think its got to do with groups I removed the group tag from the projectors and it works...going to keep testing this.
Spencer Feb 17 @ 6:57am 
Please let us know if or when this beautiful piece of work gets fixed!
Spencer Feb 17 @ 6:55am 
This is a great script and almost works, but it's broken, I am afraid. Firstly, the script doesn't compile without error, which is only a warning, so I gave it a try. Strangely, the first temporary cockpit I placed allowed me to use the arguments, but then once I tried putting it in a permanent place, any fiddling with arguments just broke the code on me. Weirdly even directly using arguments in the PB broke it but my temporary cockpit did just fine lol
Leconite Sep 11, 2024 @ 5:17am 
I've never run it on a corner LCD in the normal orientation, so I don't know how that looks.
The corner LCD in the screenshot is placed sideways, and has it's rotation set to 90.
Brianetta  [author] Sep 10, 2024 @ 12:56pm 
Weird. I haven't ever tried running it on those. Looks like the padding value might be part of the problem. I'll see if I can figure it out.
Leconite Sep 10, 2024 @ 6:51am 
Having this issue with output to a rotated corner LCD.

https://steamcommunity.com/profiles/76561199274840699/screenshot/2392062395222715142/
Jakewhistler Aug 26, 2024 @ 3:42am 
@Brianetta I've tried what you said, I think I've gotten it the way you said but nothing's happening. I've got a "Not Configured" error on my control chair screen and on the program block screen.
Brianetta  [author] Aug 25, 2024 @ 8:31am 
Just pop the config header and (optionally) the group name into the Custom Data on the remote control block. The script will take position input from the remote control when you take control of it.
Jakewhistler Aug 25, 2024 @ 2:13am 
So, playing around with this a bit I got the script to run on a simpler setup with just batteries, a program block, a projector and a seat, and that worked before a nano builder randomly ground some things down. That shouldn't have happened. But for a few seconds there it worked. I can't get it running through the remote control block at all.
Jakewhistler Aug 18, 2024 @ 5:23pm 
The remotes, that's an idea I hadn't thought of. I haven't done much with them at all, but I'll give it a try.