Space Engineers

Space Engineers

(THYA) Shield HUD Script
568 Comments
Simboulis-PC May 18 @ 5:01am 
is it possible to use the specific modes like DS or ES on a non-corner LCD block?
@Galax
wont work as you cant use pb blocks (atleast to my point of knowledge at the point of writing) on consoles and thus ingamescripts are not possible for you consoleros.
Galax May 10 @ 11:10pm 
Hi, I have nearly the same question as Riker, could you make it compatible with Aegis Shield System? it is the only shield solution which works great on console servers...
lord.riker Apr 5 @ 9:42am 
Would it be possible to make this compatible with Basic Defense Shield?
xdevourx Feb 17 @ 12:57pm 
To answer my own question and for anyone else with the same question: Deflector shields is based off of Energy Shields and thus the naming convention is the same as Energy Shields for this mod and the graphic pack also works for deflector shields.
xdevourx Feb 9 @ 2:26pm 
Deflector Shields says its compatible with this script but i dont see any instructions as to what the naming convention should be on either page. Could someone kindly enlighten me :D
Endy Jan 30 @ 7:22am 
It compiles, but it throws an exception in Custom Data:

Exception Message:
Index was outside the bounds of the array.

Stack trace:
at Program.ParseShieldInfo_E(String shieldName, Int32& curShields, Int32& maxShields)
at Program.SubMain(String argument, UpdateType updateSource)
at Program.Main(String argument, UpdateType updateSource)
AresWalker Jan 15 @ 5:18pm 
Does this script also work with Tiberius' "Deflector Shields" mod? The mod functions very similarly to Cython's in that its a skin shield so I assume it should work or at least only need slight modification but I don't know.
jTurp  [author] Nov 22, 2024 @ 12:23pm 
Ahh, okay that makes sense. Thanks for sharing!
{H.K.}Warlama Nov 22, 2024 @ 10:32am 
ok, i feel like a COMPLETE idiot for posting this, but i post it for the sake of others in the future that may have fallen into the same hole i fell into. .......I forgot to add the THYA graphics pac into my mods list........i hope others can learn and avoid my mistake!
{H.K.}Warlama Nov 22, 2024 @ 10:25am 
I have done more digging and banging my head on the wall, i have found out so far that adding [Shield LCD: to the name is the right way to go. but any name with "THYA" in it just wont respond. if you add
[Shield LCD:TDS]
[Shield LCD:TDL]
[Shield LCD:BTS]
[Shield LCD:BTL]
[Shield LCD:CTD]
[Shield LCD:CRB]
[Shield LCD:CCB]

all these work for me i have tested and re tested. but as soon as you try to use THYA name it breaks.. i dont have it all solved yet. but this is what i have so far.
{H.K.}Warlama Nov 22, 2024 @ 6:30am 
@jturp i appreciate it. i have been driving myself insane trying to get this to work. i wish you luck.
jTurp  [author] Nov 22, 2024 @ 4:04am 
I'll have to check it out, shouldn't be any different than any other multi-screen block
{H.K.}Warlama Nov 21, 2024 @ 6:13pm 
hello all i have a question. im trying to get the shield info to display on the middle screen of the "console module block" that released with the signals DLC. i have tried every witch way to get this to work, but to no success, i know its gotta be a simple fix. but im in no way geared as a programmer or a genius in any way. and im really struggling with this, could someone help me resolve this problem, it would be much appreciated!
Trace_117 Oct 16, 2024 @ 5:50pm 
I know others have already requested support for Deflector Shields so i am commenting to add in my support for that as well
Tiberius Aug 9, 2024 @ 9:51am 
@JTurp We need your help making this this mod work with Deflector Shields if possible.
The Erubian Warlord Jul 15, 2024 @ 3:51am 
@JTurp
what do deflector shields need to do to make it work with this script?
xdevourx Jul 4, 2024 @ 11:33pm 
This was working fine and suddenly i have a message "BLOCK NAMED IS NOT AN ENERGY SHIELD GENERATOR!" does anyone know what may be causing this?
Abisius Xarvenius Carbensius May 24, 2024 @ 12:45pm 
@MacGuyver
maybee, just maybee you could tell what error it is and not just that there is an error
MacGuyver May 24, 2024 @ 12:43pm 
the mod has a critical error
please fix it
jTurp  [author] Mar 14, 2024 @ 8:11pm 
Not yet, but it will once they make a few necessary changes
Lamer Mar 14, 2024 @ 8:00pm 
Is this mod working with "Deflector Shields", the remake of "Energy Shields"?

Link to "Deflector Shields"
The old forever TOP "Energy Shields"
Captain Harlock Feb 16, 2024 @ 9:16am 
Thanks
jTurp  [author] Feb 16, 2024 @ 9:00am 
@All

It should be updated now
Deapri Feb 16, 2024 @ 7:29am 
I have tried as well, glad you were successful.
Thundercraft Feb 15, 2024 @ 6:01pm 
@Deapri
I'm sure many would appreciate the uploading of a Workshop version of the updated code. However, I do not believe it's accurate to claim that all Pastebin links are now being blocked by Steam. I say this because I successfully managed to share the Pastebin ink for the updated script for this mod (the same link that jTurp tried to share) in the comments for the "THYA Shield HUD Graphics Pack 1%" mod:
https://steamcommunity.com/sharedfiles/filedetails/?id=540003236

Perhaps Steam's site code falsely identified it as SPAM because several of jTurp's recent comments tried to share the exact same link?
Deapri Feb 15, 2024 @ 3:26pm 
well as pastebin links are now being blocked by steam an updated version should maybe be uploaded so it's more accessible.
Captain Harlock Feb 15, 2024 @ 3:19pm 
You already answered me on Discord, but thanks anyway ;D
Deapri Feb 15, 2024 @ 3:15pm 
Put it in a programmable block.
Captain Harlock Feb 15, 2024 @ 1:11pm 
OK, maybe it's a stupid question on my part: So I downloaded the current version via the link, but how can I use it now?
Kham Feb 14, 2024 @ 12:18pm 
@Eggy boi if you go back a couple of pages in the comments there's a working link.
Eggy boi Feb 14, 2024 @ 11:49am 
Hey jTurp, I see you tried linking a new version of this mod a few comments down, but the link was removed. Would you be able to re-send it or otherwise ensure it works? Thank you much
jTurp  [author] Feb 8, 2024 @ 6:16pm 
@Thundercraft

That depends on if Ash maintains the API or if he changes how it works. I doubt he plans to do that so it should be fine
Thundercraft Feb 8, 2024 @ 4:56am 
Quote from Description above, "-Works with DarkStar's Defense Shield Mod"

DarkStar has decided to retire from Space Engineers and is no longer maintaining his mods, as he states in the description of the Defense Shield mod, even renaming the mod with "- Retired" to drive home the point.

However, Ash Like Snow has taken over maintenance of DarkStar's Defense Shield and released a separate, new version:

Defense Shields - v2.2(8)

Question:
Will this mod automatically support the new "Defense Shield" mod maintained by Ash Like Snow? Or will this mod need to be updated to support this new version?
jTurp  [author] Feb 2, 2024 @ 2:46pm 
The link may still be a few messages down, I’ve sent it a few times
jTurp  [author] Feb 2, 2024 @ 2:46pm 
Haha thanks Steam… no the newest version is from 2023
Atomhirsch Feb 2, 2024 @ 1:33am 
Isnt the newest version this page, from 2020? Cant find anything else. And your link has been removed :)
But thank you anyway haha
jTurp  [author] Feb 1, 2024 @ 6:18pm 
Here is the link to the newest version.

