Space Engineers

Space Engineers

Ocen: 30
LCD Remote Mirroring
   
Przyznaj nagrodę
Ulubione
Ulubione
Usuń z ulubionych
Rozmiar pliku
Zamieszczono
Zaktualizowano
7.461 KB
15 kwietnia 2019 o 15:51
17 lutego 2020 o 19:32
Listy zmian: 2 ( zobacz )

Zasubskrybuj, aby pobrać
LCD Remote Mirroring

Opis
This script allows you to mirror the text of any LCD to any other LCD using the antenna network. This script will sync the following features:
  • Text
  • Text size
  • Text color
  • Text padding
  • Font
  • Text alignment
  • Background color

Configuration
The configuration of this script is very simple. All of the configuration goes into the CustomData of the programmable block. Each line specifies an LCD that the script will interact with. If spaces are needed in any of the arguments, surround the argument in quotes. After you edit the configuration, you should recompile the script to make the changes appear.

<name> : The tag used to identify broadcasts
<block> : The name of the block
[surface] : (Optional) For cases where the block has more than one lcd, you must specify the name of the surface as it appears in the list.

send <name> <block> [surface] : Specifies an lcd to broadcast
rcv <name> <block> [surface] : Specifies an lcd to receive broadcasts from a send command


Example
send info "LCD Panel"
rcv "more info" LCD2
rcv drone "Programmable block" "Large Display"
Popularne dyskusje Zobacz wszystkie (1)
0
5 lutego 2023 o 12:16
Trouble setting it up? Read this!
Jack Schitt
Komentarzy: 31
megadeathclaw 12 października o 14:39 
does this work on images
debstar 8 lutego o 3:15 
Hi very very usefull script.
Leconite 16 października 2024 o 7:05 
Small feature request.
Could we also have the ability to reference surfaces via numerical index?

For example a lot of my designs have the same information on the second display (surface index 1), regardless of block type.
The block could be a control seat, a cockpit, an industrial cockpit, etc.

Being able to
rcv telemetry "PB - LRM" 1
regardless of specific block surface names would be great.
Kalom 26 października 2023 o 6:37 
Great script. The only thing missing is that I would very much like to be able to stop a receiving screen from mirroring the font size from the Custom Data line.

Use case: when trying to mirror a normal LCD inside my industrial cockpit, the LCDs have a different shape, and I'm missing a few lines.

I have been able in this case to edit the script and comment the font size mirroring altogether on my ship, but I'd love to be able to do it on a per-screen basis.
avaness  [autor] 14 lipca 2022 o 8:14 
You need a send command and a receive command. Can you list them please
KampKounslr 14 lipca 2022 o 6:55 
I'm having a helluva time getting the script to recognize an LCD on the receiver... I put [REPRISE.MirrorLCD] at the end of the PB's name for the tag (which is how it's set inside the script on the PB), set a transparent LCD's name to "ARISE.LCD.REPRISE Status" (no quotes) & made sure it's on, put rcv REPRISE_Info "ARISE.LCD.REPRISE Status" into the custom data of the receiver PB, and recompiled. It still says no panels active :\ Oddly enough, where it says "No panels active", it says it was last updated 10 mins ago; I have edited the code, checked code, recompiled, turned on/off the PB, and no matter what it won't show that it just updated. Wondering if I need to destroy/reconstruct the PB...?
KampKounslr 13 lipca 2022 o 7:34 
@BeatU4Klondike A little late, but to answer: You can absolutely change the update frequency on each PB! If you edit the script in your PB, at the very top Avaness included instructions on how to do so.
KampKounslr 13 lipca 2022 o 7:29 
@Boobies I know this is a little late, but yes! There's an example of doing so above, just with rcv. So for your PB sending it's info, instead you would do (as an example): send drone "Programmable block" "Large Display"
Boobies 12 maja 2022 o 14:09 
Hmm, can you send data from a programmable block's large display to a specific LCD?
Leo 10 kwietnia 2022 o 3:32 
Liking the script. Wasn't hard for me to setup.
I have a question. I'm curious if users of the script can control the remote mirroring update frequency. I'm concerned about packet bandwidth usage through the Antenna blocks broadcast system.
Having it lower would be nice for conservation and performance reasons. A lot of my LCD info I want to remotely mirror doesn't need to have a high frequency update rate on the receiving side.
For example, even though a drone with a PB and a LCD (source LCD to mirror) updates several times a second, I only need to see the drones source LCD text new/updated info only every 4 to 8 seconds at my main base receiving LCD.