Space Engineers

Space Engineers

评价数不足
LCD Screen Mirroring
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
1.917 KB
2018 年 1 月 9 日 上午 2:52
2018 年 1 月 9 日 上午 2:54
2 项改动说明 ( 查看 )

订阅以下载
LCD Screen Mirroring

描述
Automatically duplicates text and/or settings between LCD panels.

This is particularly useful when using other scripts that have to do a lot of processing to generate their output for each screen. Why have them do more work than necessary, when you can just duplicate the output?

Please let me know about any bugs you might find.


How To Use
To set up the script, just load it into a Programmable Block.
The script runs automatically - no timer block required.

Then, add commands to the Programmable Block's Custom Data. A command consists of the name of an LCD Panel or Text Panel block, optionally preceded by special symbols. Blank lines will be ignored, so you add some space to make the text more readable.

Commands
  • Copy
    Entering just the name of a panel on a line will cause the script to store the text and settings from that panel, without altering the panel.
    Panel Name

  • Paste Text
    Entering a greater-than symbol before the panel name will cause that panel to have its text replaced with the currently stored text. Panels will have their text updated every 10 game ticks so as to not cause unnecessary lag.
    >Panel Name

  • Paste Text (High-Refresh)
    Entering an exclamation mark and greater-than symbol before the panel name will cause that panel to be updated every tick. Useful for copying from screens that have a high refresh rate.
    !>Panel Name

  • Paste Text and Update Settings
    Entering an asterisk and greater-than symbol before the panel name will cause that panel to have its text AND settings updated with the stored text and settings. The text will be updated every 10 game ticks. The settings will be updated every 100 game ticks.
    *>Panel Name
    The following settings will be copied:
    • Show Text On Screen
    • Font
    • Font Size
    • Font Color
    • Background Color

  • Paste Text (High-Refresh) and Update Settings
    Combining the 2 previous commands by entering an asterisk, an exclamation mark, AND a greater-than symbol before the panel name will cause that panel to have its text update every tick and its settings updated every 100 ticks.
    *!>Panel Name
    Note: The symbols must be entered in that order. Altering the order by placing the exlamation mark first WILL NOT WORK.

Examples
Here are some examples of what the Programmable Block's Custom Data might look like:
  • Example A
    Panel 1 >Panel 2
    This will copy the text from Panel 1 to Panel 2. Panel 2 will be updated every 10 ticks.
    This is the simplest usage of the script.

  • Example B
    Panel 1 !>Panel 2 *>Panel 3
    This will copy the text from Panel 1 to Panels 2 & 3. Panel 2 will have its text updated every tick, but will not have its settings updated at all. Panel 3 will be updated every 10 ticks (the default) and will have its settings updated every 100 ticks.

  • Example C
    Panel 1 *!>Panel 2 *>Panel 3
    This will copy the text from Panel 1 to Panels 2 & 3. Panel 2 will be updated every tick, Panel 3 will be updated every 10 ticks. Both panels will also have their settings updated every 100 ticks.

  • Example D
    Panel 1 >Panel 2 >Panel 3 Panel 4 >Panel 5
    This will copy the text from Panel 1 to Panels 2 & 3, and the text from Panel 4 to Panel 5.
7 条留言
Blu 7 月 14 日 下午 8:30 
Not working ATM.
Cryptkeeper  [作者] 2019 年 11 月 11 日 下午 9:27 
@Genji-Chan It's been a while since I've looked at this. It probably doesn't work since some of the more recent updates. I'll try and update it when I can though.
Doctor Gray 2019 年 11 月 11 日 上午 9:36 
Does this still work? I get to the point where I input commands in Custom Data and the script throws me a bunch of exceptions.
Makaronowyninja 2019 年 9 月 20 日 下午 1:42 
Does with work for copying stuff from an LCD to a cockpit screen? I want to display info from LCD from other scripts onto screens on my modded cockpit
Ebola 2019 年 9 月 10 日 上午 9:25 
Great
paulhamm 2018 年 7 月 31 日 上午 7:51 
Draven_Stone you may want to look at this 746124058 GalaxyNewsTV - Broadcast Messages Galaxy Wide http://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=746124058

Been looking for a simple repeater glad I found it.
Draven_Stone 2018 年 2 月 7 日 下午 2:37 
you know i can see this being useful if you can do it cross grids with a transmitter setup