{LINK REMOVED}
Atomhirsch Feb 1, 2024 @ 3:06pm 
Hi
I installed without Image Pack. Installed the LCD, gave it the name from the examples to not make any mistake, but still the PB gives me "Object not set to an instance of an object" error. I mean, there is nothing i can do wrong so...im wondering if this script is still working?
jTurp  [author] Jan 21, 2024 @ 8:26pm 
@Deapri

Unfortunately not, but I will probably write a new shield script in the near future to make use of sprites so the textures aren't necessary anymore.
Deapri Jan 21, 2024 @ 4:19am 
hey jTurp, do you know if it's possible to suppress the textures from showing in the selector to clean up the interface? That is to have them accessible to the script but not in the lcd images interface list.
jTurp  [author] Dec 25, 2023 @ 8:10pm 
@Agaros007

You will need the graphics pack if you want the fancier styles shown in the pictures
Agaros007 Dec 19, 2023 @ 4:28pm 
how do i get the exact numbers like on the last picture?
Darth Nox Oct 9, 2023 @ 2:41pm 
Thank you for the link, I was trying to figure out what was going on with it as well as I was getting that error.
jTurp  [author] Oct 9, 2023 @ 2:31pm 
@Family Guy @TheKurgan

A couple messages below yours I linked the updated script from pastebin. I don’t have permission to update the workshop so have to wait for Perdurable to do that.

I may end up creating a new version using sprites at some point as well.
TheKurgan Oct 9, 2023 @ 7:33am 
I am getting the same errors as Family Guy
Family Guy Sep 30, 2023 @ 8:46pm 
Please help me figure it out.
I am getting the below exception from Custom Data:

Exception Message:
Object reference not set to an instance of an object.

Stack trace:
at Program.DefenseShields..ctor(IMyTerminalBlock block)
at Program.Setup()
at Program.SubMain(String argument, UpdateType updateSource)
at Program.Main(String argument, UpdateType updateSource)
Lord_Zerks Sep 15, 2023 @ 8:25am 
Thanks for the work. the past bin one works. i just wish it saved as a copy in the scripts menu of the game itself. i ended up blueprinting a program block with the code already saved. is there a way to make the shield script display the different shields on separate LCDs?

for now i only seem to be able to figure out how to get it display the Total Shielding of both together.

been designing a ship made for ramming with a balanced gravity drive where the ramming part is extended past the defense shield. the other shield helps mitigate the damage done from ramming and keep the defense shield up for projectile protection of important systems.

reason for separate display would be nice to know after the repair system fixes what damage was done after ramming when the shielding is ready for another ram. "the pirates life for me"

Anyways cheers. keep the wonderful work. this is one of the most use scripts for me.
jTurp  [author] Sep 13, 2023 @ 4:37pm 
I don't have access to do that. Only Perturable can update the mod

But that is a good point.. could be that you just need to use this version:

https://pastebin.com/0VK6CgbE
Angelwrith Sep 13, 2023 @ 4:09pm 
@jyurp, why dont you just update the code for the mod with what you have on pastebin?