Space Engineers

Space Engineers

Energy Shields - (Smple) Status on LCD
35 Comments
seppi141 26 Apr @ 3:04am 
i cant get it to work..
AZRAEL 10 Nov, 2023 @ 1:58pm 
2023/11/10 ive updated the MINI script only to suit my needs on a corner lcd. rules havnt changed, just made it work and changed the output a bit. https://pastebin.com/Z6biNuVA
Broken old man 5 May, 2022 @ 3:32pm 
LCD error on check
Zatch E'Olivers(Zeo)[FR] 7 Apr, 2020 @ 5:04am 
ah,well, i should try. i come back when i know if this work.
scad.luncher  [author] 7 Apr, 2020 @ 1:51am 
@Zatch E'Olivers(zeo3434) didn't tested it on this mod...
Zatch E'Olivers(Zeo)[FR] 4 Apr, 2020 @ 10:18am 
this script work with DarkStar shield i guess ?
AeryToast 2 Dec, 2019 @ 4:36pm 
Lags every time it runs, possibly because of so many string split operations on the List text.
matthewvogt 16 Apr, 2019 @ 1:25pm 
I wouldnt recommend this mod on multiplayer bet single player it worked fine.
Kiffer 6 Apr, 2019 @ 9:44am 
This script with https://gtm.steamproxy.vip/sharedfiles/filedetails/?l=danish&id=484504816

caused my server to have memory leaks twice :/
scad.luncher  [author] 13 Jan, 2019 @ 3:55am 
@TheMadCat, sorry I didn't tested my script with shield's names containg other tags or just special symbos like "{}". Did other lcd scripts read data coorectly from your blocks with such symbols in their names?
TheMadCat 11 Jan, 2019 @ 9:52pm 
I'm getting "Caught exception during execution of script: index was outside the bounds of the arrya...."

I have shield name "{MEB} Large Shield Generator" and LCD "{MEB} LCD [Shield]"

The Stoned Raider Joseph B 2 Nov, 2018 @ 11:03am 
Ah i see, It wasn't clear to me that the brackets needed to be there to. In hind sight they are in between the quotes so... my bad. I was also setting up other scripts that didnt need them so could have got mixed up.
scad.luncher  [author] 2 Nov, 2018 @ 10:37am 
@The Stoned Raider Joseph.B, I believe you made a mistake, and spiked section 2 in my guide. You have to add '[Shield]' world into name of your lcds (without quotes but with square braces, which you wan to display shield status. If you update the game version, i suggest to recompile script also.

p.s. I just tested this script on 0.188, and it is working right. But becuse thi is a mod, i thin you shod to turn on "experimental mode" in game's "game options"
The Stoned Raider Joseph B 30 Oct, 2018 @ 3:19pm 
Ive done everthing in your walk through. But it is not working, nothing is coming up on the LCD. LCD is called shield, there are 4 Shields called "Small Shield Generator 19" to "Small Shield Generator 22" the lcd is on show text on screen. The ship is on so is the LCD and shields.
scad.luncher  [author] 14 Sep, 2018 @ 12:57am 
@BIGOLBEAR thank you for improving my script. All these changes are obviously required, because of Mod API changed a lot. But unfortunately I can't test it right now, because I had to switch to linux, and SE not working here, even with Steam Play.
BIGOLBEAR 13 Sep, 2018 @ 11:17am 
I have done some changes to this script for bug fix/efficiency purposes.
You can find this version here:
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=1511373604

Fixes:
1. order of algorithm changed from XY to X+Y where x is shields count and Y is lcd count.
2. Script no longer needs to be recompiled/run manually on start.
3. Script now accounts for shields being added and removed correctly including connecting/disconnecting grids.

@scad.luncher If you find these changes satisfactory please feel free to incorporate into the main thread for the script as you are original author.
Audiacious 23 May, 2018 @ 5:43pm 
any chance you could made this work with the beta defense shields as well??
Kam Solastor 26 Jan, 2018 @ 10:43am 
It's not a huge deal, just some thoughts I had. Thank you for your work though!
scad.luncher  [author] 26 Jan, 2018 @ 2:32am 
@Kam Solastor, I uploaded minified version of script for big lcd. I hope it'll be sufficient.
scad.luncher  [author] 26 Jan, 2018 @ 1:34am 
@Kam Solastor, all you asking i tried to implement, but currently can't say with luck. As about scrolling, i just don't know how to do it simple way. As about short version, you coul coment out second cycle, so, it will not parse individaul shields. I can publish shorttened version on pastebin, if you wish
Kam Solastor 25 Jan, 2018 @ 6:23pm 
Also, would it be possible to have a style of presentation that would just have an "overview" of everything, and cut off the individual shield stats? Would be great for a base or ship that has multiple generators on it - I'm not worried about "Shield No 6" - I just want to know the total shield strength, power used, time to regenerate, etc
Kam Solastor 25 Jan, 2018 @ 6:20pm 
One thing I might suggest though is the possability of having the text on the LCD scroll to the bottom of it's printout - I have multiple shield generators, but I can only seem to see two (No 0 and No 1), with the rest being 'under'.
Kam Solastor 25 Jan, 2018 @ 6:19pm 
Nevermind, changed 'show text on screen' and now it's showing :D
Kam Solastor 25 Jan, 2018 @ 6:18pm 
Hmm.. for some reason this script doesn't seem to be doing anything. I've double checked that my shield generators all have "Shield Generator" in their name, and the LCD I want the script to print out to has [Shield] in it's name (and I checked in the code to make sure there wasn't a typo on either end), yet my LCD remains blank. Any thoughts?
Lord_Daniel_DE 5 Jan, 2018 @ 10:03am 
Okay thanks.
scad.luncher  [author] 5 Jan, 2018 @ 8:41am 
@Lord_Daniel_DE, you can read latest change note in this mod.

