Space Engineers

Space Engineers

(THYA) Shield HUD Script
569 comentarii
TheRebornAce 23 nov. la 18:58 
would it be possible to have this script compatible with shield mods based on Nerd's Shield Framework? i have created a shield mod and noticed the framework provides an API file. would this make compatibility possible?
Simboulis-PC 18 mai la 5:01 
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 10 mai la 23:10 
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 5 apr. la 9:42 
Would it be possible to make this compatible with Basic Defense Shield?
xdevourx 17 febr. la 12:57 
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 9 febr. la 14:26 
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 30 ian. la 7:22 
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 15 ian. la 17:18 
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  [autor] 22 nov. 2024 la 12:23 
Ahh, okay that makes sense. Thanks for sharing!
{H.K.}Warlama 22 nov. 2024 la 10:32 
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 22 nov. 2024 la 10:25 
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 22 nov. 2024 la 6:30 
@jturp i appreciate it. i have been driving myself insane trying to get this to work. i wish you luck.
jTurp  [autor] 22 nov. 2024 la 4:04 
I'll have to check it out, shouldn't be any different than any other multi-screen block
{H.K.}Warlama 21 nov. 2024 la 18:13 
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 16 oct. 2024 la 17:50 
I know others have already requested support for Deflector Shields so i am commenting to add in my support for that as well
Tiberius 9 aug. 2024 la 9:51 
@JTurp We need your help making this this mod work with Deflector Shields if possible.
The Erubian Warlord 15 iul. 2024 la 3:51 
@JTurp
what do deflector shields need to do to make it work with this script?
xdevourx 4 iul. 2024 la 23:33 
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 24 mai 2024 la 12:45 
@MacGuyver
maybee, just maybee you could tell what error it is and not just that there is an error
GuyverMasterOmega 24 mai 2024 la 12:43 
the mod has a critical error
please fix it
jTurp  [autor] 14 mart. 2024 la 20:11 
Not yet, but it will once they make a few necessary changes
Lamer 14 mart. 2024 la 20:00 
Is this mod working with "Deflector Shields", the remake of "Energy Shields"?

Link to "Deflector Shields"
The old forever TOP "Energy Shields"
Captain Harlock 16 febr. 2024 la 9:16 
Thanks
jTurp  [autor] 16 febr. 2024 la 9:00 
@All

It should be updated now
Deapri 16 febr. 2024 la 7:29 
I have tried as well, glad you were successful.
Thundercraft 15 febr. 2024 la 18:01 
@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.yuanyoumao.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 15 febr. 2024 la 15:26 
well as pastebin links are now being blocked by steam an updated version should maybe be uploaded so it's more accessible.
Captain Harlock 15 febr. 2024 la 15:19 
You already answered me on Discord, but thanks anyway ;D
Deapri 15 febr. 2024 la 15:15 
Put it in a programmable block.
Captain Harlock 15 febr. 2024 la 13:11 
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 14 febr. 2024 la 12:18 
@Eggy boi if you go back a couple of pages in the comments there's a working link.
Eggy boi 14 febr. 2024 la 11:49 
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  [autor] 8 febr. 2024 la 18:16 
@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 8 febr. 2024 la 4:56 
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  [autor] 2 febr. 2024 la 14:46 
The link may still be a few messages down, I’ve sent it a few times
jTurp  [autor] 2 febr. 2024 la 14:46 
Haha thanks Steam… no the newest version is from 2023
Atomhirsch 2 febr. 2024 la 1:33 
Isnt the newest version this page, from 2020? Cant find anything else. And your link has been removed :)
But thank you anyway haha
jTurp  [autor] 1 febr. 2024 la 18:18 
Here is the link to the newest version.

{LINK ELIMINAT}
Atomhirsch 1 febr. 2024 la 15:06 
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  [autor] 21 ian. 2024 la 20:26 
@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 21 ian. 2024 la 4:19 
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  [autor] 25 dec. 2023 la 20:10 
@Agaros007

You will need the graphics pack if you want the fancier styles shown in the pictures
Agaros007 19 dec. 2023 la 16:28 
how do i get the exact numbers like on the last picture?
Darth Nox 9 oct. 2023 la 14:41 
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  [autor] 9 oct. 2023 la 14:31 
@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 9 oct. 2023 la 7:33 
I am getting the same errors as Family Guy
Family Guy 30 sept. 2023 la 20:46 
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 15 sept. 2023 la 8:25 
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  [autor] 13 sept. 2023 la 16:37 
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