Space Engineers

Space Engineers

Automatic LCDs 2
Bjergo 23 Jun, 2023 @ 12:12pm
Thruster Status not Working
Hey hi,

I'm currently facing a challenge with my large grid ship and its running script. Specifically, I'm struggling to figure out how to display a group of thrusters as either ON or OFF on a single line. To provide some context, I have a group of 10 batteries, collectively named "batteries," with each individual battery referred to as "battery." Following a guide, I set the Custom Data as "PowerStored {Battery}" for one of the batteries in the group. This solution works perfectly fine, and the LCD displays the "batteries" group as intended.

However, when I attempted the same approach for the thrusters (both Hydro and Ion) to show ON or OFF on one line, using "Working {Hydro Thruster}" to display all hydrogen thrusters in the group named "Hydrogen Thrusters," the LCD started showing each hydro thruster individually on a separate line.

I hope this explanation clarifies the issue I'm facing. I feel quite helpless at the moment, as I've spent three hours trying to solve the problem despite having no programming experience. It has been quite frustrating.

Thank you for your understanding and any assistance you can provide!
< >
Showing 1-3 of 3 comments
Kham 23 Jun, 2023 @ 12:34pm 
This is just how the script handles groups of blocks and is working as intended.

When getting PowerStored it doesn't need to display each battery individually because the readout shows the "max potential stored power" and "current stored power" so you can tell how much is stored over all batteries.

With the Working command though it can monitor any type of block and display information about it but every block in that group can be on/off independently of the others so it displays them all.

If you don't worry about the possibility of them being out of sync with each other and you just want a neat readout, consider using PropBool instead and only monitoring one thruster in the group. Something like this;

PropBool {ThrusterName} {OnOff} {Thrusters} {On} {Off}

This will monitor a block matching "ThrusterName" and then display as "Thrusters" with "On" or "Off" on the right depending on the state of the monitored block.
Bjergo 23 Jun, 2023 @ 12:43pm 
Jesus, thank you so much! Honestly I tried that PropBool - but I failed - hard :steamfacepalm:
Kham 23 Jun, 2023 @ 1:06pm 
No problem, I've used PropBool too many times to count and I still sometimes mess up the order so you'll get there.
< >
Showing 1-3 of 3 comments
Per page: 1530 50