Basically, i moved blocks detector into new container, which called only once, during init. Than script works with this index, just parsing and formatting shield data.

Also this script can self-update now, so timer no longer needed and even can mess up now. So if you wan to test it, remove associated timer from your grid, and update & recompile this script. Than run it, and check your ups.

On my test server it became much higher than with previous version of my script.
Lord_Daniel_DE 5 Jan, 2018 @ 8:30am 
Okay tell me
scad.luncher  [author] 5 Jan, 2018 @ 8:26am 
@Sangrias, @Lord_Daniel_DE [GGH-Inhaber] if you still subscribed to my script, I have good news for you. I think i fixed it's performance, but it became a little different in use...
Lord_Daniel_DE 30 Dec, 2017 @ 6:32am 
Okay, thx.
scad.luncher  [author] 30 Dec, 2017 @ 6:23am 
@Sangrias, @Lord_Daniel_DE [GGH-Inhaber], I've cheked my script's code twice, and can find any reasons for lags or crushes. I'm really sory, but my code is pretty straight an simple, and I can't optimize it more, that it is now.

Maybe there are other good script for shield genertors, written by more experienced C# coder, then me. My main specialaty -- Delphi\FPC, and maybe I didn't see some hidden errors in my algorithm.
Lord_Daniel_DE 30 Dec, 2017 @ 4:29am 
Pls fix this problem thx.
Lord_Daniel_DE 30 Dec, 2017 @ 4:27am 
I have the mod on the server and then i installed the scipt theni have a massive lag and our games crashed.
scad.luncher  [author] 30 Dec, 2017 @ 4:22am 
@Lord_Daniel_DE [GGH-Inhaber], scripts literally can not crash any server, because of programmable block internal protection! If your server crashing, it's because some of your installed mods! Their code doesn't protected from errors, so they can actually crash server.

My script depend on "Energy Shields" mod. If you don't have any mods on your server, except this mod and my script, and you still crushing, contact with @[XpL] Cython, the authtor of original mod, and ask him, what acan cuase server scrushes. My script desn't do nothing, except parsing text data, provided by shield blocks, and ouputting it in fancy way.
Sangrias 28 Aug, 2017 @ 2:46pm 
To be correct, only with attached capacitor modules
Sangrias 28 Aug, 2017 @ 2:44pm 
I have massive lag when i acrivate the PB with this script.