Built-in Markdown & Variable Scripting for LCDs/Cockpits
I’d love to see a native text formatting and dynamic data system for LCDs and cockpit screens in .
a simple Markdown system, with specific tags for custom cockpit instruments, plus a way to call grid variables directly in the text.
Here is how it could work:
Instead of writing full C# scripts, we could use a simple syntax (like using $ to target a block) to display real-time data:
The $ symbol targets specific blocks, groups, or the current grid by name. If a name has spaces, it uses quotes:
- Single Block: $Battery01 or $"Large Cargo 1"
- Block Groups: $[Engines] (Applies functions to the whole group, like averaging values).
- Local Grid: $Grid (For global stats like total mass or speed, e.g., $Grid.Speed).
You can read live data fields (.variable) or trigger formatting formats (.method()): - .Max / .Current / .Percentage: Basic float values (e.g., $HydroTank.Percentage).
- .Status: Returns strings like Online, Damaged, or Off.
- .Output(unit): Methods that format the output automatically (e.g., $Reactor.Output(MW) or $Cargo.Volume(L)).
Alongside standard markdown (# for titles, | for columns), we could have custom inline tags built for space engineering: - Visual Bars: [bar:$HydroTank.Percentage] renders a clean, auto-scaling progress bar.
- Conditional Formatting: [color:red if $Grid.Speed > 90] changes text color dynamically based on game states.
- Blinking Alerts: [blink if $Battery.Percentage < 10] LOW POWER flashes critical warnings.
To make sure this doesn't tank server performance, we could have a Refresh Rate slider on the screen's control panel (e.g., update every 100ms, 1s, or 5s).
To balance it in-game: the faster the refresh rate, the more MW of power the LCD/Cockpit consumes. If you want a hyper-reactive, real-time fighter cockpit, it costs electricity. If you just want a slow cargo monitor, it sips power.
I think this would open up massive customization for everyone, even players who don't know how to code.
mostly inspired by MMaster's Automatic LCDs 2
What do you think?
I like this feedback
Replies have been locked on this page!